Documentation

LeanRedis.Data.HList

def HList :
List (Type u)Type u
Equations
Instances For
    @[reducible, match_pattern, inline]
    Equations
    Instances For
      @[reducible, match_pattern, inline]
      abbrev HList.cons {τ : Type u_1} {τs : List (Type u_1)} (x : τ) (xs : HList τs) :
      HList (τ :: τs)
      Equations
      Instances For
        def HList.rec {motive : (τs : List (Type u)) → HList τsSort u} (nil : motive [] nil) (cons : {τ : Type u} → {τs : List (Type u)} → (x : τ) → (xs : HList τs) → motive τs xsmotive (τ :: τs) (x ::ₕ xs)) {τs : List (Type u)} (xs : HList τs) :
        motive τs xs
        Equations
        Instances For
          class HList.AllRepr (τs : List Type) :
          Instances
            @[implicit_reducible]
            Equations
            @[implicit_reducible]
            instance HList.instAllReprConsOfRepr {τ : Type} {τs : List Type} [Repr τ] [AllRepr τs] :
            AllRepr (τ :: τs)
            Equations
            @[implicit_reducible]
            instance HList.instReprOfAllRepr {τs : List Type} [AllRepr τs] :
            Repr (HList τs)
            Equations
            • One or more equations did not get rendered due to their size.
            @[implicit_reducible]
            Equations
            class HList.AllBEq (τs : List Type) :
            Instances
              @[implicit_reducible]
              Equations
              @[implicit_reducible]
              instance HList.instAllBEqConsOfBEq {τ : Type} {τs : List Type} [BEq τ] [AllBEq τs] :
              AllBEq (τ :: τs)
              Equations
              @[implicit_reducible]
              instance HList.instBEqOfAllBEq {τs : List Type} [AllBEq τs] :
              BEq (HList τs)
              Equations
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def HList.length {τs : List (Type u)} :
                HList τsNat
                Equations
                Instances For
                  def HList.head {τ : Type u_1} {τs : List (Type u_1)} :
                  HList (τ :: τs)τ
                  Equations
                  Instances For
                    def HList.tail {τ : Type u_1} {τs : List (Type u_1)} :
                    HList (τ :: τs)HList τs
                    Equations
                    Instances For
                      def HList.get {τs : List (Type u)} (i : Fin τs.length) :
                      HList τsτs[i]
                      Equations
                      Instances For
                        @[reducible, inline]
                        abbrev HList.get' {τs : List (Type u)} (i : Nat) (h : i < τs.length := by decide) :
                        HList τsτs[i]
                        Equations
                        Instances For
                          def HList.hAppend {αs βs : List (Type u)} :
                          HList αsHList βsHList (αs ++ βs)
                          Equations
                          Instances For
                            @[implicit_reducible]
                            instance HList.instHAppendHAppendListType {αs βs : List (Type u_1)} :
                            HAppend (HList αs) (HList βs) (HList (αs ++ βs))
                            Equations