OAI/Computability/MaxCut/Games/Deletion.lean
55 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.MaxCutGames.Fourier.Deletion.trueCountline 11Source documentation
The number of entries on which a Boolean function is true.
def trueCount {Ω : Type u} (f : Ω → Bool) : List Ω → Nat | [] => 0 | x :: xs => (if f x then 1 else 0) + trueCount f xs - theorem
OAI.MaxCutGames.Fourier.Deletion.trueCount_monoline 15 - theorem
OAI.MaxCutGames.Fourier.Deletion.trueCount_eq_zeroline 27 - structure
OAI.MaxCutGames.Fourier.Deletion.RestrictionSystemline 39Source documentation
A family of admissible restrictions and their containing rows. Rows may overlap, and there is no requirement that different restrictions share the same ancillary data.
structure RestrictionSystem (Ω : Type u) (Row : Type v) (Witness : Type w) where …
- def
OAI.MaxCutGames.Fourier.Deletion.Denseline 50Source documentation
Strict density above the rational threshold
p / qwhenq > 0.def Dense (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (t : Witness) : Prop := …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- def
OAI.MaxCutGames.Fourier.Deletion.BadRowline 55Source documentation
A row is bad when it contains a dense admissible restriction.
def BadRow (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (r : Row) : Prop := …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- def
OAI.MaxCutGames.Fourier.Deletion.DeletedSetline 60Source documentation
All points of every bad row are removed.
def DeletedSet (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (x : Ω) : Prop := …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- def
OAI.MaxCutGames.Fourier.Deletion.remainderline 65Source documentation
The Boolean remainder after deleting the union of bad rows.
noncomputable def remainder (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (x : Ω) : Bool := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- def
OAI.MaxCutGames.Fourier.Deletion.removedline 71Source documentation
The Boolean part removed from the original function.
noncomputable def removed (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (x : Ω) : Bool := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- theorem
OAI.MaxCutGames.Fourier.Deletion.remainder_le_originalline 76 - theorem
OAI.MaxCutGames.Fourier.Deletion.dense_deletes_whole_rowline 87Source documentation
A dense restriction makes its whole row bad, including points that were not sampled by the restriction.
theorem dense_deletes_whole_row (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (t : Witness) (ha : S.admissible t) (hd : Dense S H p q t) (x : Ω) (hx : S.row (S.containingRow t) x) : remainder S H p q x = false := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem, OAI.MaxCutGames.Fourier.Deletion.Dense, OAI.MaxCutGames.Fourier.Deletion.remainder
- theorem
OAI.MaxCutGames.Fourier.Deletion.dense_restriction_remainder_zeroline 97 - def
OAI.MaxCutGames.Fourier.Deletion.RestrictionGloballine 106Source documentation
Rational restriction globality of a Boolean function.
def RestrictionGlobal (S : RestrictionSystem Ω Row Witness) (G : Ω → Bool) (p q : Nat) : Prop := …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem
- theorem
OAI.MaxCutGames.Fourier.Deletion.remainder_restrictionGloballine 112Source documentation
Whole-row deletion establishes every admissible restriction bound. This is the first assertion of Lemma 5.2, before applying Fourier estimates.
theorem remainder_restrictionGlobal (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) : RestrictionGlobal S (remainder S H p q) p q := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem, OAI.MaxCutGames.Fourier.Deletion.RestrictionGlobal, OAI.MaxCutGames.Fourier.Deletion.remainder
- theorem
OAI.MaxCutGames.Fourier.Deletion.boolean_partitionline 128Source documentation
Retained and removed contributions form a disjoint Boolean partition.
theorem boolean_partition (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (x : Ω) : (remainder S H p q x || removed S H p q x) = H x ∧ (remainder S H p q x && removed S H p q x) = false := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem, OAI.MaxCutGames.Fourier.Deletion.remainder, OAI.MaxCutGames.Fourier.Deletion.removed
- theorem
OAI.MaxCutGames.Fourier.Deletion.trueCount_partitionline 136Source documentation
Exact conservation of retained and removed mass on any sampling list.
theorem trueCount_partition (S : RestrictionSystem Ω Row Witness) (H : Ω → Bool) (p q : Nat) (xs : List Ω) : trueCount H xs = trueCount (remainder S H p q) xs + trueCount (removed S H p q) xs := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem, OAI.MaxCutGames.Fourier.Deletion.trueCount, OAI.MaxCutGames.Fourier.Deletion.remainder, OAI.MaxCutGames.Fourier.Deletion.removed
- abbrev
OAI.MaxCutGames.Fourier.MatrixRestrictions.Ambientline 159 - abbrev
OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameterline 163 - def
OAI.MaxCutGames.Fourier.MatrixRestrictions.embedline 167Source documentation
The canonical inclusion of
L(E/W,C')intoL(E,C).def embed (W : Submodule F2 E) (C' : Submodule F2 C) (A : Parameter W C') : (E →ₗ[F2] C) := …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.embed_applyline 171 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.embed_injectiveline 175 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.embed_vanishesline 184 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.embed_rangeline 192 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.exists_embed_iffline 199Source documentation
These are exactly the maps vanishing on
Wwith image inC'.theorem exists_embed_iff (W : Submodule F2 E) (C' : Submodule F2 C) (B : (E →ₗ[F2] C)) : (∃ A : Parameter W C', embed W C' A = B) ↔ W ≤ LinearMap.ker B ∧ LinearMap.range B ≤ C' := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter, OAI.MaxCutGames.Fourier.MatrixRestrictions.embed
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.quotient_embed_zeroline 219Source documentation
Quotient rows are unchanged by every admissible restriction perturbation.
theorem quotient_embed_zero (W : Submodule F2 E) (C' : Submodule F2 C) (A : Parameter W C') : C'.mkQ.comp (embed W C' A) = 0 := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter, OAI.MaxCutGames.Fourier.MatrixRestrictions.embed
- def
OAI.MaxCutGames.Fourier.MatrixRestrictions.translateline 227 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.translate_injectiveline 231 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.quotient_translateline 237 - def
OAI.MaxCutGames.Fourier.MatrixRestrictions.embeddingline 251Source documentation
The perturbation inclusion is itself a binary linear map.
def embedding (W : Submodule F2 E) (C' : Submodule F2 C) : Parameter W C' →ₗ[F2] (E →ₗ[F2] C) where …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter
- def
OAI.MaxCutGames.Fourier.MatrixRestrictions.orderline 263 - def
OAI.MaxCutGames.Fourier.MatrixRestrictions.restrictline 267Source documentation
Restrict a real observable to the actual affine quotient-map domain.
def restrict (f : (E →ₗ[F2] C) → ℝ) (W : Submodule F2 E) (C' : Submodule F2 C) (X : E →ₗ[F2] C) : Parameter W C' → ℝ := …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter
- instance
OAI.MaxCutGames.Fourier.MatrixRestrictions.parameterFintypeline 271 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.parameter_card_posline 280Source documentation
Every actual restriction domain has at least its zero map.
theorem parameter_card_pos [Finite E] [Finite C] (W : Submodule F2 E) (C' : Submodule F2 C) : 0 < Fintype.card (Parameter W C') := Fintype.card_posMentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter
- structure
OAI.MaxCutGames.Fourier.MatrixRestrictions.Rowline 285Source documentation
An actual row includes its target subspace as part of its index.
structure Row (E C : Type*) [AddCommGroup E] [Module F2 E] [AddCommGroup C] [Module F2 C] where … - structure
OAI.MaxCutGames.Fourier.MatrixRestrictions.Witnessline 290 - def
OAI.MaxCutGames.Fourier.MatrixRestrictions.samplesline 296 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.samples_lengthline 301 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.samples_nonemptyline 305 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.mem_samples_iffline 312 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.samples_nodupline 319 - def
OAI.MaxCutGames.Fourier.MatrixRestrictions.systemline 326Source documentation
Actual affine matrix restrictions instantiate the generic deletion interface.
noncomputable def system [Finite E] [Finite C] (r : Nat) : Deletion.RestrictionSystem (E →ₗ[F2] C) (Row E C) (Witness E C) where …Mentions: OAI.MaxCutGames.Fourier.Deletion.RestrictionSystem, OAI.MaxCutGames.Fourier.MatrixRestrictions.Row, OAI.MaxCutGames.Fourier.MatrixRestrictions.Witness
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.remainder_restriction_countline 339Source documentation
Every actual affine restriction of order at most
robeys the residual count bound after whole-row deletion. No linear containment assumption remains.theorem remainder_restriction_count [Finite E] [Finite C] (H : (E →ₗ[F2] C) → Bool) (r p q : Nat) (t : Witness E C) (ht : order t.vanishing t.target ≤ r) : q * Deletion.trueCount (Deletion.remainder (system r) H p q) (samples t) ≤ p * Fintype.card (Parameter t.vanishing t.target) := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Witness, OAI.MaxCutGames.Fourier.MatrixRestrictions.order, OAI.MaxCutGames.Fourier.Deletion.trueCount, OAI.MaxCutGames.Fourier.Deletion.remainder, OAI.MaxCutGames.Fourier.MatrixRestrictions.system, OAI.MaxCutGames.Fourier.MatrixRestrictions.samples, OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.trueCount_eq_countP_inline_MatrixRestrictionsline 347 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.samples_trueCountline 355Source documentation
Exact numerator for uniform sampling of the actual affine restriction.
theorem samples_trueCount [Finite E] [Finite C] (H : (E →ₗ[F2] C) → Bool) (t : Witness E C) : Deletion.trueCount H (samples t) = (Finset.univ.filter fun A : Parameter t.vanishing t.target => H (translate t.vanishing t.target t.base A) = true).card := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Witness, OAI.MaxCutGames.Fourier.Deletion.trueCount, OAI.MaxCutGames.Fourier.MatrixRestrictions.samples, OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter, OAI.MaxCutGames.Fourier.MatrixRestrictions.translate
- def
OAI.MaxCutGames.Fourier.MatrixRestrictions.densityline 368 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.density_eq_count_divline 373 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.dense_iff_lt_densityline 381 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.remainder_restriction_densityline 397Source documentation
Whole-row deletion gives the normalized real restriction bound on every actual affine restriction of the permitted dimension and codimension.
theorem remainder_restriction_density [Finite E] [Finite C] (H : (E →ₗ[F2] C) → Bool) (r p q : Nat) (hq : 0 < q) (t : Witness E C) (ht : order t.vanishing t.target ≤ r) : density (Deletion.remainder (system r) H p q) t ≤ (p : ℝ) / q := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.Witness, OAI.MaxCutGames.Fourier.MatrixRestrictions.order, OAI.MaxCutGames.Fourier.MatrixRestrictions.density, OAI.MaxCutGames.Fourier.Deletion.remainder, OAI.MaxCutGames.Fourier.MatrixRestrictions.system
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.remainder_restriction_sq_expectline 414Source documentation
The same bound expressed as the squared normalized real
L²norm. This is the restriction-global hypothesis used by the Fourier level theorem.theorem remainder_restriction_sq_expect [Finite E] [Finite C] (H : (E →ₗ[F2] C) → Bool) (r p q : Nat) (hq : 0 < q) (W : Submodule F2 E) (C' : Submodule F2 C) (horder : order W C' ≤ r) (X : E →ₗ[F2] C) : (𝔼 A : Parameter W C', (restrict (fun Y => if Deletion.remainder (system r) H p q Y then (1 : ℝ) else 0) W C' X A) ^ 2) ≤ (p : ℝ) / q := by …Mentions: OAI.MaxCutGames.Fourier.MatrixRestrictions.order, OAI.MaxCutGames.Fourier.MatrixRestrictions.Parameter, OAI.MaxCutGames.Fourier.MatrixRestrictions.restrict, OAI.MaxCutGames.Fourier.Deletion.remainder, OAI.MaxCutGames.Fourier.MatrixRestrictions.system
- def
OAI.MaxCutGames.Fourier.MatrixRestrictions.quotientKernelEquivline 434Source documentation
A dual map killed by the quotient has a unique factor with values in
W. This is the exact finite object counted in the parity argument of Lemma 5.3.def quotientKernelEquiv (W : Submodule F2 E) : {T : C →ₗ[F2] E // W.mkQ.comp T = 0} ≃ (C →ₗ[F2] W) where … - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.quotientKernel_cardline 453 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.quotientKernel_filter_cardline 461 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.deletedSet_iff_exists_targetline 471Source documentation
Every deleted point determines its row once the target subspace is fixed. Thus the union bound ranges over target subspaces, not over row values.
theorem deletedSet_iff_exists_target [Finite E] [Finite C] (H : (E →ₗ[F2] C) → Bool) (r p q : Nat) (X : E →ₗ[F2] C) : Deletion.DeletedSet (system r) H p q X ↔ ∃ C' : Submodule F2 C, Deletion.BadRow (system r) H p q ⟨C', C'.mkQ.comp X⟩ := by …Mentions: OAI.MaxCutGames.Fourier.Deletion.DeletedSet, OAI.MaxCutGames.Fourier.MatrixRestrictions.system, OAI.MaxCutGames.Fourier.Deletion.BadRow
- theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.badRow_codim_leline 484 - theorem
OAI.MaxCutGames.Fourier.MatrixRestrictions.deletedSet_iff_exists_admissible_targetline 495