Download data/lean/OAI/Algebra/FiniteTensor/NormalResidues.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.81 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/FiniteTensor/NormalResidues.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/FiniteTensor/NormalResidues.lean
-
curl -L -o NormalResidues.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/FiniteTensor/NormalResidues.lean
5.81 kB
| import Mathlib | |
| import OAI.Algebra.FiniteTensor.MovingCoordinates | |
| import OAI.Algebra.FiniteTensor.RelativeDerivatives | |
| namespace OAI | |
| /-! Normal-cycle residues, restricted gradients and nonzero exterior pairings. -/ | |
| noncomputable section | |
| open scoped BigOperators | |
| namespace PD4Tensor.Forms | |
| noncomputable section | |
| open scoped TensorProduct BigOperators | |
| variable (K A : Type*) [Field K] [CommRing A] [Algebra K A] | |
| variable (Ο : Type*) [Fintype Ο] [DecidableEq Ο] | |
| variable (der : Ο β A ββ[K] A) (p : β) | |
| theorem normalCycle_product (cs : List A) : | |
| normalCycle K A Ο der p cs = | |
| scalar K A Ο (cs.map (fun c => c^(p-1))).prod * | |
| (cs.map (fun c => differential K A Ο der (scalar K A Ο c))).prod := by | |
| induction cs with | |
| | nil => simp [normalCycle] | |
| | cons c cs ih => | |
| change (scalar K A Ο (c^(p-1)) * differential K A Ο der (scalar K A Ο c)) * | |
| normalCycle K A Ο der p cs = _ | |
| rw [ih] | |
| simp only [List.map_cons, List.prod_cons, scalar_mul] | |
| rw [mul_assoc, β mul_assoc (differential K A Ο der (scalar K A Ο c)), | |
| β scalar_commute, mul_assoc, β mul_assoc] | |
| variable [Invertible (2 : K)] | |
| theorem topCoefficient_normalCycle (N : β) (der : Fin N β A ββ[K] A) | |
| (c : Fin N β A) : | |
| topCoefficient K A N (normalCycle K A (Fin N) der p (List.ofFn c)) = | |
| (β i, c i^(p-1)) * Matrix.det (fun i j => der j (c i)) := by | |
| rw [normalCycle_product] | |
| have hscalar (a : A) (Ο : Ξ© K A (Fin N)) : scalar K A (Fin N) a * Ο = a β’ Ο := by | |
| induction Ο using TensorProduct.inductionOn with | |
| | add x y hx hy => simp [mul_add, smul_add, hx, hy] | |
| | tmul b e => simp [scalar, Algebra.TensorProduct.tmul_mul_tmul, TensorProduct.smul_tmul'] | |
| rw [hscalar, map_smul, smul_eq_mul] | |
| simp only [List.map_ofFn, Function.comp_def, List.prod_ofFn, differential_scalar] | |
| rw [topCoefficient_oneForm_product] | |
| end | |
| end PD4Tensor.Forms | |
| namespace PD4Tensor.FrobeniusTruncation | |
| noncomputable section | |
| open scoped TensorProduct BigOperators | |
| variable (K : Type*) [Field K] (N p : β) [CharP K p] [Fact p.Prime] | |
| [Invertible (2 : K)] | |
| theorem exterior_normal_residue (hp : 0 < p) (f : Fin N β MvPolynomial (Fin N) K) | |
| (hf : β i, MvPolynomial.constantCoeff (f i)=0) : | |
| residue K (Fin N) p hp | |
| (Forms.topCoefficient K (Ring K (Fin N) p) N | |
| (Forms.normalCycle K (Ring K (Fin N) p) (Fin N) (derivative K (Fin N) p) p | |
| (List.ofFn (fun i => Ideal.Quotient.mk (ideal K (Fin N) p) (f i))))) = | |
| (tangentMatrix K (Fin N) f).det^p := by | |
| rw [Forms.topCoefficient_normalCycle] | |
| simp only [derivative_mk] | |
| have hj : Matrix.det (fun i j => Ideal.Quotient.mk (ideal K (Fin N) p) | |
| (MvPolynomial.pderiv j (f i))) = | |
| Ideal.Quotient.mk (ideal K (Fin N) p) (jacobianDet K (Fin N) f) := | |
| (RingHom.map_det (Ideal.Quotient.mk (ideal K (Fin N) p)) _).symm | |
| rw [hj] | |
| exact normal_residue K (Fin N) p hp f hf | |
| theorem exterior_normal_residue_ne_zero (hp : 0 < p) (f : Fin N β MvPolynomial (Fin N) K) | |
| (hf : β i, MvPolynomial.constantCoeff (f i)=0) | |
| (hdet : (tangentMatrix K (Fin N) f).det β 0) : | |
| residue K (Fin N) p hp | |
| (Forms.topCoefficient K (Ring K (Fin N) p) N | |
| (Forms.normalCycle K (Ring K (Fin N) p) (Fin N) (derivative K (Fin N) p) p | |
| (List.ofFn (fun i => Ideal.Quotient.mk (ideal K (Fin N) p) (f i))))) β 0 := by | |
| rw [exterior_normal_residue K N p hp f hf] | |
| exact pow_ne_zero _ hdet | |
| end | |
| end PD4Tensor.FrobeniusTruncation | |
| namespace PD4Tensor.Forms | |
| noncomputable section | |
| open scoped TensorProduct BigOperators | |
| variable {K A B Ο : Type*} [Field K] [CommRing A] [Algebra K A] | |
| [CommRing B] [Algebra K B] [Fintype Ο] [DecidableEq Ο] | |
| theorem restricted_gradient_boundary (r : A ββ[K] B) (hr : Function.Surjective r) | |
| (v : Ο β A) (Ο : Ξ© K A Ο) (hΟ : oneForm K A Ο v * Ο=0) | |
| (hann : β a, r a=0 β scalar K A Ο a * Ο=0) | |
| (a : A) (ha : r aβIdeal.span (Set.range (fun i => r (v i)))) : | |
| scalar K A Ο a * ΟβLinearMap.range (LinearMap.mulLeft K (oneForm K A Ο v)) := by | |
| obtain β¨b,hbβ© := Ideal.mem_span_range_iff_exists_fun.mp ha | |
| choose c hc using fun i => hr (b i) | |
| let a' : A := β i, c i * v i | |
| have he : r (a-a')=0 := by | |
| simp only [a',map_sub,map_sum,map_mul,hc] | |
| rw [hb,sub_self] | |
| have heq : scalar K A Ο a * Ο=scalar K A Ο a' * Ο := by | |
| have h := hann (a-a') he | |
| simpa only [map_sub,scalar,TensorProduct.sub_tmul,sub_mul,sub_eq_zero] using h | |
| rw [heq] | |
| apply gradient_ideal_boundary v Ο hΟ a' | |
| exact Ideal.mem_span_range_iff_exists_fun.mpr β¨c,rflβ© | |
| end | |
| end PD4Tensor.Forms | |
| namespace PD4Tensor.FrobeniusTruncation | |
| noncomputable section | |
| variable (K : Type*) [Field K] (N p : β) [CharP K p] [Fact p.Prime] | |
| [Invertible (2 : K)] | |
| theorem inverse_normal_residue_ne_zero | |
| (q : Ring K (Fin N) p ββ[K] Ring K (Fin N) p) : | |
| residue K (Fin N) p (Fact.out : p.Prime).pos | |
| (Forms.topCoefficient K (Ring K (Fin N) p) N | |
| (Forms.normalCycle K (Ring K (Fin N) p) (Fin N) (derivative K (Fin N) p) p | |
| (List.ofFn (fun i => q (coord K (Fin N) p i)))))β 0 := by | |
| choose f hf using fun i => Ideal.Quotient.mk_surjective (q (coord K (Fin N) p i)) | |
| have hh := inverse_representatives K (Fin N) p q f hf | |
| have hr := exterior_normal_residue_ne_zero K N p (Fact.out : p.Prime).pos f hh.1 hh.2 | |
| simpa only [hf] using hr | |
| end | |
| end PD4Tensor.FrobeniusTruncation | |
| namespace PD4Tensor.Forms | |
| noncomputable section | |
| variable (K A Ο : Type*) [Field K] [CommRing A] [Algebra K A] [Fintype Ο] [DecidableEq Ο] | |
| (der : Ο β A ββ[K] A) (p : β) | |
| @[simp] theorem normalCycle_append (cs ds : List A) : | |
| normalCycle K A Ο der p (cs++ds)=normalCycle K A Ο der p cs * normalCycle K A Ο der p ds := by | |
| simp [normalCycle,List.prod_append] | |
| end | |
| end PD4Tensor.Forms | |
| end | |
| end OAI | |