Download data/lean/OAI/Probability/FreeIsing/Energy/MomentCombinatorics.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Energy/MomentCombinatorics.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Energy/MomentCombinatorics.lean
-
curl -L -o MomentCombinatorics.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Energy/MomentCombinatorics.lean
1.7 kB
| import Mathlib | |
| namespace OAI | |
| open scoped BigOperators | |
| namespace Problem367 | |
| theorem sum_sq_le_of_two_positive {ΞΉ : Type*} [DecidableEq ΞΉ] | |
| (s : Finset ΞΉ) (r : ΞΉ β β) {i j : ΞΉ} | |
| (hi : i β s) (hj : j β s) (hij : i β j) | |
| (hri : 0 < r i) (hrj : 0 < r j) : | |
| (β k β s, r k ^ 2) β€ (β k β s, r k - 1) ^ 2 + 1 := by | |
| have hsum : r i + β k β s.erase i, r k = β k β s, r k := | |
| Finset.add_sum_erase s r hi | |
| have hsumSq : r i ^ 2 + β k β s.erase i, r k ^ 2 = β k β s, r k ^ 2 := | |
| Finset.add_sum_erase s (fun k => r k ^ 2) hi | |
| have hj' : j β s.erase i := Finset.mem_erase.mpr β¨Ne.symm hij, hjβ© | |
| have hrest : 1 β€ β k β s.erase i, r k := | |
| le_trans hrj (Finset.single_le_sum (fun k _ => Nat.zero_le (r k)) hj') | |
| have hsq : (β k β s.erase i, r k ^ 2) β€ (β k β s.erase i, r k) ^ 2 := | |
| Finset.sum_sq_le_sq_sum_of_nonneg (fun k _ => Nat.zero_le (r k)) | |
| have htotal : 1 β€ β k β s, r k := by omega | |
| have htotalSub := Nat.sub_add_cancel htotal | |
| have hiSub := Nat.sub_add_cancel hri | |
| have hrestSub := Nat.sub_add_cancel hrest | |
| nlinarith [Nat.zero_le ((r i - 1) * ((β k β s.erase i, r k) - 1))] | |
| theorem critical_moment_absorption {b theta : β} | |
| (hb : 0 β€ b) (htheta : 0 β€ theta) (hthetaOne : theta < 1) | |
| (hcritical : b * theta ^ 2 = 1) {p : β} (hp : 3 β€ p) : | |
| 0 < 1 - theta β§ 1 - theta β€ 1 - b * theta ^ p := by | |
| constructor | |
| Β· linarith | |
| Β· have hpow : theta ^ p β€ theta ^ 3 := | |
| pow_le_pow_of_le_one htheta hthetaOne.le hp | |
| have hmul := mul_le_mul_of_nonneg_left hpow hb | |
| have hcube : b * theta ^ 3 = theta := by nlinarith [hcritical] | |
| linarith | |
| end Problem367 | |
| end OAI | |