cfahlgren1/math / lean /ComparatorChallenges /SensitivitySeparation.lean
cfahlgren1's picture
download
raw
1.29 kB
import Mathlib
namespace OAI
noncomputable section
open scoped Classical
namespace Paper320
def flip {I : Type} (x : I → Bool) (B : Finset I) : I → Bool :=
fun i => if i ∈ B then !(x i) else x i
def sensitivityAt {I : Type} [Fintype I]
(f : (I → Bool) → Bool) (x : I → Bool) : ℕ :=
(Finset.univ.filter fun i => f (flip x {i}) ≠ f x).card
def sensitivity {I : Type} [Fintype I] (f : (I → Bool) → Bool) : ℕ :=
Finset.univ.sup (sensitivityAt f)
def blockSensitivityAt {I : Type} [Fintype I]
(f : (I → Bool) → Bool) (x : I → Bool) : ℕ :=
Finset.univ.sup fun blocks : Finset (Finset I) =>
if (∀ A ∈ blocks, ∀ B ∈ blocks, A ≠ B → Disjoint A B) ∧
(∀ B ∈ blocks, B.Nonempty ∧ f (flip x B) ≠ f x)
then blocks.card else 0
def blockSensitivity {I : Type} [Fintype I] (f : (I → Bool) → Bool) : ℕ :=
Finset.univ.sup (blockSensitivityAt f)
theorem quantitative_separation (d : ℕ) (hd : 1 ≤ d) :
∃ (n : ℕ) (f : (Fin n → Bool) → Bool),
0 < n ∧ f (fun _ => false) = false ∧
(∃ x y : Fin n → Bool, f x ≠ f y) ∧
(2 : ℝ) ^ d / (4 * ((d : ℝ) + 2) ^ 2) ≤
(blockSensitivity f : ℝ) / (sensitivity f : ℝ) ^ 2 := by
sorry
end Paper320
end
end OAI

Xet Storage Details

Size:
1.29 kB
·
Xet hash:
888ed54a9be53e17b6ab935c5c235c5262d2223b80624cec07ba1324d44e86c8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.