openAI-math-dataset / lean /OAI /NumberTheory /DukePrimeDegree /Entropy /CountableConditionalInformation.lean
Download lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableConditionalInformation.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.44 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableConditionalInformation.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableConditionalInformation.lean
-
curl -L -o CountableConditionalInformation.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableConditionalInformation.lean
2.44 kB
Lean 4 · 2
declarations statementsfull
theorem conditionalProbability_countablePresentFutureFiber
(ρ : Measure (S × V)) [IsFiniteMeasure ρ]
{Q : Y → ℕ} (hQ : Measurable Q) {T : Y → Y} (hT : Measurable T)
{F : S × V → Y} (hF : Measurable F)
(hpos : ∀ᵐ z ∂ρ, ρ.condKernel z.1 (countableFutureFiber T Q F z) ≠ 0) (a : ℕ) :
ρ[({z | Q (F z)=a}.indicator (fun _ => (1:ℝ))) |
⨆ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))] =ᵐ[ρ]
fun z => (ρ.condKernel z.1).real ({t | Q (F (z.1,t))=a} ∩ countableFutureFiber T Q F z) /
(ρ.condKernel z.1).real (countableFutureFiber T Q F z) := by proof · 6 lines
let P : Y → Fin 2 := fun y => if Q y = a then 0 else 1
have hP : Measurable P := measurable_const.piecewise
(hQ (measurableSet_singleton a)) measurable_const
have H := conditionalProbability_countableFutureFiber ρ hP hQ hT hF hpos (0 : Fin 2)
have he (y : Y) : P y = 0 ↔ Q y = a := by simp [P]
simpa only [he] using Htheorem conditionalInformation_countablePresentFutureFiber
(ρ : Measure (S × V)) [IsFiniteMeasure ρ]
{Q : Y → ℕ} (hQ : Measurable Q) {T : Y → Y} (hT : Measurable T)
{F : S × V → Y} (hF : Measurable F)
(hpos : ∀ᵐ z ∂ρ, ρ.condKernel z.1 (countableFutureFiber T Q F z) ≠ 0) :
conditionalInformation ρ (Q ∘ F)
(⨆ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))) =ᵐ[ρ]
fun z => -Real.log
((ρ.condKernel z.1).real ({t | Q (F (z.1,t))=Q (F z)} ∩ countableFutureFiber T Q F z) /
(ρ.condKernel z.1).real (countableFutureFiber T Q F z)) := by proof · 3 lines
filter_upwards [ae_all_iff.mpr (fun a =>
conditionalProbability_countablePresentFutureFiber ρ hQ hT hF hpos a)] with z hz
exact congrArg (-Real.log ·) (hz (Q (F z)))Outline