Download data/lean/OAI/Probability/GaussianReplacement/HybridModel.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.1 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GaussianReplacement/HybridModel.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/GaussianReplacement/HybridModel.lean
-
curl -L -o HybridModel.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GaussianReplacement/HybridModel.lean
4.1 kB
| import OAI.Probability.GaussianReplacement.Comparison | |
| namespace OAI | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace Topology | |
| noncomputable section | |
| namespace CurrentProjection | |
| open InnerProductSpace | |
| open InformationTheory | |
| def blockInput {d m : β} {U : Type*} (z : (Sphere d Γ U) Γ Rows m d) : | |
| U Γ (Rows m d Γ (Fin m β β)) := | |
| (z.1.2, z.2, label z.2 (z.1.1 : Vector d)) | |
| lemma measurable_blockInput {d m : β} {U : Type*} [MeasurableSpace U] : | |
| Measurable (blockInput (d:=d) (m:=m) (U:=U)) := by | |
| exact measurable_fst.snd.prodMk (measurable_snd.prodMk | |
| ((measurable_own_label (d:=d) (k:=m)).comp | |
| (measurable_snd.prodMk measurable_fst.fst))) | |
| def blockLaw {d m : β} {U V : Type*} [MeasurableSpace U] [MeasurableSpace V] | |
| (P : Measure (Sphere d Γ U)) | |
| (ΞΊ : Kernel (U Γ (Rows m d Γ (Fin m β β))) V) : | |
| Measure (((Sphere d Γ U) Γ Rows m d) Γ V) := | |
| (P.prod (gaussianRows m d)) ββ ΞΊ.comap blockInput measurable_blockInput | |
| instance blockLaw_probability {d m : β} {U V : Type*} | |
| [MeasurableSpace U] [MeasurableSpace V] | |
| (P : Measure (Sphere d Γ U)) [IsProbabilityMeasure P] | |
| (ΞΊ : Kernel (U Γ (Rows m d Γ (Fin m β β))) V) [IsMarkovKernel ΞΊ] : | |
| IsProbabilityMeasure (blockLaw P ΞΊ) := by | |
| unfold blockLaw | |
| infer_instance | |
| def endingSignalLaw {d m : β} {U V : Type*} | |
| [MeasurableSpace U] [MeasurableSpace V] | |
| (P : Measure (Sphere d Γ U)) | |
| (ΞΊ : Kernel (U Γ (Rows m d Γ (Fin m β β))) V) : Measure (Sphere d Γ V) := | |
| (blockLaw P ΞΊ).map (fun z => (z.1.1.1, z.2)) | |
| instance endingSignalLaw_probability {d m : β} {U V : Type*} | |
| [MeasurableSpace U] [MeasurableSpace V] | |
| (P : Measure (Sphere d Γ U)) [IsProbabilityMeasure P] | |
| (ΞΊ : Kernel (U Γ (Rows m d Γ (Fin m β β))) V) [IsMarkovKernel ΞΊ] : | |
| IsProbabilityMeasure (endingSignalLaw P ΞΊ) := by | |
| unfold endingSignalLaw | |
| infer_instance | |
| def freshInformation {d : β} {U : Type*} [MeasurableSpace U] [StandardBorelSpace U] | |
| (P : Measure (Sphere d Γ U)) [IsFiniteMeasure P] (k : β) : ββ₯0β := | |
| exposedInformation (P.prod (gaussianRows k d)) | |
| def hybridFirst (d : β) : β := (d+3)/4 | |
| def hybridLast (d : β) : β := d/2 | |
| def hybridCount (d : β) : β := hybridLast d - hybridFirst d + 1 | |
| def averagedFreshInformation {d : β} {U : Type*} | |
| [MeasurableSpace U] [StandardBorelSpace U] | |
| (P : Measure (Sphere d Γ U)) [IsFiniteMeasure P] : β := | |
| (β k β Finset.Icc (hybridFirst d) (hybridLast d), (freshInformation P k).toReal) / | |
| hybridCount d | |
| def HybridBlockMain : Prop := | |
| β (C C' : β) (dβ : β), 0 < C β§ 0 < C' β§ β d, dβ β€ d β | |
| β m, 1 β€ m β m β€ d/8 β | |
| β (U V : Type) [Fintype U] [Fintype V] | |
| [MeasurableSpace U] [MeasurableSpace V] | |
| [MeasurableSingletonClass U] [MeasurableSingletonClass V], | |
| β (P : Measure (Sphere d Γ U)) [IsProbabilityMeasure P], | |
| P.fst = uniformSphere d β | |
| β (ΞΊ : Kernel (U Γ (Rows m d Γ (Fin m β β))) V) [IsMarkovKernel ΞΊ], | |
| β (B : β), 0 β€ B β | |
| shannonEntropy (endingSignalLaw P ΞΊ).snd β€ ENNReal.ofReal B β | |
| averagedFreshInformation (endingSignalLaw P ΞΊ) - averagedFreshInformation P β€ | |
| C*m + (m:β) / hybridCount d * (C + B / (d/8:β)) + B / (d/32:β) β§ | |
| (B β€ (d:β)^2 β | |
| averagedFreshInformation (endingSignalLaw P ΞΊ) - averagedFreshInformation P β€ C'*d) | |
| def FiberBlockMain : Prop := | |
| β (K : β) (dβ : β), 0 < K β§ β d, dβ β€ d β | |
| β (U V : Type) [Fintype U] [Fintype V] | |
| [MeasurableSpace U] [MeasurableSpace V] | |
| [MeasurableSingletonClass U] [MeasurableSingletonClass V], | |
| β (P : Measure (Sphere dΓU)) [IsProbabilityMeasure P], | |
| P.fst = uniformSphere d β | |
| β (ΞΊ : Kernel (UΓ(Rows (d/10) dΓ(Fin (d/10)ββ))) V) [IsMarkovKernel ΞΊ], | |
| β N : β, 1 β€ N β Fintype.card V β€ N β Real.log N β€ (d:β)^2 β | |
| freshInformation (endingSignalLaw P ΞΊ) (d/3) β€ freshInformation P (d/3) + ENNReal.ofReal (K*d) | |
| end CurrentProjection | |
| end | |
| end OAI | |