Download data/lean/OAI/Probability/ClassicalON/AmplitudePartition.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ClassicalON/AmplitudePartition.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/ClassicalON/AmplitudePartition.lean
-
curl -L -o AmplitudePartition.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/ClassicalON/AmplitudePartition.lean
5.08 kB
Lean 4 Β· 11
declarations fullstatements
| import OAI.Probability.ClassicalON.ProductFKG | |
| namespace OAI | |
| universe uE uV uX | |
| noncomputable section | |
| open MeasureTheory Set | |
| open scoped BigOperators | |
| namespace ClassicalON | |
| section | |
| variable {X : Type uX} {V : Type uV} {E : Type uE} [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] | |
| [BorelSpace X] [Fintype E] (ΞΌ : Measure X) [IsProbabilityMeasure ΞΌ] | |
| (T : E β X β β) (left right : E β V) (b : E β β) | |
| def amplitudeCoupling (a : V β β) (e : E) : β := b e*a (left e)*a (right e) | |
| def amplitudePartition (a : V β β) : β := | |
| β« x,Real.exp (edgeHamiltonian T (amplitudeCoupling left right b a) x) βΞΌ | |
| def amplitudeSlope (a d : V β β) (t : β) (e : E) : β := | |
| b e*(d (left e)*(a (right e)+t*d (right e))+(a (left e)+t*d (left e))*d (right e)) | |
| omit [CompactSpace X] [MeasurableSpace X] [BorelSpace X] in | |
| theorem continuous_amplitudeHamiltonian (hT : β e,Continuous (T e)) : | |
| Continuous (fun p : (V β β)ΓX => edgeHamiltonian T | |
| (amplitudeCoupling left right b p.1) p.2) := by | |
| unfold edgeHamiltonian amplitudeCoupling | |
| fun_prop | |
| theorem amplitudePartition_pos (hT : β e,Continuous (T e)) (a : V β β) : | |
| 0<amplitudePartition ΞΌ T left right b a := by | |
| exact compact_integral_pos (continuous_edgeHamiltonian T hT _).rexp (fun x => Real.exp_pos _) | |
| theorem continuous_amplitudePartition [Fintype V] (hT : β e,Continuous (T e)) : | |
| Continuous (amplitudePartition ΞΌ T left right b) := by | |
| exact compact_parametric_integral _ (continuous_amplitudeHamiltonian T left right b hT).rexp | |
| omit [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] in | |
| theorem amplitudeHamiltonian_direction_derivative (a d : V β β) (t : β) (x : X) : | |
| HasDerivAt (fun u => edgeHamiltonian T | |
| (amplitudeCoupling left right b (fun v => a v+u*d v)) x) | |
| (edgeHamiltonian T (amplitudeSlope left right b a d t) x) t := by | |
| unfold edgeHamiltonian | |
| apply HasDerivAt.fun_sum | |
| intro e _ | |
| have hl := ((hasDerivAt_id t).mul_const (d (left e))).const_add (a (left e)) | |
| have hr := ((hasDerivAt_id t).mul_const (d (right e))).const_add (a (right e)) | |
| exact (((hl.const_mul (b e)).mul hr).mul_const (T e x)).congr_deriv (by | |
| simp only [id_eq,amplitudeSlope]; ring) | |
| theorem log_amplitudePartition_direction_derivative (hT : β e,Continuous (T e)) | |
| (a d : V β β) (t : β) : | |
| HasDerivAt (fun u => Real.log (amplitudePartition ΞΌ T left right b (fun v => a v+u*d v))) | |
| (β e,amplitudeSlope left right b a d t e* | |
| edgeMean ΞΌ T (amplitudeCoupling left right b (fun v => a v+t*d v)) (T e)) t := by | |
| let H := fun u x => edgeHamiltonian T | |
| (amplitudeCoupling left right b (fun v => a v+u*d v)) x | |
| let A := fun u x => edgeHamiltonian T (amplitudeSlope left right b a d u) x | |
| have hc : Continuous (fun p : βΓX => H p.1 p.2) := by | |
| unfold H edgeHamiltonian amplitudeCoupling; fun_prop | |
| have ha : Continuous (fun p : βΓX => A p.1 p.2) := by | |
| unfold A edgeHamiltonian amplitudeSlope; fun_prop | |
| have hI := hasDerivAt_integral_compact ΞΌ (fun u x => Real.exp (H u x)) | |
| (fun u x => Real.exp (H u x)*A u x) hc.rexp (hc.rexp.mul ha) (fun u x => | |
| (amplitudeHamiltonian_direction_derivative T left right b a d u x).exp) t | |
| have hz := amplitudePartition_pos ΞΌ T left right b hT (fun v => a v+t*d v) | |
| apply (hI.log hz.ne').congr_deriv | |
| change exponentialMean ΞΌ (H t) (A t)=_ | |
| unfold A edgeHamiltonian | |
| rw [exponentialMean_sum ΞΌ (continuous_edgeHamiltonian T hT _) _ (fun e => by fun_prop)] | |
| simp only [exponentialMean_const_mul,edgeMean] | |
| omit [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] [Fintype E] in | |
| theorem amplitudeCoupling_mono (hb : β e,0β€b e) {a c : V β β} | |
| (ha : β v,0β€a v) (hac : β v,a vβ€c v) (e : E) : | |
| amplitudeCoupling left right b a eβ€amplitudeCoupling left right b c e := by | |
| unfold amplitudeCoupling | |
| exact mul_le_mul (mul_le_mul_of_nonneg_left (hac _) (hb e)) (hac _) | |
| (ha _) (mul_nonneg (hb e) ((ha _).trans (hac _))) | |
| omit [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] [Fintype E] in | |
| theorem amplitudeSlope_nonneg (hb : β e,0β€b e) {a d : V β β} | |
| (ha : β v,0β€a v) (hd : β v,0β€d v) {t : β} (ht : 0β€t) (e : E) : | |
| 0β€amplitudeSlope left right b a d t e := by | |
| unfold amplitudeSlope | |
| exact mul_nonneg (hb e) (add_nonneg | |
| (mul_nonneg (hd _) (add_nonneg (ha _) (mul_nonneg ht (hd _)))) | |
| (mul_nonneg (add_nonneg (ha _) (mul_nonneg ht (hd _))) (hd _))) | |
| omit [TopologicalSpace X] [CompactSpace X] [MeasurableSpace X] [BorelSpace X] [Fintype E] in | |
| theorem amplitudeSlope_mono (hb : β e,0β€b e) {a c d : V β β} | |
| (hd : β v,0β€d v) (hac : β v,a vβ€c v) (t : β) (e : E) : | |
| amplitudeSlope left right b a d t eβ€amplitudeSlope left right b c d t e := by | |
| unfold amplitudeSlope | |
| apply mul_le_mul_of_nonneg_left _ (hb e) | |
| exact add_le_add | |
| (mul_le_mul_of_nonneg_left (add_le_add (hac _) le_rfl) (hd _)) | |
| (mul_le_mul_of_nonneg_right (add_le_add (hac _) le_rfl) (hd _)) | |
| end | |
| end ClassicalON | |
| end | |
| end OAI | |
Outline
- def
amplitudeCoupling17 - def
amplitudePartition19 - def
amplitudeSlope22 - theorem
continuous_amplitudeHamiltonian26 - theorem
amplitudePartition_pos32 - theorem
continuous_amplitudePartition36 - theorem
amplitudeHamiltonian_direction_derivative41 - theorem
log_amplitudePartition_direction_derivative53 - theorem
amplitudeCoupling_mono76 - theorem
amplitudeSlope_nonneg84 - theorem
amplitudeSlope_mono93