OAI/Computability/MaxCut/Encoding/AdviceLaw.lean
65 declarations, 0 contain sorry, 0 declared as axioms
The actual finite advice law. Uniform independent hidden/complement maps induce the exact uniform visible-map law, including for rank-deficient public maps. The whole-table comparison retains an arbitrary common occurrence/public-data law, so weighted occurrence sampling is not replaced by uniform IDs.
- def
OAI.MaxCutGames.Decoder.AdviceLaw.visibleMapline 36Source documentation
The precise visible table
(T,A M), with the second component in its actual attainable range. The argument order is complement, hidden matrix.def visibleMap (A : K →ₗ[F2] R) {J : Finset (Fin k)} (T : RawPoint J →ₗ[F2] W) (M : RawPoint J →ₗ[F2] K) : RawPoint J →ₗ[F2] (W × A.range) := … - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.visibleMap_applyline 42 - def
OAI.MaxCutGames.Decoder.AdviceLaw.rawMapPairCoefficientsEquivline 46 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.visibleMap_rawline 53 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.uniform_visible_mapsline 60Source documentation
Equality for every observable proves the whole joint visible-map law.
theorem uniform_visible_maps (A : K →ₗ[F2] R) (J : Finset (Fin k)) (H : (RawPoint J →ₗ[F2] (W × A.range)) → ℝ) : (𝔼 TM : (RawPoint J →ₗ[F2] W) × (RawPoint J →ₗ[F2] K), H (visibleMap A TM.1 TM.2)) = 𝔼 Y : RawPoint J →ₗ[F2] (W × A.range), H Y := by … - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.uniform_visible_maps_expectationline 76 - def
OAI.MaxCutGames.Decoder.AdviceLaw.actualSuccessline 90Source documentation
Actual success starts with genuinely sampled hidden and complement maps. The iid incidence law includes every slot choice, including unused choices at full positions. Policies receive only their respective visible table.
def actualSuccess (μ : FiniteDistribution (O × Fin 3)) (g : IncidenceExtraction.Incidence O N) (A : K →ₗ[F2] R) (policy : ActualAdviceStochasticBridge.Policies k g (W × A.range)) (β : ℝ) (hβ₀ : 0 ≤ β) (hβ₁ : β ≤ 1) : ℝ := … - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.actualSuccess_eq_cleanSuccessline 102 - def
OAI.MaxCutGames.Decoder.AdviceLaw.drawDistributionline 121 - def
OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistributionline 135 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistribution_totalVariation_eq_slopeline 142Source documentation
Padding adds an independent uniform affine intercept. The full map's variation is therefore exactly the sparse slope variation used in constants.
theorem paddedDistribution_totalVariation_eq_slope (rhs : Fin k → Bool) (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) : (paddedDistribution (V := V) rhs β hβ hβ').totalVariation …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistribution
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistribution_totalVariationline 151 - def
OAI.MaxCutGames.Decoder.AdviceLaw.withKernelline 165Source documentation
Keep the common outer datum while sampling its conditional table law.
def withKernel (μ : FiniteDistribution Ω) (p : Ω → FiniteDistribution Y) : FiniteDistribution (Ω × Y) where … - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.withKernel_totalVariationline 174 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.withKernel_totalVariation_leline 190 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.wholeAdvice_totalVariationline 206Source documentation
Whole
(occurrences, public advice, Mπ,Tπ)comparison. The product codomain represents the two genuine sampled maps; occurrence weights are arbitrary and remain in both laws. The public law can in particular be uniform on all row maps. Projection choices are averaged out before this comparison.theorem wholeAdvice_totalVariation {k : ℕ} {Id A V : Type} [Fintype Id] [Fintype A] [AddCommGroup V] [Module F2 V] [Fintype V] [Fintype (ActualHomogeneous.E k →ₗ[F2] V)] (occurrences : FiniteDistribution (Fin k → Id)) (publicLaw : FiniteDistribution A) (rhs : Id → Bool) (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) : (withKernel (occurrences.product publicLaw) (fun ua => paddedDistribution (V := V) (fun j => rhs (ua.1 j)) β hβ hβ')).totalVariation …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.withKernel, OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistribution
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.wholeAdvice_totalVariation_eq_slopeline 221Source documentation
Common occurrence/public randomness preserves the exact slope variation.
theorem wholeAdvice_totalVariation_eq_slope {k : ℕ} {Id A V : Type} [Fintype Id] [Fintype A] [AddCommGroup V] [Module F2 V] [Fintype V] [Fintype (ActualHomogeneous.E k →ₗ[F2] V)] (occurrences : FiniteDistribution (Fin k → Id)) (publicLaw : FiniteDistribution A) (rhs : Id → Bool) (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) : (withKernel (occurrences.product publicLaw) (fun ua => paddedDistribution (V := V) (fun j => rhs (ua.1 j)) β hβ hβ')).totalVariation …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.withKernel, OAI.MaxCutGames.Decoder.AdviceLaw.paddedDistribution
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.wholeAdvice_totalVariation_le_slopeline 237 - instance
OAI.MaxCutGames.Decoder.AdviceLaw.observedRowsFintypeline 257 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.observed_hidden_independentline 263Source documentation
After fixing the mask, public map and complement table, the uniform hidden matrix has independent uniform attainable rows and private kernel coordinates. The observation fixes only
A M, notMor a chosen witness.theorem observed_hidden_independent (J : Finset (Fin k)) (A : K →ₗ[F2] R) (f : AdviceFibers.ObservedRow (E := RawPoint J) A → ℝ) … - abbrev
OAI.MaxCutGames.Decoder.AdviceLaw.ProjectionSeedline 280Source documentation
The actual two-stage sampler retains both its projection choices and its uniform map on that projected target. Thus target advice is not forgotten.
abbrev ProjectionSeed (k : ℕ) (V : Type) [AddCommGroup V] [Module F2 V] := …
- def
OAI.MaxCutGames.Decoder.AdviceLaw.projectionSeedDistributionline 284 - def
OAI.MaxCutGames.Decoder.AdviceLaw.projectSeedMapline 295 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.projectionSeed_expectationline 301 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.projectionSeed_pushforwardline 325 - def
OAI.MaxCutGames.Decoder.AdviceLaw.seedToActualDrawline 345Source documentation
Convert the actual two-stage seed into the full hidden experiment. The second summand of the seed remains available for the target-side observation.
def seedToActualDraw (occ : Fin k → Id) (A : K →ₗ[F2] R) (s : ProjectionSeed k (K × W)) : AdviceExperiment.Draw k Id K W R where …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.ProjectionSeed, OAI.MaxCutGames.Decoder.AdviceExperiment.Draw
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.seed_projectionline 354 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.seed_padded_pairline 360 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.seed_left_observationline 367 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.seed_right_observationline 376 - def
OAI.MaxCutGames.Decoder.AdviceLaw.choiceDistributionline 389 - def
OAI.MaxCutGames.Decoder.AdviceLaw.maskSlotChoiceline 396Source documentation
Full positions discard their auxiliary slot; singleton positions retain it.
def maskSlotChoice (p : Bool × Fin 3) : PaddedLaw.ProjectionChoice := …
Mentions: OAI.MaxCutGames.Decoder.PaddedLaw.ProjectionChoice
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.maskSlotChoice_pushforwardline 399 - def
OAI.MaxCutGames.Decoder.AdviceLaw.choicesOfMaskSlotsline 409 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.choices_expectationline 416Source documentation
The Option sampler is exactly the Bernoulli-mask sampler with independent uniform slots at every position, including the full positions. This identity allows arbitrary functions of the retained choices.
theorem choices_expectation {k : ℕ} (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) (H : (Fin k → PaddedLaw.ProjectionChoice) → ℝ) : ((choiceDistribution β hβ hβ').iid k).expectation H = ((Clean.bernoulli β hβ hβ').iid k).expectation (fun mask => (FiniteDistribution.uniform (Fin k → Fin 3)).expectation (fun slots => H (choicesOfMaskSlots mask slots))) := by …Mentions: OAI.MaxCutGames.Decoder.PaddedLaw.ProjectionChoice, OAI.MaxCutGames.Decoder.AdviceLaw.choiceDistribution, OAI.MaxCutGames.Clean.bernoulli, OAI.MaxCutGames.Decoder.AdviceLaw.choicesOfMaskSlots
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.choices_maskline 427 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.choices_active_slotline 435 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.projectionSeed_mask_slots_expectationline 442Source documentation
The same identity with the entire original target map retained. This is the full two-stage seed law, not merely the law of its padded marginal.
theorem projectionSeed_mask_slots_expectation {k : ℕ} {V : Type} [AddCommGroup V] [Module F2 V] [Fintype V] (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) (H : ProjectionSeed k V → ℝ) : (projectionSeedDistribution β hβ hβ').expectation H = ((Clean.bernoulli β hβ hβ').iid k).expectation (fun mask => (FiniteDistribution.uniform (Fin k → Fin 3)).expectation (fun slots => (FiniteDistribution.uniform (RawPoint (PaddedLaw.choiceMask (choicesOfMaskSlots mask slots)) →ₗ[F2] V)).expectation (fun Y => H ⟨choicesOfMaskSlots mask slots, Y⟩))) := by …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.ProjectionSeed, OAI.MaxCutGames.Decoder.AdviceLaw.projectionSeedDistribution, OAI.MaxCutGames.Clean.bernoulli, OAI.MaxCutGames.Decoder.PaddedLaw.choiceMask, OAI.MaxCutGames.Decoder.AdviceLaw.choicesOfMaskSlots
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.product_pushforward_withKernelline 473 - def
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeedLawline 499Source documentation
A finite hidden sample whose actual Draw is
seedToActualDraw.def fullSeedLaw {k : ℕ} {Id A V : Type} [Fintype Id] [Fintype A] [AddCommGroup V] [Module F2 V] [Fintype V] (occurrences : FiniteDistribution (Fin k → Id)) (publicLaw : FiniteDistribution A) (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) := … - def
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeedPadline 505 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_pad_lawline 510 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_totalVariationline 526 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_totalVariation_eq_slopeline 539 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_totalVariation_le_slopeline 554 - abbrev
OAI.MaxCutGames.Decoder.AdviceLaw.FullSeedline 572 - abbrev
OAI.MaxCutGames.Decoder.AdviceLaw.CompleteDataline 579Source documentation
Complete visible conditioning data: occurrences, public map, projection choices, the entire complement map, and precisely the attainable rows.
abbrev CompleteData (k : ℕ) (Id K W R : Type) [AddCommGroup K] [Module F2 K] [AddCommGroup W] [Module F2 W] [AddCommGroup R] [Module F2 R] := … - abbrev
OAI.MaxCutGames.Decoder.AdviceLaw.PrivateMapline 587 - def
OAI.MaxCutGames.Decoder.AdviceLaw.targetObservationEquivline 590 - def
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeedCoordinatesEquivline 601Source documentation
A global bijection retains all actual visible data, with exactly one uniform kernel-valued matrix left after conditioning.
def fullSeedCoordinatesEquiv : FullSeed k Id K W R ≃ Σ d : CompleteData k Id K W R, PrivateMap d := …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.FullSeed, OAI.MaxCutGames.Decoder.AdviceLaw.CompleteData, OAI.MaxCutGames.Decoder.AdviceLaw.PrivateMap
- def
OAI.MaxCutGames.Decoder.AdviceLaw.completeObserveline 612 - def
OAI.MaxCutGames.Decoder.AdviceLaw.completeAssembleline 615 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeObserve_eqline 619 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeAssemble_eqline 624 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeObserve_assembleline 629 - def
OAI.MaxCutGames.Decoder.AdviceLaw.completeFiberEquivline 635Source documentation
Exact equivalence for a fiber of the complete observation, not just the marginal row observation. This is the input for finite conditioning.
def completeFiberEquiv (d : CompleteData k Id K W R) : PrivateMap d ≃ {s : FullSeed k Id K W R // completeObserve s = d} := …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.CompleteData, OAI.MaxCutGames.Decoder.AdviceLaw.PrivateMap, OAI.MaxCutGames.Decoder.AdviceLaw.FullSeed, OAI.MaxCutGames.Decoder.AdviceLaw.completeObserve
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeFiberEquiv_valline 640 - def
OAI.MaxCutGames.Decoder.AdviceLaw.completeDrawline 644Source documentation
The actual Draw obtained from the complete-data fiber coordinates.
def completeDraw (d : CompleteData k Id K W R) (N : PrivateMap d) : AdviceExperiment.Draw k Id K W R where …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.CompleteData, OAI.MaxCutGames.Decoder.AdviceLaw.PrivateMap, OAI.MaxCutGames.Decoder.AdviceExperiment.Draw
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeDraw_seedline 653 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeDraw_rowsline 657 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeDraw_leftline 662 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.completeDraw_rightline 672 - def
OAI.MaxCutGames.Decoder.AdviceLaw.completeWeightline 683 - theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_weight_observedline 693Source documentation
The actual law has exactly constant point weights on every fiber of all observed data, even for arbitrary occurrence and public-map laws.
theorem fullSeed_weight_observed (occurrences : FiniteDistribution (Fin k → Id)) (publicLaw : FiniteDistribution (K →ₗ[F2] R)) (β : ℝ) (hβ : 0 ≤ β) (hβ' : β ≤ 1) (s : FullSeed k Id K W R) : (fullSeedLaw (V := K × W) occurrences publicLaw β hβ hβ').weight s = …Mentions: OAI.MaxCutGames.Decoder.AdviceLaw.FullSeed, OAI.MaxCutGames.Decoder.AdviceLaw.fullSeedLaw
- theorem
OAI.MaxCutGames.Decoder.AdviceLaw.fullSeed_weight_fiberline 700