Download data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDistanceGraphAssembly.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.05 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDistanceGraphAssembly.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDistanceGraphAssembly.lean
-
curl -L -o ActualDistanceGraphAssembly.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Graphs/ActualDistanceGraphAssembly.lean
7.05 kB
| import OAI.MeasureTheory.Falconer.Graphs.ParentAbsoluteGraphAssembly | |
| import OAI.MeasureTheory.Falconer.Graphs.GraphOriginalGraphRemoval | |
| namespace OAI | |
| namespace PlanarFalconer | |
| open Set MeasureTheory | |
| open scoped ContDiff | |
| def sourceDistanceSlot (l : Fin 4) : Fin 2 := ![0,1,1,0] l | |
| theorem sourceDistanceSlot_comp {Ξ± : Type*} (f : Fin 2 β Ξ±) : | |
| (fun l => f (sourceDistanceSlot l)) = ![f 0,f 1,f 1,f 0] := by | |
| funext l | |
| fin_cases l <;> rfl | |
| theorem uniform_actual_retained_distance_graph | |
| {sig ΞΊ cβ : β} (hsig : 0 < sig) (hgap : 10*sig < ΞΊ) | |
| (hc : 0 < cβ) (hcap : cβ β€ 2*Real.pi) (K : β) (lam T : β) | |
| {Ξ¨ : β β β} (hΞ¨ : ContDiff β β Ξ¨) (hpos : β t, 0 β€ Ξ¨ t) | |
| (hs : β t, Ξ¨ t β 0 β t β Ioo (1/4:β) 4) : | |
| β Nβ : β, β N β₯ Nβ, | |
| β {ΞΉ : Fin 2 β Type} [β l, DecidableEq (ΞΉ l)], | |
| β (S : β l, Finset (ΞΉ l)) (d : β l, ΞΉ l β PolicyDescriptor) (k : β l, ΞΉ l β β), | |
| (β l, (S l).card β€ (N+1)^3+1) β (β l, (β t β S l, k l t) β€ K) β | |
| β L : β, (β l t, t β S l β descriptorLength (d l t) β€ L) β | |
| β Q : Fin 2 β DyadicSquare, (β l, 0 < (Q l).side) β (β l, (Q l).side β€ 1) β | |
| β (Ο : Fin 2 β Measure Plane) (mass : Fin 2 β β β β) (B : β) (Ξ΄ : β), | |
| (β l, RegularizedProfileData (Q l) (Ο l) N B Ξ΄ lam (mass l)) β | |
| β (J i : β) (h : Fin 2 β Plane β β), (β l, Measurable (h l)) β (β l x, βh l xβ β€ 1) β | |
| β (a n : β) (v : β), a+n β€ N β ΞΊ*N β€ (n:β) β | |
| 0 β€ v-(a+n) β (n:β) β€ v-(a+n)+2*sig*N β (L:β) β€ v-(a+n)+2*sig*N β v-a β€ N β | |
| β A B : CellPath, A.length = a β B.length = a β | |
| dist ((Q 0).descendant A).center ((Q 1).descendant B).center β€ 2000*(2:β)^(-(a:β)) β | |
| let X := (Q 0).descendant A | |
| let Y := (Q 1).descendant B | |
| let t : β := (a+n:β)-a | |
| let ΞΈ := graphAngularScale N sig t cβ | |
| let I := sourceParentGraphIndices N sig t X Y (Ο 0) (Ο 1) n A B | |
| let rep := fun e : (β Γ β) Γ Bool => graphChosenRepresentative | |
| (graphAngularScale_pos N sig t hc) ((min_le_left _ _).trans hcap) true e.2 | |
| (sourceParentAxis X Y) e.1.1 e.1.2 | |
| let Ξ² := fun l => inheritedCircleSymbol (S l) (d l) (k l) (Q l) (Ο l) (mass l) N lam sig J i (h l) | |
| let M := fun l => ((2:β)^N)^(-mass l (a+n)) | |
| let F := fun e : GraphNonedgeIndex => graphOriginalTerm ![Ο 0,Ο 1,Ο 1,Ο 0] | |
| (fun l => (graphQuadCells ![Q 0,Q 1,Q 1,Q 0] e.1 l).carrier) | |
| ![M 0,M 1,M 1,M 0] ![Ξ² 0,Ξ² 1,Ξ² 1,Ξ² 0] true e.2.2 (sourceParentAxis X Y) ΞΈ v e.2.1.1 e.2.1.2 Ξ¨ | |
| β(sourceRadialSquareEnergy a v Ξ¨ (sourceParentRetainedF N sig t X Y (Ο 0) (Ο 1) n | |
| (((2:β)^N)^(-mass 0 a)) (((2:β)^N)^(-mass 1 a)) (Ξ² 0) (Ξ² 1)) : β) - | |
| ((2:β)^(2*(v-a))) β’ (graphProfileCoefficient N ![mass 0,mass 1,mass 1,mass 0] a (a+n) β’ | |
| (β e β graphRetainedIndices I N sig (a+n) true ![Q 0,Q 1,Q 1,Q 0] rep, F e))β β€ ((2:β)^N)^(-T) := by | |
| classical | |
| obtain β¨Nβ,hremβ© := uniform_regularized_original_graph_removal hsig K lam T hΞ¨ hs hc hcap | |
| obtain β¨Nβ,hcapsβ© := graphAngularScale_cap_inactive hgap hc | |
| obtain β¨W,hW,hwβ© := continuous_supported_bump_bound hΞ¨.continuous hs | |
| refine β¨max Nβ Nβ,?_β© | |
| intro N hN ΞΉ inst S d k hcard hK L hL Q hQ hQs Ο mass B Ξ΄ hd J i h hh hhb a n v | |
| hp hlow hu ht hLu hv A B' hA hB hsep | |
| let : β l, IsProbabilityMeasure (Ο l) := fun l => (hd l).probability | |
| let X := (Q 0).descendant A | |
| let Y := (Q 1).descendant B' | |
| let t : β := (a+n:β)-a | |
| have htval : t = n := by dsimp [t]; push_cast; ring | |
| have hΞΈ := hcaps N ((le_max_right _ _).trans hN) t (by simpa only [htval] using hlow) | |
| have hX : 0 < X.side := (Q 0).descendant_side_pos (hQ 0) A | |
| have hY : 0 < Y.side := (Q 1).descendant_side_pos (hQ 1) B' | |
| have hXs : X.side β€ (2:β)^(-(a:β)) := by | |
| dsimp [X]; rw [DyadicSquare.descendant_side,hA,Real.rpow_neg (by norm_num : (0:β) β€ 2),Real.rpow_natCast] | |
| simpa only [one_div] using div_le_div_of_nonneg_right (hQs 0) (by positivity : (0:β) β€ 2^a) | |
| have hYs : Y.side β€ (2:β)^(-(a:β)) := by | |
| dsimp [Y]; rw [DyadicSquare.descendant_side,hB,Real.rpow_neg (by norm_num : (0:β) β€ 2),Real.rpow_natCast] | |
| simpa only [one_div] using div_le_div_of_nonneg_right (hQs 1) (by positivity : (0:β) β€ 2^a) | |
| let I := sourceParentGraphIndices N sig t X Y (Ο 0) (Ο 1) n A B' | |
| have hI : I β graphNonedgeIndices (a+n) (angularBinCount (graphAngularScale N sig t cβ)) := by | |
| rw [hΞΈ] | |
| exact sourceParentGraphIndices_subset hA hB | |
| have hr := hrem N ((le_max_left _ _).trans hN) | |
| (fun l => S (sourceDistanceSlot l)) (fun l => d (sourceDistanceSlot l)) (fun l => k (sourceDistanceSlot l)) | |
| (fun l => hcard _) (fun l => hK _) L (fun l => hL _) | |
| (fun l => Q (sourceDistanceSlot l)) (fun l => hQ _) (fun l => hQs _) | |
| (fun l => Ο (sourceDistanceSlot l)) (fun l => mass (sourceDistanceSlot l)) B Ξ΄ (fun l => hd _) | |
| J i (fun l => h (sourceDistanceSlot l)) (fun l => hh _) (fun l => hhb _) | |
| a (a+n) v (Nat.cast_nonneg a) (by exact_mod_cast Nat.le_add_right a n) hp | |
| (by simpa only [Nat.cast_add] using hu) (by simpa only [Nat.cast_add,add_sub_cancel_left] using ht) | |
| (by simpa only [Nat.cast_add] using hLu) hv true X Y hX hY hXs hYs (fun _ => hsep) | |
| (sourceParentAxis X Y) I hI (by | |
| intro e he l | |
| rw [sourceDistanceSlot_comp] | |
| exact sourceParentGraphIndices_parent (Q 0) (Q 1) (hQ 0) (hQ 1) A B' N n sig t (Ο 0) (Ο 1) he l) | |
| dsimp only at hr β’ | |
| simp only [sourceDistanceSlot_comp] at hr | |
| let Ξ² := fun l => inheritedCircleSymbol (S l) (d l) (k l) (Q l) (Ο l) (mass l) N lam sig J i (h l) | |
| have hm (l : Fin 2) : Measurable (fun z : Plane Γ UnitCircle => Ξ² l z.1 z.2) := | |
| measurable_inheritedCircleSymbol (S l) (d l) (k l) (Q l) (Ο l) (mass l) N lam sig J i (h l) (hh l) | |
| have hb : β (l : Fin 2) (x : Plane) (dir : UnitCircle), βΞ² l x dirβ β€ symbolDerivativeConstant K^K := by | |
| intro l x dir | |
| exact inheritedCircleSymbol_norm_le (S l) (d l) (k l) (Q l) (hQ l) (Ο l) (mass l) N lam sig J i (h l) | |
| K (hK l) x (hhb l x) dir | |
| have he := sourceParentRetainedEnergy_absolute_graph_sum N sig t a v (Q 0) (Q 1) A B' | |
| (Ο 0) (Ο 1) n (Maβ := ((2:β)^N)^(-mass 0 a)) (Maβ := ((2:β)^N)^(-mass 1 a)) | |
| (Mpβ := ((2:β)^N)^(-mass 0 (a+n))) (Mpβ := ((2:β)^N)^(-mass 1 (a+n))) | |
| (by positivity) (by positivity) (by positivity) (by positivity) (Ξ² 0) (Ξ² 1) (hm 0) (hm 1) | |
| (pow_nonneg (zero_le_one.trans (symbolDerivativeConstant_one_le K)) K) | |
| (pow_nonneg (zero_le_one.trans (symbolDerivativeConstant_one_le K)) K) (hb 0) (hb 1) hΨ.continuous.measurable hpos hs hW hw | |
| rw [β graphProfileCoefficient_distance] at he | |
| rw [β hΞΈ] at he | |
| rw [he] | |
| have hM4 := sourceDistanceSlot_comp (fun l => ((2:β)^N)^(-mass l (a+n:β))) | |
| have hΞ²4 := sourceDistanceSlot_comp Ξ² | |
| rw [hM4,hΞ²4] at hr | |
| simpa only [Nat.cast_add,X,Y,I,t,Ξ²] using hr | |
| end PlanarFalconer | |
| end OAI | |