OAI/Computability/MaxCut/Games/RealTarget.lean
21 declarations, 0 contain sorry, 0 declared as axioms
The arbitrary-real-error target and its exact passage from encoded rational gap reductions. The same formula map and actual machine certificate are reused; choosing smaller error tolerances does not change the computation.
- structure
OAI.MaxCutGames.Integration.RealTarget.PolynomialGapReductionline 18Source documentation
A fixed-alphabet gap reduction from 3SAT, including its actual finite-machine polynomial runtime, with the two approximation thresholds expressed over ℝ.
structure PolynomialGapReduction (ε δ : ℝ) where …
- def
OAI.MaxCutGames.Integration.RealTarget.ofRationalline 34Source documentation
A genuine rational-error certificate supplies every weaker real threshold. The input and output encodings and finite transition program remain identical.
def ofRational {e d : RationalError} {ε δ : ℝ} (p : Complexity.PolynomialGapReduction e d) (hε : (GapSemantics.errorValue e : ℝ) ≤ ε) (hδ : (GapSemantics.errorValue d : ℝ) ≤ δ) : PolynomialGapReduction ε δ where …Mentions: OAI.MaxCutGames.Integration.GapSemantics.errorValue, OAI.MaxCutGames.Integration.RealTarget.PolynomialGapReduction
- theorem
OAI.MaxCutGames.Integration.RealTarget.for_all_real_of_dyadicline 53Source documentation
It suffices to construct the full machine-backed reduction for dyadic errors. This theorem does not assert that those certificates have been built.
theorem for_all_real_of_dyadic (certificates : ∀ m n : Nat, Nonempty (Complexity.PolynomialGapReduction (DyadicErrors.dyadicError m) (DyadicErrors.dyadicError n))) (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) : Nonempty (PolynomialGapReduction ε δ) := by …Mentions: OAI.MaxCutGames.Integration.DyadicErrors.dyadicError, OAI.MaxCutGames.Integration.RealTarget.PolynomialGapReduction
- def
OAI.MaxCutGames.Integration.InstanceValue.maxSatisfiedline 80Source documentation
The maximum number of satisfied occurrences among all vertex labelings.
def maxSatisfied {q : Nat} (g : Instance q) : Nat := … - def
OAI.MaxCutGames.Integration.InstanceValue.valueline 86Source documentation
The usual instance value: the largest satisfied fraction of its stored constraint list. The denominator is positive by the
Instanceinvariant.noncomputable def value {q : Nat} (g : Instance q) : ℝ := … - theorem
OAI.MaxCutGames.Integration.InstanceValue.countSatisfied_le_maxSatisfiedline 89 - theorem
OAI.MaxCutGames.Integration.InstanceValue.maxSatisfied_le_lengthline 97 - theorem
OAI.MaxCutGames.Integration.InstanceValue.maxSatisfied_attainedline 103 - theorem
OAI.MaxCutGames.Integration.InstanceValue.value_attainedline 112 - theorem
OAI.MaxCutGames.Integration.InstanceValue.labeling_rate_le_valueline 118 - theorem
OAI.MaxCutGames.Integration.InstanceValue.satisfactionRate_le_valueline 126Source documentation
This value uses the same rate already defined for the encoded gap target.
theorem satisfactionRate_le_value {q : Nat} (g : Instance q) (labeling : Fin g.vertices → Fin q) : (GapSemantics.satisfactionRate g labeling : ℝ) ≤ value g := by …Mentions: OAI.MaxCutGames.Integration.GapSemantics.satisfactionRate, OAI.MaxCutGames.Integration.InstanceValue.value
- theorem
OAI.MaxCutGames.Integration.InstanceValue.value_nonnegline 131 - theorem
OAI.MaxCutGames.Integration.InstanceValue.value_le_oneline 134 - theorem
OAI.MaxCutGames.Integration.InstanceValue.value_mem_unitIntervalline 140 - theorem
OAI.MaxCutGames.Integration.InstanceValue.exists_rate_ge_iffline 144Source documentation
Existential real completeness is precisely a lower bound on instance value.
theorem exists_rate_ge_iff {q : Nat} (g : Instance q) (hq : 0 < q) (a : ℝ) : (∃ labeling : Fin g.vertices → Fin q, a ≤ (countSatisfied labeling g.constraints : ℝ) / g.constraints.length) ↔ a ≤ value g := by … - theorem
OAI.MaxCutGames.Integration.InstanceValue.forall_rate_le_iffline 156Source documentation
Universal real soundness is precisely an upper bound on instance value.
theorem forall_rate_le_iff {q : Nat} (g : Instance q) (hq : 0 < q) (b : ℝ) : (∀ labeling : Fin g.vertices → Fin q, (countSatisfied labeling g.constraints : ℝ) / g.constraints.length ≤ b) ↔ value g ≤ b := by … - theorem
OAI.MaxCutGames.Integration.InstanceValue.completeAt_iff_valueline 167 - theorem
OAI.MaxCutGames.Integration.InstanceValue.soundAt_iff_valueline 172 - theorem
OAI.MaxCutGames.Integration.InstanceValue.realTarget_completenessline 178Source documentation
The unchanged real target certificate gives literal
val(U) ≥ 1 - ε.theorem realTarget_completeness {ε δ : ℝ} (p : RealTarget.PolynomialGapReduction ε δ) (formula : Formula) (hformula : formula.Satisfiable) : 1 - ε ≤ value (p.reduce formula) := by …Mentions: OAI.MaxCutGames.Integration.RealTarget.PolynomialGapReduction, OAI.MaxCutGames.Integration.InstanceValue.value
- theorem
OAI.MaxCutGames.Integration.InstanceValue.realTarget_soundnessline 187Source documentation
The unchanged real target certificate gives literal
val(U) ≤ δ.theorem realTarget_soundness {ε δ : ℝ} (p : RealTarget.PolynomialGapReduction ε δ) (formula : Formula) (hformula : ¬ formula.Satisfiable) : value (p.reduce formula) ≤ δ := by …Mentions: OAI.MaxCutGames.Integration.RealTarget.PolynomialGapReduction, OAI.MaxCutGames.Integration.InstanceValue.value
- theorem
OAI.MaxCutGames.Integration.InstanceValue.realTarget_value_guaranteesline 195