Download data/lean/OAI/Probability/Perceptron/Control/FreshControl.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/Perceptron/Control/FreshControl.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/Perceptron/Control/FreshControl.lean
-
curl -L -o FreshControl.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/Perceptron/Control/FreshControl.lean
5.2 kB
| import Mathlib | |
| import OAI.Probability.Perceptron.Variational.QuantileReference | |
| import OAI.Probability.Perceptron.Variational.QuantileLimit | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter Set | |
| open scoped Topology ENNReal NNReal BigOperators BoundedContinuousFunction | |
| namespace SphericalPerceptronFreeEnergy | |
| instance compactPositivePairLaw_fst_isProbability | |
| (Ξ½ : ProbabilityMeasure (CompactArray CompactJointOverlap)) : | |
| IsProbabilityMeasure ((compactPositivePairLaw Ξ½).map Prod.fst) := | |
| inferInstance | |
| lemma compactPositivePairLaw_spin_quantile | |
| (Ξ½ : ProbabilityMeasure (CompactArray CompactJointOverlap)) | |
| (hn : βα΅ Q β(Ξ½ : Measure (CompactArray CompactJointOverlap)), 0β€(Q 0 1).1.val) : | |
| (Ξ½ : Measure (CompactArray CompactJointOverlap)).map (fun Q => (Q 0 1).1)= | |
| (quantileSpinLaw (boundedQuantile ((compactPositivePairLaw Ξ½).map Prod.fst)) | |
| (boundedQuantile_measurable _) : Measure CompactOverlap) := by | |
| have : IsProbabilityMeasure ((compactPositivePairLaw Ξ½).map Prod.fst) := | |
| inferInstance | |
| change _=timeLaw.map (timeSpin β boundedQuantile ((compactPositivePairLaw Ξ½).map Prod.fst)) | |
| rw [βMeasure.map_map timeSpin_continuous.measurable (boundedQuantile_measurable _), | |
| timeLaw_eq_volume,boundedQuantile_law] | |
| unfold compactPositivePairLaw | |
| rw [Measure.map_map (f := fun Q : CompactArray CompactJointOverlap => compactPositivePair (Q 0 1)) | |
| measurable_fst (by exact compactPositivePair_measurable.comp (by fun_prop))] | |
| rw [Measure.map_map timeSpin_continuous.measurable | |
| (show Measurable (Prod.fst β fun Q : CompactArray CompactJointOverlap => compactPositivePair (Q 0 1)) from | |
| measurable_fst.comp (compactPositivePair_measurable.comp (by fun_prop)))] | |
| apply Measure.map_congr | |
| filter_upwards [hn] with Q hQ | |
| apply Subtype.ext | |
| change (Q 0 1).1.val=max 0 (Q 0 1).1.val | |
| exact (max_eq_right hQ).symm | |
| theorem compactGG_freshLog_control (Ξ½ : ProbabilityMeasure (CompactArray CompactJointOverlap)) | |
| (hGG : β (r : β) (i : Fin r) (G : CompactBlock CompactJointOverlap r βα΅ β) | |
| (a : CompactJointOverlap βα΅ β), compactGGDefect Ξ½ r i G a=0) | |
| (hgeo : βα΅ Q β(Ξ½ : Measure (CompactArray CompactJointOverlap)), CompactSpinGeometry Q) | |
| (hn : βα΅ Q β(Ξ½ : Measure (CompactArray CompactJointOverlap)), 0β€(Q 0 1).1.val) | |
| (g : Jet3) (Ξ· : ProbabilityMeasure (FreshPartitionRange g.f)) | |
| (hm : β r, (β« x, x.val^r β(Ξ· : Measure (FreshPartitionRange g.f)))= | |
| β« Q, freshReplicaArrayKernel (expBCF 1 g.f) r Q β(Ξ½ : Measure _)) | |
| (P : Measure BrownianPath) [IsProbabilityMeasure P] (hB : IsBrownianReal brownianEval P) : | |
| (β« x, Real.log x.val β(Ξ· : Measure (FreshPartitionRange g.f)))= | |
| controlValue P g.f (quantileTrial (boundedQuantile ((compactPositivePairLaw Ξ½).map Prod.fst))) := by | |
| obtain β¨Ο,ΞΎ,hG,hge,hp,hΞΎ,hlβ© := quantile_reference_exists | |
| (boundedQuantile ((compactPositivePairLaw Ξ½).map Prod.fst)) (boundedQuantile_monotone _) g P hB | |
| rw [freshLog_eq_of_pair_law Ξ½ Ο hGG hG hgeo hge | |
| ((compactPositivePairLaw_spin_quantile Ξ½ hn).trans hp.symm) g.f Ξ· ΞΎ hm hΞΎ] | |
| exact hl | |
| theorem source_contact_freshLog_control (k : β) (g : Jet3) (p d : β β β) (z : Fin k β β) | |
| (hz : StrictMono z) (hz0 : β i, 0<z i) (hz1 : β i, z i<1) | |
| (t : β β ββ₯0) (h : β β Fin (k+1) β β) | |
| (hh0 : β n l, 0β€h n l) (hh : β n, Monotone (h n)) | |
| (u : (n : β) β Fin (n+1) β β) | |
| (hu : β n, u n β Icc (fun _ => 1) (fun _ => 2)) | |
| (hmin : β n, IsMinOn (fun v => quadraticBoxPenalty (sourcePenaltyWeight (n+1)) v- | |
| sourceExpectedPressure n k g.f (fun j => p j.val) (fun j => d j.val) (h n) z (t n) v) | |
| (Icc (fun _ : Fin (n+1) => 1) (fun _ => 2)) (u n)) | |
| {H T : β} (hH : 0β€H) (hhH : β n, h n 0β€H) (ht : β n, (t n:β)β€T) | |
| (hcover : β a b : β, 1β€a+b β β j, p j=a β§ d j=b) | |
| {Ξ½ : ProbabilityMeasure (CompactArray CompactJointOverlap)} {s : β β β} (hs : StrictMono s) | |
| (hlim : Tendsto (fun n => sourceGibbsArrayLaw (s n) k g.f | |
| (fun a => p a.val) (fun a => d a.val) (h (s n)) (u (s n)) z (t (s n))) atTop (π Ξ½)) | |
| (P : Measure BrownianPath) [IsProbabilityMeasure P] (hB : IsBrownianReal brownianEval P) : | |
| Tendsto (fun n => sourceFreshLog (s n) k g.f (fun a => p a.val) (fun a => d a.val) | |
| (h (s n)) (u (s n)) z (t (s n))) atTop | |
| (π (controlValue P g.f (quantileTrial (boundedQuantile ((compactPositivePairLaw Ξ½).map Prod.fst))))) := by | |
| obtain β¨Ξ·,hΞ·,hm,hlβ© := sourceFreshLog_tendsto k g.f (fun _ a => p a.val) (fun _ a => d a.val) | |
| h hh0 hh u z t s hlim | |
| have hGG := source_contact_limit_joint_gg k g.f p d z hz hz0 hz1 t h hh0 hh u hu hmin | |
| hH hhH ht hs hlim hcover | |
| have hgeo := source_contact_limit_spin_geometry k g.f p d z hz hz0 hz1 t h hh0 hh u hu hmin | |
| hH hhH ht hcover hs hlim | |
| have hn := compact_spin_nonnegative Ξ½ (compactRealLaw_gg Ξ½ hGG) | |
| (sourceGibbsArray_limit_gram k g.f (fun _ a => p a.val) (fun _ a => d a.val) h u z t s hlim).1 | |
| rwa [compactGG_freshLog_control Ξ½ hGG hgeo hn g Ξ· hm P hB] at hl | |
| end SphericalPerceptronFreeEnergy | |
| end | |
| end OAI | |