Download data/lean/OAI/NumberTheory/QuadraticForms/ComponentLengths.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 21.9 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/QuadraticForms/ComponentLengths.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/QuadraticForms/ComponentLengths.lean
-
curl -L -o ComponentLengths.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/QuadraticForms/ComponentLengths.lean
21.9 kB
| import Mathlib | |
| import OAI.NumberTheory.QuadraticForms.CyclotomicComponents | |
| namespace OAI | |
| /-! Component length forms at finite and infinite places. -/ | |
| namespace MultiplicityCounterexample.SourceComponentLengthAtPlaces | |
| noncomputable section | |
| open TensorProduct Polynomial NumberField | |
| open LinearMap (BilinForm) | |
| open CyclicComponent CyclotomicQuotient | |
| open FixedFieldLocalComparison CyclotomicPlaceComparison CyclotomicLengthLocalComparison | |
| open TensorAlgebraModule | |
| variable (d : β) [NeZero d] [Fact (2 < d)] | |
| local notation "π½" => SourceCyclotomicField.F d | |
| local notation "πΌ" => CyclotomicQuotient.E d | |
| local notation "z" => AdjoinRoot.root (cyclotomic d β) | |
| def conjugation : πΌ ββ[β] πΌ := (IsCMField.complexConj πΌ).restrictScalars β | |
| local notation "Ο" => conjugation d | |
| variable {V W : Type*} [AddCommGroup V] [Module β V] [AddCommGroup W] [Module β W] | |
| lemma component_adjoint (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T (cyclotomic d β * p) = 0) | |
| (hT : β x y, B (T x) (T y) = B x y) : | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| TraceHermitian.AdjointRule Ο (B.restrict (component T p)) := by | |
| let := componentScalarModule T p (cyclotomic d β) hf | |
| apply TraceHermitian.adjointRule_of_generator Ο _ z | |
| (AdjoinRoot.adjoinRoot_eq_top (f := cyclotomic d β)) | |
| Β· change z * IsCMField.complexConj πΌ z = 1 | |
| rw [SourceCyclotomicField.conj_root d] | |
| exact mul_inv_cancelβ ((root_primitive d).ne_zero (NeZero.ne d)) | |
| Β· intro x y | |
| change B ((z β’ x : component T p) : V) ((z β’ y : component T p) : V) = B x y | |
| have hroot (w : component T p) : ((z β’ w : component T p) : V) = T w := | |
| congrArg Subtype.val (root_smul (componentOperator T p) (cyclotomic d β) | |
| (component_annihilated T p (cyclotomic d β) hf) w) | |
| rw [hroot, hroot] | |
| exact hT x y | |
| lemma component_selfAdjoint (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T (cyclotomic d β * p) = 0) | |
| (hT : β x y, B (T x) (T y) = B x y) : | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| SelfAdjointScalars (F := π½) (B.restrict (component T p)) := by | |
| let := componentScalarModule T p (cyclotomic d β) hf | |
| exact selfAdjointScalars_of_fixed_involution Ο (SourceCyclotomicField.conj_fixed d) _ | |
| (component_adjoint d T B p hf hT) | |
| def componentLength (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T (cyclotomic d β * p) = 0) | |
| (hT : β x y, B (T x) (T y) = B x y) : | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| QuadraticForm π½ (component T p) := by | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| exact sourceLength (B.restrict (component T p)) (component_selfAdjoint d T B p hf hT) | |
| lemma componentLength_value (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T (cyclotomic d β * p) = 0) | |
| (hT : β x y, B (T x) (T y) = B x y) (hs : B.IsSymm) (x : component T p) : | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| algebraMap π½ πΌ (componentLength d T B p hf hT x) = | |
| TraceHermitian.lift (E := πΌ) (B.restrict (component T p)) x x := by | |
| let := componentScalarModule T p (cyclotomic d β) hf | |
| apply sourceLength_value Ο | |
| (fun a => IsCMField.complexConj_apply_apply πΌ a) | |
| (SourceCyclotomicField.exists_scalar_of_conj_fixed d) (SourceCyclotomicField.F_finrank d) | |
| (B.restrict (component T p)) (component_selfAdjoint d T B p hf hT) | |
| β¨fun a b => hs.eq a bβ© (component_adjoint d T B p hf hT) | |
| omit [Fact (2 < d)] in | |
| lemma inverse_root : aeval zβ»ΒΉ (cyclotomic d β) = 0 := by | |
| have h := (isRoot_cyclotomic_iff_charZero (NeZero.pos d)).mpr (root_primitive d).inv | |
| rw [IsRoot, β map_cyclotomic d (algebraMap β πΌ), β evalβ_eq_eval_map] at h | |
| exact h | |
| lemma componentLength_nondegenerate (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T (cyclotomic d β * p) = 0) | |
| (hT : β x y, B (T x) (T y) = B x y) | |
| (hs : B.IsSymm) (hn : B.Nondegenerate) (hc : IsCoprime (cyclotomic d β) p) : | |
| letI := componentScalarModule T p (cyclotomic d β) hf | |
| (componentLength d T B p hf hT).Nondegenerate := by | |
| let := componentScalarModule T p (cyclotomic d β) hf | |
| apply sourceLength_nondegenerate (B.restrict (component T p)) | |
| (component_selfAdjoint d T B p hf hT) β¨fun x y => hs.eq x yβ© | |
| apply ComponentNondegenerate.restriction_nondegenerate T B (component T p) z | |
| ((root_primitive d).ne_zero (NeZero.ne d)) _ hT hs hn p (cyclotomic d β) hc rfl | |
| (inverse_root d) | |
| intro x | |
| exact congrArg Subtype.val (root_smul (componentOperator T p) (cyclotomic d β) | |
| (component_annihilated T p (cyclotomic d β) hf) x) | |
| def RationalPlaceDatum (A : Type*) [CommRing A] [Algebra β A] | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) : Prop := | |
| β e : (A β[β] V) ββ[A] (A β[β] W), | |
| (β x, e (T.baseChange A x) = U.baseChange A (e x)) β§ | |
| (β x y, Bβ.baseChange A (e x) (e y) = Bβ.baseChange A x y) | |
| omit [Fact (2 < d)] in | |
| lemma componentDatum {A : Type*} [CommRing A] [Algebra β A] | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) (hfT : aeval T (cyclotomic d β * p) = 0) | |
| (hfU : aeval U (cyclotomic d β * p) = 0) | |
| (he : RationalPlaceDatum A T U Bβ Bβ) : | |
| letI := componentScalarModule T p (cyclotomic d β) hfT | |
| letI := componentScalarModule U p (cyclotomic d β) hfU | |
| LocalEquivariantIsometry A (Bβ.restrict (component T p)) (Bβ.restrict (component U p)) z := by | |
| let := componentScalarModule T p (cyclotomic d β) hfT | |
| let := componentScalarModule U p (cyclotomic d β) hfU | |
| obtain β¨e, hT, hBβ© := he | |
| exact ComponentRootLocalComparison.component_root_local_datum T U Bβ Bβ e hT hB p | |
| (cyclotomic d β) hfT hfU | |
| theorem componentLength_isometric_at_all_places | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) (hfT : aeval T (cyclotomic d β * p) = 0) | |
| (hfU : aeval U (cyclotomic d β * p) = 0) | |
| (hT : β x y, Bβ (T x) (T y) = Bβ x y) (hU : β x y, Bβ (U x) (U y) = Bβ x y) | |
| (hreal : RationalPlaceDatum β T U Bβ Bβ) | |
| (hloc : β (q : β) (_ : Fact q.Prime), RationalPlaceDatum (Padic q) T U Bβ Bβ) : | |
| letI := componentScalarModule T p (cyclotomic d β) hfT | |
| letI := componentScalarModule U p (cyclotomic d β) hfU | |
| (β v : IsDedekindDomain.HeightOneSpectrum (π π½), | |
| Nonempty (((componentLength d T Bβ p hfT hT).baseChange (v.adicCompletion π½)).IsometryEquiv | |
| ((componentLength d U Bβ p hfU hU).baseChange (v.adicCompletion π½)))) β§ | |
| (β v : InfinitePlace π½, | |
| Nonempty (((componentLength d T Bβ p hfT hT).baseChange v.Completion).IsometryEquiv | |
| ((componentLength d U Bβ p hfU hU).baseChange v.Completion))) := by | |
| let := componentScalarModule T p (cyclotomic d β) hfT | |
| let := componentScalarModule U p (cyclotomic d β) hfU | |
| constructor | |
| Β· intro v | |
| exact length_isometric_at_every_finitePlace _ _ _ _ z | |
| (AdjoinRoot.adjoinRoot_eq_top (f := cyclotomic d β)) | |
| (fun q hq => componentDatum d T U Bβ Bβ p hfT hfU (hloc q hq)) v | |
| Β· intro v | |
| exact length_isometric_at_every_infinitePlace _ _ _ _ z | |
| (AdjoinRoot.adjoinRoot_eq_top (f := cyclotomic d β)) | |
| (componentDatum d T U Bβ Bβ p hfT hfU hreal) v | |
| end | |
| end MultiplicityCounterexample.SourceComponentLengthAtPlaces | |
| namespace MultiplicityCounterexample.CyclotomicComponentFactor | |
| noncomputable section | |
| open Polynomial | |
| variable {V : Type*} [AddCommGroup V] [Module β V] | |
| lemma cyclotomic_dvd (m d : β) (hd : d β£ m) : | |
| cyclotomic d β β£ (X^m-1 : β[X]) := by | |
| apply dvd_trans (cyclotomic.dvd_X_pow_sub_one d β) | |
| obtain β¨k,rflβ© := hd | |
| simpa only [pow_mul,one_pow] using sub_dvd_pow_sub_pow (X^d : β[X]) 1 k | |
| theorem exists_complement (T : Module.End β V) (m d : β) (hm : 0 < m) | |
| (hd : d β£ m) (hT : T^m=1) : | |
| β p : β[X], cyclotomic d β*p=X^m-1 β§ | |
| IsCoprime (cyclotomic d β) p β§ aeval T (cyclotomic d β*p)=0 := by | |
| obtain β¨p,hpβ© := cyclotomic_dvd m d hd | |
| refine β¨p,hp.symm,?_,?_β© | |
| Β· apply Polynomial.Separable.isCoprime | |
| rw [β hp] | |
| exact (X_pow_sub_one_separable_iff).mpr (by exact_mod_cast hm.ne') | |
| Β· rw [β hp,map_sub,map_pow,aeval_X,map_one,hT,sub_self] | |
| lemma commute_aeval (T : Module.End β V) (p q : β[X]) : | |
| Commute (aeval T p) (aeval T q) := (Commute.all p q).map (aeval T) | |
| theorem range_eq_ker (T : Module.End β V) (f p : β[X]) | |
| (hc : IsCoprime f p) (hT : aeval T (f*p)=0) : | |
| LinearMap.range (aeval T p)=LinearMap.ker (aeval T f) := by | |
| apply le_antisymm | |
| Β· rintro x β¨y,rflβ© | |
| change (aeval T f) ((aeval T p) y)=0 | |
| rw [β Module.End.mul_apply,β map_mul,hT] | |
| rfl | |
| Β· intro x hx | |
| obtain β¨a,b,hβ© := hc | |
| refine β¨(aeval T b) x,?_β© | |
| have h' := congrArg (fun q : β[X] => (aeval T q) x) h | |
| simp only [map_add,map_mul,map_one,LinearMap.add_apply,Module.End.mul_apply, | |
| Module.End.one_apply] at h' | |
| have hx' : (aeval T f) x=0 := hx | |
| rw [hx',map_zero,zero_add] at h' | |
| rw [β Module.End.mul_apply,(commute_aeval T p b).eq,Module.End.mul_apply] | |
| exact h' | |
| lemma component_annihilation (T : Module.End β V) (f p : β[X]) | |
| (hT : aeval T (f*p)=0) (x : LinearMap.range (aeval T p)) : | |
| (aeval T f) x=0 := by | |
| obtain β¨y,hyβ© := x.property | |
| rw [β hy,β Module.End.mul_apply,β map_mul,hT] | |
| rfl | |
| theorem semisimple (T : Module.End β V) (m : β) (hm : 0 < m) (hT : T^m=1) : | |
| T.IsSemisimple := by | |
| apply Module.End.isSemisimple_of_squarefree_aeval_eq_zero | |
| ((X_pow_sub_one_separable_iff (F := β)).mpr (by exact_mod_cast hm.ne')).squarefree | |
| rw [map_sub,map_pow,aeval_X,map_one,hT,sub_self] | |
| end | |
| end MultiplicityCounterexample.CyclotomicComponentFactor | |
| namespace MultiplicityCounterexample.HasseMinkowskiGap | |
| noncomputable section | |
| open NumberField | |
| variable {F V W : Type*} [Field F] [NumberField F] | |
| [AddCommGroup V] [Module F V] [AddCommGroup W] [Module F W] | |
| def AllPlacesIsometric (Qβ : QuadraticForm F V) (Qβ : QuadraticForm F W) : Prop := | |
| (β v : IsDedekindDomain.HeightOneSpectrum (π F), | |
| Nonempty ((Qβ.baseChange (v.adicCompletion F)).IsometryEquiv | |
| (Qβ.baseChange (v.adicCompletion F)))) β§ | |
| (β v : InfinitePlace F, | |
| Nonempty ((Qβ.baseChange v.Completion).IsometryEquiv (Qβ.baseChange v.Completion))) | |
| def NumberFieldQuadraticLocalGlobal : Prop := | |
| β (F : Type) [Field F] [NumberField F] | |
| (V W : Type) [AddCommGroup V] [Module F V] [FiniteDimensional F V] | |
| [AddCommGroup W] [Module F W] [FiniteDimensional F W] | |
| (Qβ : QuadraticForm F V) (Qβ : QuadraticForm F W), | |
| Qβ.Nondegenerate β Qβ.Nondegenerate β AllPlacesIsometric Qβ Qβ β | |
| Nonempty (Qβ.IsometryEquiv Qβ) | |
| end | |
| end MultiplicityCounterexample.HasseMinkowskiGap | |
| namespace MultiplicityCounterexample.SourceComponentLengthAtPlaces | |
| noncomputable section | |
| open TensorProduct Polynomial NumberField | |
| open LinearMap (BilinForm) | |
| open CyclicComponent CyclotomicQuotient HasseMinkowskiGap | |
| variable (d : β) [NeZero d] [Fact (2 < d)] | |
| local notation "π½" => SourceCyclotomicField.F d | |
| variable {V W : Type*} [AddCommGroup V] [Module β V] [FiniteDimensional β V] | |
| [AddCommGroup W] [Module β W] [FiniteDimensional β W] | |
| theorem finite_order_component_hasse_input | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (m : β) (hm : Odd m) (hd : d β£ m) (hTm : T ^ m = 1) (hUm : U ^ m = 1) | |
| (hsβ : Bβ.IsSymm) (hsβ : Bβ.IsSymm) (hnβ : Bβ.Nondegenerate) (hnβ : Bβ.Nondegenerate) | |
| (hT : β x y, Bβ (T x) (T y) = Bβ x y) (hU : β x y, Bβ (U x) (U y) = Bβ x y) | |
| (hreal : RationalPlaceDatum β T U Bβ Bβ) | |
| (hloc : β (q : β) (_ : Fact q.Prime), RationalPlaceDatum (Padic q) T U Bβ Bβ) : | |
| β (p : β[X]) (hfT : aeval T (cyclotomic d β * p) = 0) | |
| (hfU : aeval U (cyclotomic d β * p) = 0), | |
| cyclotomic d β * p = X ^ m - 1 β§ IsCoprime (cyclotomic d β) p β§ | |
| letI := componentScalarModule T p (cyclotomic d β) hfT | |
| letI := componentScalarModule U p (cyclotomic d β) hfU | |
| FiniteDimensional π½ (component T p) β§ FiniteDimensional π½ (component U p) β§ | |
| (componentLength d T Bβ p hfT hT).Nondegenerate β§ | |
| (componentLength d U Bβ p hfU hU).Nondegenerate β§ | |
| AllPlacesIsometric (componentLength d T Bβ p hfT hT) | |
| (componentLength d U Bβ p hfU hU) := by | |
| have hmpos : 0 < m := by obtain β¨k, hkβ© := hm; omega | |
| obtain β¨p, hp, hc, hfTβ© := CyclotomicComponentFactor.exists_complement T m d hmpos hd hTm | |
| have hfU : aeval U (cyclotomic d β * p) = 0 := by | |
| rw [hp, map_sub, map_pow, aeval_X, map_one, hUm, sub_self] | |
| refine β¨p, hfT, hfU, hp, hc, ?_β© | |
| let := componentScalarModule T p (cyclotomic d β) hfT | |
| let := componentScalarModule U p (cyclotomic d β) hfU | |
| exact β¨Module.Finite.of_restrictScalars_finite β π½ (component T p), | |
| Module.Finite.of_restrictScalars_finite β π½ (component U p), | |
| componentLength_nondegenerate d T Bβ p hfT hT hsβ hnβ hc, | |
| componentLength_nondegenerate d U Bβ p hfU hU hsβ hnβ hc, | |
| componentLength_isometric_at_all_places d T U Bβ Bβ p hfT hfU hT hU hreal hlocβ© | |
| end | |
| end MultiplicityCounterexample.SourceComponentLengthAtPlaces | |
| namespace MultiplicityCounterexample.IdentityComponentAtPlaces | |
| noncomputable section | |
| open TensorProduct Polynomial NumberField | |
| open LinearMap (BilinForm) | |
| open CyclicComponent FixedFieldLocalComparison CyclotomicPlaceComparison | |
| open SourceComponentLengthAtPlaces HasseMinkowskiGap TensorAlgebraModule | |
| variable {V W : Type*} [AddCommGroup V] [Module β V] [AddCommGroup W] [Module β W] | |
| lemma identity_on_component (T : Module.End β V) (p : β[X]) | |
| (hf : aeval T ((X - 1) * p) = 0) (x : component T p) : T x = x := by | |
| have h := component_annihilated T p (X - 1) hf | |
| have he : componentOperator T p - 1 = 0 := by | |
| simpa only [map_sub, aeval_X, map_one] using h | |
| have hx := congrArg (fun f : Module.End β (component T p) => (f x : V)) he | |
| change T x - (x : V) = 0 at hx | |
| exact sub_eq_zero.mp hx | |
| lemma restriction_nondegenerate (T : Module.End β V) (B : BilinForm β V) (p : β[X]) | |
| (hf : aeval T ((X - 1) * p) = 0) (hc : IsCoprime (X - 1) p) | |
| (hT : β x y, B (T x) (T y) = B x y) (hs : B.IsSymm) (hn : B.Nondegenerate) : | |
| (B.restrict (component T p)).Nondegenerate := by | |
| apply ComponentNondegenerate.restriction_nondegenerate T B (component T p) (1 : β) | |
| one_ne_zero _ hT hs hn p (X - 1) hc rfl (by simp) | |
| intro x | |
| simpa only [one_smul] using (identity_on_component T p hf x).symm | |
| lemma rat_selfAdjoint (B : BilinForm β V) : SelfAdjointScalars (F := β) B := by | |
| intro a x y | |
| simp only [map_smul, LinearMap.smul_apply] | |
| lemma fixedForm_rat (B : BilinForm β V) : fixedForm B (rat_selfAdjoint B) = B := by | |
| ext x y | |
| have h := TraceHermitian.trace_lift_one (E := β) B x y | |
| simpa only [Algebra.trace_self, LinearMap.id_apply, fixedForm_apply] using h | |
| lemma fixedForm_rat_canonical (B : BilinForm β V) : | |
| letI : Algebra β β := DivisionRing.toRatAlgebra | |
| fixedForm (F := β) B (rat_selfAdjoint B) = B := by | |
| exact fixedForm_rat B | |
| lemma componentDatum {A : Type*} [CommRing A] [Algebra β A] | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) (he : RationalPlaceDatum A T U Bβ Bβ) : | |
| LocalEquivariantIsometry A (Bβ.restrict (component T p)) (Bβ.restrict (component U p)) (1 : β) := by | |
| obtain β¨e, hT, hBβ© := he | |
| obtain β¨c, _, hcβ© := PolynomialComponentRestriction.component_local_datum T U Bβ Bβ e hT hB p | |
| exact β¨c, by intro x; simp only [map_one, Module.End.one_apply], hcβ© | |
| lemma restricted_forms_at_every_finitePlace | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) | |
| (hloc : β (q : β) (_ : Fact q.Prime), RationalPlaceDatum (Padic q) T U Bβ Bβ) | |
| (v : IsDedekindDomain.HeightOneSpectrum (π β)) : | |
| letI : Algebra β (v.adicCompletion β) := IsDedekindDomain.HeightOneSpectrum.instAlgebraAdicCompletion (π β) β v | |
| Nonempty (((Bβ.restrict (component T p)).baseChange (v.adicCompletion β)).IsometryEquiv | |
| ((Bβ.restrict (component U p)).baseChange (v.adicCompletion β))) := by | |
| let : Algebra β (v.adicCompletion β) := IsDedekindDomain.HeightOneSpectrum.instAlgebraAdicCompletion (π β) β v | |
| have h := fixedForm_isometric_at_every_finitePlace (F := β) (E := β) | |
| (Bβ.restrict (component T p)) (Bβ.restrict (component U p)) | |
| (rat_selfAdjoint _) (rat_selfAdjoint _) (1 : β) (by | |
| apply top_unique | |
| intro x hx | |
| exact (Algebra.adjoin β ({(1 : β)} : Set β)).algebraMap_mem x) | |
| (fun q hq => componentDatum T U Bβ Bβ p (hloc q hq)) v | |
| simpa only [fixedForm_rat_canonical] using h | |
| lemma restricted_forms_at_every_infinitePlace | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) (hreal : RationalPlaceDatum β T U Bβ Bβ) (v : InfinitePlace β) : | |
| letI : Algebra β v.Completion := NumberField.InfinitePlace.Completion.instAlgebra v β | |
| Nonempty (((Bβ.restrict (component T p)).baseChange v.Completion).IsometryEquiv | |
| ((Bβ.restrict (component U p)).baseChange v.Completion)) := by | |
| let : Algebra β v.Completion := NumberField.InfinitePlace.Completion.instAlgebra v β | |
| have h := fixedForm_isometric_at_every_infinitePlace (F := β) (E := β) | |
| (Bβ.restrict (component T p)) (Bβ.restrict (component U p)) | |
| (rat_selfAdjoint _) (rat_selfAdjoint _) (1 : β) (by | |
| apply top_unique | |
| intro x hx | |
| exact (Algebra.adjoin β ({(1 : β)} : Set β)).algebraMap_mem x) | |
| (componentDatum T U Bβ Bβ p hreal) v | |
| simpa only [fixedForm_rat_canonical] using h | |
| lemma diagonal_nondegenerate (B : BilinForm β V) (hs : B.IsSymm) (hn : B.Nondegenerate) : | |
| B.toQuadraticMap.Nondegenerate := by | |
| apply QuadraticMap.nondegenerate_associated_iff.mp | |
| rw [QuadraticMap.associated_left_inverse β hs.eq] | |
| exact hn | |
| lemma diagonal_baseChange {K : Type*} [CommRing K] [Algebra β K] (B : BilinForm β V) : | |
| QuadraticForm.baseChange K B.toQuadraticMap = (B.baseChange K).toQuadraticMap := by | |
| apply _root_.baseChange_ext | |
| intro x | |
| simp only [QuadraticForm.baseChange_tmul, LinearMap.BilinMap.toQuadraticMap_apply, | |
| LinearMap.BilinForm.baseChange_tmul, mul_one, Algebra.smul_def] | |
| def diagonalIsometryAtPlace {K : Type*} [CommRing K] [Algebra β K] | |
| (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (e : (Bβ.baseChange K).IsometryEquiv (Bβ.baseChange K)) : | |
| (QuadraticForm.baseChange K Bβ.toQuadraticMap).IsometryEquiv (QuadraticForm.baseChange K Bβ.toQuadraticMap) where | |
| __ := e.toLinearEquiv | |
| map_app' x := by | |
| rw [diagonal_baseChange, diagonal_baseChange] | |
| exact e.map_app x x | |
| theorem component_all_places | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (p : β[X]) (hreal : RationalPlaceDatum β T U Bβ Bβ) | |
| (hloc : β (q : β) (_ : Fact q.Prime), RationalPlaceDatum (Padic q) T U Bβ Bβ) : | |
| AllPlacesIsometric (Bβ.restrict (component T p)).toQuadraticMap | |
| (Bβ.restrict (component U p)).toQuadraticMap := by | |
| constructor | |
| Β· intro v | |
| let : Algebra β (v.adicCompletion β) := IsDedekindDomain.HeightOneSpectrum.instAlgebraAdicCompletion (π β) β v | |
| obtain β¨eβ© := restricted_forms_at_every_finitePlace T U Bβ Bβ p hloc v | |
| exact β¨diagonalIsometryAtPlace _ _ eβ© | |
| Β· intro v | |
| let : Algebra β v.Completion := NumberField.InfinitePlace.Completion.instAlgebra v β | |
| obtain β¨eβ© := restricted_forms_at_every_infinitePlace T U Bβ Bβ p hreal v | |
| exact β¨diagonalIsometryAtPlace _ _ eβ© | |
| theorem finite_order_identity_hasse_input [FiniteDimensional β V] [FiniteDimensional β W] | |
| (T : Module.End β V) (U : Module.End β W) (Bβ : BilinForm β V) (Bβ : BilinForm β W) | |
| (m : β) (hm : Odd m) (hTm : T ^ m = 1) (hUm : U ^ m = 1) | |
| (hsβ : Bβ.IsSymm) (hsβ : Bβ.IsSymm) (hnβ : Bβ.Nondegenerate) (hnβ : Bβ.Nondegenerate) | |
| (hT : β x y, Bβ (T x) (T y) = Bβ x y) (hU : β x y, Bβ (U x) (U y) = Bβ x y) | |
| (hreal : RationalPlaceDatum β T U Bβ Bβ) | |
| (hloc : β (q : β) (_ : Fact q.Prime), RationalPlaceDatum (Padic q) T U Bβ Bβ) : | |
| β (p : β[X]), (X - 1) * p = X ^ m - 1 β§ IsCoprime (X - 1) p β§ | |
| (Bβ.restrict (component T p)).toQuadraticMap.Nondegenerate β§ | |
| (Bβ.restrict (component U p)).toQuadraticMap.Nondegenerate β§ | |
| AllPlacesIsometric (Bβ.restrict (component T p)).toQuadraticMap | |
| (Bβ.restrict (component U p)).toQuadraticMap := by | |
| have hmpos : 0 < m := by obtain β¨k, hkβ© := hm; omega | |
| obtain β¨p, hp, hc, hfTβ© := CyclotomicComponentFactor.exists_complement T m 1 hmpos (one_dvd m) hTm | |
| rw [cyclotomic_one] at hp hc hfT | |
| have hfU : aeval U ((X - 1) * p) = 0 := by | |
| rw [hp, map_sub, map_pow, aeval_X, map_one, hUm, sub_self] | |
| exact β¨p, hp, hc, | |
| diagonal_nondegenerate (Bβ.restrict (component T p)) β¨fun x y => hsβ.eq x yβ© | |
| (restriction_nondegenerate T Bβ p hfT hc hT hsβ hnβ), | |
| diagonal_nondegenerate (Bβ.restrict (component U p)) β¨fun x y => hsβ.eq x yβ© | |
| (restriction_nondegenerate U Bβ p hfU hc hU hsβ hnβ), | |
| component_all_places T U Bβ Bβ p hreal hlocβ© | |
| end | |
| end MultiplicityCounterexample.IdentityComponentAtPlaces | |
| end OAI | |