Download data/lean/OAI/MeasureTheory/Falconer/Recursion/BranchRepresentativeCharges.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.91 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/BranchRepresentativeCharges.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/BranchRepresentativeCharges.lean
-
curl -L -o BranchRepresentativeCharges.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/BranchRepresentativeCharges.lean
2.91 kB
| import OAI.MeasureTheory.Falconer.Recursion.PrefixPolicyGeometry | |
| import Mathlib.Data.Set.Function | |
| namespace OAI | |
| namespace PlanarFalconer | |
| theorem branch_charges_injective {n : β} (start charge : β β β) | |
| (C : Finset β) (hC : C β Finset.range n) | |
| (hstart : MonotoneOn start (Set.Icc 0 n)) | |
| (hcharge : β j β C, start j < charge j β§ charge j β€ start (j+1)) : | |
| Set.InjOn charge C := by | |
| intro i hi j hj he | |
| have hiN := Finset.mem_range.mp (hC hi) | |
| have hjN := Finset.mem_range.mp (hC hj) | |
| have hci := hcharge i hi | |
| have hcj := hcharge j hj | |
| rcases lt_trichotomy i j with hij | hij | hji | |
| Β· have hm := hstart (show i+1 β Set.Icc 0 n by constructor <;> omega) | |
| (show j β Set.Icc 0 n by constructor <;> omega) (by omega : i+1 β€ j) | |
| omega | |
| Β· exact hij | |
| Β· have hm := hstart (show j+1 β Set.Icc 0 n by constructor <;> omega) | |
| (show i β Set.Icc 0 n by constructor <;> omega) (by omega : j+1 β€ i) | |
| omega | |
| theorem branch_representative_charges_bound (A : β β β) (N q n : β) | |
| (start charge : β β β) (C : Finset β) (hC : C β Finset.range n) | |
| (hstart : MonotoneOn start (Set.Icc 0 n)) | |
| (hcharge : β j β C, start j < charge j β§ charge j β€ start (j+1)) | |
| (hrep : β j β C, charge j β policyRepresentatives A N q) : | |
| C.card β€ (policyRepresentatives A N q).card β§ C.card β€ N/q+1 := by | |
| have hi := branch_charges_injective start charge C hC hstart hcharge | |
| have hc : C.card β€ (policyRepresentatives A N q).card := by | |
| calc | |
| _ = (C.image charge).card := (Finset.card_image_of_injOn hi).symm | |
| _ β€ _ := Finset.card_le_card (by | |
| intro p hp | |
| obtain β¨j,hj,rflβ© := Finset.mem_image.mp hp | |
| exact hrep j hj) | |
| exact β¨hc,hc.trans (policy_representatives_card A N q)β© | |
| theorem source_representatives_real_bound (A : β β β) {N : β} | |
| (hN : 0 < N) {kap : β} (hkap : 0 < kap) (hkap1 : kap β€ 1) : | |
| ((policyRepresentatives A N (sourcePolicyBlock N kap)).card:β) β€ 2/kap := by | |
| let q := sourcePolicyBlock N kap | |
| have hq : 0 < q := sourcePolicyBlock_pos hN hkap | |
| have hqR : (0:β) < q := Nat.cast_pos.mpr hq | |
| have hc : ((policyRepresentatives A N q).card:β) β€ ((N/q:β):β)+1 := by | |
| exact_mod_cast policy_representatives_card A N q | |
| have hmul : ((N/q:β):β)*(q:β) β€ (N:β) := by | |
| exact_mod_cast Nat.div_mul_le_self N q | |
| have hdiv : ((N/q:β):β) β€ (N:β)/(q:β) := (le_div_iffβ hqR).mpr hmul | |
| have hblock := source_policy_block_lower N kap | |
| have hrat : (N:β)/(q:β) β€ 1/kap := (div_le_div_iffβ hqR hkap).mpr (by | |
| change (N:β)*kap β€ 1*(sourcePolicyBlock N kap:β) | |
| nlinarith) | |
| have hone : 1 β€ 1/kap := (le_div_iffβ hkap).mpr (by simpa using hkap1) | |
| change ((policyRepresentatives A N q).card:β) β€ 2/kap | |
| have he : 2/kap = 1/kap+1/kap := by ring | |
| rw [he] | |
| linarith | |
| end PlanarFalconer | |
| end OAI | |