Download data/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableFutureMap.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableFutureMap.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableFutureMap.lean
-
curl -L -o CountableFutureMap.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/DukePrimeDegree/Entropy/CountableFutureMap.lean
6.08 kB
| import OAI.NumberTheory.DukePrimeDegree.Entropy.CountableFutureSigma | |
| import Mathlib.Probability.Kernel.MeasurableLIntegral | |
| namespace OAI | |
| /-! # The entire future as a measurable sequence | |
| This representation makes future-measurable events constant on each | |
| complete future fiber. It is used to restrict local disintegrations to | |
| saturated events when gluing them. | |
| -/ | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Set | |
| open scoped ENNReal | |
| namespace DukePrimeDegree | |
| open PrimeDegreePackets | |
| def entireFutureObservation {Y : Type*} (T : Y β Y) (Q : Y β β) | |
| (y : Y) : β β β := fun k => Q (T^[k+1] y) | |
| lemma entireFutureObservation_measurable {Y : Type*} [MeasurableSpace Y] | |
| {T : Y β Y} (hT : Measurable T) {Q : Y β β} (hQ : Measurable Q) : | |
| Measurable (entireFutureObservation T Q) := | |
| measurable_pi_iff.mpr fun k => hQ.comp (hT.iterate (k+1)) | |
| lemma countableFutureSigma_eq_comap {Y : Type*} (T : Y β Y) (Q : Y β β) : | |
| (β¨ k : β, observationSigma (fun y => Q (T^[k+1] y))) = | |
| MeasurableSpace.comap (entireFutureObservation T Q) | |
| (inferInstance : MeasurableSpace (β β β)) := by | |
| exact (MeasurableSpace.comap_process_pi | |
| (fun k : β => fun y : Y => Q (T^[k+1] y))).symm | |
| lemma transverseCountableFutureSigma_eq_comap {S V Y : Type*} | |
| [MeasurableSpace S] [MeasurableSpace V] | |
| (T : Y β Y) (Q : Y β β) (F : S Γ V β Y) : | |
| (β¨ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))) = | |
| MeasurableSpace.comap (fun z => (z.1, entireFutureObservation T Q (F z))) | |
| (inferInstance : MeasurableSpace (S Γ (β β β))) := by | |
| rw [transverseCountableFutureSigma_eq_sup] | |
| calc | |
| _ = MeasurableSpace.comap Prod.fst (inferInstance : MeasurableSpace S) β | |
| MeasurableSpace.comap (entireFutureObservation T Q β F) | |
| (inferInstance : MeasurableSpace (β β β)) := by | |
| rw [countableFutureSigma_eq_comap, MeasurableSpace.comap_comp] | |
| _ = _ := (MeasurableSpace.comap_prodMk | |
| (Prod.fst : S Γ V β S) (entireFutureObservation T Q β F)).symm | |
| lemma countableFutureFiber_eq_of_mem {S V Y : Type*} | |
| (T : Y β Y) (Q : Y β β) (F : S Γ V β Y) | |
| (z : S Γ V) {u : V} (hu : u β countableFutureFiber T Q F z) : | |
| countableFutureFiber T Q F (z.1,u) = countableFutureFiber T Q F z := by | |
| ext v | |
| constructor | |
| Β· intro hv k | |
| exact (hv k).trans (hu k) | |
| Β· intro hv k | |
| exact (hv k).trans (hu k).symm | |
| /-- Every event in the complete transverse-future sigma algebra is | |
| constant along its future fibers, with no exceptional set needed. -/ | |
| theorem mem_future_event_iff {S V Y : Type*} | |
| [MeasurableSpace S] [MeasurableSpace V] | |
| (T : Y β Y) (Q : Y β β) (F : S Γ V β Y) | |
| {E : Set (S Γ V)} | |
| (hE : MeasurableSet[β¨ m, transverseLabelSigma | |
| (fun z => countableFutureCode T Q m (F z))] E) | |
| (z : S Γ V) {u : V} (hu : u β countableFutureFiber T Q F z) : | |
| (z.1,u) β E β z β E := by | |
| rw [transverseCountableFutureSigma_eq_comap] at hE | |
| obtain β¨A, _hA, rflβ© := hE | |
| change (z.1, entireFutureObservation T Q (F (z.1,u))) β A β | |
| (z.1, entireFutureObservation T Q (F z)) β A | |
| have he : entireFutureObservation T Q (F (z.1,u)) = | |
| entireFutureObservation T Q (F z) := funext hu | |
| rw [he] | |
| /-- Fiber masses of a kernel depending only on the transverse coordinate | |
| are measurable in the transverse-future sigma algebra itself. Thus mass | |
| conditions used to select boxes really are future events. -/ | |
| theorem measurable_countableFuture_mass {S V Y : Type*} | |
| [MeasurableSpace S] [MeasurableSpace V] [MeasurableSpace Y] | |
| (ΞΊ : Kernel S V) [IsSFiniteKernel ΞΊ] | |
| {T : Y β Y} (hT : Measurable T) {Q : Y β β} (hQ : Measurable Q) | |
| {F : S Γ V β Y} (hF : Measurable F) | |
| (A : Set (S Γ V)) (hA : MeasurableSet A) : | |
| Measurable[β¨ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))] | |
| (fun z => ΞΊ z.1 ({t | (z.1,t) β A} β© countableFutureFiber T Q F z)) := by | |
| let q := entireFutureObservation T Q | |
| have hq : Measurable q := entireFutureObservation_measurable hT hQ | |
| have hrel : MeasurableSet {p : (S Γ (β β β)) Γ V | | |
| (p.1.1,p.2) β A β§ q (F (p.1.1,p.2)) = p.1.2} := | |
| (hA.preimage (measurable_fst.fst.prodMk measurable_snd)).inter | |
| (measurableSet_eq_fun | |
| (hq.comp (hF.comp (measurable_fst.fst.prodMk measurable_snd))) measurable_fst.snd) | |
| have H : Measurable (fun b : S Γ (β β β) => | |
| ΞΊ b.1 {t | (b.1,t) β A β§ q (F (b.1,t)) = b.2}) := | |
| Kernel.measurable_kernel_prodMk_left (ΞΊ := ΞΊ.prodMkRight (β β β)) hrel | |
| have hΞ· : Measurable[β¨ m, transverseLabelSigma | |
| (fun z => countableFutureCode T Q m (F z))] | |
| (fun z => (z.1,q (F z))) := by | |
| rw [transverseCountableFutureSigma_eq_comap] | |
| exact comap_measurable _ | |
| convert H.comp hΞ· using 1 | |
| funext z | |
| congr 1 | |
| ext t | |
| simp only [Set.mem_inter_iff, Set.mem_ofPred_eq, countableFutureFiber, | |
| q, entireFutureObservation, funext_iff] | |
| /-- The event that a complete future fiber has no mass outside a fixed | |
| time domain is measurable using only the transverse coordinate and the | |
| future name. -/ | |
| theorem measurableSet_future_mass_contained {S V Y : Type*} | |
| [MeasurableSpace S] [MeasurableSpace V] [MeasurableSpace Y] | |
| (ΞΊ : Kernel S V) [IsSFiniteKernel ΞΊ] | |
| {T : Y β Y} (hT : Measurable T) {Q : Y β β} (hQ : Measurable Q) | |
| {F : S Γ V β Y} (hF : Measurable F) | |
| (B : Set V) (hB : MeasurableSet B) : | |
| MeasurableSet[β¨ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))] | |
| {z | ΞΊ z.1 (countableFutureFiber T Q F z \ B) = 0} := by | |
| have hm := measurable_countableFuture_mass ΞΊ hT hQ hF | |
| (Prod.snd β»ΒΉ' BαΆ) (hB.compl.preimage measurable_snd) | |
| have he := measurableSet_eq_fun hm (measurable_const (a := (0 : ββ₯0β))) | |
| change MeasurableSet[β¨ m, transverseLabelSigma (fun z => countableFutureCode T Q m (F z))] | |
| {z | ΞΊ z.1 (BαΆ β© countableFutureFiber T Q F z) = 0} at he | |
| simpa only [Set.sdiff_eq, Set.inter_comm] using he | |
| end DukePrimeDegree | |
| end | |
| end OAI | |