Download data/lean/OAI/Probability/SATComputability/DiscreteDelay.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SATComputability/DiscreteDelay.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/SATComputability/DiscreteDelay.lean
-
curl -L -o DiscreteDelay.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SATComputability/DiscreteDelay.lean
2.2 kB
| 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 | |