Download data/lean/OAI/AlgebraicGeometry/Seshadri/Interpolation/RowCompression.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.24 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/Seshadri/Interpolation/RowCompression.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/Seshadri/Interpolation/RowCompression.lean
-
curl -L -o RowCompression.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/Seshadri/Interpolation/RowCompression.lean
6.24 kB
| import Mathlib | |
| import OAI.AlgebraicGeometry.Seshadri.Interpolation.CompressionRanks | |
| namespace OAI | |
| section | |
| namespace MaximalSeshadri.Interpolation | |
| open scoped BigOperators Pointwise | |
| open scoped BigOperators ContDiff | |
| open Filter Topology | |
| abbrev RowIndex {Q : Type*} (n : Q β β) := (q : Q) Γ Fin (n q + 1) | |
| theorem compression_column_mem_span {Q : Type*} [Fintype Q] | |
| (q : Q β β€) (B n : Q β β) (r m : β) (points : Fin r β β Γ β) | |
| (s : β) (hs : s β 0) (i : RowIndex n) : | |
| finiteJetColumn r m points (fun u z => u ^ q i.1 * | |
| ((1 + s * z) ^ B i.1 * z ^ (i.2 : β))) β | |
| Submodule.span β (Set.range fun j : RowIndex n => finiteJetColumn r m points | |
| (fun u z => u ^ q j.1 * (1 + s * z) ^ (B j.1 + (j.2 : β)))) := by | |
| let L := (polynomialJetMap r m points (q i.1)).comp (compressionRowMap s (B i.1)) | |
| have hp := polynomial_image_mem_span L | |
| ((Polynomial.C sβ»ΒΉ * (Polynomial.X - 1)) ^ (i.2 : β)) (n i.1) | |
| ((compression_inverse_degree s i.2).trans (by omega)) | |
| have hv : L ((Polynomial.C sβ»ΒΉ * (Polynomial.X - 1)) ^ (i.2 : β)) = | |
| finiteJetColumn r m points (fun u z => u ^ q i.1 * | |
| ((1 + s * z) ^ B i.1 * z ^ (i.2 : β))) := by | |
| dsimp only [L, LinearMap.comp_apply] | |
| rw [compressionRowMap_inverse s hs, polynomialJetMap_eq] | |
| congr 1 | |
| funext u z | |
| simp | |
| rw [hv] at hp | |
| apply (Submodule.span_mono ?_) hp | |
| rintro _ β¨j, rflβ© | |
| refine β¨β¨i.1, jβ©, ?_β© | |
| dsimp only [L, LinearMap.comp_apply] | |
| rw [compressionRowMap_pow, polynomialJetMap_eq] | |
| congr 1 | |
| funext u z | |
| simp | |
| theorem compression_rank_to_powers {Q : Type*} [Fintype Q] | |
| (q : Q β β€) (B n : Q β β) (r m : β) (points : Fin r β β Γ β) | |
| (s : β) (hs : s β 0) | |
| (h : LinearIndependent β (fun i : RowIndex n => finiteJetColumn r m points | |
| (fun u z => u ^ q i.1 * ((1 + s * z) ^ B i.1 * z ^ (i.2 : β))))) : | |
| LinearIndependent β (fun i : RowIndex n => finiteJetColumn r m points | |
| (fun u z => u ^ q i.1 * (1 + s * z) ^ (B i.1 + (i.2 : β)))) := by | |
| apply linearIndependent_of_span_le _ _ h | |
| apply Submodule.span_le.mpr | |
| rintro _ β¨i, rflβ© | |
| exact compression_column_mem_span q B n r m points s hs i | |
| theorem iteratedDeriv_affine_pow (s : β) (b N : β) : | |
| iteratedDeriv b (fun z : β => (1 + s * z) ^ N) = | |
| fun z => s ^ b * iteratedDeriv b (fun z : β => z ^ N) (1 + s * z) := by | |
| have hd : ContDiff β (b : ββΟ) (fun z : β => (1 + z) ^ N) := by fun_prop | |
| rw [show (fun z : β => (1 + s * z) ^ N) = | |
| (fun z : β => (fun y : β => (1 + y) ^ N) (s * z)) by rfl, | |
| iteratedDeriv_comp_const_mul hd s] | |
| funext z | |
| congr 1 | |
| exact congrFun (iteratedDeriv_comp_const_add b (fun z : β => z ^ N) 1) (s * z) | |
| noncomputable def verticalJetScale (r m : β) (s : β) : | |
| (JetIndex r m β β) ββ[β] (JetIndex r m β β) := | |
| LinearMap.pi fun j => (s ^ (j.2.2 : β)) β’ LinearMap.proj j | |
| theorem verticalJetScale_column (r m : β) (points : Fin r β β Γ β) | |
| (s : β) (q : β€) (N : β) : | |
| verticalJetScale r m s | |
| (finiteJetColumn r m (fun i => ((points i).1, 1 + s * (points i).2)) | |
| (fun u z => u ^ q * z ^ N)) = | |
| finiteJetColumn r m points (fun u z => u ^ q * (1 + s * z) ^ N) := by | |
| funext j | |
| simp only [verticalJetScale, LinearMap.pi_apply, LinearMap.smul_apply, | |
| LinearMap.proj_apply, smul_eq_mul, finiteJetColumn] | |
| split_ifs | |
| Β· simp only [mixed_deriv_separated, iteratedDeriv_affine_pow] | |
| ring | |
| Β· exact mul_zero _ | |
| theorem compression_powers_to_original {Q : Type*} [Fintype Q] | |
| (q : Q β β€) (B n : Q β β) (r m : β) (points : Fin r β β Γ β) (s : β) | |
| (h : LinearIndependent β (fun i : RowIndex n => finiteJetColumn r m points | |
| (fun u z => u ^ q i.1 * (1 + s * z) ^ (B i.1 + (i.2 : β))))) : | |
| LinearIndependent β (fun i : RowIndex n => | |
| finiteJetColumn r m (fun i => ((points i).1, 1 + s * (points i).2)) | |
| (fun u z => u ^ q i.1 * z ^ (B i.1 + (i.2 : β)))) := by | |
| apply LinearIndependent.of_comp (verticalJetScale r m s) | |
| simpa only [Function.comp_def, verticalJetScale_column] using h | |
| theorem affine_vertical_tuple_injective {r : β} (points : Fin r β β Γ β) | |
| (hi : Function.Injective points) (s : β) (hs : s β 0) : | |
| Function.Injective (fun i => ((points i).1, 1 + s * (points i).2)) := by | |
| intro i j hij | |
| apply hi | |
| apply Prod.ext | |
| Β· simpa only using congrArg (fun p : β Γ β => p.1) hij | |
| Β· have h := congrArg Prod.snd hij | |
| exact (mul_left_cancelβ hs) (add_left_cancel h) | |
| theorem compression_exists_tuple {Q : Type*} [Fintype Q] | |
| (q : Q β β€) (B n : Q β β) (r m : β) (points : Fin r β β Γ β) | |
| (hi : Function.Injective points) (hnz : β i, (points i).1 β 0) | |
| (hβ : LinearIndependent β (fun i : RowIndex n => finiteJetColumn r m points | |
| (fun u z => u ^ q i.1 * z ^ (i.2 : β)))) : | |
| β p : Fin r β β Γ β, Function.Injective p β§ | |
| (β i, (p i).1 β 0 β§ (p i).2 β 0) β§ | |
| LinearIndependent β (fun i : RowIndex n => finiteJetColumn r m p | |
| (fun u z => u ^ q i.1 * z ^ (B i.1 + (i.2 : β)))) := by | |
| have hrank := compression_finite_rank (fun i : RowIndex n => q i.1) | |
| (fun i => B i.1) (fun i => (i.2 : β)) r m points hβ | |
| have hn : βαΆ s : β in π 0, β i, 1 + s * (points i).2 β 0 := by | |
| apply Filter.eventually_all.mpr | |
| intro i | |
| have ht : Tendsto (fun s : β => 1 + s * (points i).2) (π 0) (π 1) := by | |
| simpa using (tendsto_const_nhds : Tendsto (fun _ : β => (1 : β)) (π 0) (π 1)).add | |
| ((tendsto_id : Tendsto (id : β β β) (π 0) (π 0)).mul_const (points i).2) | |
| exact ht.eventually_ne one_ne_zero | |
| have he : βαΆ s : β in π[β ] 0, s β 0 := eventually_mem_nhdsWithin | |
| obtain β¨s, hs, hrank, hnβ© := (he.and | |
| ((hrank.and hn).filter_mono nhdsWithin_le_nhds)).exists | |
| refine β¨(fun i => ((points i).1, 1 + s * (points i).2)), | |
| affine_vertical_tuple_injective points hi s hs, ?_, ?_β© | |
| Β· intro i | |
| exact β¨hnz i, hn iβ© | |
| Β· exact compression_powers_to_original q B n r m points s | |
| (compression_rank_to_powers q B n r m points s hs hrank) | |
| end MaximalSeshadri.Interpolation | |
| end | |
| end OAI | |