Download data/lean/OAI/MeasureTheory/Falconer/Recursion/InnerProfileGrid.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.04 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/InnerProfileGrid.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/InnerProfileGrid.lean
-
curl -L -o InnerProfileGrid.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/InnerProfileGrid.lean
2.04 kB
| import OAI.MeasureTheory.Falconer.Recursion.ProfileEndpointStability | |
| import Mathlib.Algebra.Order.Floor.Ring | |
| namespace OAI | |
| /-! Inward rounding of profile intervals to a fixed finite scale grid. -/ | |
| namespace Falconer | |
| noncomputable def profileGridLeft (n : β) (a : β) : β := (β(n : β)*aβ : β)/(n : β) | |
| noncomputable def profileGridRight (n : β) (b : β) : β := (β(n : β)*bβ : β)/(n : β) | |
| theorem profileGridLeft_bounds {n : β} (hn : 0 < n) (a : β) : | |
| a β€ profileGridLeft n a β§ profileGridLeft n a β€ a+1/(n : β) := by | |
| have hnR : (0 : β) < n := by exact_mod_cast hn | |
| constructor | |
| Β· apply (le_div_iffβ hnR).2 | |
| simpa only [mul_comm] using Int.le_ceil ((n : β)*a) | |
| Β· apply (div_le_iffβ hnR).2 | |
| have hb := (Int.ceil_lt_add_one ((n : β)*a)).le | |
| have he : (a+1/(n : β))*(n : β) = (n : β)*a+1 := by field_simp | |
| rw [he] | |
| exact hb | |
| theorem profileGridRight_bounds {n : β} (hn : 0 < n) (b : β) : | |
| b-1/(n : β) β€ profileGridRight n b β§ profileGridRight n b β€ b := by | |
| have hnR : (0 : β) < n := by exact_mod_cast hn | |
| constructor | |
| Β· apply (le_div_iffβ hnR).2 | |
| have hb := (Int.lt_floor_add_one ((n : β)*b)).le | |
| have he : (b-1/(n : β))*(n : β) = (n : β)*b-1 := by field_simp | |
| rw [he] | |
| linarith | |
| Β· apply (div_le_iffβ hnR).2 | |
| simpa only [mul_comm] using Int.floor_le ((n : β)*b) | |
| theorem profileGrid_interval_bounds {n : β} (hn : 0 < n) (a h : β) : | |
| profileGridRight n (a+h)-profileGridLeft n a β€ h β§ | |
| h-2/(n : β) β€ profileGridRight n (a+h)-profileGridLeft n a β§ | |
| |profileGridLeft n a-a| β€ 1/(n : β) β§ | |
| |profileGridRight n (a+h)-(a+h)| β€ 1/(n : β) := by | |
| have hl := profileGridLeft_bounds hn a | |
| have hr := profileGridRight_bounds hn (a+h) | |
| have he : 2/(n : β) = 2*(1/(n : β)) := by ring | |
| refine β¨by linarith,by rw [he]; linarith,?_,?_β© | |
| Β· rw [abs_of_nonneg (sub_nonneg.mpr hl.1)] | |
| linarith | |
| Β· rw [abs_of_nonpos (sub_nonpos.mpr hr.2)] | |
| linarith | |
| end Falconer | |
| end OAI | |