OAI/Analysis/MetricEntropy/DirectionSampling.lean
16 declarations, 0 contain sorry, 0 declared as axioms
Counting and avoiding all disjoint zero-tuple witnesses
All ordered tuples are retained, including tuples with repeated indices.
The probability product estimate is applied only to lists whose distinct
tuple supports are pairwise disjoint. Their number is bounded by the exact
number of all ordered lists, u ^ (h * w).
- theorem
OAI.MetricEntropyDuality.DirectionSampling.prob_biUnion_leline 34Source documentation
The union bound for the actual normalized finite sample counts.
theorem prob_biUnion_le (s : Finset J) (events : J → Finset (U → E)) : prob (s.biUnion events) ≤ ∑ j ∈ s, prob (events j) := by … - theorem
OAI.MetricEntropyDuality.DirectionSampling.exists_not_mem_of_prob_lt_oneline 46Source documentation
Strictly fewer than all samples in an event leaves an actual sample outside it. Nonempty
Ealso covers an empty coordinate index type.theorem exists_not_mem_of_prob_lt_one (event : Finset (U → E)) (hevent : prob event < 1) : ∃ t : U → E, t ∉ event := by … - theorem
OAI.MetricEntropyDuality.DirectionSampling.tupleEvent_dependsOnline 65Source documentation
A repeated-index tuple event depends only on the distinct indices in its literal support.
theorem tupleEvent_dependsOn (bad : (Fin h → E) → Prop) (a : Fin h → U) : DependsOn (tupleSupport a) (tupleEvent bad a) := by …Mentions: OAI.MetricEntropyDuality.tupleSupport, OAI.MetricEntropyDuality.tupleEvent
- def
OAI.MetricEntropyDuality.DirectionSampling.badListEventline 74Source documentation
The event that every tuple in this particular list is bad.
def badListEvent (bad : (Fin h → E) → Prop) (L : Fin w → Fin h → U) : Finset (U → E) := … - theorem
OAI.MetricEntropyDuality.DirectionSampling.mem_badListEventline 79 - theorem
OAI.MetricEntropyDuality.DirectionSampling.prob_badListEvent_leline 87Source documentation
Product estimate proved from disjoint coordinate supports; no independence hypothesis is assumed.
theorem prob_badListEvent_le (bad : (Fin h → E) → Prop) (L : Fin w → Fin h → U) (hL : DisjointSupports L) (b : ℝ) (hbound : ∀ a : Fin h → U, prob (tupleEvent bad a) ≤ b) : prob (badListEvent bad L) ≤ b ^ w := …Mentions: OAI.MetricEntropyDuality.DisjointSupports, OAI.MetricEntropyDuality.tupleEvent, OAI.MetricEntropyDuality.DirectionSampling.badListEvent
- theorem
OAI.MetricEntropyDuality.DirectionSampling.card_witnessListsline 99Source documentation
All ordered witness lists, before imposing disjointness, are counted exactly. Repetition within any tuple remains allowed.
theorem card_witnessLists (u h w : ℕ) : Fintype.card (Fin w → Fin h → Fin u) = u ^ (h * w) := by … - def
OAI.MetricEntropyDuality.DirectionSampling.disjointListsline 104Source documentation
Only disjoint lists are used as bad-event witnesses.
def disjointLists (u h w : ℕ) : Finset (Fin w → Fin h → Fin u) := by …
- theorem
OAI.MetricEntropyDuality.DirectionSampling.mem_disjointListsline 108 - theorem
OAI.MetricEntropyDuality.DirectionSampling.card_disjointLists_leline 113 - def
OAI.MetricEntropyDuality.DirectionSampling.badSamplesline 127Source documentation
The actual union over forms and disjoint witness lists.
def badSamples (forms : Finset Z) (bad : Z → (Fin h → E) → Prop) : Finset (Fin u → E) := by … - theorem
OAI.MetricEntropyDuality.DirectionSampling.mem_badSamplesline 134 - theorem
OAI.MetricEntropyDuality.DirectionSampling.prob_badSamples_leline 144Source documentation
The counted union bound over the literal form set and every possible disjoint witness list.
theorem prob_badSamples_le (forms : Finset Z) (bad : Z → (Fin h → E) → Prop) (b : ℝ) (hb : 0 ≤ b) (hbound : ∀ z ∈ forms, ∀ a : Fin h → Fin u, prob (tupleEvent (bad z) a) ≤ b) : prob (badSamples (u := u) (w := w) forms bad) ≤ …Mentions: OAI.MetricEntropyDuality.tupleEvent, OAI.MetricEntropyDuality.DirectionSampling.badSamples
- theorem
OAI.MetricEntropyDuality.DirectionSampling.exists_sample_avoidingline 175Source documentation
A strict union budget produces one sample excluding every disjoint all-bad witness, simultaneously for every form in the actual finite set.
theorem exists_sample_avoiding (forms : Finset Z) (bad : Z → (Fin h → E) → Prop) (b : ℝ) (hb : 0 ≤ b) (hbound : ∀ z ∈ forms, ∀ a : Fin h → Fin u, prob (tupleEvent (bad z) a) ≤ b) (hbudget : (forms.card : ℝ) * (u : ℝ) ^ (h * w) * b ^ w < 1) : ∃ t : Fin u → E, ∀ z ∈ forms, ∀ L : Fin w → Fin h → Fin u, DisjointSupports L → ¬ ∀ j, bad z (fun i => t (L j i)) := by …Mentions: OAI.MetricEntropyDuality.tupleEvent, OAI.MetricEntropyDuality.DisjointSupports
- theorem
OAI.MetricEntropyDuality.DirectionSampling.prob_badSamples_le_field_budgetline 191Source documentation
The numerical bound used for degree-
hforms over a field ofpelements. Form counts and each repeated-tuple zero bound are explicit inputs, supplied by the actual form and polynomial constructions.theorem prob_badSamples_le_field_budget (forms : Finset Z) (bad : Z → (Fin h → E) → Prop) (p D : ℕ) (hcard : forms.card ≤ p ^ D) (hbound : ∀ z ∈ forms, ∀ a : Fin h → Fin u, prob (tupleEvent (bad z) a) ≤ (h : ℝ) / p) : prob (badSamples (u := u) (w := w) forms bad) ≤ …Mentions: OAI.MetricEntropyDuality.tupleEvent, OAI.MetricEntropyDuality.DirectionSampling.badSamples
- theorem
OAI.MetricEntropyDuality.DirectionSampling.exists_sample_avoiding_of_field_budgetline 204