introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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