Download data/lean/OAI/Combinatorics/ExpectationThreshold/SelectorTruncationDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/ExpectationThreshold/SelectorTruncationDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/ExpectationThreshold/SelectorTruncationDefinitions.lean
-
curl -L -o SelectorTruncationDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/ExpectationThreshold/SelectorTruncationDefinitions.lean
1.74 kB
| import Mathlib.Basic.Real.Basic | |
| import Mathlib.Data.Fintype.Basic | |
| import Mathlib.Algebra.BigOperators.Ring.Finset | |
| namespace OAI | |
| /-! | |
| # Finite weighted truncation | |
| The heavy set uses a strict cutoff. Weights equal to the cutoff are already | |
| saturated when the cutoff increases, as required by the maximal truncation | |
| argument. | |
| -/ | |
| namespace TalagrandThreshold.Selector | |
| open scoped BigOperators | |
| variable {Ξ± : Type*} [Fintype Ξ±] [DecidableEq Ξ±] | |
| /-- The points whose weight is strictly above the cutoff. -/ | |
| noncomputable def heavySet (w : Ξ± β β) (u : β) : Finset Ξ± := by | |
| classical | |
| exact Finset.univ.filter (fun x => u < w x) | |
| /-- The excess mass after every coordinate is truncated at the same cutoff. -/ | |
| noncomputable def truncatedExcess (w : Ξ± β β) (A : Finset Ξ±) (d u : β) : β := | |
| β x, min (w x) u * ((if x β A then 1 else 0) - (1 - d)) | |
| /-- An admissible cutoff includes all heavy points and meets the truncated | |
| weighted-excess test. -/ | |
| def Admissible (w : Ξ± β β) (A : Finset Ξ±) (m d u : β) : Prop := | |
| 0 β€ u β§ u β€ 1 β§ (β x, u < w x β x β A) β§ | |
| m * u β€ truncatedExcess w A d u | |
| omit [DecidableEq Ξ±] in | |
| @[simp] theorem mem_heavySet {w : Ξ± β β} {u : β} {x : Ξ±} : | |
| x β heavySet w u β u < w x := by | |
| classical | |
| simp [heavySet] | |
| theorem Admissible.heavy_subset {w : Ξ± β β} {A : Finset Ξ±} {m d u : β} | |
| (hu : Admissible w A m d u) : heavySet w u β A := by | |
| intro x hx | |
| exact hu.2.2.1 x (mem_heavySet.mp hx) | |
| theorem Admissible.outside_le {w : Ξ± β β} {A : Finset Ξ±} {m d u : β} | |
| (hu : Admissible w A m d u) {x : Ξ±} (hx : x β A) : w x β€ u := by | |
| exact le_of_not_gt (fun h => hx (hu.2.2.1 x h)) | |
| end TalagrandThreshold.Selector | |
| end OAI | |