Download data/lean/OAI/Combinatorics/ExpectationThreshold/Model.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.37 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/ExpectationThreshold/Model.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/ExpectationThreshold/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/ExpectationThreshold/Model.lean
2.37 kB
| import Mathlib.Data.Fintype.Powerset | |
| import Mathlib.Data.Finset.Union | |
| import Mathlib.Basic.Real.Basic | |
| import Mathlib.Algebra.Order.Archimedean.Real.Basic | |
| import Mathlib.Algebra.Order.BigOperators.Group.Finset | |
| import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise | |
| namespace OAI | |
| /-! | |
| # Containment covers and expectation thresholds | |
| Both costs use budget one half. Fractional coefficients are indexed by every | |
| subset of the ground set, without a support-size bound. The empty subset is | |
| included, and ordinary natural powers give `p^0 = 1`, including at zero. | |
| The thresholds are real suprema of feasible densities in the closed unit interval. | |
| -/ | |
| namespace TalagrandThreshold | |
| open scoped BigOperators | |
| abbrev Family (Ξ± : Type*) := Finset (Finset Ξ±) | |
| variable {Ξ± : Type*} [Fintype Ξ±] [DecidableEq Ξ±] | |
| noncomputable section | |
| def cost (p : β) (G : Family Ξ±) : β := β S β G, p ^ S.card | |
| def Covers (G F : Family Ξ±) : Prop := β H β F, β S β G, S β H | |
| def Small (p : β) (F : Family Ξ±) : Prop := | |
| β G : Family Ξ±, Covers G F β§ cost p G β€ 1 / 2 | |
| def fracCost (p : β) (g : Finset Ξ± β β) : β := | |
| β S : Finset Ξ±, g S * p ^ S.card | |
| def FractionalCover (F : Family Ξ±) (g : Finset Ξ± β β) : Prop := | |
| (β S, 0 β€ g S β§ g S β€ 1) β§ | |
| β H β F, 1 β€ β S β H.powerset, g S | |
| def FractionalSmall (p : β) (F : Family Ξ±) : Prop := | |
| β g : Finset Ξ± β β, FractionalCover F g β§ fracCost p g β€ 1 / 2 | |
| def Increasing (F : Family Ξ±) : Prop := | |
| β H β F, β K : Finset Ξ±, H β K β K β F | |
| def integralFeasible (F : Family Ξ±) : Set β := | |
| {p | 0 β€ p β§ p β€ 1 β§ Small p F} | |
| def fractionalFeasible (F : Family Ξ±) : Set β := | |
| {p | 0 β€ p β§ p β€ 1 β§ FractionalSmall p F} | |
| /-- The integral expectation threshold. -/ | |
| def q (F : Family Ξ±) : β := sSup (integralFeasible F) | |
| /-- The fractional expectation threshold. -/ | |
| def qf (F : Family Ξ±) : β := sSup (fractionalFeasible F) | |
| omit [Fintype Ξ±] [DecidableEq Ξ±] in | |
| @[simp] theorem mem_integralFeasible {F : Family Ξ±} {p : β} : | |
| p β integralFeasible F β 0 β€ p β§ p β€ 1 β§ Small p F := Iff.rfl | |
| omit [DecidableEq Ξ±] in | |
| @[simp] theorem mem_fractionalFeasible {F : Family Ξ±} {p : β} : | |
| p β fractionalFeasible F β 0 β€ p β§ p β€ 1 β§ FractionalSmall p F := Iff.rfl | |
| end | |
| end TalagrandThreshold | |
| end OAI | |