Documentation

LeanPool.GapCVP.Part08D

GapCVP proof, part 08, continuation 04 #

GapCVP reduction support.

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

    GapCVP reduction support.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def GapCVP.gapFactor400 (I : GapCVPInstance) :

      GapCVP reduction support.

      Equations
      Instances For
        noncomputable def GapCVP.gapYES400 (I : GapCVPInstance) :

        GapCVP reduction support.

        Equations
        Instances For
          noncomputable def GapCVP.gapNO400 (I : GapCVPInstance) :

          GapCVP reduction support.

          Equations
          Instances For

            GapCVP reduction support.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[reducible, inline]

              GapCVP reduction support.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                structure GapCVP.Core.Literal (variableCount : ℕ) :

                GapCVP reduction support.

                • variableIndex : Fin variableCount

                  GapCVP reduction support.

                • satisfyingValue : Bool

                  GapCVP reduction support.

                Instances For
                  def GapCVP.Core.instDecidableEqLiteral.decEq {variableCount✝ : ℕ} (x✝ x✝¹ : Literal variableCount✝) :
                  Decidable (x✝ = x✝¹)
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    structure GapCVP.Core.Clause (variableCount : ℕ) :

                    GapCVP reduction support.

                    Instances For

                      GapCVP reduction support.

                      Instances For
                        noncomputable def GapCVP.Core.Clause.Satisfied {variableCount : ℕ} (clause : Clause variableCount) (assignment : Fin variableCount → Bool) :

                        GapCVP reduction support.

                        Equations
                        Instances For
                          noncomputable def GapCVP.Core.Formula.Satisfied (formula : Formula) (assignment : Fin formula.variableCount → Bool) :

                          GapCVP reduction support.

                          Equations
                          Instances For
                            noncomputable def GapCVP.Core.Formula.Satisfiable (formula : Formula) :

                            GapCVP reduction support.

                            Equations
                            Instances For
                              theorem GapCVP.Factor400FormulaBridge.formula_satisfied_iff_forall_mem (formula : Core.Formula) (assignment : Fin formula.variableCount → Bool) :
                              formula.Satisfied assignment = true ↔ ∀ clause ∈ formula.clauses, clause.Satisfied assignment = true
                              theorem GapCVP.BinarySourceVariableCompaction.mem_formulaVariables_iff_exists_literal (formula : ThreeCNF) (name : ℕ) :
                              name ∈ SourceMachineCert.formulaVariables formula ↔ ∃ clause ∈ formula, ∃ (index : Fin 3), (clause index).1 = name

                              GapCVP reduction support.

                              Instances For
                                noncomputable def GapCVP.Core.EffectiveBinaryGaussian.System.Satisfies {m n : ℕ} (system : System m n) (assignment : Fin n → ZMod 2) :

                                GapCVP reduction support.

                                Equations
                                Instances For
                                  def GapCVP.Core.EffectiveBinaryGaussian.swapRows {m n : ℕ} (system : System m n) (left right : Fin m) :
                                  System m n

                                  GapCVP reduction support.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    theorem GapCVP.Core.EffectiveBinaryGaussian.swapRows_satisfies_iff {m n : ℕ} (system : System m n) (left right : Fin m) (assignment : Fin n → ZMod 2) :
                                    (swapRows system left right).Satisfies assignment = true ↔ system.Satisfies assignment = true
                                    def GapCVP.Core.EffectiveBinaryGaussian.addRow {m n : ℕ} (system : System m n) (source target : Fin m) :
                                    System m n

                                    GapCVP reduction support.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      theorem GapCVP.Core.EffectiveBinaryGaussian.addRow_satisfies_iff {m n : ℕ} (system : System m n) (source target : Fin m) (hne : source ≠ target) (assignment : Fin n → ZMod 2) :
                                      (addRow system source target).Satisfies assignment = true ↔ system.Satisfies assignment = true

                                      GapCVP reduction support.

                                      Instances For

                                        GapCVP reduction support.

                                        Equations
                                        Instances For
                                          theorem GapCVP.Core.EffectiveBinaryGaussian.RowOperation.satisfies_iff {m n : ℕ} (operation : RowOperation m) (system : System m n) (assignment : Fin n → ZMod 2) :
                                          (operation.apply system).Satisfies assignment = true ↔ system.Satisfies assignment = true

                                          GapCVP reduction support.

                                          • system : System m n

                                            GapCVP reduction support.

                                          • nextPivot : ℕ

                                            GapCVP reduction support.

                                          • pivots : List (Fin m × Fin n)

                                            GapCVP reduction support.

                                          • operations : List (RowOperation m)

                                            GapCVP reduction support.

                                          Instances For

                                            GapCVP reduction support.

                                            Equations
                                            Instances For
                                              def GapCVP.Core.EffectiveBinaryGaussian.applyOperation {m n : ℕ} (state : State m n) (operation : RowOperation m) :
                                              State m n

                                              GapCVP reduction support.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def GapCVP.Core.EffectiveBinaryGaussian.findPivotOption {m n : ℕ} (state : State m n) (column : Fin n) :

                                                GapCVP reduction support.

                                                Equations
                                                Instances For
                                                  theorem GapCVP.Core.EffectiveBinaryGaussian.findPivotOption_some {m n : ℕ} (state : State m n) (column : Fin n) (row : Fin m) (h : findPivotOption state column = some row) :
                                                  state.nextPivot ≤ ↑row ∧ state.system.check row column = 1
                                                  def GapCVP.Core.EffectiveBinaryGaussian.clearTarget {m n : ℕ} (pivot : Fin m) (column : Fin n) (state : State m n) (target : Fin m) :
                                                  State m n

                                                  GapCVP reduction support.

                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    theorem GapCVP.Core.EffectiveBinaryGaussian.clearTarget_check_pivot {m n : ℕ} (pivot : Fin m) (column otherColumn : Fin n) (state : State m n) (target : Fin m) :
                                                    (clearTarget pivot column state target).system.check pivot otherColumn = state.system.check pivot otherColumn
                                                    theorem GapCVP.Core.EffectiveBinaryGaussian.clearTarget_rhs_pivot {m n : ℕ} (pivot : Fin m) (column : Fin n) (state : State m n) (target : Fin m) :
                                                    (clearTarget pivot column state target).system.rhs pivot = state.system.rhs pivot
                                                    def GapCVP.Core.EffectiveBinaryGaussian.clearTargets {m n : ℕ} (pivot : Fin m) (column : Fin n) (targets : List (Fin m)) (state : State m n) :
                                                    State m n

                                                    GapCVP reduction support.

                                                    Equations
                                                    Instances For
                                                      def GapCVP.Core.EffectiveBinaryGaussian.columnStep {m n : ℕ} (state : State m n) (column : Fin n) :
                                                      State m n

                                                      GapCVP reduction support.

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        theorem GapCVP.Core.EffectiveBinaryGaussian.columnStep_pivot_column {m n : ℕ} (state : State m n) (column : Fin n) (hrow : state.nextPivot < m) (candidate : Fin m) (hfound : findPivotOption state column = some candidate) (row : Fin m) :
                                                        (columnStep state column).system.check row column = if row = ⟨state.nextPivot, hrow⟩ then 1 else 0
                                                        theorem GapCVP.Core.EffectiveBinaryGaussian.clearTargets_check_of_pivot_zero {m n : ℕ} (pivot : Fin m) (pivotColumn oldColumn : Fin n) (targets : List (Fin m)) (state : State m n) (hzero : state.system.check pivot oldColumn = 0) (row : Fin m) :
                                                        (clearTargets pivot pivotColumn targets state).system.check row oldColumn = state.system.check row oldColumn
                                                        def GapCVP.Core.EffectiveBinaryGaussian.runColumns {m n : ℕ} (columns : List (Fin n)) (state : State m n) :
                                                        State m n

                                                        GapCVP reduction support.

                                                        Equations
                                                        Instances For
                                                          theorem GapCVP.Core.EffectiveBinaryGaussian.eliminate_satisfies_iff {m n : ℕ} (system : System m n) (assignment : Fin n → ZMod 2) :
                                                          (eliminate system).system.Satisfies assignment = true ↔ system.Satisfies assignment = true
                                                          @[reducible, inline]

                                                          GapCVP reduction support.

                                                          Equations
                                                          Instances For

                                                            GapCVP reduction support.

                                                            Equations
                                                            Instances For

                                                              GapCVP reduction support.

                                                              Equations
                                                              Instances For

                                                                GapCVP reduction support.

                                                                Equations
                                                                Instances For
                                                                  @[simp]

                                                                  GapCVP reduction support.

                                                                  Equations
                                                                  Instances For

                                                                    GapCVP reduction support.

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

                                                                      GapCVP reduction support.

                                                                      Equations
                                                                      Instances For

                                                                        GapCVP reduction support.

                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          theorem GapCVP.Core.EffectiveBinaryField.noProperFactors_eq_true_iff {e : ℕ} (lower : Word e) :
                                                                          noProperFactors e lower = true ↔ ∀ (left right : Word e), multiplyWords left right ≠ monicWord lower
                                                                          def GapCVP.Core.EffectiveBinaryField.xorAt {d : ℕ} (word : Word d) (index : Fin d) (bit : Bool) :

                                                                          GapCVP reduction support.

                                                                          Equations
                                                                          Instances For
                                                                            theorem GapCVP.Core.EffectiveBinaryField.wordPolynomial_xorAt {d : ℕ} (word : Word d) (index : Fin d) (bit : Bool) :
                                                                            wordPolynomial (xorAt word index bit) = wordPolynomial word + (Polynomial.monomial ↑index) (bitValue bit)
                                                                            def GapCVP.Core.EffectiveBinaryField.shiftXor {e : ℕ} (lower : Word e) (degree : ℕ) (word : Word (2 * e)) :
                                                                            Word (2 * e)

                                                                            GapCVP reduction support.

                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For
                                                                              def GapCVP.Core.EffectiveBinaryField.reduceAt {e : ℕ} (lower : Word e) (degree : ℕ) (word : Word (2 * e)) :
                                                                              Word (2 * e)

                                                                              GapCVP reduction support.

                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For
                                                                                def GapCVP.Core.EffectiveBinaryField.reduceProduct {e : ℕ} (lower : Word e) (word : Word (2 * e)) :
                                                                                Word (2 * e)

                                                                                GapCVP reduction support.

                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For
                                                                                  def GapCVP.Core.EffectiveBinaryField.multiplyMod {e : ℕ} (lower left right : Word e) :

                                                                                  GapCVP reduction support.

                                                                                  Equations
                                                                                  Instances For

                                                                                    Power basis of the selected binary field extension, reindexed by its degree.

                                                                                    Equations
                                                                                    Instances For
                                                                                      def GapCVP.BinaryFieldBasis.indexedWord (degree : ℕ) (index : Fin (2 ^ degree)) :

                                                                                      GapCVP reduction support.

                                                                                      Equations
                                                                                      Instances For
                                                                                        def GapCVP.BinaryFieldBasis.boundedWordIndex {degree count : ℕ} (hcount : count ≤ 2 ^ degree) :
                                                                                        Fin count ↪ Fin (2 ^ degree)

                                                                                        GapCVP reduction support.

                                                                                        Equations
                                                                                        Instances For
                                                                                          def GapCVP.BinaryFieldBasis.evaluationWordIndex {degree count : ℕ} (hcount : count ≤ 2 ^ degree) :
                                                                                          Fin (2 ^ degree - count) ↪ Fin (2 ^ degree)

                                                                                          GapCVP reduction support.

                                                                                          Equations
                                                                                          Instances For
                                                                                            @[instance_reducible, instance 100]
                                                                                            noncomputable instance GapCVP.BinaryFieldBasis.factor400GaloisFieldFintype (degree : ℕ) :
                                                                                            Fintype (GaloisField 2 degree)
                                                                                            Equations
                                                                                            noncomputable def GapCVP.BinaryFieldBasis.effectiveFieldBasis (degree : ℕ) (hdegree : 0 < degree) :
                                                                                            Module.Basis (Fin degree) (ZMod 2) (GaloisField 2 degree)

                                                                                            GapCVP reduction support.

                                                                                            Equations
                                                                                            • One or more equations did not get rendered due to their size.
                                                                                            Instances For
                                                                                              noncomputable def GapCVP.BinaryFieldBasis.indexedFieldEquiv (degree : ℕ) (hdegree : 0 < degree) :
                                                                                              Fin (2 ^ degree) ≃ GaloisField 2 degree

                                                                                              GapCVP reduction support.

                                                                                              Equations
                                                                                              Instances For
                                                                                                theorem GapCVP.BinaryFieldBasis.indexedFieldEquiv_apply (degree : ℕ) (hdegree : 0 < degree) (index : Fin (2 ^ degree)) :

                                                                                                The indexed field equivalence evaluates the corresponding binary word.

                                                                                                noncomputable def GapCVP.BinaryFieldBasis.effectiveAnchor (degree : ℕ) (hdegree : 0 < degree) {count : ℕ} (hcount : count ≤ 2 ^ degree) :
                                                                                                Fin count ↪ GaloisField 2 degree

                                                                                                GapCVP reduction support.

                                                                                                Equations
                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                Instances For
                                                                                                  noncomputable def GapCVP.BinaryFieldBasis.effectiveEvaluationEmbedding (degree : ℕ) (hdegree : 0 < degree) {count : ℕ} (hcount : count ≤ 2 ^ degree) :
                                                                                                  Fin (2 ^ degree - count) ↪ GaloisField 2 degree

                                                                                                  GapCVP reduction support.

                                                                                                  Equations
                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                  Instances For
                                                                                                    theorem GapCVP.BinaryFieldBasis.effectiveAnchor_apply (degree : ℕ) (hdegree : 0 < degree) {count : ℕ} (hcount : count ≤ 2 ^ degree) (index : Fin count) :
                                                                                                    (effectiveAnchor degree hdegree hcount) index = (Core.EffectiveBinaryField.extensionAlgEquivGaloisField degree hdegree) (wordElement (indexedWord degree ((boundedWordIndex hcount) index)))

                                                                                                    The anchor embedding evaluates the indexed binary word in the extension field.

                                                                                                    theorem GapCVP.BinaryFieldBasis.effectiveEvaluationEmbedding_apply (degree : ℕ) (hdegree : 0 < degree) {count : ℕ} (hcount : count ≤ 2 ^ degree) (index : Fin (2 ^ degree - count)) :

                                                                                                    The evaluation embedding evaluates the indexed binary word in the extension field.

                                                                                                    theorem GapCVP.BinaryFieldBasis.effectiveEvaluationEmbedding_ne_anchor (degree : ℕ) (hdegree : 0 < degree) {count : ℕ} (hcount : count ≤ 2 ^ degree) (point : Fin (2 ^ degree - count)) (anchor : Fin count) :
                                                                                                    (effectiveEvaluationEmbedding degree hdegree hcount) point ≠ (effectiveAnchor degree hdegree hcount) anchor
                                                                                                    noncomputable def GapCVP.Core.binaryFieldVectorEquiv {K : Type u_1} [Field K] [Algebra (ZMod 2) K] {e : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (dimension : ℕ) :
                                                                                                    (Fin dimension → K) ≃ₗ[ZMod 2] Fin dimension × Fin e → ZMod 2

                                                                                                    GapCVP reduction support.

                                                                                                    Equations
                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                    Instances For
                                                                                                      def GapCVP.Core.binaryFieldBitEmbedding {K : Type u_1} [Field K] [Algebra (ZMod 2) K] (dimension : ℕ) :
                                                                                                      (Fin dimension → ZMod 2) →ₗ[ZMod 2] Fin dimension → K

                                                                                                      GapCVP reduction support.

                                                                                                      Equations
                                                                                                      Instances For
                                                                                                        noncomputable def GapCVP.Core.binaryFieldParityLinearMap {K : Type u_1} [Field K] [Algebra (ZMod 2) K] {e m n : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (checks : Matrix (Fin m) (Fin n) K) :
                                                                                                        (Fin n → ZMod 2) →ₗ[ZMod 2] Fin m × Fin e → ZMod 2

                                                                                                        GapCVP reduction support.

                                                                                                        Equations
                                                                                                        Instances For
                                                                                                          noncomputable def GapCVP.Core.binaryFieldParityMatrix {K : Type u_1} [Field K] [Algebra (ZMod 2) K] {e m n : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (checks : Matrix (Fin m) (Fin n) K) :
                                                                                                          Matrix (Fin m × Fin e) (Fin n) (ZMod 2)

                                                                                                          GapCVP reduction support.

                                                                                                          Equations
                                                                                                          Instances For
                                                                                                            def GapCVP.Core.binaryResidue {n : ℕ} (z : Fin n → ℤ) :
                                                                                                            Fin n → ZMod 2

                                                                                                            GapCVP reduction support.

                                                                                                            Equations
                                                                                                            Instances For

                                                                                                              GapCVP reduction support.

                                                                                                              Instances For
                                                                                                                noncomputable def GapCVP.Core.BinaryAffineSystem.Solves (system : BinaryAffineSystem) (z : Fin system.dimension → ℤ) :

                                                                                                                GapCVP reduction support.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  noncomputable def GapCVP.Core.BinaryAffineSystem.InLattice (system : BinaryAffineSystem) (z : Fin system.dimension → ℤ) :

                                                                                                                  GapCVP reduction support.

                                                                                                                  Equations
                                                                                                                  Instances For
                                                                                                                    theorem GapCVP.Core.BinaryAffineSystem.solves_sub_iff_inLattice (system : BinaryAffineSystem) {u : Fin system.dimension → ℤ} (hu : system.Solves u = true) (z : Fin system.dimension → ℤ) :
                                                                                                                    system.Solves (u - z) = true ↔ system.InLattice z = true
                                                                                                                    @[reducible, inline]
                                                                                                                    abbrev GapCVP.Core.assembledBinaryRow {ι : Type u_1} (rowCounts : ι → ℕ) (e : ℕ) :
                                                                                                                    Type u_1

                                                                                                                    GapCVP reduction support.

                                                                                                                    Equations
                                                                                                                    Instances For
                                                                                                                      noncomputable def GapCVP.Core.assembledBinaryParityMatrix {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e n : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (checks : (family : ι) → Matrix (Fin (rowCounts family)) (Fin n) K) :
                                                                                                                      Matrix (assembledBinaryRow rowCounts e) (Fin n) (ZMod 2)

                                                                                                                      GapCVP reduction support.

                                                                                                                      Equations
                                                                                                                      Instances For
                                                                                                                        noncomputable def GapCVP.Core.assembledBinaryRightHandSide {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (targets : (family : ι) → Fin (rowCounts family) → K) :
                                                                                                                        assembledBinaryRow rowCounts e → ZMod 2

                                                                                                                        GapCVP reduction support.

                                                                                                                        Equations
                                                                                                                        Instances For
                                                                                                                          @[simp]
                                                                                                                          theorem GapCVP.Core.assembledBinaryParityMatrix_mulVec_apply {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e n : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (checks : (family : ι) → Matrix (Fin (rowCounts family)) (Fin n) K) (bits : Fin n → ZMod 2) (row : assembledBinaryRow rowCounts e) :
                                                                                                                          (assembledBinaryParityMatrix basis rowCounts checks).mulVec bits row = (binaryFieldParityMatrix basis (checks row.fst)).mulVec bits row.snd
                                                                                                                          theorem GapCVP.Core.assembledBinaryParityMatrix_mulVec_eq_iff {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e n : ℕ} (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (checks : (family : ι) → Matrix (Fin (rowCounts family)) (Fin n) K) (bits : Fin n → ZMod 2) (targets : (family : ι) → Fin (rowCounts family) → K) :
                                                                                                                          (assembledBinaryParityMatrix basis rowCounts checks).mulVec bits = assembledBinaryRightHandSide basis rowCounts targets ↔ ∀ (family : ι), ((checks family).mulVec fun (position : Fin n) => (algebraMap (ZMod 2) K) (bits position)) = targets family
                                                                                                                          @[reducible, inline]
                                                                                                                          noncomputable abbrev GapCVP.Core.assembledBinaryAffineSystem {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e n : ℕ} [Fintype ι] (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (checks : (family : ι) → Matrix (Fin (rowCounts family)) (Fin n) K) (targets : (family : ι) → Fin (rowCounts family) → K) :

                                                                                                                          GapCVP reduction support.

                                                                                                                          Equations
                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                          Instances For
                                                                                                                            theorem GapCVP.Core.assembledBinaryAffineSystem_solves_iff {ι : Type u_1} {K : Type u_2} [Field K] [Algebra (ZMod 2) K] {e n : ℕ} [Fintype ι] (basis : Module.Basis (Fin e) (ZMod 2) K) (rowCounts : ι → ℕ) (checks : (family : ι) → Matrix (Fin (rowCounts family)) (Fin n) K) (targets : (family : ι) → Fin (rowCounts family) → K) (z : Fin n → ℤ) :
                                                                                                                            (assembledBinaryAffineSystem basis rowCounts checks targets).Solves z = true ↔ ∀ (family : ι), ((checks family).mulVec fun (position : Fin n) => (algebraMap (ZMod 2) K) ↑(z position)) = targets family
                                                                                                                            theorem GapCVP.Core.source_moment_degree_le {N d : ℕ} (hd : d ≤ N) :
                                                                                                                            d * N ^ 30 ≤ N ^ 31
                                                                                                                            def GapCVP.Core.sourcePuncturedGrid {k : Type u_1} [Fintype k] [DecidableEq k] (variablePlaces : Finset k) :

                                                                                                                            GapCVP reduction support.

                                                                                                                            Equations
                                                                                                                            Instances For
                                                                                                                              theorem GapCVP.Core.source_moment_degree_lt_actual_grid {k : Type u_1} [Fintype k] [DecidableEq k] {N : ℕ} (variablePlaces : Finset k) (hN : 100 ≤ N) (hq : N ^ 200 ≤ Fintype.card k) (hplaces : variablePlaces.card ≤ N) :
                                                                                                                              N ^ 31 < (sourcePuncturedGrid variablePlaces).card
                                                                                                                              theorem GapCVP.Core.source_cleared_moment_degree_lt_half_field_size {N q : ℕ} (hN : 100 ≤ N) (hq : N ^ 200 ≤ q) :
                                                                                                                              2 * N ^ 39 < q / 2
                                                                                                                              theorem GapCVP.Core.source_clause_support_lt_moment_budget {N : ℕ} (hN : 100 ≤ N) :
                                                                                                                              9 * N ^ 4 < N ^ 30
                                                                                                                              theorem GapCVP.Core.source_valuation_index_lt_moment_budget {N h U : ℕ} (hN : 100 ≤ N) (hh : h ≤ N ^ 4) (hU : U ≤ 4 * N ^ 17) :
                                                                                                                              h * U + h < N ^ 30
                                                                                                                              theorem GapCVP.Core.source_cleared_moment_degree_le {N d h j : ℕ} (hd : d ≤ N) (hh : h ≤ N ^ 4) (hj : j ≤ N ^ 30) :
                                                                                                                              2 * d * h ^ 2 * j ≤ 2 * N ^ 39
                                                                                                                              @[irreducible]

                                                                                                                              GapCVP reduction support.

                                                                                                                              Equations
                                                                                                                              Instances For
                                                                                                                                @[reducible, inline]

                                                                                                                                GapCVP reduction support.

                                                                                                                                Equations
                                                                                                                                Instances For
                                                                                                                                  theorem GapCVP.Core.hankel_det_eq_vandermonde_det_sq {R : Type u_1} [CommRing R] {n : ℕ} (v : Fin n → R) :
                                                                                                                                  (Matrix.of fun (i j : Fin n) => ∑ k : Fin n, v k ^ (↑i + ↑j)).det = (Matrix.vandermonde v).det ^ 2
                                                                                                                                  theorem GapCVP.Core.hankel_det_ne_zero_of_injective {R : Type u_1} [CommRing R] [IsDomain R] {n : ℕ} {v : Fin n → R} (hv : Function.Injective v) :
                                                                                                                                  (Matrix.of fun (i j : Fin n) => ∑ k : Fin n, v k ^ (↑i + ↑j)).det ≠ 0
                                                                                                                                  theorem GapCVP.Core.polynomial_eq_of_agree_on_points {K : Type u_1} [Field K] (points : Finset K) (f g : Polynomial K) (hdeg : max f.natDegree g.natDegree < points.card) (hagree : ∀ x ∈ points, Polynomial.eval x f = Polynomial.eval x g) :
                                                                                                                                  f = g
                                                                                                                                  noncomputable def GapCVP.Core.supportMoment {K : Type u_1} [Field K] (support : Finset K) (j : ℕ) :
                                                                                                                                  K

                                                                                                                                  GapCVP reduction support.

                                                                                                                                  Equations
                                                                                                                                  Instances For

                                                                                                                                    GapCVP reduction support.

                                                                                                                                    Equations
                                                                                                                                    Instances For
                                                                                                                                      theorem GapCVP.Core.global_root_mem_subtype_of_moment_refinement {K : Type u_1} [Field K] [CharP K 2] [DecidableEq K] (global : Finset K) (subtypes : List (Finset K)) (hmoments : ∀ j < global.card + (paritySupport subtypes).card, supportMoment global j = (List.map (fun (s : Finset K) => supportMoment s j) subtypes).sum) {a : K} (ha : a ∈ global) :
                                                                                                                                      ∃ s ∈ subtypes, a ∈ s
                                                                                                                                      theorem GapCVP.Core.scaled_shifted_supportMoment {K : Type u_1} [Field K] (support : Finset K) (β π : K) (j : ℕ) (hπ : π ≠ 0) :
                                                                                                                                      π ^ j * ∑ w ∈ support, ((w - β) / π) ^ j = ∑ l ∈ Finset.range (j + 1), ↑(j.choose l) * (-β) ^ (j - l) * supportMoment support l
                                                                                                                                      noncomputable def GapCVP.Core.shiftedMomentCombination {K : Type u_1} [Field K] (moments : ℕ → Polynomial K) (β : K) (j : ℕ) :

                                                                                                                                      GapCVP reduction support.

                                                                                                                                      Equations
                                                                                                                                      Instances For
                                                                                                                                        def GapCVP.Core.sourceSizeParameter (encodingLength : ℕ) (formula : Formula) :

                                                                                                                                        GapCVP reduction support.

                                                                                                                                        Equations
                                                                                                                                        Instances For
                                                                                                                                          theorem GapCVP.Core.sourceSizeParameter_ge_one_hundred (encodingLength : ℕ) (formula : Formula) :
                                                                                                                                          100 ≤ sourceSizeParameter encodingLength formula
                                                                                                                                          theorem GapCVP.Core.source_variableCount_le_size (encodingLength : ℕ) (formula : Formula) :
                                                                                                                                          formula.variableCount ≤ sourceSizeParameter encodingLength formula
                                                                                                                                          theorem GapCVP.Core.source_clauseCount_le_size (encodingLength : ℕ) (formula : Formula) :
                                                                                                                                          formula.clauses.length ≤ sourceSizeParameter encodingLength formula

                                                                                                                                          GapCVP reduction support.

                                                                                                                                          Equations
                                                                                                                                          Instances For
                                                                                                                                            @[reducible, inline]

                                                                                                                                            GapCVP reduction support.

                                                                                                                                            Equations
                                                                                                                                            Instances For
                                                                                                                                              @[reducible, inline]

                                                                                                                                              GapCVP reduction support.

                                                                                                                                              Equations
                                                                                                                                              Instances For
                                                                                                                                                noncomputable def GapCVP.Core.Clause.LocalSatisfied {m : ℕ} (C : Clause m) (assignment : C.LocalAssignment) :

                                                                                                                                                GapCVP reduction support.

                                                                                                                                                Equations
                                                                                                                                                Instances For
                                                                                                                                                  @[reducible, inline]

                                                                                                                                                  GapCVP reduction support.

                                                                                                                                                  Equations
                                                                                                                                                  Instances For
                                                                                                                                                    def GapCVP.Core.Clause.restrictAssignment {m : ℕ} (C : Clause m) (assignment : Fin m → Bool) :

                                                                                                                                                    GapCVP reduction support.

                                                                                                                                                    Equations
                                                                                                                                                    Instances For
                                                                                                                                                      theorem GapCVP.Core.Clause.localSatisfied_restrict_iff {m : ℕ} (C : Clause m) (assignment : Fin m → Bool) :
                                                                                                                                                      C.LocalSatisfied (C.restrictAssignment assignment) = true ↔ C.Satisfied assignment = true
                                                                                                                                                      def GapCVP.Core.Clause.satisfyingLocalTupleOfAssignment {m : ℕ} (C : Clause m) (assignment : Fin m → Bool) (h : C.Satisfied assignment = true) :

                                                                                                                                                      GapCVP reduction support.

                                                                                                                                                      Equations
                                                                                                                                                      Instances For
                                                                                                                                                        @[reducible, inline]

                                                                                                                                                        GapCVP reduction support.

                                                                                                                                                        Equations
                                                                                                                                                        Instances For
                                                                                                                                                          @[reducible, inline]
                                                                                                                                                          abbrev GapCVP.Core.sourceSATGridPoint {K : Type u_1} (points : Finset K) :
                                                                                                                                                          Type u_1

                                                                                                                                                          GapCVP reduction support.

                                                                                                                                                          Equations
                                                                                                                                                          Instances For
                                                                                                                                                            @[reducible, inline]
                                                                                                                                                            abbrev GapCVP.Core.sourceSATTableCoordinate (F : Formula) (K : Type u_1) (points : Finset K) :
                                                                                                                                                            Type u_1

                                                                                                                                                            GapCVP reduction support.

                                                                                                                                                            Equations
                                                                                                                                                            Instances For
                                                                                                                                                              noncomputable def GapCVP.Core.sourceSATTableDimension (F : Formula) (K : Type u_1) [Fintype K] (points : Finset K) :

                                                                                                                                                              GapCVP reduction support.

                                                                                                                                                              Equations
                                                                                                                                                              Instances For
                                                                                                                                                                theorem GapCVP.Core.sourceSATTableDimension_le (F : Formula) (K : Type u_1) [Fintype K] (points : Finset K) (N : ℕ) (hN : 100 ≤ N) (hclauses : F.clauses.length ≤ N) (hgrid : points.card ≤ Fintype.card K) (hfield : Fintype.card K < 2 * N ^ 200) :
                                                                                                                                                                sourceSATTableDimension F K points ≤ 40 * N ^ 401
                                                                                                                                                                noncomputable def GapCVP.Core.sourceReedSolomonCode {K : Type u_1} [Field K] (points : Finset K) (degreeBound : ℕ) :
                                                                                                                                                                Submodule K (sourceSATGridPoint points → K)

                                                                                                                                                                GapCVP reduction support.

                                                                                                                                                                Equations
                                                                                                                                                                Instances For
                                                                                                                                                                  theorem GapCVP.Core.sourceReedSolomonCode_mem_iff {K : Type u_1} [Field K] (points : Finset K) (degreeBound : ℕ) (values : sourceSATGridPoint points → K) :
                                                                                                                                                                  values ∈ sourceReedSolomonCode points degreeBound ↔ ∃ (polynomial : Polynomial K), polynomial.natDegree ≤ degreeBound ∧ ∀ (point : sourceSATGridPoint points), Polynomial.eval (↑point) polynomial = values point
                                                                                                                                                                  noncomputable def GapCVP.Core.sourceFiniteReindexLinearEquiv {K : Type u_1} [Field K] (α : Type u_2) [Fintype α] :
                                                                                                                                                                  (α → K) ≃ₗ[K] Fin (Fintype.card α) → K

                                                                                                                                                                  GapCVP reduction support.

                                                                                                                                                                  Equations
                                                                                                                                                                  Instances For
                                                                                                                                                                    noncomputable def GapCVP.Core.sourceSATColumnIndex {K : Type u_1} (F : Formula) [Fintype K] (points : Finset K) (tableType : sourceSATTableType F) (point : sourceSATGridPoint points) (value : K) :

                                                                                                                                                                    GapCVP reduction support.

                                                                                                                                                                    Equations
                                                                                                                                                                    Instances For
                                                                                                                                                                      noncomputable def GapCVP.Core.sourceGlobalNormalizationMap {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) :
                                                                                                                                                                      (Fin (sourceSATTableDimension F K points) → K) →ₗ[K] sourceSATGridPoint points → K

                                                                                                                                                                      GapCVP reduction support.

                                                                                                                                                                      Equations
                                                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                                                      Instances For
                                                                                                                                                                        noncomputable def GapCVP.Core.sourceClauseRefinementMap {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (clause : Fin F.clauses.length) :
                                                                                                                                                                        (Fin (sourceSATTableDimension F K points) → K) →ₗ[K] sourceSATGridPoint points × K → K

                                                                                                                                                                        GapCVP reduction support.

                                                                                                                                                                        Equations
                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                        Instances For
                                                                                                                                                                          noncomputable def GapCVP.Core.sourceOrdinaryMomentMap {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (tableType : sourceSATTableType F) (j : ℕ) :
                                                                                                                                                                          (Fin (sourceSATTableDimension F K points) → K) →ₗ[K] sourceSATGridPoint points → K

                                                                                                                                                                          GapCVP reduction support.

                                                                                                                                                                          Equations
                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                          Instances For
                                                                                                                                                                            def GapCVP.Core.sourceSATFieldBit {K : Type u_1} [Field K] (bit : Bool) :
                                                                                                                                                                            K

                                                                                                                                                                            GapCVP reduction support.

                                                                                                                                                                            Equations
                                                                                                                                                                            Instances For
                                                                                                                                                                              noncomputable def GapCVP.Core.sourceShiftedMomentMap {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (variablePlace : Fin F.variableCount → K) (clause : Fin F.clauses.length) (tuple : (F.clauses.get clause).SatisfyingLocalTuple) (localVar : (F.clauses.get clause).LocalVariable) (j : ℕ) :
                                                                                                                                                                              (Fin (sourceSATTableDimension F K points) → K) →ₗ[K] sourceSATGridPoint points → K

                                                                                                                                                                              GapCVP reduction support.

                                                                                                                                                                              Equations
                                                                                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                                                                                              Instances For
                                                                                                                                                                                @[reducible, inline]
                                                                                                                                                                                abbrev GapCVP.Core.sourceSATConstraintFamily (F : Formula) (momentBudget : ℕ) :

                                                                                                                                                                                GapCVP reduction support.

                                                                                                                                                                                Equations
                                                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                                                Instances For
                                                                                                                                                                                  noncomputable def GapCVP.Core.sourceSATFamilyRowCount {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (momentBudget : ℕ) (family : sourceSATConstraintFamily F momentBudget) :

                                                                                                                                                                                  Number of field checks contributed by one SAT constraint family.

                                                                                                                                                                                  Equations
                                                                                                                                                                                  Instances For
                                                                                                                                                                                    def GapCVP.Core.sourceSATFamilyTarget {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (momentBudget : ℕ) (family : sourceSATConstraintFamily F momentBudget) :
                                                                                                                                                                                    Fin (sourceSATFamilyRowCount F points momentBudget family) → K

                                                                                                                                                                                    Target values for the field checks of one SAT constraint family.

                                                                                                                                                                                    Equations
                                                                                                                                                                                    Instances For
                                                                                                                                                                                      noncomputable def GapCVP.Core.sourceSATFamilyFieldMatrix {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (variablePlace : Fin F.variableCount → K) (momentBudget : ℕ) (family : sourceSATConstraintFamily F momentBudget) :
                                                                                                                                                                                      Matrix (Fin (sourceSATFamilyRowCount F points momentBudget family)) (Fin (sourceSATTableDimension F K points)) K

                                                                                                                                                                                      Matrix of field checks for one SAT constraint family.

                                                                                                                                                                                      Equations
                                                                                                                                                                                      Instances For
                                                                                                                                                                                        noncomputable def GapCVP.Core.concreteSATBinaryAffineSystem {K : Type u_1} [Field K] [Algebra (ZMod 2) K] [Fintype K] (F : Formula) {e : ℕ} (fieldBasis : Module.Basis (Fin e) (ZMod 2) K) (points : Finset K) (variablePlace : Fin F.variableCount → K) (momentBudget : ℕ) :

                                                                                                                                                                                        GapCVP reduction support.

                                                                                                                                                                                        Equations
                                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                                        Instances For
                                                                                                                                                                                          noncomputable def GapCVP.Core.concreteSATFieldChecks {K : Type u_1} [Field K] (F : Formula) [Fintype K] (points : Finset K) (variablePlace : Fin F.variableCount → K) (momentBudget : ℕ) (values : Fin (sourceSATTableDimension F K points) → K) :

                                                                                                                                                                                          GapCVP reduction support.

                                                                                                                                                                                          Equations
                                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                                          Instances For
                                                                                                                                                                                            theorem GapCVP.Core.concreteSATBinaryAffineSystem_solves_iff {K : Type u_1} [Field K] [Algebra (ZMod 2) K] [Fintype K] (F : Formula) {e : ℕ} (fieldBasis : Module.Basis (Fin e) (ZMod 2) K) (points : Finset K) (variablePlace : Fin F.variableCount → K) (momentBudget : ℕ) (z : Fin (sourceSATTableDimension F K points) → ℤ) :
                                                                                                                                                                                            (concreteSATBinaryAffineSystem F fieldBasis points variablePlace momentBudget).Solves z = true ↔ (concreteSATFieldChecks F points variablePlace momentBudget fun (position : Fin (sourceSATTableDimension F K points)) => (algebraMap (ZMod 2) K) ↑(z position)) = true
                                                                                                                                                                                            noncomputable def GapCVP.Core.sourceSATPuncturedGrid {K : Type u_1} (F : Formula) [Fintype K] (variablePlace : Fin F.variableCount → K) :

                                                                                                                                                                                            GapCVP reduction support.

                                                                                                                                                                                            Equations
                                                                                                                                                                                            Instances For
                                                                                                                                                                                              theorem GapCVP.Core.sourceSATPuncturedGrid_card {K : Type u_1} (F : Formula) [Fintype K] (variablePlace : Fin F.variableCount → K) (hinjective : Function.Injective variablePlace) :
                                                                                                                                                                                              theorem GapCVP.Core.sourceSATPuncturedGrid_sub_ne_zero {K : Type u_1} [Field K] (F : Formula) [Fintype K] (variablePlace : Fin F.variableCount → K) (point : sourceSATGridPoint (sourceSATPuncturedGrid F variablePlace)) (i : Fin F.variableCount) :
                                                                                                                                                                                              ↑point - variablePlace i ≠ 0
                                                                                                                                                                                              @[reducible, inline]
                                                                                                                                                                                              abbrev GapCVP.Core.sourceFormulaField (encodingLength : ℕ) (F : Formula) :

                                                                                                                                                                                              GapCVP reduction support.

                                                                                                                                                                                              Equations
                                                                                                                                                                                              Instances For
                                                                                                                                                                                                def GapCVP.Core.sourceActiveLocalTuple (F : Formula) (assignment : Fin F.variableCount → Bool) (hsatisfies : F.Satisfied assignment = true) (clause : Fin F.clauses.length) :

                                                                                                                                                                                                GapCVP reduction support.

                                                                                                                                                                                                Equations
                                                                                                                                                                                                Instances For
                                                                                                                                                                                                  theorem GapCVP.Core.exists_sourceSAT_assignment_interpolant_of_injective {K : Type u_1} [Field K] (F : Formula) (variablePlace : Fin F.variableCount → K) (hinjective : Function.Injective variablePlace) (assignment : Fin F.variableCount → Bool) :
                                                                                                                                                                                                  ∃ (interpolant : Polynomial K), interpolant.natDegree ≤ F.variableCount - 1 ∧ ∀ (i : Fin F.variableCount), Polynomial.eval (variablePlace i) interpolant = sourceSATFieldBit (assignment i)
                                                                                                                                                                                                  noncomputable def GapCVP.Core.sourceOneHotSignedTable {K : Type u_1} [Field K] [Fintype K] [DecidableEq K] (F : Formula) (points : Finset K) (assignment : Fin F.variableCount → Bool) (hsatisfies : F.Satisfied assignment = true) (interpolant : Polynomial K) :

                                                                                                                                                                                                  GapCVP reduction support.

                                                                                                                                                                                                  Equations
                                                                                                                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                  Instances For
                                                                                                                                                                                                    theorem GapCVP.Core.sourceOneHot_solves_concreteSATBinaryAffineSystem {K : Type u_1} [Field K] [Fintype K] [DecidableEq K] [Algebra (ZMod 2) K] (F : Formula) {e : ℕ} (fieldBasis : Module.Basis (Fin e) (ZMod 2) K) (points : Finset K) (variablePlace : Fin F.variableCount → K) (assignment : Fin F.variableCount → Bool) (hsatisfies : F.Satisfied assignment = true) (interpolant : Polynomial K) (hdegree : interpolant.natDegree ≤ F.variableCount - 1) (hinterpolant : ∀ (i : Fin F.variableCount), Polynomial.eval (variablePlace i) interpolant = sourceSATFieldBit (assignment i)) (hplaces : ∀ (point : sourceSATGridPoint points) (i : Fin F.variableCount), ↑point - variablePlace i ≠ 0) (momentBudget : ℕ) :
                                                                                                                                                                                                    (concreteSATBinaryAffineSystem F fieldBasis points variablePlace momentBudget).Solves (sourceOneHotSignedTable F points assignment hsatisfies interpolant) = true
                                                                                                                                                                                                    theorem GapCVP.Core.sourceOneHotSignedTable_squaredNorm {K : Type u_1} [Field K] [Fintype K] [DecidableEq K] (F : Formula) (points : Finset K) (assignment : Fin F.variableCount → Bool) (hsatisfies : F.Satisfied assignment = true) (interpolant : Polynomial K) :
                                                                                                                                                                                                    ∑ position : Fin (sourceSATTableDimension F K points), (sourceOneHotSignedTable F points assignment hsatisfies interpolant position).natAbs ^ 2 = (F.clauses.length + 1) * points.card

                                                                                                                                                                                                    GapCVP reduction support.

                                                                                                                                                                                                    Equations
                                                                                                                                                                                                    Instances For
                                                                                                                                                                                                      noncomputable def GapCVP.Core.sourceOneHotCompletenessRadius (F : Formula) {α : Type u_2} (points : Finset α) :

                                                                                                                                                                                                      GapCVP reduction support.

                                                                                                                                                                                                      Equations
                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                        theorem GapCVP.Core.sourceOneHotCompletenessRadius_pos (F : Formula) {α : Type u_2} (points : Finset α) (hpoints : 0 < points.card) :