OAI/Computability/MaxCut/Encoding/BitPairWeightQ.lean
16 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.OptimalMaxCut.LongCode.bitPairWeightQline 12 - def
OAI.OptimalMaxCut.LongCode.corrAverageQline 15 - theorem
OAI.OptimalMaxCut.LongCode.bitPairWeightQ_castline 20 - theorem
OAI.OptimalMaxCut.LongCode.corrAverageQ_castline 23 - theorem
OAI.OptimalMaxCut.LongCode.corrAverageQ_constline 30 - theorem
OAI.OptimalMaxCut.LongCode.corrAverageQ_nonnegline 34 - theorem
OAI.OptimalMaxCut.LongCode.corrAverageQ_sumline 44 - def
OAI.OptimalMaxCut.LongCode.jointLawline 51Source documentation
The joint law of all paired cube inputs, with actual rational point masses.
def jointLaw (t : ℚ) (ht : t ∈ Set.Icc (-1 : ℚ) 1) (n : ℕ) : Law (Cube (Fin n) × Cube (Fin n)) where …
Mentions: OAI.OptimalMaxCut.LongCode.Law
- theorem
OAI.OptimalMaxCut.LongCode.jointLaw_averageline 58 - def
OAI.OptimalMaxCut.LongCode.Law.bindline 75Source documentation
Finite conditional sampling; both the law and all output masses are rational.
def bind (p : Law I) (q : I → Law J) : Law (I × J) where …
Mentions: OAI.OptimalMaxCut.LongCode.Law
- theorem
OAI.OptimalMaxCut.LongCode.Law.bind_averageline 82 - theorem
OAI.OptimalMaxCut.LongCode.Law.corrAverage_avgline 86 - def
OAI.OptimalMaxCut.LongCode.Game.sampleLawline 98Source documentation
Every atom records exactly the finite random choices made by the long-code Max-Cut test. In particular no real random numbers occur in the construction.
def sampleLaw (G : Game X Y E q) (t : ℚ) (ht : t ∈ Set.Icc (-1 : ℚ) 1) : Law (Y × (E × (E × (Cube (Fin q) × Cube (Fin q))))) := …Mentions: OAI.OptimalMaxCut.LongCode.Game, OAI.OptimalMaxCut.LongCode.Law
- def
OAI.OptimalMaxCut.LongCode.Game.queriesline 104Source documentation
The two actual graph vertices queried at each test atom.
def queries (G : Game X Y E q) (a : Y × (E × (E × (Cube (Fin q) × Cube (Fin q))))) : (X × Cube (Fin q)) × (X × Cube (Fin q)) := …Mentions: OAI.OptimalMaxCut.LongCode.Game
- theorem
OAI.OptimalMaxCut.LongCode.Game.testCut_expandedline 110 - theorem
OAI.OptimalMaxCut.LongCode.Game.testCut_sampleLawline 128Source documentation
The analytic test value is exactly the expectation over explicit rational atoms. This identity will be used to aggregate a genuine finite graph.
theorem testCut_sampleLaw (G : Game X Y E q) (t : ℚ) (ht : t ∈ Set.Icc (-1 : ℚ) 1) (f : X → Cube (Fin q) → ℝ) : G.testCut t f = (G.sampleLaw t ht).avg (fun a => (1 - f (G.queries a).1.1 (G.queries a).1.2 * f (G.queries a).2.1 (G.queries a).2.2) / 2) := by …Mentions: OAI.OptimalMaxCut.LongCode.Game