OAI/Computability/MaxCut/Games/Weighted.lean
72 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.MaxCutGames.Reduction.WeightedSource.RationalSourceline 13 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.denominatorline 25 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.denominator_positiveline 27 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.den_dvd_denominatorline 30 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.numeratorline 34 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.numerator_castline 37 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.weight_eq_ratioline 54Source documentation
Exact rational-to-integer conversion, not an approximation.
theorem weight_eq_ratio (i : Fin S.occurrences) : S.weight i = (S.numerator i : ℚ) / S.denominator := by … - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.numeratorsline 60 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.length_numeratorsline 62 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.sum_numeratorsline 65 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.equationAtline 71 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.equationAt_finline 74 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedEquationsline 77 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedEquations_lengthline 80 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedEquations_nonemptyline 84 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedEquations_originline 92Source documentation
Rounding copies complete equation records without altering any of their slots.
theorem roundedEquations_origin (D : Nat) (e : Eqn) (he : e ∈ S.roundedEquations D) : ∃ i : Fin S.occurrences, e = S.equation i := by … - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.weightedValueline 101 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedValueline 104 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.selectedSum_ofFnline 109 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.selectedMass_castline 122 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedValue_boundsline 132 - def
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundingDenominatorline 174Source documentation
ceil(4m/γ)computed from the exact numerator and denominator ofγ.def roundingDenominator (γ : ℚ) : Nat := …
- theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundingDenominator_positiveline 177 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundingDenominator_budgetline 182 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundingDenominator_sizeline 203 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.completeness_transportline 207 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.soundness_transportline 214 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.RationalSource.roundedEquations_for_nonemptyline 222 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.e3lin_completenessline 230 - theorem
OAI.MaxCutGames.Reduction.WeightedSource.e3lin_soundnessline 246 - def
OAI.MaxCutGames.Reduction.Preprocessing.roundedline 273 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.rounded_failure_add_valueline 278 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.rounded_completeline 288 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.rounded_soundline 300 - def
OAI.MaxCutGames.Reduction.Preprocessing.uniformSourceline 313 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.cloned_failure_eqline 316 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.uniformSource_completeline 336 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.uniformSource_distinctline 348 - theorem
OAI.MaxCutGames.Reduction.Preprocessing.uniformSource_soundline 352 - theorem
OAI.MaxCutGames.Reduction.OuterCompleteness.weighted_completeAtline 388Source documentation
Completeness for the actual output after rounding and finite cloning.
theorem weighted_completeAt {n s d : Nat} (W : RationalSource (CloneGap.Equation (Fin n))) (γ ξ : ℚ) (hγ : 0 < γ) (hξ : ξ ≤ γ / 4) (k : Nat) (g : SplitGadget s d) (error : RationalError) (hsource : ∃ A : Fin n → Bool, 1 - ξ ≤ W.weightedValue (fun e => CloneGap.satisfied e A)) (hbudget : (k : ℚ) * γ + g.stabilityError / 2 ≤ GapSemantics.errorValue error) : CompleteAt error (ActualGame.outputInstance (Preprocessing.uniformSource W γ hγ) k g) := by …Mentions: OAI.MaxCutGames.Reduction.CloneGap.Equation, OAI.MaxCutGames.Reduction.CloneGap.satisfied, OAI.MaxCutGames.Reduction.ActualGame.outputInstance, OAI.MaxCutGames.Reduction.Preprocessing.uniformSource
- def
OAI.MaxCutGames.Reduction.OuterCompleteness.sourceErrorline 402 - theorem
OAI.MaxCutGames.Reduction.OuterCompleteness.sourceError_posline 405 - theorem
OAI.MaxCutGames.Reduction.OuterCompleteness.weighted_completeAt_of_parametersline 410 - theorem
OAI.MaxCutGames.Reduction.OuterCompleteness.weighted_explicit_completeAt_of_parametersline 431 - def
OAI.MaxCutGames.Reduction.UniformReduction.rawSourceline 456 - def
OAI.MaxCutGames.Reduction.UniformReduction.sourceline 459 - def
OAI.MaxCutGames.Reduction.UniformReduction.outputline 464Source documentation
All proof-only numerical parameters and the correcting function are absent from the runtime input of this map.
def output (es : List (CloneGap.Equation (Fin n))) (hne : es ≠ []) (k : Nat) (T : NoiseTables.Table s d) : Instance (2 ^ s) := … - def
OAI.MaxCutGames.Reduction.UniformReduction.satisfactionline 468 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_variablesline 471 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_occurrencesline 474 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_occurrences_leline 478 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_distinctline 486 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.output_constraint_countline 489 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.output_vertex_countline 499 - def
OAI.MaxCutGames.Reduction.UniformReduction.liftAssignmentline 504 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_failure_preservedline 508 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.raw_failure_add_satisfactionline 513 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_completeline 522 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.raw_quarter_count_gapline 533Source documentation
The original uniform
((1+ξ)/2)satisfaction bound supplies exactly the quarter-gap premise needed by the cloning theorem.theorem raw_quarter_count_gap (es : List (CloneGap.Equation (Fin n))) (hne : es ≠ []) (ξ : ℚ) (hξ : ξ ≤ 1 / 2) (hsource : ∀ A : Fin n → Bool, satisfaction es A ≤ (1 + ξ) / 2) : ∀ A : Fin (rawSource es hne).«variables» → Bool, (rawSource es hne).sourceList.length ≤ 4 * (rawSource es hne).sourceList.countP (fun e => !CloneGap.satisfied e A) := by …Mentions: OAI.MaxCutGames.Reduction.CloneGap.Equation, OAI.MaxCutGames.Reduction.UniformReduction.satisfaction, OAI.MaxCutGames.Reduction.UniformReduction.rawSource, OAI.MaxCutGames.Reduction.CloneGap.satisfied
- theorem
OAI.MaxCutGames.Reduction.UniformReduction.source_soundline 545 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.sourceGame_soundline 565 - theorem
OAI.MaxCutGames.Reduction.UniformReduction.completeAt_of_parametersline 580 - theorem
OAI.MaxCutGames.Reduction.OutputTranslations.translationTable_vectorline 610Source documentation
A forward table translates every binary vector by the same offset sum.
theorem translationTable_vector {s : Nat} (a b x : Vector s) : (Encoding.translationTable a b).images[Encoding.alphabetEquiv s x] = Encoding.alphabetEquiv s (x + (a + b)) := by …Mentions: OAI.MaxCutGames.Reduction.Encoding.translationTable, OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv
- theorem
OAI.MaxCutGames.Reduction.OutputTranslations.translationTable_coordinatesline 616Source documentation
The same law on every numbered alphabet label, in fixed vector coordinates.
theorem translationTable_coordinates {s : Nat} (a b : Vector s) (label : Fin (2^s)) : (Encoding.alphabetEquiv s).symm ((Encoding.translationTable a b).images[label]) = (Encoding.alphabetEquiv s).symm label + (a + b) := by …Mentions: OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv, OAI.MaxCutGames.Reduction.Encoding.translationTable
- theorem
OAI.MaxCutGames.Reduction.OutputTranslations.explicitEdge_vectorline 625Source documentation
Every actual explicit edge has a concrete translation vector.
theorem explicitEdge_vector (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (ω : ActualGame.Outcome S k g) : ∃ shift : Vector s, ∀ x : Vector s, (ActualGame.explicitEdge S k g ω).permutation.images[Encoding.alphabetEquiv s x] = Encoding.alphabetEquiv s (x + shift) := by …Mentions: OAI.MaxCutGames.Reduction.ActualGame.Outcome, OAI.MaxCutGames.Reduction.ActualGame.explicitEdge, OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv
- theorem
OAI.MaxCutGames.Reduction.OutputTranslations.explicitEdge_coordinatesline 635 - theorem
OAI.MaxCutGames.Reduction.OutputTranslations.outputInstanceWithEnumeration_vectorline 648Source documentation
All emitted occurrences, including parallel edges and repeated noise values, use translations in the same alphabet coordinates.
theorem outputInstanceWithEnumeration_vector (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (en : NoiseEnumeration g) : ∀ constraint ∈ (ActualGame.outputInstanceWithEnumeration S k g en).constraints, ∃ shift : Vector s, ∀ x : Vector s, constraint.permutation.images[Encoding.alphabetEquiv s x] = Encoding.alphabetEquiv s (x + shift) := by …Mentions: OAI.MaxCutGames.Reduction.ActualGame.outputInstanceWithEnumeration, OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv
- theorem
OAI.MaxCutGames.Reduction.OutputTranslations.outputInstanceWithEnumeration_coordinatesline 658 - theorem
OAI.MaxCutGames.Reduction.OutputTranslations.tableOutput_vectorline 669Source documentation
Erasing the correcting-map witness leaves the translation promise intact.
theorem tableOutput_vector (S : Source) (k : Nat) {s d : Nat} (T : Integration.NoiseTables.Table s d) : ∀ constraint ∈ (Integration.TableReduction.output S k T).constraints, ∃ shift : Vector s, ∀ x : Vector s, constraint.permutation.images[Encoding.alphabetEquiv s x] = Encoding.alphabetEquiv s (x + shift) := …Mentions: OAI.MaxCutGames.Integration.NoiseTables.Table, OAI.MaxCutGames.Integration.TableReduction.output, OAI.MaxCutGames.Reduction.Encoding.alphabetEquiv
- theorem
OAI.MaxCutGames.Reduction.OutputTranslations.tableOutput_coordinatesline 678 - theorem
OAI.MaxCutGames.Reduction.OutputTranslations.uniformOutput_vectorline 687 - theorem
OAI.MaxCutGames.Reduction.OutputTranslations.uniformOutput_coordinatesline 696