OAI/Computability/MaxCut/Games/FinalParameters.lean
79 declarations, 0 contain sorry, 0 declared as axioms
Existence of the finite numerical choices in Section 4.1. All errors and search tests here are rational, including the fourth-power test in (4.1).
- def
OAI.MaxCutGames.Integration.FinalParameters.rholine 16 - def
OAI.MaxCutGames.Integration.FinalParameters.levelConstantline 17 - def
OAI.MaxCutGames.Integration.FinalParameters.alphaline 18 - def
OAI.MaxCutGames.Integration.FinalParameters.betaline 19 - def
OAI.MaxCutGames.Integration.FinalParameters.thetaline 20 - def
OAI.MaxCutGames.Integration.FinalParameters.repetitionRateline 21 - theorem
OAI.MaxCutGames.Integration.FinalParameters.levelConstant_posline 23 - theorem
OAI.MaxCutGames.Integration.FinalParameters.rho_posline 27 - theorem
OAI.MaxCutGames.Integration.FinalParameters.theta_posline 31 - theorem
OAI.MaxCutGames.Integration.FinalParameters.repetitionRate_boundsline 36 - theorem
OAI.MaxCutGames.Integration.FinalParameters.exists_symbol_dimensionline 41Source documentation
Selecting the exponent as a multiple of four supplies an exact rational fourth root. No approximation of a real root enters the parameter search.
theorem exists_symbol_dimension (r : Nat) {δ : ℚ} (hδ : 0 < δ) : ∃ s : Nat, r + 1 < s ∧ ∃ u : ℚ, 0 < u ∧ u ^ 4 = rho r s ∧ levelConstant r * u ≤ δ / 8 := by …Mentions: OAI.MaxCutGames.Integration.FinalParameters.rho, OAI.MaxCutGames.Integration.FinalParameters.levelConstant
- theorem
OAI.MaxCutGames.Integration.FinalParameters.exists_repetition_and_dimensionline 59Source documentation
The repetition length is chosen first; the comparison dimension is then large enough for both the subset experiment and its squared error bound.
theorem exists_repetition_and_dimension (L q : Nat) {θ : ℚ} (hθ : 0 < θ) (hq : 0 < q) : ∃ t k : Nat, 0 < t ∧ t ≤ k ∧ (1 - zeroProbability L * (1 - repetitionRate)) ^ t < decoderThreshold θ q ∧ 16 * (t : ℚ) ^ 2 * 2 ^ (t * L) ≤ (k : ℚ) * θ ^ 2 := by …Mentions: OAI.MaxCutGames.Integration.FinalParameters.repetitionRate
- def
OAI.MaxCutGames.Integration.FinalParameters.gammaline 76 - theorem
OAI.MaxCutGames.Integration.FinalParameters.gamma_boundsline 78 - theorem
OAI.MaxCutGames.Integration.FinalParameters.exists_source_errorline 88 - theorem
OAI.MaxCutGames.Integration.FinalParameters.exists_parametersline 97 - theorem
OAI.MaxCutGames.Integration.FinalParameters.completeness_budgetline 122Source documentation
The completeness budget uses the same comparison dimension as the other parameters. This identity is exact, without rounding of rational errors.
theorem completeness_budget {ε : ℚ} {k : Nat} (hk : 0 < k) : (k : ℚ) * gamma ε k + (ε / 2) / 2 = ε / 2 := by … - abbrev
OAI.MaxCutGames.Gadget.ActualGadget.F2line 138 - structure
OAI.MaxCutGames.Gadget.ActualGadget.Dataline 140 - def
OAI.MaxCutGames.Gadget.ActualGadget.failureIndicatorline 160Source documentation
The actual output-change indicator before taking a finite average.
noncomputable def failureIndicator (g : Data C) (sample : g.Ambient × g.NoiseIndex) : ℚ := by …
Mentions: OAI.MaxCutGames.Gadget.ActualGadget.Data
- def
OAI.MaxCutGames.Gadget.ActualGadget.stabilityErrorline 165Source documentation
Uniform ambient input, independently uniform noise-list index.
noncomputable def stabilityError (g : Data C) : ℚ := …
Mentions: OAI.MaxCutGames.Gadget.ActualGadget.Data
- def
OAI.MaxCutGames.Gadget.ActualGadget.kernelIndicatorline 169Source documentation
The actual zero-image event for a linear map.
noncomputable def kernelIndicator (g : Data C) {P : Type} [AddCommGroup P] [Module F2 P] (S : g.Ambient →ₗ[F2] P) (i : g.NoiseIndex) : ℚ := by …Mentions: OAI.MaxCutGames.Gadget.ActualGadget.Data, OAI.MaxCutGames.Gadget.ActualGadget.F2
- def
OAI.MaxCutGames.Gadget.ActualGadget.kernelErrorline 174 - theorem
OAI.MaxCutGames.Gadget.ActualGadget.stabilityError_nonnegline 178 - theorem
OAI.MaxCutGames.Gadget.ActualGadget.stabilityError_le_oneline 185 - theorem
OAI.MaxCutGames.Gadget.ActualGadget.kernelError_nonnegline 192 - theorem
OAI.MaxCutGames.Gadget.ActualGadget.kernelError_le_oneline 200 - def
OAI.MaxCutGames.Gadget.ActualGadget.leafline 209Source documentation
The actual identity leaf, with every symbol vector used once as noise.
def leaf (C : Type) [AddCommGroup C] [Module F2 C] [Fintype C] : Data C where …
Mentions: OAI.MaxCutGames.Gadget.ActualGadget.F2, OAI.MaxCutGames.Gadget.ActualGadget.Data
- def
OAI.MaxCutGames.Gadget.ActualGadget.Satisfiesline 219Source documentation
The stability and dispersion claim of Theorem 3.4 for fixed errors and rank.
def Satisfies (g : Data C) (ζ ν : ℚ) (r : Nat) : Prop := …
Mentions: OAI.MaxCutGames.Gadget.ActualGadget.Data
- def
OAI.MaxCutGames.Gadget.ActualGadget.StableNonlinearDispersionline 225Source documentation
The actual mathematical existence target; no theorem asserts it yet.
def StableNonlinearDispersion : Prop := …
- structure
OAI.MaxCutGames.Reduction.ActualSource.Sourceline 237 - def
OAI.MaxCutGames.Reduction.ActualSource.Source.sourceListline 243 - def
OAI.MaxCutGames.Reduction.ActualSource.Source.ofListline 247Source documentation
Retain every list position as its own occurrence identifier.
def Source.ofList {n : Nat} (es : List (CloneGap.Equation (Fin n))) (hne : es ≠ []) : Source where …Mentions: OAI.MaxCutGames.Reduction.CloneGap.Equation, OAI.MaxCutGames.Reduction.ActualSource.Source
- theorem
OAI.MaxCutGames.Reduction.ActualSource.Source.sourceList_ofListline 254 - theorem
OAI.MaxCutGames.Reduction.ActualSource.Source.sourceList_lengthline 259 - theorem
OAI.MaxCutGames.Reduction.ActualSource.Source.sourceList_nonemptyline 262 - instance
OAI.MaxCutGames.Reduction.ActualSource.sourceIndexNonemptyline 270 - def
OAI.MaxCutGames.Reduction.ActualSource.Source.satisfiedline 273 - def
OAI.MaxCutGames.Reduction.ActualSource.Source.failureline 276 - def
OAI.MaxCutGames.Reduction.ActualSource.Source.DistinctNamesline 279 - abbrev
OAI.MaxCutGames.Reduction.ActualSource.Alphabetline 284 - abbrev
OAI.MaxCutGames.Reduction.ActualSource.Ambientline 285 - def
OAI.MaxCutGames.Reduction.ActualSource.alphabetEmbeddingline 287 - theorem
OAI.MaxCutGames.Reduction.ActualSource.alphabetEmbedding_applyline 290 - structure
OAI.MaxCutGames.Reduction.ActualSource.SplitGadgetline 294Source documentation
Noise indices retain multiplicity even if several indices have equal vectors.
structure SplitGadget (s d : Nat) where …
- def
OAI.MaxCutGames.Reduction.ActualSource.SplitGadget.stabilityErrorline 304 - def
OAI.MaxCutGames.Reduction.ActualSource.SplitGadget.kernelErrorline 308 - theorem
OAI.MaxCutGames.Reduction.ActualSource.SplitGadget.stabilityError_nonnegline 312 - theorem
OAI.MaxCutGames.Reduction.ActualSource.SplitGadget.stabilityError_le_oneline 318 - theorem
OAI.MaxCutGames.Integration.SplitGadget.exists_split_equivline 336Source documentation
Any injective symbol embedding admits finite coordinates in which it is the first summand. This is a theorem about the actual ambient vector space.
theorem exists_split_equiv {s : Nat} (e : Vector s →ₗ[F2] R) (he : Function.Injective e) : ∃ d : Nat, ∃ φ : R ≃ₗ[F2] (Vector s × Vector d), ∀ c, φ (e c) = (c, 0) := by … - def
OAI.MaxCutGames.Integration.SplitGadget.kernelProbabilityline 355 - theorem
OAI.MaxCutGames.Integration.SplitGadget.kernelProbability_eq_kernelErrorline 361 - def
OAI.MaxCutGames.Integration.SplitGadget.transportline 371Source documentation
Move all ambient vectors through a linear equivalence, retaining the same noise indices and their multiplicities.
noncomputable def transport {s d : Nat} (g : Data (Vector s)) (φ : g.Ambient ≃ₗ[F2] Ambient s d) (he : ∀ c, φ (g.embed c) = (c, 0)) : SplitGadget s d where … - theorem
OAI.MaxCutGames.Integration.SplitGadget.transport_stabilityErrorline 385Source documentation
Uniform stability is invariant under the coordinate change.
theorem transport_stabilityError {s d : Nat} (g : Data (Vector s)) (φ : g.Ambient ≃ₗ[F2] Ambient s d) (he : ∀ c, φ (g.embed c) = (c, 0)) : (transport g φ he).stabilityError = stabilityError g := by … - theorem
OAI.MaxCutGames.Integration.SplitGadget.transport_kernelErrorline 395Source documentation
Every zero-image probability is invariant under the same coordinate change.
theorem transport_kernelError {s d p : Nat} (g : Data (Vector s)) (φ : g.Ambient ≃ₗ[F2] Ambient s d) (he : ∀ c, φ (g.embed c) = (c, 0)) (S : Ambient s d →ₗ[F2] Vector p) : (transport g φ he).kernelError S = kernelError g (S.comp φ.toLinearMap) := by … - theorem
OAI.MaxCutGames.Integration.SplitGadget.transport_symbol_mapline 406Source documentation
The restriction to the symbol space is exactly the same linear map.
theorem transport_symbol_map {s d : Nat} (g : Data (Vector s)) (φ : g.Ambient ≃ₗ[F2] Ambient s d) (he : ∀ c, φ (g.embed c) = (c, 0)) {P : Type} [AddCommGroup P] [Module F2 P] (S : Ambient s d →ₗ[F2] P) : (S.comp φ.toLinearMap).comp g.embed = S.comp (alphabetEmbedding s d) := by … - theorem
OAI.MaxCutGames.Integration.SplitGadget.transport_kernelProbabilityline 417 - theorem
OAI.MaxCutGames.Integration.SplitGadget.transport_satisfiesline 427Source documentation
Both numerical gadget guarantees survive the coordinate change.
theorem transport_satisfies {s d : Nat} (g : Data (Vector s)) (φ : g.Ambient ≃ₗ[F2] Ambient s d) (he : ∀ c, φ (g.embed c) = (c, 0)) {ζ ν : ℚ} {r : Nat} (hg : Satisfies g ζ ν r) : (transport g φ he).stabilityError ≤ ζ ∧ ∀ p (S : Ambient s d →ₗ[F2] Vector p), r ≤ Module.finrank F2 (S.comp (alphabetEmbedding s d)).range → (transport g φ he).kernelError S ≤ ν := by … - theorem
OAI.MaxCutGames.Integration.SplitGadget.exists_split_gadgetline 445Source documentation
Every actual gadget satisfying the quantitative guarantees has a split coordinate representative with exactly those guarantees.
theorem exists_split_gadget {s : Nat} (g : Data (Vector s)) {ζ ν : ℚ} {r : Nat} (hg : Satisfies g ζ ν r) : ∃ d : Nat, ∃ h : SplitGadget s d, h.stabilityError ≤ ζ ∧ ∀ p (S : Ambient s d →ₗ[F2] Vector p), r ≤ Module.finrank F2 (S.comp (alphabetEmbedding s d)).range → h.kernelError S ≤ ν := by … - theorem
OAI.MaxCutGames.Integration.SplitGadget.exists_split_gadget_generalline 457Source documentation
The coordinate representative preserves dispersion for every target, including the question spaces used directly by the soundness analysis.
theorem exists_split_gadget_general {s : Nat} (g : Data (Vector s)) {ζ ν : ℚ} {r : Nat} (hg : Satisfies g ζ ν r) : ∃ d : Nat, ∃ h : SplitGadget s d, h.stabilityError ≤ ζ ∧ ∀ (P : Type) [AddCommGroup P] [Module F2 P] (S : Ambient s d →ₗ[F2] P), r ≤ Module.finrank F2 (S.comp (alphabetEmbedding s d)).range → kernelProbability h S ≤ ν := by …Mentions: OAI.MaxCutGames.Integration.SplitGadget.kernelProbability
- theorem
OAI.MaxCutGames.Integration.RealBounds.rho_eq_two_div_powline 483 - theorem
OAI.MaxCutGames.Integration.RealBounds.rho_real_eq_two_div_powline 490 - theorem
OAI.MaxCutGames.Integration.RealBounds.beta_eq_divline 494 - theorem
OAI.MaxCutGames.Integration.RealBounds.theta_real_productline 502Source documentation
The exact signal threshold used by selection, expressed in real scalars. There is no loss between the rational parameter search and this product.
theorem theta_real_product (δ : ℚ) (r s : Nat) : (theta δ r s : ℝ) = ((δ : ℝ) / (8 * (2 : ℝ) ^ s * 2 ^ (s * s))) * ((rho r s : ℝ) / (2 * (2 : ℝ) ^ (r * s))) := by … - theorem
OAI.MaxCutGames.Integration.RealBounds.fourth_root_as_rpowline 508 - theorem
OAI.MaxCutGames.Integration.RealBounds.exists_symbol_dimension_realline 515 - theorem
OAI.MaxCutGames.Integration.RealBounds.kernelProbability_realline 525Source documentation
Casting the finite experiment changes only its scalar values, retaining the same noise indices and the same event.
theorem kernelProbability_real {s d : Nat} (g : MaxCutGames.Reduction.ActualSource.SplitGadget s d) {P : Type} [AddCommGroup P] [Module F2 P] [DecidableEq P] (S : (Vector s × Vector d) →ₗ[F2] P) : (SplitGadget.kernelProbability g S : ℝ) = Finset.univ.expect (fun i => if S (g.noise i) = 0 then (1 : ℝ) else 0) := by …Mentions: OAI.MaxCutGames.Reduction.ActualSource.SplitGadget, OAI.MaxCutGames.Integration.SplitGadget.kernelProbability
- theorem
OAI.MaxCutGames.Integration.RealBounds.kernelProbability_real_leline 539 - theorem
OAI.MaxCutGames.Integration.RealBounds.comparison_square_budgetline 549 - theorem
OAI.MaxCutGames.Soundness.ActualMapComparison.actual_partner_expectation_comparisonline 565 - theorem
OAI.MaxCutGames.Soundness.ActualMapComparison.actual_partner_expectation_comparison_dimensionline 594 - theorem
OAI.MaxCutGames.Soundness.ActualMapComparison.actual_partner_expectation_quarterline 613 - def
OAI.MaxCutGames.Soundness.ActualMapComparison.sourcePrecomposeEquivline 633 - theorem
OAI.MaxCutGames.Soundness.ActualMapComparison.uniformMean_sourcePrecomposeline 650 - theorem
OAI.MaxCutGames.Soundness.ActualMapComparison.actual_partner_expectation_quarter_equivline 661 - theorem
OAI.MaxCutGames.Soundness.RawTargetLaw.partnerProjection_congr_slotsline 710Source documentation
The genuine partner projection reads retained slots only at active positions.
theorem partnerProjection_congr_slots {k : Nat} (rhs : Fin k → Bool) (J : Finset (Fin k)) (slot slot' : Fin k → Slot) (agree : ∀ j ∈ J, slot j = slot' j) : PartnerLinear.projection rhs (activeOf J) slot = PartnerLinear.projection rhs (activeOf J) slot' := by …Mentions: OAI.MaxCutGames.Soundness.PartnerLinear.projection
- theorem
OAI.MaxCutGames.Soundness.RawTargetLaw.rawProjection_congr_slotsline 720Source documentation
The shared raw target also ignores every inactive retained-slot choice.
theorem rawProjection_congr_slots {k : Nat} (rhs : Fin k → Bool) (J : Finset (Fin k)) (slot slot' : Fin k → Slot) (agree : ∀ j ∈ J, slot j = slot' j) : RawPartnerTarget.rawProjection rhs J slot = RawPartnerTarget.rawProjection rhs J slot' := by …Mentions: OAI.MaxCutGames.Soundness.RawPartnerTarget.rawProjection
- theorem
OAI.MaxCutGames.Soundness.RawTargetLaw.precompose_rawProjectionline 728 - theorem
OAI.MaxCutGames.Soundness.RawTargetLaw.partner_row_column_expectationline 740Source documentation
Exact nested uniform expectations in partner versus raw coordinates. Any finite enumerations of the four map spaces may be used.
theorem partner_row_column_expectation {k : Nat} (rhs : Fin k → Bool) (J : Finset (Fin k)) (slot : Fin k → Slot) {D C : Type} [AddCommGroup D] [Module F2 D] [AddCommGroup C] [Module F2 C] [Fintype (PartnerPoint rhs (activeOf J) →ₗ[F2] D)] [Fintype (PartnerPoint rhs (activeOf J) →ₗ[F2] C)] [Fintype (RawPoint J →ₗ[F2] D)] [Fintype (RawPoint J →ₗ[F2] C)] (H : (ActualHomogeneous.E k →ₗ[F2] D) → (ActualHomogeneous.E k →ₗ[F2] C) → ℝ) : (𝔼 Z : PartnerPoint rhs (activeOf J) →ₗ[F2] D, 𝔼 X : PartnerPoint rhs (activeOf J) →ₗ[F2] C, let pi := (PartnerLinear.projection rhs (activeOf J) slot).comp …Mentions: OAI.MaxCutGames.Soundness.PartnerLinear.projection