OAI/Computability/MaxCut/Games/SeparationCertificate.lean
37 declarations, 0 contain sorry, 0 declared as axioms
A single finite polynomial certifies injectivity and pair separation of the actual binary-linear parametrization.
- def
OAI.MaxCutGames.Quadratic.nonzeroBinaryInputsline 21 - def
OAI.MaxCutGames.Quadratic.distinctNonzeroBinaryPairsline 25 - def
OAI.MaxCutGames.Quadratic.separationPolynomialline 29 - theorem
OAI.MaxCutGames.Quadratic.separationPolynomial_ne_zeroline 33 - theorem
OAI.MaxCutGames.Quadratic.parameterMap_separated_of_eval_ne_zeroline 51Source documentation
Outside the zero set of the fixed separation polynomial, the actual parametrization is injective and no two distinct nonzero inputs have proportional images. The same polynomial works over every characteristic-two field.
theorem parameterMap_separated_of_eval_ne_zero {F : Type*} [Field F] [CharP F 2] [Algebra (ZMod 2) F] (x : (Fin 3 × J) → F) (hx : eval₂ (algebraMap (ZMod 2) F) x (separationPolynomial J) ≠ 0) : Function.Injective (parameterMap x) ∧ ∀ t u : J → ZMod 2, t ≠ 0 → u ≠ 0 → (∃ a : F, parameterMap x t = a • parameterMap x u) → t = u := by …Mentions: OAI.MaxCutGames.Quadratic.separationPolynomial, OAI.MaxCutGames.Quadratic.parameterMap
- theorem
OAI.MaxCutGames.Quadratic.isGeneric_range_of_injectiveline 113Source documentation
The actual range of an injective parametrization is generic when its nonproportionality and all-lifts alignment bounds hold on the domain.
theorem isGeneric_range_of_injective (z : V →ₗ[ZMod 2] (Fin 3 → F)) (hz : Function.Injective z) (hseparate : ∀ v w : V, v ≠ 0 → w ≠ 0 → (∃ t : F, z v = t • z w) → v = w) (halign : ∀ g : V →ₗ[ZMod 2] (Fin 3 → F), (alignmentEvent z g (fun v => alignmentRightHandSide (z v))).card ≤ 3 * Module.finrank (ZMod 2) V) : IsGeneric (LinearMap.range z) := by …Mentions: OAI.MaxCutGames.Quadratic.alignmentEvent, OAI.MaxCutGames.Quadratic.alignmentRightHandSide, OAI.MaxCutGames.Quadratic.IsGeneric
- theorem
OAI.MaxCutGames.Quadratic.finrank_range_binary_parametersline 183Source documentation
In the basis-parametrized case, the image rank is the number of binary input coordinates.
theorem finrank_range_binary_parameters {J : Type*} [Fintype J] (z : (J → ZMod 2) →ₗ[ZMod 2] (Fin 3 → F)) (hz : Function.Injective z) : Module.finrank (ZMod 2) (LinearMap.range z) = Fintype.card J := by … - def
OAI.MaxCutGames.Quadratic.assignmentProbabilityline 207Source documentation
The exact uniform probability on an explicit finite assignment space.
def assignmentProbability {n : ℕ} (event : (Fin n → F) → Prop) : ℚ≥0 := by … - theorem
OAI.MaxCutGames.Quadratic.assignmentProbability_monoline 212 - theorem
OAI.MaxCutGames.Quadratic.assignmentProbability_eval_zero_leline 223Source documentation
The checked Schwartz-Zippel theorem on the whole finite field.
theorem assignmentProbability_eval_zero_le {n : ℕ} (p : MvPolynomial (Fin n) F) (hp : p ≠ 0) : assignmentProbability (fun x => MvPolynomial.eval x p = 0) ≤ (p.totalDegree : ℚ≥0) / Fintype.card F := by … - theorem
OAI.MaxCutGames.Quadratic.totalDegree_map_eq_of_injectiveline 233Source documentation
Injective coefficient extension preserves the total degree exactly.
theorem totalDegree_map_eq_of_injective {σ : Type*} (φ : K →+* F) (hφ : Function.Injective φ) (p : MvPolynomial σ K) : (MvPolynomial.map φ p).totalDegree = p.totalDegree := by … - theorem
OAI.MaxCutGames.Quadratic.assignmentProbability_eval₂_zero_leline 242Source documentation
A prime-field polynomial gives the same fixed numerator in every finite extension field. Only the denominator grows with the field size.
theorem assignmentProbability_eval₂_zero_le {n : ℕ} (φ : K →+* F) (hφ : Function.Injective φ) (p : MvPolynomial (Fin n) K) (hp : p ≠ 0) : assignmentProbability (fun x => MvPolynomial.eval₂ φ x p = 0) ≤ (p.totalDegree : ℚ≥0) / Fintype.card F := by … - theorem
OAI.MaxCutGames.Quadratic.assignmentProbability_le_of_polynomialline 258Source documentation
An exceptional event contained in a polynomial zero set satisfies the same bound, including events expressed by existence of an arbitrary lift.
theorem assignmentProbability_le_of_polynomial {n : ℕ} (φ : K →+* F) (hφ : Function.Injective φ) (p : MvPolynomial (Fin n) K) (hp : p ≠ 0) (event : (Fin n → F) → Prop) (hvanish : ∀ x, event x → MvPolynomial.eval₂ φ x p = 0) : assignmentProbability event ≤ (p.totalDegree : ℚ≥0) / Fintype.card F := … - theorem
OAI.MaxCutGames.Quadratic.assignmentProbability_union_leline 269Source documentation
A fixed finite family of exceptional events admits a single fixed-degree bound. There is still no enumeration or union over the possible lifts.
theorem assignmentProbability_union_le {n : ℕ} {J : Type*} [Fintype J] (φ : K →+* F) (hφ : Function.Injective φ) (p : J → MvPolynomial (Fin n) K) (hp : ∀ j, p j ≠ 0) (event : J → (Fin n → F) → Prop) (hvanish : ∀ j x, event j x → MvPolynomial.eval₂ φ x (p j) = 0) : assignmentProbability (fun x => ∃ j, event j x) ≤ ((∑ j, (p j).totalDegree : ℕ) : ℚ≥0) / Fintype.card F := by … - def
OAI.MaxCutGames.Quadratic.reindexAssignmentsline 309Source documentation
Reindexing an assignment transports it contravariantly along the variable equivalence.
def reindexAssignments (e : σ ≃ τ) : (σ → F) ≃ (τ → F) where …
- def
OAI.MaxCutGames.Quadratic.finiteAssignmentProbabilityline 316Source documentation
Uniform assignment probability for an arbitrary finite variable set.
def finiteAssignmentProbability [Fintype σ] (event : (σ → F) → Prop) : ℚ≥0 := by …
- theorem
OAI.MaxCutGames.Quadratic.finiteAssignmentProbability_reindexline 322 - theorem
OAI.MaxCutGames.Quadratic.finiteAssignmentProbability_le_of_polynomialline 340Source documentation
A bad event contained in a fixed nonzero polynomial's zero set has probability at most its total degree divided by the field size.
theorem finiteAssignmentProbability_le_of_polynomial [Fintype σ] (φ : K →+* F) (hφ : Function.Injective φ) (p : MvPolynomial σ K) (hp : p ≠ 0) (event : (σ → F) → Prop) (hvanish : ∀ x, event x → MvPolynomial.eval₂ φ x p = 0) : finiteAssignmentProbability event ≤ (p.totalDegree : ℚ≥0) / Fintype.card F := by …Mentions: OAI.MaxCutGames.Quadratic.finiteAssignmentProbability
- theorem
OAI.MaxCutGames.Quadratic.finiteAssignmentProbability_eval₂_zero_leline 363 - theorem
OAI.MaxCutGames.Quadratic.finiteAssignmentProbability_union_leline 372Source documentation
A finite family of input-set obstructions yields a fixed total numerator. The family index is independent of the chosen linear lift.
theorem finiteAssignmentProbability_union_le [Fintype σ] {J : Type*} [Fintype J] (φ : K →+* F) (hφ : Function.Injective φ) (p : J → MvPolynomial σ K) (hp : ∀ j, p j ≠ 0) (event : J → (σ → F) → Prop) (hvanish : ∀ j x, event j x → MvPolynomial.eval₂ φ x (p j) = 0) : finiteAssignmentProbability (fun x => ∃ j, event j x) ≤ ((∑ j, (p j).totalDegree : ℕ) : ℚ≥0) / Fintype.card F := by …Mentions: OAI.MaxCutGames.Quadratic.finiteAssignmentProbability
- theorem
OAI.MaxCutGames.Quadratic.exists_genericity_polynomialline 409 - theorem
OAI.MaxCutGames.Quadratic.exists_genericity_error_numeratorline 429Source documentation
The total exceptional probability for random coordinate entries is
O_r(1 / |F|), with a positive integer numerator fixed beforeFis chosen. Both noninjectivity and failure of the all-lifts image property are counted.theorem exists_genericity_error_numerator (J : Type*) [Fintype J] : ∃ D : ℕ, 0 < D ∧ ∀ (F : Type*) [Field F] [Fintype F] [CharP F 2] [Algebra (ZMod 2) F], finiteAssignmentProbability (fun x : (Fin 3 × J) → F => ¬(Function.Injective (parameterMap x) ∧ IsGeneric (parameterMap x).range)) ≤ (D : ℚ≥0) / Fintype.card F := by …Mentions: OAI.MaxCutGames.Quadratic.D, OAI.MaxCutGames.Quadratic.finiteAssignmentProbability, OAI.MaxCutGames.Quadratic.parameterMap, OAI.MaxCutGames.Quadratic.IsGeneric
- def
OAI.MaxCutGames.Quadratic.parameterMapEquivline 457Source documentation
Every binary-linear map is determined by its freely chosen field-valued basis entries, with no rejection or nonuniform multiplicity.
def parameterMapEquiv : ((Fin 3 × J) → F) ≃ ((J → ZMod 2) →ₗ[ZMod 2] (Fin 3 → F)) where … - theorem
OAI.MaxCutGames.Quadratic.parameterMap_event_cardline 471 - theorem
OAI.MaxCutGames.Quadratic.parameterMap_event_probabilityline 484Source documentation
The uniform probability on field entries is literally the uniform probability on all linear maps. This is the denominator used before conditioning on injectivity in
UniformSubspaces.bad_subspace_bound.theorem parameterMap_event_probability (event : ((J → ZMod 2) →ₗ[ZMod 2] (Fin 3 → F)) → Prop) : (finiteAssignmentProbability (fun x => event (parameterMap x)) : ℚ) = (Nat.card {g : (J → ZMod 2) →ₗ[ZMod 2] (Fin 3 → F) // event g} : ℚ) / Nat.card ((J → ZMod 2) →ₗ[ZMod 2] (Fin 3 → F)) := by …Mentions: OAI.MaxCutGames.Quadratic.finiteAssignmentProbability, OAI.MaxCutGames.Quadratic.parameterMap
- def
OAI.MaxCutGames.Quadratic.UniformSubspaces.Injectionline 517Source documentation
A linear parameter map with its injectivity proof.
def Injection (K V W : Type*) [Field K] [AddCommGroup V] [Module K V] [AddCommGroup W] [Module K W] := … - instance
OAI.MaxCutGames.Quadratic.UniformSubspaces.injectionActionline 521 - theorem
OAI.MaxCutGames.Quadratic.UniformSubspaces.injection_transitiveline 535Source documentation
Every two injections are carried to each other by an automorphism of the ambient space: extend the isomorphism between their two images.
theorem injection_transitive (J₁ J₂ : Injection K V W) : ∃ a : W ≃ₗ[K] W, a • J₁ = J₂ := by …Mentions: OAI.MaxCutGames.Quadratic.UniformSubspaces.Injection
- def
OAI.MaxCutGames.Quadratic.UniformSubspaces.imageline 550Source documentation
The image has the dimension of the parameter space.
def image (J : Injection K V W) : RankSpace K W (finrank K V) := …
Mentions: OAI.MaxCutGames.Quadratic.UniformSubspaces.Injection
- theorem
OAI.MaxCutGames.Quadratic.UniformSubspaces.image_actionline 554 - theorem
OAI.MaxCutGames.Quadratic.UniformSubspaces.mean_imageline 563Source documentation
Exact uniform image law, conditional only on injectivity of the map.
theorem mean_image (J₀ : Injection K V W) (f : RankSpace K W (finrank K V) → ℚ) : (∑ J : Injection K V W, f (image J)) / Fintype.card (Injection K V W) = (∑ S : RankSpace K W (finrank K V), f S) / Fintype.card (RankSpace K W (finrank K V)) := by …Mentions: OAI.MaxCutGames.Quadratic.UniformSubspaces.Injection, OAI.MaxCutGames.Quadratic.UniformSubspaces.image
- theorem
OAI.MaxCutGames.Quadratic.UniformSubspaces.bad_image_count_ratioline 573Source documentation
Indicator specialization of the exact law, without assuming genericity or independence of a subsequently chosen lift.
theorem bad_image_count_ratio (J₀ : Injection K V W) (Bad : RankSpace K W (finrank K V) → Prop) : (Nat.card {J : Injection K V W // Bad (image J)} : ℚ) / Fintype.card (Injection K V W) = (Nat.card {S : RankSpace K W (finrank K V) // Bad S} : ℚ) / Fintype.card (RankSpace K W (finrank K V)) := by …Mentions: OAI.MaxCutGames.Quadratic.UniformSubspaces.Injection, OAI.MaxCutGames.Quadratic.UniformSubspaces.image
- theorem
OAI.MaxCutGames.Quadratic.UniformSubspaces.bad_subspace_boundline 586Source documentation
An unconditional bad-parameter count bound transfers after conditioning on injectivity, paying exactly the usual
1/(1-β)factor. The premises are ordinary count inequalities and can come from polynomial union bounds.theorem bad_subspace_bound (J₀ : Injection K V W) (Bad : RankSpace K W (finrank K V) → Prop) (α β : ℚ) (hα : 0 ≤ α) (hβ : β < 1) (hbad : (Nat.card {J : Injection K V W // Bad (image J)} : ℚ) ≤ α * Nat.card (V →ₗ[K] W)) (hinj : (1 - β) * Nat.card (V →ₗ[K] W) ≤ Fintype.card (Injection K V W)) : (Nat.card {S : RankSpace K W (finrank K V) // Bad S} : ℚ) / Fintype.card (RankSpace K W (finrank K V)) ≤ α / (1 - β) := by …Mentions: OAI.MaxCutGames.Quadratic.UniformSubspaces.Injection, OAI.MaxCutGames.Quadratic.UniformSubspaces.image
- theorem
OAI.MaxCutGames.Quadratic.conditioning_counts_inline_GenericSubspaceProbabilityline 621 - theorem
OAI.MaxCutGames.Quadratic.generic_subspace_and_probability_of_parameter_errorline 668Source documentation
Both generic-subspace existence and the conditional Grassmannian bound follow from the single unconditional parameter-map exceptional bound.
theorem generic_subspace_and_probability_of_parameter_error (α : ℚ) (hα₀ : 0 ≤ α) (hα : α < 1) (herror : (finiteAssignmentProbability (fun x : (Fin 3 × J) → F => ¬(Function.Injective (parameterMap x) ∧ IsGeneric (parameterMap x).range)) : ℚ) ≤ α) : (∃ S : RankSpace (ZMod 2) (Fin 3 → F) (Fintype.card J), IsGeneric S.1) ∧ nongenericFraction F (Fintype.card J) ≤ α / (1 - α) := by …Mentions: OAI.MaxCutGames.Quadratic.finiteAssignmentProbability, OAI.MaxCutGames.Quadratic.parameterMap, OAI.MaxCutGames.Quadratic.IsGeneric, OAI.MaxCutGames.Quadratic.nongenericFraction
- theorem
OAI.MaxCutGames.Quadratic.exists_generic_subspace_error_numeratorline 712Source documentation
The exact genericity statement with a positive numerator fixed before the extension field. The property quantifies over every binary linear lift.
theorem exists_generic_subspace_error_numerator (J : Type*) [Fintype J] : ∃ D : ℕ, 0 < D ∧ ∀ (F : Type*) [Field F] [Fintype F] [CharP F 2] [Algebra (ZMod 2) F], (D : ℚ) / Fintype.card F < 1 → (∃ S : RankSpace (ZMod 2) (Fin 3 → F) (Fintype.card J), IsGeneric S.1) ∧ nongenericFraction F (Fintype.card J) ≤ ((D : ℚ) / Fintype.card F) / (1 - (D : ℚ) / Fintype.card F) := by …Mentions: OAI.MaxCutGames.Quadratic.D, OAI.MaxCutGames.Quadratic.IsGeneric, OAI.MaxCutGames.Quadratic.nongenericFraction
- theorem
OAI.MaxCutGames.Quadratic.conditional_error_le_of_smallline 728Source documentation
A convenient numerical threshold for choosing one field for finitely many ranks:
α ≤ min(1/2, ε/2)is sufficient.theorem conditional_error_le_of_small (α ε : ℚ) (hα : 0 ≤ α) (hhalf : α ≤ 1 / 2) (hε : α ≤ ε / 2) : α / (1 - α) ≤ ε := by …