Documentation

ChainCert.Boundary.Spec

def orientFace {ι : Type} [LinearOrder ι] (s : Finset ι) :
List ι

orientFace s is the canonical orientation of a face s: its vertices listed in increasing order with respect to the ambient LinearOrder on ι.

Use this in the specification/proof layer (incidence and sign checks), not as a transport encoding for Sage JSON interop.

Equations
Instances For
    def deletionMatches {ι : Type} [DecidableEq ι] (σ τ : List ι) :
    Equations
    Instances For
      def deletionIndex {ι : Type} [DecidableEq ι] (σ τ : List ι) :

      index i if τ = σ with exactly the i-th vertex deleted; none otherwise

      Equations
      Instances For
        def signOfIndex (i : ) :
        Equations
        Instances For
          def boundaryCoeff {ι : Type} [DecidableEq ι] (σ τ : List ι) :
          Equations
          Instances For
            def isBoundaryEntry {ι : Type} [DecidableEq ι] (σ τ : List ι) (a : ) :

            declarative entry predicate for external matrix verification

            Equations
            Instances For
              def getEntry? (d : List (List )) (i j : ) :

              Safe list indexing.

              Equations
              Instances For
                def expectedEntry? {ι : Type} [DecidableEq ι] (dom cod : List (List ι)) (i j : ) :

                Expected boundary entry from bases at (i,j): row i = codomain simplex τ, column j = domain simplex σ.

                Equations
                Instances For