File size: 2,440 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 | import OAI.NumberTheory.DukePrimeDegree.Entropy.CountableFutureInformation
import OAI.NumberTheory.DukePrimeDegree.Entropy.CountableObservationInformation
namespace OAI
/-! # Information of the countable present given its future
A binary recoding gives each individual conditional probability. Since
there are only countably many present labels, all of them hold together
outside one null set.
-/
noncomputable section
open MeasureTheory Set
namespace DukePrimeDegree
open PrimeDegreePackets
variable {S V Y : Type*} [MeasurableSpace S] [MeasurableSpace V]
[StandardBorelSpace V] [Nonempty V] [MeasurableSpace Y]
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
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 H
theorem 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
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)))
end DukePrimeDegree
end
end OAI
|