Buckets:
cfahlgren1/math / lean /OAI /Combinatorics /Progressions /Estimates /AllocatedBufferedAmbientCutoff.lean
| import OAI.Combinatorics.Progressions.Geometry.AllocatedFullSiteSupport | |
| namespace OAI | |
| section | |
| namespace Erdos3.VectorPolynomial | |
| open Module | |
| open scoped BigOperators Classical NNReal | |
| variable {m : ℕ} {I : Fin m → Type*} [∀ j, Fintype (I j)] {n : Fin m → ℕ} | |
| variable {J : Fin m → Type*} [∀ j, Fintype (J j)] | |
| variable (U : ∀ j, Submodule ℝ (J j → ℝ)) | |
| variable (b : ∀ j, Basis (Fin (n j)) ℝ (euclideanSubspace (U j))ᗮ) | |
| variable (o : ∀ j, OrthonormalBasis (I j) ℝ (euclideanSubspace (U j))) | |
| variable {R : Fin m → ℝ} | |
| local notation "single" => (fun _ : Fin m => Unit) | |
| local notation "ambient" => JetAmbientIndex single J | |
| theorem allocatedFullAmbientSiteCoordinates_norm_bound | |
| (hR : ∀ j, 0 < R j) (z : ambient → ℝ) {T : ℝ} (hT : 0 ≤ T) | |
| (hz : ∀ a, |allocatedFullAmbientSiteCoordinates (R := R) U b o z a| ≤ T) | |
| (C : Fin m → ℝ) (hC : ∀ j, 0 ≤ C j) | |
| (hchart : ∀ j v, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (b j)).symm v‖ ≤ C j * ‖v‖) | |
| (j : Fin m) : | |
| ‖(EuclideanSpace.equiv (J j) ℝ).symm (fun k => z ⟨j, (), k⟩)‖ ≤ | |
| C j * (((Fintype.card (I j) : ℝ) + 1) * (T * R j)) := by | |
| let v := (EuclideanSpace.equiv (J j) ℝ).symm (fun k => z ⟨j, (), k⟩) | |
| let w := mixedRealCoordinates (euclideanSubspace (U j)) (b j) (o j) v | |
| have hu (i : I j) : |w.1 i| ≤ T * R j := by | |
| have h := hz ⟨j, .inl i⟩ | |
| change |w.1 i / R j| ≤ T at h | |
| rw [abs_div, abs_of_pos (hR j)] at h | |
| exact (div_le_iff₀ (hR j)).mp h | |
| have hv (i : Fin (n j)) : |w.2 i| ≤ T * R j := by | |
| have h := hz ⟨j, .inr i⟩ | |
| change |w.2 i / R j| ≤ T at h | |
| rw [abs_div, abs_of_pos (hR j)] at h | |
| exact (div_le_iff₀ (hR j)).mp h | |
| have h := mixedRealPoint_norm_le (euclideanSubspace (U j)) (b j) (o j) (hC j) | |
| (mul_nonneg hT (hR j).le) (hchart j) w.1 w.2 hu hv | |
| dsimp only [w] at h | |
| rw [Prod.mk.eta, mixedRealPoint_coordinates] at h | |
| exact h | |
| variable (r : ℝ≥0) (hr : 0 < r) | |
| noncomputable def allocatedBufferedAmbientCutoff (z : ambient → ℝ) : ℝ := | |
| normalizedCoordinateCutoff (LayerSamplerAxis I n) r hr | |
| (allocatedFullAmbientSiteCoordinates (R := R) U b o z) | |
| theorem allocatedBufferedAmbientCutoff_range (z : ambient → ℝ) : | |
| 0 ≤ allocatedBufferedAmbientCutoff (R := R) U b o r hr z ∧ | |
| allocatedBufferedAmbientCutoff (R := R) U b o r hr z ≤ 1 := | |
| (normalizedCoordinateCutoff_spec (LayerSamplerAxis I n) r hr).2.2.1 _ | |
| theorem allocatedBufferedAmbientCutoff_lipschitz (hR : ∀ j, 0 < R j) | |
| (C : Fin m → ℝ≥0) | |
| (hC : ∀ j v, ‖normalizedOrthogonalChart (euclideanSubspace (U j)) (b j) v‖ ≤ C j * ‖v‖) | |
| (K : ℝ≥0) (hK : ∀ j, (R j)⁻¹ ≤ K) : | |
| LipschitzWith ((Fintype.card (LayerSamplerAxis I n) * normalizedSiteCutoffBound / (2 * r)) * | |
| (K * ∑ j, C j * Fintype.card (J j))) | |
| (allocatedBufferedAmbientCutoff (R := R) U b o r hr) := | |
| (normalizedCoordinateCutoff_spec (LayerSamplerAxis I n) r hr).2.2.2.2.2.comp | |
| (allocatedFullAmbientSiteCoordinates_lipschitz U b o hR C hC K hK) | |
| theorem allocatedBufferedAmbientCutoff_support (hR : ∀ j, 0 < R j) | |
| (C : Fin m → ℝ) (hC : ∀ j, 0 ≤ C j) | |
| (hchart : ∀ j v, ‖(normalizedOrthogonalChart (euclideanSubspace (U j)) (b j)).symm v‖ ≤ C j * ‖v‖) | |
| (hbudget : ∀ j, C j * (((Fintype.card (I j) : ℝ) + 1) * (2 * (r : ℝ) * R j)) ≤ 1 / 4) | |
| (z : ambient → ℝ) (hz : allocatedBufferedAmbientCutoff (R := R) U b o r hr z ≠ 0) : | |
| ∀ a, |z a| ≤ 1 / 4 := by | |
| have hcoord := (normalizedCoordinateCutoff_spec (LayerSamplerAxis I n) r hr).2.2.2.2.1 | |
| (allocatedFullAmbientSiteCoordinates (R := R) U b o z) hz | |
| rintro ⟨j, t, k⟩ | |
| cases t | |
| have h := (allocatedFullAmbientSiteCoordinates_norm_bound U b o hR z (by positivity) | |
| hcoord C hC hchart j).trans (hbudget j) | |
| exact (PiLp.norm_apply_le ((EuclideanSpace.equiv (J j) ℝ).symm (fun k => z ⟨j, (), k⟩)) k).trans h | |
| end Erdos3.VectorPolynomial | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 4 kB
- Xet hash:
- 499da95c428af9462936dc8b99e88e94d86278757677f85e123bf2c52cf29b44
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.