File size: 2,366 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 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
|