math / data /lean /OAI /Probability /ContinuumTransition /FiniteProduct.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.68 kB
import OAI.Probability.ContinuumTransition.KacEnergy
namespace OAI
section
open scoped BigOperators
open MeasureTheory Set
namespace ContinuumTemperature
theorem familyTerm_product_bound (F G H : ConfigFamily)
(hG : RelabelInvariant G) (hH : RelabelInvariant H) {A B : Set Space}
(hA : MeasurableSet A) (hB : MeasurableSet B) (hd : Disjoint A B)
(hGF : GrandFinite G A) (hHF : GrandFinite H B) (n : β„•)
(hFi : IntegrableOn (F (Fin n)) {x | βˆ€ i, x i ∈ A βˆͺ B})
(hbound : βˆ€ (s : Finset (Fin n)) (x : Fin n β†’ Space),
x ∈ binaryRegion A B s β†’ F (Fin n) x ≀
G {i : Fin n // i ∈ s} (fun i => x i)*H {i : Fin n // i βˆ‰ s} (fun i => x i)) :
familyTerm F (A βˆͺ B) n ≀ βˆ‘ k ∈ Finset.range (n+1), familyTerm G A k*familyTerm H B (n-k) := by
have hb := integral_binary_bound hA hB hd
(fun k => familyIntegral G A (Fin k)) (fun k => familyIntegral H B (Fin k))
hFi ?_
swap
Β· intro s
have hprod := integrableOn_binary_product volume A B s
(by simpa only [← volume_pi] using hGF.integrable {i : Fin n // i ∈ s})
(by simpa only [← volume_pi] using hHF.integrable {i : Fin n // i βˆ‰ s})
have hi := setIntegral_mono_on
(hFi.mono_set (binaryRegion_subset_union A B s))
(by simpa only [← volume_pi] using hprod)
(measurableSet_binaryRegion hA hB s) (hbound s)
rw [show volume = Measure.pi (fun _ : Fin n => (volume : Measure Space)) by exact volume_pi,
setIntegral_binary_product volume A B s (G {i : Fin n // i ∈ s})
(H {i : Fin n // i βˆ‰ s})] at hi
simp only [← volume_pi] at hi
have heg := familyIntegral_eq_Fin G hG A {i : Fin n // i ∈ s}
have heh := familyIntegral_eq_Fin H hH B {i : Fin n // i βˆ‰ s}
have hc : Fintype.card {i : Fin n // i ∈ s} = s.card := Fintype.card_coe s
rw [hc] at heg
have hcc : Fintype.card {i : Fin n // i βˆ‰ s} = n-s.card := by
have hh := Fintype.card_subtype_compl (fun i : Fin n => i ∈ s)
simpa only [Fintype.card_fin, hc] using hh
rw [hcc] at heh
change (∫ x in binaryRegion A B s, F (Fin n) x) ≀ _
calc
_ ≀ familyIntegral G A {i : Fin n // i ∈ s}*
familyIntegral H B {i : Fin n // i βˆ‰ s} := hi
_ = _ := by rw [heg, heh, Fintype.card_fin]
have hh := div_le_div_of_nonneg_right hb (Nat.cast_nonneg (n.factorial) : (0 : ℝ) ≀ n.factorial)
rw [Fintype.card_fin, factorial_binomial_sum
(fun k => familyIntegral G A (Fin k)) (fun k => familyIntegral H B (Fin k)) n] at hh
exact hh
theorem GrandFinite.union_product {F G H : ConfigFamily}
(hG : RelabelInvariant G) (hH : RelabelInvariant H) {A B : Set Space}
(hA : MeasurableSet A) (hB : MeasurableSet B) (hd : Disjoint A B)
(hGF : GrandFinite G A) (hHF : GrandFinite H B)
(hFi : βˆ€ (ΞΉ : Type) [Fintype ΞΉ], IntegrableOn (F ΞΉ) {x | βˆ€ i, x i ∈ A βˆͺ B})
(h0 : βˆ€ (ΞΉ : Type) [Fintype ΞΉ] (x : ΞΉ β†’ Space), 0 ≀ F ΞΉ x)
(hbound : βˆ€ (n : β„•) (s : Finset (Fin n)) (x : Fin n β†’ Space),
x ∈ binaryRegion A B s β†’ F (Fin n) x ≀
G {i : Fin n // i ∈ s} (fun i => x i)*H {i : Fin n // i βˆ‰ s} (fun i => x i)) :
GrandFinite F (A βˆͺ B) := by
refine ⟨hFi, ?_⟩
have hab : Summable (fun p : β„• Γ— β„• => familyTerm G A p.1*familyTerm H B p.2) :=
summable_mul_of_summable_norm (summable_norm_iff.mpr hGF.summable)
(summable_norm_iff.mpr hHF.summable)
exact Summable.of_nonneg_of_le (familyTerm_nonneg F (A βˆͺ B) h0)
(fun n => familyTerm_product_bound F G H hG hH hA hB hd hGF hHF n (hFi (Fin n)) (hbound n))
(summable_sum_mul_range_of_summable_mul hab)
end ContinuumTemperature
end
end OAI