OAI/Computability/MaxCut/Games/KMSMomentConstants.lean
79 declarations, 0 contain sorry, 0 declared as axioms
Explicit dimension-independent constants for the new KMS mixed-energy argument and the generic A5 aggregation. The eventual expansion theorem only uses positivity and finiteness of these constants, so no rank cutoff exception or comparison with an earlier rank-level constant is needed.
- def
OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstantline 16Source documentation
The constant after the genuine mixed-energy estimate and A5 aggregation.
def fourthMomentConstant (r : ℕ) : ℝ := 2 ^ (109 * r * r + 2 * r)
- theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstant_posline 18 - theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstant_nonnegline 22 - theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.mixedRankConstant_eqline 26Source documentation
The closed mixed estimate's literal constant has a quadratic exponent.
theorem mixedRankConstant_eq (r : ℕ) : mixedRankConstant r = (2 : ℝ) ^ (6 * r * r + 2 * r) := by … - theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.a5_mul_mixedRankConstantline 34Source documentation
Multiplying by the actual selector-count and A5 constant is exact.
theorem a5_mul_mixedRankConstant (r : ℕ) : (2 : ℝ) ^ (103 * r * r) * mixedRankConstant r = fourthMomentConstant r := by …Mentions: OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstant
- theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstant_monoline 41 - theorem
OAI.MaxCutGames.Inverse.KMSMomentConstants.a5_mixed_boundline 51Source documentation
The complete numerical closure, retaining the density and projection energy factors in the order used by the expansion interface.
theorem a5_mixed_bound {i r : ℕ} (hi : i ≤ r) (ε η : ℝ) (hε : 0 ≤ ε) (hη : 0 ≤ η) : (2 : ℝ) ^ (103 * i * i) * (mixedRankConstant i * ε) * η ≤ fourthMomentConstant r * η * ε := by …Mentions: OAI.MaxCutGames.Inverse.KMSMomentConstants.fourthMomentConstant
- def
OAI.MaxCutGames.Inverse.KMS.relativeDensityline 76Source documentation
Relative density, with value zero when the conditioning set is empty.
def relativeDensity (S I : Finset Ω) : ℝ := …
- theorem
OAI.MaxCutGames.Inverse.KMS.inter_chart_eqline 81Source documentation
Restricting the denominator to a chart containing the set preserves the numerator. This is the exact finite-set step used after Grassmann expansion.
theorem inter_chart_eq (S I C : Finset Ω) (hSC : S ⊆ C) : S ∩ (I ∩ C) = S ∩ I := by … - theorem
OAI.MaxCutGames.Inverse.KMS.chart_inter_nonemptyline 93Source documentation
A nonempty part of the set in an interval witnesses that the chart and interval meet. No positive denominator is silently assumed.
theorem chart_inter_nonempty (S I C : Finset Ω) (hSC : S ⊆ C) (hSI : (S ∩ I).Nonempty) : (I ∩ C).Nonempty := by … - theorem
OAI.MaxCutGames.Inverse.KMS.relativeDensity_le_chartline 101Source documentation
Intersecting a nonempty conditioning interval with a chart containing the set can only increase its relative density.
theorem relativeDensity_le_chart (S I C : Finset Ω) (hSC : S ⊆ C) (hIC : (I ∩ C).Nonempty) : relativeDensity S I ≤ relativeDensity S (I ∩ C) := by … - theorem
OAI.MaxCutGames.Inverse.KMS.density_bound_passes_to_chartline 112Source documentation
The quantitative density conclusion passes to the matrix chart without losing any factor.
theorem density_bound_passes_to_chart (S I C : Finset Ω) (hSC : S ⊆ C) (hSI : (S ∩ I).Nonempty) {α : ℝ} (hα : α ≤ relativeDensity S I) : (I ∩ C).Nonempty ∧ α ≤ relativeDensity S (I ∩ C) := by … - abbrev
OAI.MaxCutGames.Inverse.KMS.F2line 120 - abbrev
OAI.MaxCutGames.Inverse.KMS.Ambientline 121 - def
OAI.MaxCutGames.Inverse.KMS.Vertexline 124Source documentation
Actual
ell-dimensional subspaces of the ambient binary vector space.def Vertex (n ell : ℕ) := …
- instance
OAI.MaxCutGames.Inverse.KMS.vertexFiniteline 127 - instance
OAI.MaxCutGames.Inverse.KMS.vertexFintypeline 134 - def
OAI.MaxCutGames.Inverse.KMS.Adjacentline 138Source documentation
A neighbor is distinct and meets the vertex in a hyperplane. The explicit distinctness also makes the definition harmless at dimension zero.
def Adjacent {n ell : ℕ} (L M : Vertex n ell) : Prop := …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex
- def
OAI.MaxCutGames.Inverse.KMS.neighborsline 141 - def
OAI.MaxCutGames.Inverse.KMS.retentionline 145Source documentation
Uniform start in
S, followed by a uniform Grassmann neighbor.def retention {n ell : ℕ} (S : Finset (Vertex n ell)) : ℝ := …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex
- def
OAI.MaxCutGames.Inverse.KMS.intervalline 149Source documentation
The actual interval
A ≤ L ≤ Bamong theell-dimensional vertices.def interval {n ell : ℕ} (A B : Submodule F2 (Ambient n)) : Finset (Vertex n ell) := …Mentions: OAI.MaxCutGames.Inverse.KMS.F2, OAI.MaxCutGames.Inverse.KMS.Ambient, OAI.MaxCutGames.Inverse.KMS.Vertex
- def
OAI.MaxCutGames.Inverse.KMS.ExpansionPrincipleline 157Source documentation
The parameter order needed from KMS, including a nonempty dense interval. OPEN: no inhabitant of this proposition is supplied. In particular
randalphamust be fixed beforeell, and the ambient threshold may then depend onell. A bound withalpha = 2^(-ell)does not meet this interface.def ExpansionPrinciple : Prop := …
- abbrev
OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMapline 184 - instance
OAI.MaxCutGames.Inverse.KMSBasisComparison.basisMapFiniteline 186 - instance
OAI.MaxCutGames.Inverse.KMSBasisComparison.basisMapFintypeline 190 - def
OAI.MaxCutGames.Inverse.KMSBasisComparison.InLiftline 193Source documentation
Membership in the lift, expressed by the actual linear-map range.
def InLift {n ell : ℕ} (S : Finset (KMS.Vertex n ell)) (X : BasisMap n ell) : Prop := …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap
- def
OAI.MaxCutGames.Inverse.KMSBasisComparison.liftline 197Source documentation
The lifted finite set in the whole map space.
def lift {n ell : ℕ} (S : Finset (KMS.Vertex n ell)) : Finset (BasisMap n ell) := …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.mem_liftline 200 - def
OAI.MaxCutGames.Inverse.KMSBasisComparison.liftedIndicatorline 205Source documentation
Real Boolean indicator, in the orientation used by the matrix Fourier transform.
def liftedIndicator {n ell : ℕ} (S : Finset (KMS.Vertex n ell)) (X : BasisMap n ell) : ℝ := if InLift S X then 1 else 0Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap, OAI.MaxCutGames.Inverse.KMSBasisComparison.InLift
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.liftedIndicator_nonnegline 208 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.liftedIndicator_le_oneline 213 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.injective_of_inLiftline 219Source documentation
A map accepted by the lift has full column rank.
theorem injective_of_inLift {n ell : ℕ} {S : Finset (KMS.Vertex n ell)} {X : BasisMap n ell} (h : InLift S X) : Function.Injective X := by …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap, OAI.MaxCutGames.Inverse.KMSBasisComparison.InLift
- def
OAI.MaxCutGames.Inverse.KMSBasisComparison.rangeVertexline 232Source documentation
The actual Grassmann vertex represented by an injective map.
def rangeVertex {n ell : ℕ} (X : BasisMap n ell) (hX : Function.Injective X) : KMS.Vertex n ell := …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap, OAI.MaxCutGames.Inverse.KMS.Vertex
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.inLift_iff_rangeVertex_memline 238 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.inLift_comp_iffline 249Source documentation
A change of the ordered domain basis leaves the range unchanged.
theorem inLift_comp_iff {n ell : ℕ} (S : Finset (KMS.Vertex n ell)) (g : KMS.Ambient ell ≃ₗ[KMS.F2] KMS.Ambient ell) (X : BasisMap n ell) : InLift S (X.comp g.toLinearMap) ↔ InLift S X := by …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMS.Ambient, OAI.MaxCutGames.Inverse.KMS.F2, OAI.MaxCutGames.Inverse.KMSBasisComparison.BasisMap, OAI.MaxCutGames.Inverse.KMSBasisComparison.InLift
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparison.liftedIndicator_basisInvariantline 256Source documentation
The lift is basis-invariant in precisely the Fourier theorem's sense.
theorem liftedIndicator_basisInvariant {n ell : ℕ} (S : Finset (KMS.Vertex n ell)) : KMSBasisInvariant.IsBasisInvariant (liftedIndicator S) := by …Mentions: OAI.MaxCutGames.Inverse.KMS.Vertex, OAI.MaxCutGames.Inverse.KMSBasisInvariant.IsBasisInvariant, OAI.MaxCutGames.Inverse.KMSBasisComparison.liftedIndicator
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.nat_card_eq_sum_fibersline 275Source documentation
Decompose a finite domain by its exact fibers.
theorem nat_card_eq_sum_fibers (f : X → Y) : Nat.card X = ∑ y : Y, Nat.card {x : X // f x = y} := by … - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.nat_card_event_eq_sum_fibersline 280Source documentation
The event count is the sum of the same fibers over the event.
theorem nat_card_event_eq_sum_fibers (f : X → Y) (p : Y → Prop) : Nat.card {x : X // p (f x)} = ∑ y : {y : Y // p y}, Nat.card {x : X // f x = y.val} := by … - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.uniformFiber_card_ratioline 293Source documentation
Constant fibers give an exact density identity, including an empty target. The nonzero fiber size is established geometrically for restricted bases.
theorem uniformFiber_card_ratio (f : X → Y) (p : Y → Prop) (c : ℕ) (hc : 0 < c) (hf : ∀ y, Nat.card {x : X // f x = y} = c) : (Nat.card {x : X // p (f x)} : ℝ) / Nat.card X = (Nat.card {y : Y // p y} : ℝ) / Nat.card Y := by … - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.subtype_event_ratio_leline 312Source documentation
Sampling from a larger finite space and accepting only a subset never increases the density of an event within that subset. Empty subsets are handled explicitly, so this statement makes no hidden nonemptiness assumption.
theorem subtype_event_ratio_le {Z : Type*} [Fintype Z] (D : Z → Prop) (p : {z : Z // D z} → Prop) : (Nat.card {z : {z : Z // D z} // p z} : ℝ) / Nat.card Z ≤ (Nat.card {z : {z : Z // D z} // p z} : ℝ) / Nat.card {z : Z // D z} := by … - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.exists_restricted_completionline 341Source documentation
Restricted completion of an independent frame. The original vectors need not belong to
W; only the newly chosen vectors are required to do so.theorem exists_restricted_completion {n q t : ℕ} (Q : Fin q → Ambient n) (W L : Submodule F2 (Ambient n)) (hQ : LinearIndependent F2 Q) (hQL : Submodule.span F2 (Set.range Q) ≤ L) (hLW : L ≤ Submodule.span F2 (Set.range Q) ⊔ W) (hL : Module.finrank F2 L = q + t) : ∃ z : Fin t → W, LinearIndependent F2 (Sum.elim Q (fun i => (z i : Ambient n))) ∧ Submodule.span F2 (Set.range (Sum.elim Q (fun i => (z i : Ambient n)))) = L := by … - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletionline 421Source documentation
Ordered completions in
WofQto an independent spanning tuple forL.def RestrictedCompletion (Q : Fin q → V) (W L : Submodule K V) := …
- def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionBasisline 429Source documentation
A completion, regarded as a basis of the resulting subspace.
def completionBasis (z : RestrictedCompletion (t := t) Q W L) : …
Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionBasis_coeline 433 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionOfBasisline 439Source documentation
Recover a restricted completion from a basis having the prescribed prefix.
def completionOfBasis (b : Module.Basis (Fin q ⊕ Fin t) K L) (hQ : ∀ i, (b (Sum.inl i) : V) = Q i) (hW : ∀ i, (b (Sum.inr i) : V) ∈ W) : RestrictedCompletion (t := t) Q W L := by …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionSpanEquivline 461Source documentation
The unique basis change carrying the first completion to the second.
def completionSpanEquiv (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionSpanEquiv_basisline 466 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionSpanEquiv_symmline 472 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionSpanEquiv_sub_memline 479Source documentation
Changing the completion changes every vector by an element of
W.theorem completionSpanEquiv_sub_mem (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionSpanEquiv_mem_iffline 500Source documentation
The basis change preserves membership in
W, without requiringQ ⊆ W.theorem completionSpanEquiv_mem_iff (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.transportCompletionline 512Source documentation
Transport every restricted completion along one fixed basis change.
def transportCompletion (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.transportCompletion_coeline 530 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.transportCompletion_inverseline 537 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedCompletionEquivline 554Source documentation
All nonempty restricted-completion fibers are equivalent.
def restrictedCompletionEquiv (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedCompletionCard_eqline 564Source documentation
Equal fiber cardinality follows from the explicit completion equivalence.
theorem restrictedCompletionCard_eq (x : RestrictedCompletion (t := t) Q W L) …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.RestrictedCompletion
- def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.prefixSpanline 587 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.joinedTupleline 590 - abbrev
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.IndependentCompletionline 594 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionVertexline 597 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.prefix_le_completionline 602 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completion_le_supline 609 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completion_mem_intervalline 621 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.prefix_independentline 627 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.interval_complexity_leline 633Source documentation
The restriction's Grassmann interval satisfies the same total complexity budget. This uses only
W ≤ span Q ⊔ W, never the false assumptionQ ⊆ W.theorem interval_complexity_le (Q : Fin q → Ambient n) (W : Submodule F2 (Ambient n)) (hQ : LinearIndependent F2 Q) : Module.finrank F2 (prefixSpan Q) + (n - Module.finrank F2 ↥(prefixSpan Q ⊔ W : Submodule F2 (Ambient n))) ≤ q + (n - Module.finrank F2 W) := by …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.prefixSpan
- def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.GrassmannPseudorandomline 647 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionEventline 653 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedLiftDensityline 659Source documentation
The denominator counts all remaining tuples drawn uniformly from W. Dependent completions are rejected, without conditioning away their mass.
def restrictedLiftDensity (S : Finset (Vertex n (q + t))) (Q : Fin q → Ambient n) (W : Submodule F2 (Ambient n)) : ℝ := … - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.TuplePseudorandomline 664 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedLiftDensity_eq_zero_of_dependentline 670 - abbrev
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.IntervalVertexline 680 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionIntervalVertexline 683 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionFiberEquivline 687 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.interval_completion_nonemptyline 697 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.completionEventEquivline 706 - def
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.intervalEventEquivline 715 - theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.independent_density_eq_intervalline 727Source documentation
The uniform law on successful completions is exactly the uniform Grassmann interval law, even when the fixed prefix is not contained in W.
theorem independent_density_eq_interval (S : Finset (Vertex n (q + t))) (Q : Fin q → Ambient n) (W : Submodule F2 (Ambient n)) (hQ : LinearIndependent F2 Q) (z₀ : IndependentCompletion (t := t) Q W) : …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.IndependentCompletion
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedLiftDensity_le_intervalline 758Source documentation
The unconditioned restricted lift has density at most that of its exact Grassmann interval. Unlike a union-bound argument, no independence-error term is needed because dependent tuples are rejected by the lift.
theorem restrictedLiftDensity_le_interval (S : Finset (Vertex n (q + t))) (Q : Fin q → Ambient n) (W : Submodule F2 (Ambient n)) (hQ : LinearIndependent F2 Q) : restrictedLiftDensity S Q W ≤ relativeDensity S (interval (prefixSpan Q) (prefixSpan Q ⊔ W)) := by …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedLiftDensity, OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.prefixSpan
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.grassmann_pseudorandom_restrictedline 776Source documentation
The full KMS restriction transfer, with the stronger exact ε bound.
theorem grassmann_pseudorandom_restricted {r : ℕ} {ε : ℝ} (S : Finset (Vertex n (q + t))) (hS : GrassmannPseudorandom S r ε) (hε : 0 ≤ ε) (Q : Fin q → Ambient n) (W : Submodule F2 (Ambient n)) (hbudget : q + (n - Module.finrank F2 W) ≤ r) : restrictedLiftDensity S Q W ≤ ε := by …Mentions: OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.GrassmannPseudorandom, OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.restrictedLiftDensity
- theorem
OAI.MaxCutGames.Inverse.KMSBasisComparisonPseudorandom.grassmann_pseudorandom_liftline 788