Download data/lean/OAI/RepresentationTheory/PartialPermutation/PartitionAsymptotics.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/PartialPermutation/PartitionAsymptotics.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/RepresentationTheory/PartialPermutation/PartitionAsymptotics.lean
-
curl -L -o PartitionAsymptotics.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/PartialPermutation/PartitionAsymptotics.lean
2.09 kB
| import Mathlib | |
| import OAI.RepresentationTheory.PartialPermutation.DiagramCounts | |
| namespace OAI | |
| section | |
| namespace PartialPermutation | |
| namespace DiagramCounting | |
| noncomputable section | |
| open Finset | |
| open Filter in | |
| lemma partitionCount_subexponential (Ξ΄ : β) (hΞ΄ : 0 < Ξ΄) : | |
| βαΆ n : β in atTop, (partitionCount n : β) β€ Real.exp (Ξ΄*n) := by | |
| have hl := (isLittleO_log_rpow_atTop (show (0:β)<1/2 by norm_num)).bound | |
| (show 0 < Ξ΄/4 by positivity) | |
| have ht : Tendsto (fun n : β => (n:β)+1) atTop atTop := | |
| tendsto_atTop_mono (fun n => le_add_of_nonneg_right (show (0:β)β€1 by norm_num)) | |
| tendsto_natCast_atTop_atTop | |
| filter_upwards [ht.eventually hl, eventually_ge_atTop 1] with n hn hn1 | |
| have hn0 : (0:β) β€ n := Nat.cast_nonneg n | |
| have hn1' : (1:β) β€ n := by exact_mod_cast hn1 | |
| have hs : 0 β€ Real.sqrt (n+1) := Real.sqrt_nonneg _ | |
| have hsq := Real.sq_sqrt (show (0:β)β€n+1 by positivity) | |
| have hl0 : 0 β€ Real.log ((n:β)+1) := Real.log_nonneg (by linarith) | |
| rw [Real.norm_eq_abs,Real.norm_eq_abs,abs_of_nonneg hl0, | |
| β Real.sqrt_eq_rpow,abs_of_nonneg hs] at hn | |
| have hnrt : (n.sqrt:β) β€ Real.sqrt (n+1) := by | |
| have h := Nat.sqrt_le n | |
| have hr : (n.sqrt:β)^2 β€ n := by simpa only [pow_two] using (show (n.sqrt:β)*(n.sqrt:β)β€n by exact_mod_cast h) | |
| nlinarith [show (0:β)β€n.sqrt by positivity] | |
| have hexp : (2*(n.sqrt:β))*Real.log ((n:β)+1) β€ Ξ΄*n := by | |
| calc | |
| _ β€ (2*Real.sqrt (n+1))*((Ξ΄/4)*Real.sqrt (n+1)) := | |
| mul_le_mul (by linarith) hn hl0 (by positivity) | |
| _ = Ξ΄/2*((n:β)+1) := by nlinarith | |
| _ β€ Ξ΄*n := by nlinarith | |
| calc | |
| (partitionCount n : β) β€ ((n+1)^(2*n.sqrt):β) := by | |
| exact_mod_cast partitionCount_le_sqrt n | |
| _ = Real.exp ((2*(n.sqrt:β))*Real.log ((n:β)+1)) := by | |
| push_cast | |
| rw [show (2:β)*(n.sqrt:β)=((2*n.sqrt:β):β) by push_cast; rfl, | |
| Real.exp_nat_mul, Real.exp_log (by positivity)] | |
| _ β€ Real.exp (Ξ΄*n) := Real.exp_le_exp.mpr hexp | |
| end | |
| end DiagramCounting | |
| end PartialPermutation | |
| end | |
| end OAI | |