OAI/Computability/MaxCut/Games/GapSemantics.lean
27 declarations, 0 contain sorry, 0 declared as axioms
Exact bridges between the integer-encoded target gaps and acceptance rates. Repeated constraint entries retain their multiplicity in every definition.
- def
OAI.MaxCutGames.Integration.GapSemantics.errorValueline 13 - def
OAI.MaxCutGames.Integration.GapSemantics.satisfactionRateline 15 - theorem
OAI.MaxCutGames.Integration.GapSemantics.countSatisfied_eq_sumline 18 - theorem
OAI.MaxCutGames.Integration.GapSemantics.countSatisfied_ofFnline 26 - def
OAI.MaxCutGames.Integration.GapSemantics.uniformConstraintAcceptanceline 33 - theorem
OAI.MaxCutGames.Integration.GapSemantics.uniformConstraintAcceptance_eq_rateline 40Source documentation
Uniform sampling is over occurrence indices, so equal constraints are counted with exactly their stored multiplicity.
theorem uniformConstraintAcceptance_eq_rate {q : Nat} (g : Instance q) (labeling : Fin g.vertices → Fin q) : uniformConstraintAcceptance g labeling = satisfactionRate g labeling := by …Mentions: OAI.MaxCutGames.Integration.GapSemantics.uniformConstraintAcceptance, OAI.MaxCutGames.Integration.GapSemantics.satisfactionRate
- theorem
OAI.MaxCutGames.Integration.GapSemantics.errorValue_posline 51 - theorem
OAI.MaxCutGames.Integration.GapSemantics.errorValue_lt_halfline 56 - theorem
OAI.MaxCutGames.Integration.GapSemantics.satisfactionRate_nonnegline 63 - theorem
OAI.MaxCutGames.Integration.GapSemantics.satisfactionRate_le_oneline 67 - theorem
OAI.MaxCutGames.Integration.GapSemantics.completeAt_iffline 75 - theorem
OAI.MaxCutGames.Integration.GapSemantics.soundAt_iffline 100 - theorem
OAI.MaxCutGames.Integration.GapSemantics.completeAt_monoline 121Source documentation
Strengthening either error threshold implies the requested weaker gap.
theorem completeAt_mono {q : Nat} {e e' : RationalError} {g : Instance q} (hee : errorValue e ≤ errorValue e') (hg : CompleteAt e g) : CompleteAt e' g := by …Mentions: OAI.MaxCutGames.Integration.GapSemantics.errorValue
- theorem
OAI.MaxCutGames.Integration.GapSemantics.soundAt_monoline 127 - theorem
OAI.MaxCutGames.Integration.GapSemantics.completeAt_iff_realline 134Source documentation
The same target gap is obtained when the analysis uses real expectations.
theorem completeAt_iff_real {q : Nat} (e : RationalError) (g : Instance q) : CompleteAt e g ↔ ∃ labeling, 1 - (errorValue e : ℝ) ≤ (countSatisfied labeling g.constraints : ℝ) / g.constraints.length := by …Mentions: OAI.MaxCutGames.Integration.GapSemantics.errorValue
- theorem
OAI.MaxCutGames.Integration.GapSemantics.soundAt_iff_realline 145 - def
OAI.MaxCutGames.Integration.InstanceEquivalences.renameConstraintline 165 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.renameConstraint_satisfiedline 171 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.rename_countline 175 - def
OAI.MaxCutGames.Integration.InstanceEquivalences.renameInstanceline 184 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.countSatisfied_permline 192 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.satisfactionRate_eq_of_rename_permline 201Source documentation
This statement is directly usable by an executable adapter: only its vertex equivalence and its permutation of the explicit edge list are needed.
theorem satisfactionRate_eq_of_rename_perm {q : Nat} (g h : Instance q) (e : Fin g.vertices ≃ Fin h.vertices) (hp : h.constraints.Perm (g.constraints.map (renameConstraint e))) (labeling : Fin h.vertices → Fin q) : satisfactionRate h labeling = satisfactionRate g (labeling ∘ e) := by …Mentions: OAI.MaxCutGames.Integration.InstanceEquivalences.renameConstraint
- theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.completeAt_iff_of_rename_permline 213 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.soundAt_iff_of_rename_permline 227 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.rename_rateline 241 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.completeAt_rename_iffline 246 - theorem
OAI.MaxCutGames.Integration.InstanceEquivalences.soundAt_rename_iffline 251