Documentation

HexMatrix.Lists

def Hex.Matrix.Lists.all (p : Nat → Bool) :
Nat → Bool

Check a predicate at every index below a natural bound.

Equations
Instances For
    def Hex.Matrix.Lists.entry {α : Type u_1} (zero : α) :
    List α → Nat → α

    List lookup with an explicit default and structural recursion.

    Equations
    Instances For
      def Hex.Matrix.Lists.get (rows : List (List Int)) (i j : Nat) :

      Integer entry of a row list, padded with zeros.

      Equations
      Instances For
        def Hex.Matrix.Lists.shape (n m : Nat) (rows : List (List Int)) :

        Exact rectangular dimensions, including empty rows.

        Equations
        Instances For

          A structurally recursive integer dot product.

          Equations
          Instances For

            A column of a row list.

            Equations
            Instances For
              def Hex.Matrix.Lists.product (n m : Nat) (a b : List (List Int)) (c : Nat → Nat → Int) :

              Check a matrix product against a supplied entry function. Shapes are checked separately by the caller.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The entry function for an identity matrix.

                Equations
                Instances For

                  The entry function for a rectangular diagonal matrix.

                  Equations
                  Instances For
                    theorem Hex.Matrix.Lists.all_iff (p : Nat → Bool) (n : Nat) :
                    all p n = true ↔ ∀ (i : Nat), i < n → p i = true
                    theorem Hex.Matrix.Lists.entry_eq_getD {α : Type u_1} (zero : α) (xs : List α) (i : Nat) :
                    entry zero xs i = xs.getD i zero

                    Exact unnormalized integer coefficient addition.

                    Equations
                    Instances For

                      Integer coefficient scaling.

                      Equations
                      Instances For

                        Structural integer coefficient convolution.

                        Equations
                        Instances For
                          def Hex.Matrix.rowLists {R : Type u_1} {n m : Nat} (A : Matrix R n m) :

                          The row-major list observation used in matrix denotation proofs.

                          Equations
                          Instances For
                            theorem Hex.Matrix.length_rowLists {R : Type u_1} {n m : Nat} (A : Matrix R n m) :
                            theorem Hex.Matrix.entry_rowLists {R : Type u_1} {n m : Nat} (A : Matrix R n m) (i : Fin n) :
                            theorem Hex.Matrix.get_rowLists {R : Type u_1} {n m : Nat} [Zero R] (A : Matrix R n m) (i : Fin n) (j : Fin m) :