Download data/lean/OAI/Probability/DilutedSpin/CompleteShapeSelection.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.42 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/DilutedSpin/CompleteShapeSelection.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/DilutedSpin/CompleteShapeSelection.lean
-
curl -L -o CompleteShapeSelection.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/DilutedSpin/CompleteShapeSelection.lean
4.42 kB
| import OAI.Probability.DilutedSpin.ZeroShape | |
| namespace OAI | |
| section | |
| section | |
| namespace DilutedSpinGlass.UniversalDictionary | |
| open _root_.MeasureTheory _root_.OAI.MeasureTheory ProbabilityTheory HeterogeneousMarks PrescribedTree ConcreteReservoir Filter Set | |
| open scoped NNReal BigOperators Topology | |
| variable {L p : β} | |
| lemma physicalShape_zero (m : Fin (L+1) β β) | |
| (hm : β j, 0 < m j) (hmono : Monotone m) (hend : m (Fin.last L) = 1) | |
| (S : PrescribedTree (L+1)) (a : S.Leaf) | |
| (M : Model p) (C H : β) (N : β) (u : Spec LΓβ β β) | |
| (F : (Option (Fin 0) β Option (Fin 0) β β) β β) (spinAnchor : Bool) | |
| (f : (S.Leaf β FinitePath (Fin N β Spin) (L+1)) β β) | |
| {B : β} (hB : 0 β€ B) (hf : β x, |f x| β€ B) : | |
| physicalShapeCovariance m S a M C H N u F spinAnchor f = | |
| F (fun _ _ => L+1) * physicalCoefficient (weights L) prior m direction anchor | |
| S a M C H N u f (zeroSpec L spinAnchor) 0 := by | |
| exact shapeCovariance_zero (fun _ : Fin N => M.field.toMeasure) (bondLaw M N) | |
| (markLaw (weights L) N) (siteLaw N) (M.alpha*N) (scoreRate N) S a | |
| (KernelTower.terminalTower (fun _ : Fin N => false) FiniteLaw.uniform L) | |
| (Fin.cons 0 m) (physicalBase M C H N) | |
| (dictionaryFactor (observableAt direction N) (observableAt anchor N) u) | |
| (fun v x => readSpin (KernelTower.terminalState L x) v) F spinAnchor f | |
| (measurable_physicalBase M C H N) (fun j => (hm j).ne') | |
| (exponent_cons_monotone m (fun j => (hm j).le) hmono) | |
| (exponent_cons_nonneg m (fun j => (hm j).le)) (by simp) hend hB hf | |
| theorem complete_shape_selection (m : Fin (L+1) β β) | |
| (M : Model p) {C H c : β} (hC : 0 β€ C) (hH : 0 β€ H) (hc : 0 < c) | |
| (hΞΈ : βα΅ z βM.disorder.toMeasure, β Ο, |z.1 Ο| β€ C) | |
| (hh : βα΅ h βM.field.toMeasure, |h| β€ H) | |
| (hΞΈi : Integrable (fun z : InteractionSample p => βz.1β) M.disorder.toMeasure) | |
| (hhi : Integrable (fun h : β => |h|) M.field.toMeasure) | |
| (hm : β l, c β€ m l) (hmono : Monotone m) (hend : m (Fin.last L) = 1) | |
| {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| β (Ns : β β β) (us : β β Spec LΓβ β β), StrictMono Ns β§ | |
| (β n i, us n i β Icc (probeLow i.2) (probeHigh i.2)) β§ | |
| (β n, ConcreteReservoir.increment (weights L) prior m direction anchor M (Ns n) (us n) β€ | |
| liminf (pressure M) atTop+Ξ΅) β§ | |
| (β (S : PrescribedTree (L+1)) (a : S.Leaf) | |
| (f : (n : β) β (S.Leaf β FinitePath (Fin (Ns n+1) β Spin) (L+1)) β β) | |
| (B : β), 0 β€ B β (β n x, |f n x| β€ B) β | |
| β (k : β) (F : (Option (Fin k) β Option (Fin k) β β) β β) (spinAnchor : Bool), | |
| Tendsto (fun n => physicalShapeCovariance m S a M C H (Ns n+1) (us n) | |
| F spinAnchor (f n)) atTop (π 0)) := by | |
| obtain β¨Ns,us,hNs,hus,hinc,he,hcoefβ© := universal_analytic_selection m M hC hH hc | |
| hΞΈ hh hΞΈi hhi hm hmono hend hΞ΅ | |
| refine β¨Ns,us,hNs,hus,hinc,?_β© | |
| intro S a f B hB hf k F spinAnchor | |
| by_cases hk : k = 0 | |
| Β· subst k | |
| simp_rw [physicalShape_zero m (fun j => hc.trans_le (hm j)) hmono hend S a M C H _ _ | |
| F spinAnchor _ hB (hf _)] | |
| simpa using (hcoef S a f B hB hf (zeroSpec L spinAnchor) 0).const_mul (F (fun _ _ => L+1)) | |
| have hk' : 0 < k := Nat.pos_of_ne_zero hk | |
| simp_rw [physicalShape_expansion hk' m (fun j => hc.trans_le (hm j)) hmono hend | |
| S a M C H _ _ F spinAnchor _ hB (hf _)] | |
| have hh (r : β) (b c : Fin r β Option (Fin k)) (d : Fin r β Fin L) : | |
| Tendsto (fun n => physicalHistoryCovariance m S a M C H (Ns n+1) (us n) | |
| b c d spinAnchor (f n)) atTop (π 0) := by | |
| simp_rw [physicalHistory_polarization hk' m (fun j => hc.trans_le (hm j)) hmono hend | |
| S a M C H _ _ b c d spinAnchor _ hB (hf _)] | |
| have ht := tendsto_finsetSum (Finset.univ : Finset (Fin k β Bool)) | |
| (fun e _ => (hcoef S a f B hB hf (polarizedSpec hk' e b c d spinAnchor) k).const_mul | |
| (β j, Polarization.sign (e j))) | |
| simpa using ht.const_mul ((k:β)^k / 2^k) | |
| have ht := tendsto_finsetSum (Finset.univ : Finset (Finset (SharingIndex L (Option (Fin k))))) | |
| (fun s _ => (hh _ (fun j => (requirementMap s j).1) (fun j => (requirementMap s j).2.1) | |
| (fun j => (requirementMap s j).2.2)).const_mul | |
| (BooleanPolynomial.coefficient (fun y => F (splitFromProfile y)) s)) | |
| simpa using ht | |
| end DilutedSpinGlass.UniversalDictionary | |
| end | |
| end | |
| end OAI | |