Documentation

LeanPool.BooleanIsoperimetry.CoherentGap

Coherent-gap certificates #

This file formalizes the algebraic certificate mechanism behind normalized chamber rigidity for a fixed coherent Boolean term order. The motivating order is the Conway--Guy order from:

The definitions below do not assume Bohman's distinct-subset-sum theorem. That theorem is needed only to identify integral unit relations with consecutive gaps in the Conway--Guy subset-sum order.

The open-problem context and the exact boundary of this formalization are recorded separately in the Construct research notes.

@[reducible, inline]

An integer relation in dimension n.

Equations
Instances For

    The coordinate sum of an integer relation.

    Equations
    Instances For
      def BooleanIsoperimetry.CoherentGap.dot {n : } (relation weights : Relation n) :

      The scalar product of an integer relation with an integer weight row.

      Equations
      Instances For

        The standard coordinate vector.

        Equations
        Instances For

          A relation whose entries and coordinate sum lie in {-1, 0, 1} and whose value on the weight row is one.

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

            Pointwise sum of a list of relations.

            Equations
            Instances For
              structure BooleanIsoperimetry.CoherentGap.Certificate {n : } (weights target : Relation n) :

              A nonnegative integral dual certificate, represented as a list so that multiplicity is the coefficient of a relation.

              • relations : List (Relation n)

                Relations listed with their certificate multiplicities.

              • valid (relation : Relation n) : relation self.relationsIsLiftableUnit weights relation

                Every listed relation is a liftable unit relation.

              • target_eq : aggregate self.relations = target

                The listed relations sum to the certificate target.

              Instances For
                theorem BooleanIsoperimetry.CoherentGap.dot_add {n : } (first second weights : Relation n) :
                dot (first + second) weights = dot first weights + dot second weights
                theorem BooleanIsoperimetry.CoherentGap.dot_aggregate {n : } (relations : List (Relation n)) (weights : Relation n) :
                dot (aggregate relations) weights = (List.map (fun (relation : Relation n) => dot relation weights) relations).sum
                @[simp]
                theorem BooleanIsoperimetry.CoherentGap.dot_basis {n : } (coordinate : Fin n) (weights : Relation n) :
                dot (basis coordinate) weights = weights coordinate
                theorem BooleanIsoperimetry.CoherentGap.Certificate.length_eq_dot_target {n : } {weights target : Relation n} (certificate : Certificate weights target) :
                certificate.relations.length = dot target weights

                The mass of a certificate equals the value of its target on the weights.

                def BooleanIsoperimetry.CoherentGap.Certificate.singleton {n : } {weights relation : Relation n} (hrelation : IsLiftableUnit weights relation) :
                Certificate weights relation

                A one-relation certificate.

                Equations
                Instances For
                  def BooleanIsoperimetry.CoherentGap.Certificate.add {n : } {weights firstTarget secondTarget : Relation n} (first : Certificate weights firstTarget) (second : Certificate weights secondTarget) :
                  Certificate weights (firstTarget + secondTarget)

                  Add two certificates.

                  Equations
                  Instances For
                    def BooleanIsoperimetry.CoherentGap.Certificate.castTarget {n : } {weights firstTarget secondTarget : Relation n} (certificate : Certificate weights firstTarget) (htarget : firstTarget = secondTarget) :
                    Certificate weights secondTarget

                    Reinterpret the target of a certificate along an equality.

                    Equations
                    Instances For
                      def BooleanIsoperimetry.CoherentGap.Certificate.sum {n : } {weights : Relation n} (certificates : List ((target : Relation n) × Certificate weights target)) :
                      Certificate weights (List.map Sigma.fst certificates).sum

                      The sum of a list of dependently packaged certificates.

                      Equations
                      Instances For

                        Add one coordinate at the front of a weight row.

                        Equations
                        Instances For

                          Lift a relation by adding the negative coordinate sum at the front.

                          Equations
                          Instances For
                            theorem BooleanIsoperimetry.CoherentGap.lift_add {n : } (first second : Relation n) :
                            lift (first + second) = lift first + lift second
                            def BooleanIsoperimetry.CoherentGap.castRelation {firstDimension secondDimension : } (hdimension : firstDimension = secondDimension) (relation : Relation firstDimension) :
                            Relation secondDimension

                            Transport a relation through an equality of dimensions.

                            Equations
                            Instances For
                              theorem BooleanIsoperimetry.CoherentGap.dot_lift_extendWeights {n : } (head : ) (weights relation : Relation n) :
                              dot (lift relation) (extendWeights head weights) = dot relation weights
                              theorem BooleanIsoperimetry.CoherentGap.IsLiftableUnit.lift {n : } {weights relation : Relation n} (hrelation : IsLiftableUnit weights relation) (head : ) :
                              def BooleanIsoperimetry.CoherentGap.Certificate.lift {n : } {weights target : Relation n} (certificate : Certificate weights target) (head : ) :

                              Lift every relation in a certificate by one dimension.

                              Equations
                              Instances For
                                @[simp]
                                theorem BooleanIsoperimetry.CoherentGap.lift_basis {n : } (coordinate : Fin n) :
                                lift (basis coordinate) = basis coordinate.succ - basis 0

                                A tower of rows obtained by adjoining one new positive-linear coordinate at the front at each dimension.

                                • weights (n : ) : Relation n

                                  The reference row in each dimension.

                                • head :

                                  The coordinate adjoined when passing from dimension n to n + 1.

                                • step (n : ) : self.weights (n + 1) = extendWeights (self.head n) (self.weights n)

                                  Every row is obtained from the preceding row by the dimension lift.

                                Instances For
                                  def BooleanIsoperimetry.CoherentGap.WeightTower.liftCertificate (tower : WeightTower) {n : } {target : Relation n} (certificate : Certificate (tower.weights n) target) :
                                  Certificate (tower.weights (n + 1)) (lift target)

                                  Transport a certificate through one step of a weight tower.

                                  Equations
                                  Instances For
                                    def BooleanIsoperimetry.CoherentGap.WeightTower.iteratedLiftCertificate (tower : WeightTower) {n : } {target : Relation n} (certificate : Certificate (tower.weights n) target) (steps : ) :
                                    Certificate (tower.weights (n + steps)) (iteratedLift target steps)

                                    Repeatedly transport a certificate through a weight tower.

                                    Equations
                                    Instances For
                                      def BooleanIsoperimetry.CoherentGap.Certificate.castDimension {firstDimension secondDimension : } (tower : WeightTower) {target : Relation firstDimension} (certificate : Certificate (tower.weights firstDimension) target) (hdimension : firstDimension = secondDimension) :
                                      Certificate (tower.weights secondDimension) (castRelation hdimension target)

                                      Reinterpret a certificate along an equality of dimensions.

                                      Equations
                                      Instances For

                                        One correction in the strong-induction construction of a first-coordinate certificate.

                                        • sourceOffset :

                                          The source dimension is sourceOffset + 1.

                                        • sourceCoordinate : Fin (self.sourceOffset + 1)

                                          The smaller-dimensional coordinate whose certificate is lifted.

                                        • steps :

                                          Number of dimension lifts.

                                        • steps_pos : 0 < self.steps

                                          Every correction comes from a strictly smaller dimension.

                                        • dimension_eq : self.sourceOffset + 1 + self.steps = dimension

                                          Lifting reaches the target dimension exactly.

                                        Instances For
                                          theorem BooleanIsoperimetry.CoherentGap.Correction.sourceDimension_lt {dimension : } (correction : Correction dimension) :
                                          correction.sourceOffset + 1 < dimension
                                          theorem BooleanIsoperimetry.CoherentGap.Correction.sourceOffset_lt {offset : } (correction : Correction (offset + 2)) :
                                          correction.sourceOffset < offset + 1
                                          def BooleanIsoperimetry.CoherentGap.Correction.target {dimension : } (correction : Correction dimension) :
                                          Relation dimension

                                          The target contributed by a lifted smaller-dimensional basis certificate.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def BooleanIsoperimetry.CoherentGap.Correction.liftCertificate {dimension : } (correction : Correction dimension) (tower : WeightTower) (certificate : Certificate (tower.weights (correction.sourceOffset + 1)) (basis correction.sourceCoordinate)) :
                                            Certificate (tower.weights dimension) correction.target

                                            Realize a correction from a certificate in its source dimension.

                                            Equations
                                            Instances For

                                              Exact data needed at each dimension for the principal-relation strong-induction step. Every load-bearing input is a field: the principal relation must be a liftable unit relation, and its sum with the explicitly listed lifted corrections must be the first basis vector.

                                              Instances For
                                                def BooleanIsoperimetry.CoherentGap.allCoordinatesOfFirst (tower : WeightTower) (first : (n : ) → Certificate (tower.weights (n + 1)) (basis 0)) (n : ) (coordinate : Fin n) :
                                                Certificate (tower.weights n) (basis coordinate)

                                                If the first coordinate has a certificate in every positive dimension, the dimension lift supplies certificates for every coordinate.

                                                Equations
                                                Instances For
                                                  theorem BooleanIsoperimetry.CoherentGap.recurrenceCertificate_exists (tower : WeightTower) (recurrence : FirstCoordinateRecurrence tower) (dimension : ) (coordinate : Fin dimension) :
                                                  Nonempty (Certificate (tower.weights dimension) (basis coordinate))

                                                  Strong induction on dimension constructs all coordinate certificates from the explicit principal relations and correction chains.

                                                  noncomputable def BooleanIsoperimetry.CoherentGap.recurrenceCertificates (tower : WeightTower) (recurrence : FirstCoordinateRecurrence tower) (n : ) (coordinate : Fin n) :
                                                  Certificate (tower.weights n) (basis coordinate)

                                                  The full certificate family generated by an explicit principal/correction recurrence.

                                                  Equations
                                                  Instances For
                                                    def BooleanIsoperimetry.CoherentGap.realDot {n : } (relation : Relation n) (candidate : Fin n) :

                                                    Pair an integer relation with a real candidate row.

                                                    Equations
                                                    Instances For
                                                      theorem BooleanIsoperimetry.CoherentGap.realDot_add {n : } (first second : Relation n) (candidate : Fin n) :
                                                      realDot (first + second) candidate = realDot first candidate + realDot second candidate
                                                      theorem BooleanIsoperimetry.CoherentGap.realDot_aggregate {n : } (relations : List (Relation n)) (candidate : Fin n) :
                                                      realDot (aggregate relations) candidate = (List.map (fun (relation : Relation n) => realDot relation candidate) relations).sum
                                                      @[simp]
                                                      theorem BooleanIsoperimetry.CoherentGap.realDot_basis {n : } (coordinate : Fin n) (candidate : Fin n) :
                                                      realDot (basis coordinate) candidate = candidate coordinate
                                                      theorem BooleanIsoperimetry.CoherentGap.coordinate_lower_bound {n : } {weights : Relation n} {coordinate : Fin n} (certificate : Certificate weights (basis coordinate)) (candidate : Fin n) (hgap : ∀ (relation : Relation n), IsLiftableUnit weights relation1 realDot relation candidate) :
                                                      (weights coordinate) candidate coordinate

                                                      Abstract normalized-chamber rigidity. A certificate for a coordinate forces every real row satisfying all its unit-relation inequalities to dominate the corresponding reference weight.

                                                      theorem BooleanIsoperimetry.CoherentGap.recurrenceCertificate_mass (tower : WeightTower) (recurrence : FirstCoordinateRecurrence tower) {n : } (coordinate : Fin n) :
                                                      (recurrenceCertificates tower recurrence n coordinate).relations.length = tower.weights n coordinate

                                                      Every recurrence certificate has mass equal to its Conway--Guy-style reference coordinate.

                                                      theorem BooleanIsoperimetry.CoherentGap.normalizedChamberRigidity (tower : WeightTower) (recurrence : FirstCoordinateRecurrence tower) {n : } (candidate : Fin n) (hgap : ∀ (relation : Relation n), IsLiftableUnit (tower.weights n) relation1 realDot relation candidate) (coordinate : Fin n) :
                                                      (tower.weights n coordinate) candidate coordinate

                                                      Normalized chamber rigidity. An explicit principal/correction recurrence makes the reference row a coordinatewise lower bound for every row satisfying its unit-relation inequalities.

                                                      For the Conway--Guy order, the remaining concrete instantiation consists of:

                                                      1. the recurrence W_(n+1) = (d_(n+1), d_(n+1) + W_n);
                                                      2. the block identity proving that each published principal relation has value one;
                                                      3. the triangular-index correction list and its basis-vector decomposition.

                                                      Bohman's distinct-subset-sum theorem is then used outside this algebraic statement to identify the unit relations with consecutive order gaps.