Download data/lean/OAI/Algebra/Determinantal/AmbientOperators.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.55 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Determinantal/AmbientOperators.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Determinantal/AmbientOperators.lean
-
curl -L -o AmbientOperators.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Determinantal/AmbientOperators.lean
2.55 kB
| import OAI.Algebra.Determinantal.BorderPolars | |
| namespace OAI | |
| namespace PermanentBorder.AmbientPolar | |
| open MvPolynomial Matrix PolarAnalysis KernelBilinear | |
| open scoped Classical | |
| variable {Ο ΞΊ : Type} [Fintype Ο] [Fintype ΞΊ] | |
| noncomputable def substitution (b : Ο β β) | |
| (L : (Option ΞΊ β β) βL[β] (Ο β β)) : Poly Ο ββ[β] Poly (Option ΞΊ) := | |
| affineSubstitution b (fun j i => L (Pi.single i 1) j) | |
| omit [Fintype Ο] in | |
| lemma eval_substitution (b : Ο β β) | |
| (L : (Option ΞΊ β β) βL[β] (Ο β β)) (P : Poly Ο) (z : Option ΞΊ β β) : | |
| eval z (substitution b L P) = eval (b + L z) P := by | |
| classical | |
| change (aeval z : Poly (Option ΞΊ) ββ[β] β) (aeval _ P) = _ | |
| rw [comp_aeval_apply] | |
| apply congrArg (fun g : Ο β β => aeval g P) | |
| funext j | |
| simp only [map_add, map_sum, map_mul, aeval_C, aeval_X, Algebra.algebraMap_self_apply] | |
| have hz : z = β i, z i β’ Pi.single i 1 := by | |
| ext i | |
| simp [Pi.single_apply] | |
| have hL : L z j = β i, L (Pi.single i 1) j * z i := by | |
| conv_lhs => rw [hz, map_sum] | |
| simp [mul_comm] | |
| simpa only [Pi.add_apply] using congrArg (fun v : β => b j + v) hL.symm | |
| noncomputable def directional (h : ΞΊ β Ο β β) (i : ΞΊ) : Poly Ο ββ[β] Poly Ο := | |
| β j, h i j β’ (pderiv j).toLinearMap | |
| noncomputable def operators (b : Ο β β) | |
| (L : (Option ΞΊ β β) βL[β] (Ο β β)) (h : ΞΊ β Ο β β) : | |
| Option ΞΊ β Poly Ο ββ[β] Poly (Option ΞΊ) := | |
| Option.elim' (substitution b L).toLinearMap | |
| (fun i => (substitution b L).toLinearMap.comp (directional h i)) | |
| omit [Fintype ΞΊ] in | |
| lemma derivative_directional (h : ΞΊ β Ο β β) (P : Poly Ο) (y : Ο β β) (i : ΞΊ) : | |
| fderiv β (fun y => eval y P) y (h i) = eval y (directional h i P) := by | |
| rw [(CI.hasFDerivAt_eval P y).fderiv, CI.polynomialDerivative_apply] | |
| simp [directional, mul_comm] | |
| lemma polarPair_operators (b : Ο β β) | |
| (L : (Option ΞΊ β β) βL[β] (Ο β β)) (h : ΞΊ β Ο β β) (P : Poly Ο) : | |
| polarPair (fun y => eval y P) (fun z => b + L (optionProduct.symm z)) h = | |
| fun z => optionProduct (polynomialSystem (operators b L h) P (optionProduct.symm z)) := by | |
| funext z | |
| apply Prod.ext | |
| Β· exact (eval_substitution b L P _).symm | |
| Β· funext i | |
| change fderiv β (fun y => eval y P) (b + L (optionProduct.symm z)) (h i) = | |
| eval (optionProduct.symm z) (substitution b L (directional h i P)) | |
| rw [eval_substitution, derivative_directional] | |
| end PermanentBorder.AmbientPolar | |
| end OAI | |