File size: 2,197 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | import OAI.Probability.SATComputability.DeletionMean
import OAI.Probability.SATComputability.DyadicBlocks
namespace OAI
namespace FixedClauseThreshold.Computability
open DilutedSpinGlass MeasureTheory
open scoped BigOperators
theorem sixth_fifth_power_le_sum (d : β) :
(d : β)^(6/5 : β) β€
(6/5 : β) * β j β Finset.range d, ((j : β)+1)^(1/5 : β) := by
have hm : MonotoneOn (fun x : β => x^(1/5 : β)) (Set.Icc 0 (0+(d : β))) := by
intro x hx y _ hxy
exact Real.rpow_le_rpow hx.1 hxy (by norm_num)
have h := hm.integral_le_sum
simp only [zero_add, Nat.cast_add, Nat.cast_one] at h
rw [integral_rpow (Or.inl (by norm_num : (-1 : β) < 1/5))] at h
norm_num at h
nlinarith
theorem finite_fractional_moment {Ξ© : Type*} [Fintype Ξ©] (P : FiniteLaw Ξ©)
(f : Ξ© β β) (hf : β Ο, 0 β€ f Ο) :
P.expect (fun Ο => (f Ο)^(1/5 : β)) β€ (P.expect f)^(1/5 : β) := by
exact (Real.concaveOn_rpow (by norm_num : (0 : β) β€ 1/5)
(by norm_num : (1/5 : β) β€ 1)).le_map_sum
(fun Ο _ => P.nonneg Ο) P.total (fun Ο _ => hf Ο)
theorem reverse_interval_sum (A B : β) (hAB : A β€ B) (f : β β β) :
(β t β Finset.Ico A B, f (B-t)) =
β j β Finset.range (B-A), f (j+1) := by
rw [Finset.sum_Ico_eq_sum_range, β Finset.sum_range_reflect]
apply Finset.sum_congr rfl
intro j hj
congr 1
have hj' := Finset.mem_range.mp hj
omega
theorem discrete_delay_moment {A B M : β} (hAB : A β€ B) (hBM : B β€ M) :
((B-A : β) : β)^(6/5 : β) β€ (6/5 : β) *
β t β Finset.range M,
if A β€ t β§ t < B then ((B-t : β) : β)^(1/5 : β) else 0 := by
have he : (β t β Finset.range M,
if A β€ t β§ t < B then ((B-t : β) : β)^(1/5 : β) else 0) =
β t β Finset.Ico A B, ((B-t : β) : β)^(1/5 : β) := by
rw [β Finset.sum_filter]
congr 1
ext t
simp only [Finset.mem_filter, Finset.mem_range, Finset.mem_Ico]
omega
rw [he, reverse_interval_sum A B hAB (fun j => (j : β)^(1/5 : β))]
simpa only [Nat.cast_add, Nat.cast_one] using sixth_fifth_power_le_sum (B-A)
end FixedClauseThreshold.Computability
end OAI
|