Download data/lean/OAI/Analysis/FreeEntropy/BilinearNet.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.27 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FreeEntropy/BilinearNet.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/FreeEntropy/BilinearNet.lean
-
curl -L -o BilinearNet.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FreeEntropy/BilinearNet.lean
3.27 kB
| import OAI.Analysis.FreeEntropy.MatrixBilinear | |
| namespace OAI | |
| universe u1 | |
| noncomputable section | |
| open scoped ComplexConjugate | |
| open Finset Metric Set | |
| namespace FiniteEntropySeparation | |
| variable {E : Type u1} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| theorem norm_le_of_unit_inner (z : E) {C : β} (hC : 0 β€ C) | |
| (h : β v : E, βvβ = 1 β βinner β v zβ β€ C) : βzβ β€ C := by | |
| by_cases hz : z=0 | |
| Β· simpa [hz] using hC | |
| have hn : βzβ β 0 := norm_ne_zero_iff.mpr hz | |
| have hv : β(βzββ»ΒΉ : β) β’ zβ = 1 := by rw [norm_smul, Real.norm_eq_abs, abs_inv, abs_norm, inv_mul_cancelβ hn] | |
| have hh := h ((βzββ»ΒΉ : β) β’ z) hv | |
| simpa [inner_smul_real_left, norm_smul, inner_self_eq_norm_sq_to_K, norm_pow, | |
| Real.norm_eq_abs, abs_inv, abs_norm, sq, β mul_assoc, inv_mul_cancelβ hn] using hh | |
| theorem opNorm_le_of_bilinear (T : E βL[β] E) {C : β} (hC : 0 β€ C) | |
| (h : β x y : E, βxβ = 1 β βyβ = 1 β βinner β x (T y)β β€ C) : βTβ β€ C := by | |
| apply ContinuousLinearMap.opNorm_le_of_unit_norm hC | |
| intro y hy | |
| exact norm_le_of_unit_inner _ hC (fun x hx => h x y hx hy) | |
| theorem bilinear_net_bound (T : E βL[β] E) (s : Finset E) | |
| (hs : β x β s, βxβ = 1) | |
| (hcov : β x : E, βxβ = 1 β β y β s, dist x y β€ 1/4) | |
| {M : β} (hM : 0 β€ M) (hB : β x β s, β y β s, βinner β x (T y)β β€ M) : βTβ β€ 2*M := by | |
| have hb : βTβ β€ M + βTβ/2 := by | |
| apply opNorm_le_of_bilinear T (by positivity) | |
| intro x y hx hy | |
| obtain β¨u,hu,hxuβ© := hcov x hx | |
| obtain β¨v,hv,hyvβ© := hcov y hy | |
| have he : inner β x (T y) = inner β u (T v) + inner β (x-u) (T y) + inner β u (T (y-v)) := by | |
| simp only [map_sub, inner_sub_left, inner_sub_right]; abel | |
| have h1 : βinner β (x-u) (T y)β β€ βTβ/4 := by | |
| calc | |
| _ β€ βx-uβ*βT yβ := norm_inner_le_norm _ _ | |
| _ β€ (1/4)*(βTβ*βyβ) := mul_le_mul (by simpa [dist_eq_norm] using hxu) (T.le_opNorm y) (norm_nonneg _) (by norm_num) | |
| _ = _ := by rw [hy]; ring | |
| have h2 : βinner β u (T (y-v))β β€ βTβ/4 := by | |
| calc | |
| _ β€ βuβ*βT (y-v)β := norm_inner_le_norm _ _ | |
| _ β€ βuβ*(βTβ*βy-vβ) := mul_le_mul_of_nonneg_left (T.le_opNorm _) (norm_nonneg _) | |
| _ β€ 1*(βTβ*(1/4)) := by rw [hs u hu]; gcongr; simpa [dist_eq_norm] using hyv | |
| _ = _ := by ring | |
| rw [he] | |
| exact ((norm_add_le _ _).trans (add_le_add ((norm_add_le _ _).trans (add_le_add (hB u hu v hv) h1)) h2)).trans_eq (by ring) | |
| linarith | |
| theorem sphere_finite_net [FiniteDimensional β E] : | |
| β s : Finset E, (β x β s, βxβ = 1) β§ | |
| (β x : E, βxβ = 1 β β y β s, dist x y β€ 1/4) β§ | |
| (s.card : β) β€ 9^Module.finrank β E := by | |
| obtain β¨s,hs,hc,hbβ© := compact_finite_net (sphere (0:E) 1) (isCompact_sphere 0 1) | |
| (R := 1) (Ξ΅ := 1/4) (by norm_num) (by norm_num) (by intro x hx; exact (mem_sphere_zero_iff_norm.mp hx).le) | |
| refine β¨s,?_,?_,?_β© | |
| Β· intro x hx; exact mem_sphere_zero_iff_norm.mp (hs x hx) | |
| Β· intro x hx; exact hc x (mem_sphere_zero_iff_norm.mpr hx) | |
| Β· norm_num at hb β’; exact hb | |
| end FiniteEntropySeparation | |
| end | |
| end OAI | |