Documentation

WeightedNetKAT.Listed.Vector

theorem Nat.digits_ofDigits' (b : ) (h : 1 < b) (L : List ) (w₁ : lL, l < b) :
b.digits (ofDigits b L) = List.rdropWhile (fun (x : ) => decide (x = 0)) L
theorem Nat.nStepInduction {P : Prop} (b : ) (hb : b 0) (base : i < b, P i) (more : ∀ (y : ), (∀ j < b * y, P j)x < b, P (x + b * y)) (a : ) :
P a
theorem Nat.ofDigits_eq_zero_iff (b : ) (L : List ) (hb : b 0) :
ofDigits b L = 0 lL, l = 0
theorem List.length_rdropWhile_le {α : Type u_1} (p : αBool) (L : List α) :
@[simp]
theorem List.getElem_rdropWhile {α : Type u_1} (p : αBool) (L : List α) (i : ) {hi : i < (rdropWhile p L).length} :
(rdropWhile p L)[i] = L[i]
theorem List.getElem_of_rdropWhile_le {α : Type u_1} (p : αBool) (L : List α) (i : ) (hi : (rdropWhile p L).length i) (hi' : i < L.length) :
p L[i] = true
def Vector.finBij.invFun (n m : ) (i : Fin (n ^ m)) :
Vector (Fin n) m
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Vector.finBij.toFun (n m : ) (v : Vector (Fin n) m) :
    Fin (n ^ m)
    Equations
    Instances For
      theorem Vector.finBij.isLeftInv (n m : ) (i : Fin (n ^ m)) :
      toFun n m (invFun n m i) = i
      theorem Vector.finBij.isRightInv (n m : ) (v : Vector (Fin n) m) :
      invFun n m (toFun n m v) = v
      @[specialize #[]]
      def Vector.finBij (n m : ) :
      Fin (n ^ m) Vector (Fin n) m
      Equations
      Instances For
        @[implicit_reducible, specialize #[]]
        instance Listed.instVector {α : Type u_1} [Listed α] (n : ) :
        Listed (Vector α n)
        Equations
        • One or more equations did not get rendered due to their size.
        @[implicit_reducible]
        def Listed.pi (α : Type u_3) (β : Type u_4) [Listed α] [Listed β] [Inhabited β] :
        Listed (αβ)
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[implicit_reducible]
          instance Listed.instReprForall {α : Type u_1} {β : Type u_2} [Listed α] [Repr α] [Repr β] :
          Repr (αβ)
          Equations