Download data/lean/OAI/Analysis/FiniteFactor/Coupling/BlockLimit.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.85 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FiniteFactor/Coupling/BlockLimit.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/FiniteFactor/Coupling/BlockLimit.lean
-
curl -L -o BlockLimit.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FiniteFactor/Coupling/BlockLimit.lean
5.85 kB
| import OAI.Analysis.FiniteFactor.Coupling.Limit | |
| import OAI.Analysis.FiniteFactor.Coupling.Infinite | |
| namespace OAI | |
| namespace FiniteFactor | |
| open MeasureTheory Filter Finset | |
| open scoped Topology ENNReal | |
| noncomputable section | |
| namespace CouplingParameters | |
| /-- The source coordinates, retaining the block and the position in that block. -/ | |
| abbrev BlockCoordinate (m : β β β) := Ξ£ s : β, Fin (m s) | |
| def blockPrefix (m : β β β) (n : β) : Finset (BlockCoordinate m) := | |
| (Finset.range n).sigma (fun _ => Finset.univ) | |
| theorem mem_blockPrefix (m : β β β) (n : β) (i : BlockCoordinate m) : | |
| i β blockPrefix m n β i.1 < n := by simp [blockPrefix] | |
| theorem blockPrefix_mono (m : β β β) : Monotone (blockPrefix m) := by | |
| intro n k hnk i hi | |
| exact (mem_blockPrefix m k i).2 (lt_of_lt_of_le ((mem_blockPrefix m n i).1 hi) hnk) | |
| theorem blockPrefix_cover (m : β β β) (J : Finset (BlockCoordinate m)) : | |
| β n, J β blockPrefix m n := by | |
| refine β¨J.sup (fun i => i.1) + 1, fun i hi => ?_β© | |
| exact (mem_blockPrefix m _ i).2 (Nat.lt_succ_of_le (Finset.le_sup (f := fun i => i.1) hi)) | |
| theorem blockPrefix_energy (p : β β CouplingParameters) (m : β β β) | |
| (hm : β s, (p s).m = (m s : β)) (j : β) | |
| (htag : β s, (p s).tagged = decide (s=j)) | |
| (hΞΊ : Summable (fun s => (p s).kappa^2)) | |
| (right : BlockCoordinate m β Bool) (n : β) : | |
| (β« x, prefixDensity (fun i : BlockCoordinate m => p i.1) right (blockPrefix m n) x ^ 2 | |
| βMeasure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)) β€ | |
| Real.exp (20*(2*(β' s, (p s).kappa^2)+1)) := by | |
| apply (prefixDensity_energy _ right _).trans | |
| apply Real.exp_le_exp.mpr | |
| have heq : (β i β blockPrefix m n, 20*(2*(p i.1).kappa^2/(p i.1).m + (p i.1).tagMass)) = | |
| 20 * β s β Finset.range n, (p s).m * (2*(p s).kappa^2/(p s).m + (p s).tagMass) := by | |
| rw [blockPrefix, Finset.sum_sigma] | |
| simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] | |
| rw [Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro s _ | |
| rw [hm s] | |
| ring | |
| rw [heq] | |
| exact mul_le_mul_of_nonneg_left (uniform_block_budget p j htag hΞΊ (Finset.range n)) (by norm_num) | |
| theorem infinite_block_source_density (p : β β CouplingParameters) (m : β β β) | |
| (hm : β s, (p s).m = (m s : β)) (j : β) | |
| (htag : β s, (p s).tagged = decide (s=j)) | |
| (hΞΊ : β s, (p s).kappa = sourceKappa s) (right : BlockCoordinate m β Bool) : | |
| β g : (BlockCoordinate m β β) β β, | |
| MemLp g 2 (Measure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)) β§ | |
| (βα΅ x βMeasure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure), 0 β€ g x) β§ | |
| (β« x, g x ^ 2 βMeasure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)) β€ | |
| Real.exp (20*(2*(β' s, sourceKappa s ^ 2)+1)) β§ | |
| Measure.infinitePi (fun i : BlockCoordinate m => (p i.1).selectedLaw true (right i)) = | |
| (Measure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)).withDensity | |
| (fun x => ENNReal.ofReal (g x)) := by | |
| apply infiniteEndpoint_density_of_prefix_bound _ right (blockPrefix m) | |
| (blockPrefix_mono m) (blockPrefix_cover m) | |
| intro n | |
| have hs : Summable (fun s => (p s).kappa^2) := by simpa only [hΞΊ] using sourceKappa_sq_summable | |
| simpa only [hΞΊ] using blockPrefix_energy p m hm j htag hs right n | |
| /-- Actual augmented law on the block-indexed coordinates. -/ | |
| def blockProductCoupling (p : β β CouplingParameters) (m : β β β) : | |
| Measure (BlockCoordinate m β Fin 6 Γ (β Γ β)) := | |
| Measure.infinitePi (fun i => (p i.1).labelledCoupling) | |
| instance blockProductCoupling_probability (p : β β CouplingParameters) (m : β β β) : | |
| IsProbabilityMeasure (blockProductCoupling p m) := by unfold blockProductCoupling; infer_instance | |
| def blockProductEndpoint {m : β β β} (right : BlockCoordinate m β Bool) | |
| (Ο : BlockCoordinate m β Fin 6 Γ (β Γ β)) (i : BlockCoordinate m) : β := | |
| endpoint (right i) (Ο i).2 | |
| theorem blockProductEndpoint_law (p : β β CouplingParameters) (m : β β β) | |
| (right : BlockCoordinate m β Bool) : | |
| (blockProductCoupling p m).map (blockProductEndpoint right) = | |
| Measure.infinitePi (fun i : BlockCoordinate m => (p i.1).selectedLaw true (right i)) := by | |
| unfold blockProductCoupling blockProductEndpoint | |
| rw [Measure.infinitePi_map_pi _ (f := fun (i : BlockCoordinate m) (z : Fin 6 Γ (β Γ β)) => endpoint (right i) z.2) | |
| (fun i => (endpoint_measurable (right i)).comp measurable_snd)] | |
| simp_rw [labelled_endpoint_density] | |
| rfl | |
| /-- The density belongs to the actual law of the selected endpoint map, rather | |
| than only to an abstract measure with matching finite moments. -/ | |
| theorem blockProductEndpoint_L2_density (p : β β CouplingParameters) (m : β β β) | |
| (hm : β s, (p s).m = (m s : β)) (j : β) | |
| (htag : β s, (p s).tagged = decide (s=j)) | |
| (hΞΊ : β s, (p s).kappa = sourceKappa s) (right : BlockCoordinate m β Bool) : | |
| β g : (BlockCoordinate m β β) β β, | |
| MemLp g 2 (Measure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)) β§ | |
| (βα΅ x βMeasure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure), 0 β€ g x) β§ | |
| (β« x, g x ^ 2 βMeasure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)) β€ | |
| Real.exp (20*(2*(β' s, sourceKappa s ^ 2)+1)) β§ | |
| (blockProductCoupling p m).map (blockProductEndpoint right) = | |
| (Measure.infinitePi (fun _ : BlockCoordinate m => unitIntervalMeasure)).withDensity | |
| (fun x => ENNReal.ofReal (g x)) := by | |
| rw [blockProductEndpoint_law] | |
| exact infinite_block_source_density p m hm j htag hΞΊ right | |
| end CouplingParameters | |
| end | |
| end FiniteFactor | |
| end OAI | |