File size: 3,805 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import OAI.NumberTheory.DukePrimeDegree.Entropy.NeutralFiberNames

namespace OAI

/-! # Actual conditional measures on bilateral itinerary fibers -/

noncomputable section
open MeasureTheory ProbabilityTheory Set
open scoped BigOperators

namespace DukePrimeDegree
open PrimeDegreePackets

/-- Disintegration of the graph of a measurable map is concentrated on
the corresponding fibers. -/
theorem ae_graph_condKernel_fiber
    {S Y : Type*} [MeasurableSpace S] [MeasurableEq S]
    [MeasurableSpace Y] [StandardBorelSpace Y] [Nonempty Y]
    (ΞΌ : Measure Y) [IsProbabilityMeasure ΞΌ]
    (f : Y β†’ S) (hf : Measurable f) :
    let ρ := μ.map (fun y => (f y,y))
    βˆ€α΅ s βˆ‚Ο.fst, βˆ€α΅ y βˆ‚Ο.condKernel s, f y=s := by
  let ρ := μ.map (fun y => (f y,y))
  have hg : βˆ€α΅ z βˆ‚Ο, f z.2=z.1 := by
    apply (ae_map_iff (hf.prodMk measurable_id).aemeasurable
      (measurableSet_eq_fun (hf.comp measurable_snd) measurable_fst)).mpr
    exact Filter.Eventually.of_forall fun _ => rfl
  have hcomp : βˆ€α΅ z βˆ‚Ο.fst βŠ—β‚˜ ρ.condKernel, f z.2=z.1 := by
    rwa [Measure.disintegrate]
  exact Measure.ae_ae_of_ae_compProd hcomp

theorem ae_condDistrib_self_fiber
    {S Y : Type*} [MeasurableSpace S] [MeasurableEq S]
    [MeasurableSpace Y] [StandardBorelSpace Y] [Nonempty Y]
    (ΞΌ : Measure Y) [IsProbabilityMeasure ΞΌ]
    (f : Y β†’ S) (hf : Measurable f) :
    βˆ€α΅ s βˆ‚ΞΌ.map f, βˆ€α΅ y βˆ‚condDistrib id f ΞΌ s, f y=s := by
  have H := ae_graph_condKernel_fiber ΞΌ f hf
  change βˆ€α΅ s βˆ‚(ΞΌ.map (fun y => (f y,y))).fst,
    βˆ€α΅ y βˆ‚(ΞΌ.map (fun y => (f y,y))).condKernel s, f y=s at H
  have hm : (ΞΌ.map (fun y => (f y,y))).fst=ΞΌ.map f :=
    Measure.fst_map_prodMk hf measurable_id
  rw [hm] at H
  simpa only [condDistrib,id_eq] using H

def bilateralNameObservation {n : β„•}
    (ell : Fin n β†’ ℝ) (hell : βˆ‘ i, ell i=0) (Q : X n β†’ β„•)
    (x : X n) : (β„• β†’ β„•) Γ— (β„• β†’ β„•) :=
  (fun k => Q ((fun z => rightAction z (diagonalOneParameter ell hell (-1)))^[k] x),
   fun k => Q ((fun z => rightAction z (diagonalOneParameter ell hell 1))^[k] x))

theorem measurable_bilateralNameObservation {n : β„•}
    (ell : Fin n β†’ ℝ) (hell : βˆ‘ i, ell i=0)
    (Q : X n β†’ β„•) (hQ : Measurable Q) :
    Measurable (bilateralNameObservation ell hell Q) := by
  have hT (t : ℝ) : Measurable (fun z : X n =>
      rightAction z (diagonalOneParameter ell hell t)) :=
    (continuous_rightAction _).measurable
  exact (measurable_pi_iff.mpr fun k => hQ.comp ((hT (-1)).iterate k)).prodMk
    (measurable_pi_iff.mpr fun k => hQ.comp ((hT 1).iterate k))

theorem bilateralNameObservation_eq_iff {n : β„•}
    (ell : Fin n β†’ ℝ) (hell : βˆ‘ i, ell i=0)
    (Q : X n β†’ β„•) (x y : X n) :
    bilateralNameObservation ell hell Q y = bilateralNameObservation ell hell Q x ↔
      y ∈ bilateralNameFiber ell hell Q x := by
  simp only [bilateralNameObservation,Prod.mk.injEq,funext_iff,bilateralNameFiber,
    mem_ofPred_eq]

/-- Almost every conditional measure for the actual bilateral itinerary
law is supported on the geometric fiber of any representative. -/
theorem ae_bilateral_condKernel_fiber {n : β„•}
    (ell : Fin n β†’ ℝ) (hell : βˆ‘ i, ell i=0)
    (Q : X n β†’ β„•) (hQ : Measurable Q)
    (ΞΌ : Measure (X n)) [IsProbabilityMeasure ΞΌ] :
    let F := bilateralNameObservation ell hell Q
    let ρ := μ.map (fun x => (F x,x))
    βˆ€α΅ s βˆ‚Ο.fst, βˆ€ x, F x=s β†’
      βˆ€α΅ y βˆ‚Ο.condKernel s, y ∈ bilateralNameFiber ell hell Q x := by
  have h := ae_graph_condKernel_fiber ΞΌ _ (measurable_bilateralNameObservation ell hell Q hQ)
  filter_upwards [h] with s hs
  intro x hx
  filter_upwards [hs] with y hy
  exact (bilateralNameObservation_eq_iff ell hell Q x y).mp (hy.trans hx.symm)

end DukePrimeDegree

end

end OAI