OAI/Computability/UniqueGames/Soundness/SubsetIntersectionLemmas.lean
85 declarations, 0 contain sorry, 0 declared as axioms
Exact overlap bound for independently sampled uniform fixed-size subsets
All expectations below are explicit rational sums over Finset.powersetCard.
The marginal inclusion probability is derived from the exact binomial count
of subsets containing a prescribed singleton. No probabilistic estimate is an
assumption. This is the active-set overlap bound used in Lemma 6.3.
- def
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsetsline 38Source documentation
The actual finite sample space of all
t-subsets ofFin k.def subsets (k t : ℕ) : Finset (Finset (Fin k)) := …
- def
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMeanline 42Source documentation
Uniform expectation, implemented by its normalized finite sum.
def uniformMean (k t : ℕ) (f : Finset (Fin k) → ℚ) : ℚ := …
- def
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMeanline 46Source documentation
Independent draws use the product of the two uniform laws.
def independentMean (k t : ℕ) (f : Finset (Fin k) → Finset (Fin k) → ℚ) : ℚ := …
- def
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.memberIndicatorline 49 - def
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.overlapProbabilityline 52 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean_eq_double_sumline 57Source documentation
The nested expectations are exactly the normalized sum on the product sample space, whose cardinality is the square of the single-draw cardinality.
theorem independentMean_eq_double_sum (k t : ℕ) (f : Finset (Fin k) → Finset (Fin k) → ℚ) : independentMean k t f = (∑ a ∈ subsets k t, ∑ b ∈ subsets k t, f a b) / ((subsets k t).card : ℚ)^2 := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean, OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsets
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_mul_leftline 65 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_mul_rightline 71 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean_productline 78Source documentation
Independence is proved from the actual two normalized finite sums.
theorem independentMean_product (k t : ℕ) (f g : Finset (Fin k) → ℚ) : independentMean k t (fun a b => f a * g b) = uniformMean k t f * uniformMean k t g := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean, OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsets_cardline 82 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsets_nonemptyline 85 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsets_card_ne_zeroline 89 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.count_containingline 94Source documentation
Count the sampled subsets containing one specified coordinate.
theorem count_containing {k t : ℕ} (ht : 0 < t) (i : Fin k) : ((subsets k t).filter (fun a => i ∈ a)).card = (k - 1).choose (t - 1) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.subsets
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.choose_predecessor_ratioline 101 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.inclusion_probabilityline 113Source documentation
Exact marginal probability: a coordinate belongs to a uniform
t-subset with probabilityt / k. This also includest = 0.theorem inclusion_probability {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) (i : Fin k) : uniformMean k t (memberIndicator i) = (t : ℚ) / k := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean, OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.memberIndicator
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independent_inclusion_probabilityline 124Source documentation
A coordinate belongs to both independent draws with the product probability.
theorem independent_inclusion_probability {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) (i : Fin k) : independentMean k t (fun a b => memberIndicator i a * memberIndicator i b) = ((t : ℚ) / k)^2 := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean, OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.memberIndicator
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_congrline 130 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_constline 135 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_finset_sumline 141 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean_monoline 149 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean_monoline 154 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.intersection_card_indicatorline 162 - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.expected_intersection_fixedline 168Source documentation
Conditional expectation against any fixed first set, directly from the proved marginal inclusion probability of the independent second draw.
theorem expected_intersection_fixed {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) (a : Finset (Fin k)) : uniformMean k t (fun b => ((a ∩ b).card : ℚ)) = a.card * ((t : ℚ) / k) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.uniformMean
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.expected_intersectionline 176Source documentation
Exact expected intersection size for independent uniform
t-subsets.theorem expected_intersection {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) : independentMean k t (fun a b => ((a ∩ b).card : ℚ)) = (t : ℚ)^2 / k := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.independentMean
- theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.nonempty_indicator_le_cardline 191Source documentation
The pointwise first-moment bound for a nonempty intersection.
theorem nonempty_indicator_le_card {k : ℕ} (a b : Finset (Fin k)) : (if (a ∩ b).Nonempty then (1 : ℚ) else 0) ≤ (a ∩ b).card := by … - theorem
OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.overlap_probability_leline 198Source documentation
The uniform-subset overlap bound used in the map-law comparison.
theorem overlap_probability_le {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) : overlapProbability k t ≤ (t : ℚ)^2 / k := by …Mentions: OAI.UniqueGamesTheorem.Soundness.SubsetIntersection.overlapProbability
- abbrev
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.ActiveSetline 217Source documentation
The literal support of the uniform active-set sample.
abbrev ActiveSet (k t : ℕ) := ↥(subsets k t)
- abbrev
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.Partnerline 220Source documentation
Each retained coordinate receives an independent slot in
Fin 3.abbrev Partner (k t : ℕ) := Σ a : ActiveSet k t, (↥a.val → Fin 3)
Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerSampling.ActiveSet
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.activeSet_cardline 222 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.slotTuples_cardline 225 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_cardline 230Source documentation
Equal-size fibers prove that slot sampling does not change subset weights.
theorem partner_card (k t : ℕ) : Fintype.card (Partner k t) = (subsets k t).card * 3 ^ t := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerSampling.Partner
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_nonemptyline 236 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.uniformMean_real_castline 240 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.independentMean_real_castline 246 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.subset_overlap_probability_leline 253Source documentation
Real
Finset.expectform of the already-proved rational subset bound.theorem subset_overlap_probability_le {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) : (𝔼 a ∈ subsets k t, 𝔼 b ∈ subsets k t, if (a ∩ b).Nonempty then (1 : ℝ) else 0) ≤ (t : ℝ)^2 / k := by … - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.activeSet_expectline 263 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_expect_activeSetline 269Source documentation
The uniform full-partner law projects to the uniform active-subset law.
theorem partner_expect_activeSet (k t : ℕ) (f : ActiveSet k t → ℝ) : (𝔼 p : Partner k t, f p.1) = (𝔼 a : ActiveSet k t, f a) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerSampling.ActiveSet, OAI.UniqueGamesTheorem.Soundness.PartnerSampling.Partner
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_expect_activeline 282 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_pair_expect_activeline 286 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.partner_active_overlap_probability_leline 298Source documentation
The independently drawn full partners obey the same active-overlap bound.
theorem partner_active_overlap_probability_le {k t : ℕ} (hk : 0 < k) (htk : t ≤ k) : (𝔼 p : Partner k t, 𝔼 q : Partner k t, if (p.1.val ∩ q.1.val).Nonempty then (1 : ℝ) else 0) ≤ (t : ℝ)^2 / k := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerSampling.Partner
- def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.activeline 304 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.decodeSlotline 307 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.slotsline 310 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernelline 313 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.activeSubtypeEquivline 317 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_finrankline 321 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_inf_finrank_leline 329 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_inf_eq_bot_of_no_overlapline 336 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.activeOverlapline 349 - def
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernelCollisionline 352 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernelCollision_le_activeOverlapline 357 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_collision_probability_leline 367 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_overlap_weight_pointwiseline 381 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerSampling.kernel_overlap_weight_leline 397 - theorem
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.actual_partner_expectation_comparisonline 438 - theorem
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.actual_partner_expectation_comparison_dimensionline 467 - theorem
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.actual_partner_expectation_quarterline 486 - def
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.restrictIndicesline 525 - def
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.restrictionProductEquivline 529Source documentation
The values inside and outside a finite set reconstruct the full tuple.
def restrictionProductEquiv {P X : Type*} [DecidableEq P] (J : Finset P) : (P → X) ≃ ((↥J → X) × ({j : P // j ∉ J} → X)) where … - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.expect_restrictIndicesline 546Source documentation
Marginalizing the nonempty complement tuple gives the exact uniform law on the active coordinates. This includes an empty active set or complement.
theorem expect_restrictIndices {P X : Type*} [Fintype P] [DecidableEq P] [Fintype X] [Nonempty X] (J : Finset P) (h : (↥J → X) → ℝ) : (𝔼 indices : P → X, h (restrictIndices J indices)) = 𝔼 activeIndices : ↥J → X, h activeIndices := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.restrictIndices
- def
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fromFullIndicesline 560 - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fixed_active_expect_fullIndicesline 564Source documentation
Fixed-active-set form of the actual three-way slot sampling identity.
theorem fixed_active_expect_fullIndices {k t : ℕ} (a : ActiveSet k t) (h : (↥a.val → Fin 3) → ℝ) : (𝔼 indices : Fin k → Fin 3, h (restrictIndices a.val indices)) = 𝔼 activeIndices : ↥a.val → Fin 3, h activeIndices := …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.restrictIndices
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.partner_expect_active_slotsline 572Source documentation
All active-set fibers have
3^telements, so the uniform dependent-pair average is the active-set average of the uniform slot average.theorem partner_expect_active_slots (k t : ℕ) (f : Partner k t → ℝ) : (𝔼 p : Partner k t, f p) = 𝔼 a : ActiveSet k t, 𝔼 indices : ↥a.val → Fin 3, f ⟨a, indices⟩ := by … - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.partner_expect_fullIndicesline 584Source documentation
The full-index experiment has exactly the existing
Partnerlaw. No independence or equality of probability laws is assumed.theorem partner_expect_fullIndices (k t : ℕ) (f : Partner k t → ℝ) : (𝔼 p : Partner k t, f p) = 𝔼 a : ActiveSet k t, 𝔼 indices : Fin k → Fin 3, f (fromFullIndices a indices) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fromFullIndices
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.projection_eq_of_slots_eq_on_activeline 594Source documentation
Slots outside active positions have no effect on the genuine projection.
theorem projection_eq_of_slots_eq_on_active {P : Type} (rhs active : P → Bool) (slot slot' : P → PartnerProjection.Slot) (hslot : ∀ j, active j = true → slot j = slot' j) : PartnerLinear.projection rhs active slot = PartnerLinear.projection rhs active slot' := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerProjection.Slot, OAI.UniqueGamesTheorem.Soundness.PartnerLinear.projection
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.projection_fromFullIndicesline 613Source documentation
Defaulting inactive slots to
.firstgives the same map as retaining all the independently sampled full indices.theorem projection_fromFullIndices {k t : ℕ} (rhs : Fin k → Bool) (a : ActiveSet k t) (indices : Fin k → Fin 3) : PartnerLinear.projection rhs (active (fromFullIndices a indices)) (slots (fromFullIndices a indices)) = PartnerLinear.projection rhs (active (fromFullIndices a indices)) (fun j => decodeSlot (indices j)) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerLinear.projection, OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fromFullIndices
- def
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.drawProductEquivline 628Source documentation
Drawing an occurrence and a slot at each position is the same finite sample space as drawing the occurrence tuple and the slot tuple separately.
def drawProductEquiv {P Id : Type*} : (P → Id × Fin 3) ≃ ((P → Id) × (P → Fin 3)) where … - theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fixed_active_rawDraw_expectline 638Source documentation
The raw occurrence/slot draw induces independent uniform occurrences and uniform active slots, with all unused slot choices marginalized exactly.
theorem fixed_active_rawDraw_expect {k t : ℕ} {Id : Type*} [Fintype Id] (a : ActiveSet k t) (f : (Fin k → Id) → (↥a.val → Fin 3) → ℝ) : (𝔼 draw : Fin k → Id × Fin 3, f (fun j => (draw j).1) (restrictIndices a.val (fun j => (draw j).2))) = 𝔼 occurrence : Fin k → Id, 𝔼 indices : ↥a.val → Fin 3, f occurrence indices := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.restrictIndices
- theorem
OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.occurrence_partner_expect_eq_rawDrawline 667Source documentation
The actual raw draw, including indices outside the active set, agrees with the occurrence-then-partner experiment for every real test function.
theorem occurrence_partner_expect_eq_rawDraw (k t : ℕ) {Id : Type*} [Fintype Id] (f : (Fin k → Id) → Partner k t → ℝ) : (𝔼 occurrence : Fin k → Id, 𝔼 p : Partner k t, f occurrence p) = 𝔼 a : ActiveSet k t, 𝔼 draw : Fin k → Id × Fin 3, f (fun j => (draw j).1) (fromFullIndices a (fun j => (draw j).2)) := by …Mentions: OAI.UniqueGamesTheorem.Soundness.PartnerFullSampling.fromFullIndices
- def
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.sourcePrecomposeEquivline 699 - theorem
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.uniformMean_sourcePrecomposeline 716 - theorem
OAI.UniqueGamesTheorem.Soundness.ActualMapComparison.actual_partner_expectation_quarter_equivline 727 - def
OAI.UniqueGamesTheorem.Soundness.UniformPartition.meanline 766 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.mean_equivline 769 - def
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSumline 774 - def
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSizeline 778 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSize_eq_cardline 781 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.sum_fiberSumline 789 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSize_mulline 798 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSize_posline 807 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiberSize_mul_conditionalline 816 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.total_meanline 826 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.mean_monoline 845 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.mean_le_partition_boundline 849 - theorem
OAI.UniqueGamesTheorem.Soundness.UniformPartition.fiber_conditional_eq_subtype_meanline 859