Buckets:
| import OAI.NumberTheory.Adeles.FiniteNorm | |
| import OAI.NumberTheory.Adeles.NormAlgebra | |
| /-! # Completion Factors Finite Tensor -/ | |
| namespace OAI.NumberTheory.Adeles.CompletionFactorsFiniteTensor | |
| noncomputable section | |
| section | |
| /-! Scalar extension and the finite completion factors. -/ | |
| open _root_.NumberField IsDedekindDomain HeightOneSpectrum | |
| open scoped _root_.NumberField _root_.Topology TensorProduct OAI.NumberTheory.Adeles.LocalCompletions.CompletionFactors.FiniteLiesOver Valued | |
| variable {F E : Type*} [Field F] [NumberField F] | |
| [Field E] [NumberField E] [Algebra F E] | |
| (v : HeightOneSpectrum (π F)) | |
| def finiteTensorMapAt (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) : | |
| v.adicCompletion F β[F] E ββ[v.adicCompletion F] w.val.adicCompletion E := | |
| Algebra.TensorProduct.lift | |
| (Algebra.algHom (v.adicCompletion F) (v.adicCompletion F) (w.val.adicCompletion E)) | |
| (Algebra.algHom F E (w.val.adicCompletion E)) (fun _ _ => mul_comm ..) | |
| theorem finiteTensorMapAt_surjective (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) : | |
| Function.Surjective (finiteTensorMapAt v w) := by | |
| have hd : DenseRange (finiteTensorMapAt v w) := by | |
| apply (w.val.denseRange_algebraMap E).mono | |
| rintro _ β¨x, rflβ© | |
| refine β¨1 ββ[F] x, ?_β© | |
| simp [finiteTensorMapAt, Algebra.algHom] | |
| change Function.Surjective (finiteTensorMapAt v w).toLinearMap | |
| rw [β Set.range_eq_univ, β (finiteTensorMapAt v w).toLinearMap.coe_range, | |
| β (finiteTensorMapAt v w).toLinearMap.range.closed_of_finiteDimensional.closure_eq] | |
| exact hd.closure_range | |
| /-- A continuous local map compatible with the global field determines its prime. -/ | |
| theorem finitePlace_eq_of_localHom (w z : FiniteNorm.CompletionFactors.FinitePlacesOver E v) | |
| (f : w.val.adicCompletion E ββ[v.adicCompletion F] z.val.adicCompletion E) | |
| (hf : β x : E, f (algebraMap E (w.val.adicCompletion E) x) = | |
| algebraMap E (z.val.adicCompletion E) x) : w = z := by | |
| apply Subtype.ext | |
| apply HeightOneSpectrum.ext | |
| apply w.val.isMaximal.eq_of_le z.val.isPrime.ne_top | |
| intro a ha | |
| have hw : βFinitePlace.embedding w.val (a : E)β < 1 := | |
| (FinitePlace.norm_lt_one_iff_mem E w.val a).mpr ha | |
| have ht := tendsto_pow_atTop_nhds_zero_iff_norm_lt_one.mpr hw | |
| have hc : Continuous f := f.toLinearMap.continuous_of_finiteDimensional | |
| have hx : f (FinitePlace.embedding w.val (a : E)) = | |
| FinitePlace.embedding z.val (a : E) := hf (a : E) | |
| have hz : Filter.Tendsto (fun n : β => | |
| (FinitePlace.embedding z.val (a : E)) ^ n) Filter.atTop (π 0) := by | |
| simpa only [Function.comp_def, map_zero, map_pow, hx] using (hc.tendsto 0).comp ht | |
| exact (FinitePlace.norm_lt_one_iff_mem E z.val a).mp | |
| (tendsto_pow_atTop_nhds_zero_iff_norm_lt_one.mp hz) | |
| theorem finiteTensorMapAt_ker_pairwise : | |
| Pairwise (fun w z : FiniteNorm.CompletionFactors.FinitePlacesOver E v => | |
| RingHom.ker (finiteTensorMapAt v w).toRingHom β | |
| RingHom.ker (finiteTensorMapAt v z).toRingHom) := by | |
| intro w z hwz hker | |
| let f := (finiteTensorMapAt v w).liftOfSurjective (finiteTensorMapAt_surjective v w) | |
| (finiteTensorMapAt v z) hker.le | |
| apply hwz | |
| apply finitePlace_eq_of_localHom v w z f | |
| intro x | |
| have h := AlgHom.liftOfSurjective_apply (finiteTensorMapAt v w) | |
| (finiteTensorMapAt_surjective v w) (finiteTensorMapAt v z) hker.le (1 ββ[F] x) | |
| simpa [f, finiteTensorMapAt, Algebra.algHom] using h | |
| abbrev FiniteBlock := (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) β w.val.adicCompletion E | |
| def finiteTensorMap : v.adicCompletion F β[F] E ββ[v.adicCompletion F] FiniteBlock (E := E) v := | |
| AlgHom.pi fun w => finiteTensorMapAt v w | |
| /-- Distinct completion factors are independent, by the Chinese remainder theorem. -/ | |
| theorem finiteTensorMap_surjective : Function.Surjective (finiteTensorMap (E := E) v) := by | |
| let I := fun w : FiniteNorm.CompletionFactors.FinitePlacesOver E v => RingHom.ker (finiteTensorMapAt v w).toRingHom | |
| let : β w, (I w).IsMaximal := fun w => | |
| RingHom.ker_isMaximal_of_surjective _ (finiteTensorMapAt_surjective v w) | |
| have hc : Pairwise (fun w z => IsCoprime (I w) (I z)) := by | |
| intro w z h | |
| exact Ideal.isCoprime_of_isMaximal (finiteTensorMapAt_ker_pairwise v h) | |
| let e := fun w : FiniteNorm.CompletionFactors.FinitePlacesOver E v => | |
| Ideal.quotientKerAlgEquivOfSurjective (finiteTensorMapAt_surjective v w) | |
| intro a | |
| obtain β¨b, hbβ© := Ideal.pi_quotient_surjective hc (fun w => (e w).symm (a w)) | |
| refine β¨b, funext fun w => ?_β© | |
| have h := congrArg (e w) (hb w) | |
| rw [AlgEquiv.apply_symm_apply] at h | |
| exact h | |
| end | |
| section | |
| /-! Global automorphisms and finite completion factors. -/ | |
| open _root_.NumberField IsDedekindDomain HeightOneSpectrum | |
| open scoped _root_.NumberField _root_.Topology TensorProduct OAI.NumberTheory.Adeles.LocalCompletions.CompletionFactors.FiniteLiesOver Valued | |
| variable {F E : Type*} [Field F] [NumberField F] | |
| [Field E] [NumberField E] [Algebra F E] | |
| (v : HeightOneSpectrum (π F)) | |
| def finitePlaceConjugate (Ο : E ββ[F] E) (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) : | |
| FiniteNorm.CompletionFactors.FinitePlacesOver E v := by | |
| let e := RingOfIntegers.mapAlgEquiv Ο | |
| let z := HeightOneSpectrum.comap e.toRingHom e.surjective w.val | |
| refine β¨z, ?_β© | |
| rw [Ideal.liesOver_iff] | |
| change v.asIdeal = Ideal.comap (algebraMap (π F) (π E)) | |
| (Ideal.comap e.toRingHom w.val.asIdeal) | |
| rw [Ideal.comap_comap] | |
| have he : e.toRingHom.comp (algebraMap (π F) (π E)) = | |
| algebraMap (π F) (π E) := RingHom.ext fun x => e.commutes x | |
| rw [he] | |
| exact Ideal.over_def w.val.asIdeal v.asIdeal | |
| omit [NumberField F] in | |
| theorem finitePlaceConjugate_eq_of_unique [Subsingleton (FiniteNorm.CompletionFactors.FinitePlacesOver E v)] | |
| (Ο : E ββ[F] E) (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) : | |
| w.val.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.val.asIdeal := by | |
| exact congrArg (fun z : FiniteNorm.CompletionFactors.FinitePlacesOver E v => z.val.asIdeal) | |
| (Subsingleton.elim (finitePlaceConjugate v Ο w) w) | |
| theorem intValuation_equiv (w : HeightOneSpectrum (π E)) (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) | |
| (x : π E) : w.intValuation (RingOfIntegers.mapRingHom Ο.toRingHom x) = | |
| w.intValuation x := by | |
| let e := RingOfIntegers.mapRingEquiv Ο | |
| let eI : Ideal (π E) β* Ideal (π E) := | |
| { e.idealComapOrderIso.symm.toEquiv with | |
| map_mul' := fun I J => Ideal.map_mul e.toRingHom I J } | |
| have hwe : eI w.asIdeal = w.asIdeal := by | |
| change w.asIdeal.map e.toRingHom = w.asIdeal | |
| nth_rw 1 [β hw] | |
| exact Ideal.map_comap_eq_self_of_equiv e w.asIdeal | |
| by_cases hx : x = 0 | |
| Β· simp [hx] | |
| change w.intValuation (e x) = w.intValuation x | |
| rw [w.intValuation_eq_exp_neg_multiplicity | |
| (fun h => hx (e.injective (h.trans (map_zero e).symm))), | |
| w.intValuation_eq_exp_neg_multiplicity hx] | |
| have hm := multiplicity_map_eq eI (a := w.asIdeal) (b := Ideal.span {x}) | |
| rw [hwe] at hm | |
| change multiplicity w.asIdeal ((Ideal.span {x}).map e.toRingHom) = _ at hm | |
| rw [Ideal.map_span, Set.image_singleton] at hm | |
| exact congrArg (fun n : β => WithZero.exp (-(n : β€))) hm | |
| theorem valuation_equiv (w : HeightOneSpectrum (π E)) (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) | |
| (x : E) : w.valuation E (Ο x) = w.valuation E x := by | |
| obtain β¨a, b, hb, rflβ© := IsFractionRing.div_surjective (A := π E) x | |
| simp only [map_divβ] | |
| have ha : w.valuation E (Ο (algebraMap (π E) E a)) = w.valuation E | |
| (algebraMap (π E) E a) := by | |
| change w.valuation E (algebraMap (π E) E (RingOfIntegers.mapRingHom Ο.toRingHom a)) = _ | |
| simpa only [valuation_of_algebraMap] using intValuation_equiv w Ο hw a | |
| have hb' : w.valuation E (Ο (algebraMap (π E) E b)) = w.valuation E | |
| (algebraMap (π E) E b) := by | |
| change w.valuation E (algebraMap (π E) E (RingOfIntegers.mapRingHom Ο.toRingHom b)) = _ | |
| simpa only [valuation_of_algebraMap] using intValuation_equiv w Ο hw b | |
| rw [ha, hb'] | |
| def finiteValuedAutomorphism (w : HeightOneSpectrum (π E)) (Ο : E β+* E) : | |
| WithVal (w.valuation E) β+* WithVal (w.valuation E) := | |
| ((WithVal.equiv (w.valuation E)).trans Ο).trans (WithVal.equiv (w.valuation E)).symm | |
| theorem uniformContinuous_finiteValuedAutomorphism (w : HeightOneSpectrum (π E)) | |
| (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) : | |
| UniformContinuous (finiteValuedAutomorphism w Ο).toRingHom := by | |
| apply uniformContinuous_of_continuousAt_zero (finiteValuedAutomorphism w Ο).toAddMonoidHom | |
| rw [ContinuousAt, map_zero, | |
| (Valued.hasBasis_nhds_zero (WithVal (w.valuation E)) _).tendsto_iff | |
| (Valued.hasBasis_nhds_zero (WithVal (w.valuation E)) _)] | |
| intro Ξ³ _ | |
| refine β¨Ξ³, trivial, ?_β© | |
| intro x hx | |
| change Valued.v.restrict x < Ξ³.val at hx | |
| change Valued.v.restrict (finiteValuedAutomorphism w Ο x) < Ξ³.val | |
| rw [Valuation.restrict_lt_iff_lt_embedding] at hx β’ | |
| change w.valuation E (Ο (WithVal.equiv _ x)) < _ | |
| rw [valuation_equiv w Ο hw] | |
| exact hx | |
| def finiteCompletionAutomorphism (w : HeightOneSpectrum (π E)) (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) : | |
| w.adicCompletion E β+* w.adicCompletion E := | |
| ((adicCompletion.equiv E w).symm.toRingHom.comp | |
| (UniformSpace.Completion.mapRingHom (finiteValuedAutomorphism w Ο).toRingHom | |
| (uniformContinuous_finiteValuedAutomorphism w Ο hw).continuous)).comp | |
| (adicCompletion.equiv E w).toRingHom | |
| theorem continuous_finiteCompletionAutomorphism (w : HeightOneSpectrum (π E)) | |
| (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) : | |
| Continuous (finiteCompletionAutomorphism w Ο hw) := | |
| (adicCompletion.continuous_ofCompletion E w).comp | |
| (UniformSpace.Completion.continuous_map.comp | |
| (adicCompletion.continuous_toCompletion E w)) | |
| @[simp] theorem finiteCompletionAutomorphism_coe (w : HeightOneSpectrum (π E)) | |
| (Ο : E β+* E) | |
| (hw : w.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.asIdeal) (x : E) : | |
| finiteCompletionAutomorphism w Ο hw (algebraMap E (w.adicCompletion E) x) = | |
| algebraMap E (w.adicCompletion E) (Ο x) := by | |
| apply adicCompletion.ext | |
| change UniformSpace.Completion.mapRingHom (finiteValuedAutomorphism w Ο).toRingHom _ | |
| ((WithVal.equiv (w.valuation E)).symm x : UniformSpace.Completion _) = _ | |
| exact UniformSpace.Completion.mapRingHom_coe | |
| (uniformContinuous_finiteValuedAutomorphism w Ο hw).continuous | |
| ((WithVal.equiv (w.valuation E)).symm x) | |
| theorem finiteCompletionAutomorphism_base (Ο : E ββ[F] E) (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) | |
| (hw : w.val.asIdeal.comap (RingOfIntegers.mapRingHom Ο.toRingHom) = w.val.asIdeal) | |
| (a : v.adicCompletion F) : | |
| finiteCompletionAutomorphism w.val Ο.toRingEquiv hw (LocalCompletions.CompletionFactors.finiteCompletionMap v w.val a) = | |
| LocalCompletions.CompletionFactors.finiteCompletionMap v w.val a := by | |
| apply (v.denseRange_algebraMap F).induction_on (p := fun a => | |
| finiteCompletionAutomorphism w.val Ο.toRingEquiv hw (LocalCompletions.CompletionFactors.finiteCompletionMap v w.val a) = | |
| LocalCompletions.CompletionFactors.finiteCompletionMap v w.val a) a | |
| Β· exact isClosed_eq | |
| ((continuous_finiteCompletionAutomorphism w.val Ο.toRingEquiv hw).comp | |
| (LocalCompletions.CompletionFactors.continuous_finiteCompletionMap v w.val)) (LocalCompletions.CompletionFactors.continuous_finiteCompletionMap v w.val) | |
| Β· intro x | |
| change finiteCompletionAutomorphism w.val Ο.toRingEquiv hw | |
| (LocalCompletions.CompletionFactors.finiteCompletionMap v w.val (x : v.adicCompletion F)) = | |
| LocalCompletions.CompletionFactors.finiteCompletionMap v w.val (x : v.adicCompletion F) | |
| rw [LocalCompletions.CompletionFactors.finiteCompletionMap_coe] | |
| change finiteCompletionAutomorphism w.val Ο.toRingEquiv hw | |
| (algebraMap E (w.val.adicCompletion E) (algebraMap F E x)) = _ | |
| rw [finiteCompletionAutomorphism_coe] | |
| exact congrArg (algebraMap E (w.val.adicCompletion E)) (Ο.commutes x) | |
| theorem globalAutomorphism_eq_one_of_unique_local_degree_one | |
| [Subsingleton (FiniteNorm.CompletionFactors.FinitePlacesOver E v)] (w : FiniteNorm.CompletionFactors.FinitePlacesOver E v) | |
| (hd : Module.finrank (v.adicCompletion F) (w.val.adicCompletion E) = 1) | |
| (Ο : E ββ[F] E) : Ο = 1 := by | |
| have hs := (Algebra.finrank_eq_one_iff_bijective_algebraMap.mp hd).surjective | |
| have hw := finitePlaceConjugate_eq_of_unique v Ο w | |
| apply AlgEquiv.ext | |
| intro x | |
| apply (algebraMap E (w.val.adicCompletion E)).injective | |
| change algebraMap E (w.val.adicCompletion E) (Ο.toRingEquiv x) = | |
| algebraMap E (w.val.adicCompletion E) x | |
| rw [β finiteCompletionAutomorphism_coe w.val Ο.toRingEquiv hw] | |
| obtain β¨a, haβ© := hs (algebraMap E (w.val.adicCompletion E) x) | |
| change LocalCompletions.CompletionFactors.finiteCompletionMap v w.val a = _ at ha | |
| rw [β ha] | |
| exact finiteCompletionAutomorphism_base v Ο w hw a | |
| end | |
| /-! The finite completion decomposition for a quadratic extension. -/ | |
| open _root_.NumberField IsDedekindDomain HeightOneSpectrum | |
| open scoped _root_.NumberField _root_.Topology TensorProduct OAI.NumberTheory.Adeles.LocalCompletions.CompletionFactors.FiniteLiesOver Valued | |
| variable {F E : Type*} [Field F] [NumberField F] | |
| [Field E] [NumberField E] [Algebra F E] | |
| (v : HeightOneSpectrum (π F)) | |
| instance finitePlacesOver_nonempty : Nonempty (FiniteNorm.CompletionFactors.FinitePlacesOver E v) := by | |
| obtain β¨qβ© := (inferInstance : Nonempty (v.asIdeal.primesOver (π E))) | |
| let : q.val.IsPrime := q.property.1 | |
| let : q.val.LiesOver v.asIdeal := q.property.2 | |
| exact β¨β¨β¨q.val, q.property.1, Ideal.ne_bot_of_liesOver_of_ne_bot v.ne_bot q.valβ©, | |
| q.property.2β©β© | |
| instance finiteBlock_finiteDimensional : | |
| FiniteDimensional (v.adicCompletion F) (FiniteBlock (E := E) v) := inferInstance | |
| theorem finiteBlock_finrank_quadratic (hQuadratic : Module.finrank F E = 2) : | |
| Module.finrank (v.adicCompletion F) (FiniteBlock (E := E) v) = 2 := by | |
| classical | |
| let : Algebra.IsQuadraticExtension F E := β¨hQuadraticβ© | |
| have hle : Module.finrank (v.adicCompletion F) (FiniteBlock (E := E) v) β€ 2 := by | |
| have h := LinearMap.finrank_le_finrank_of_surjective | |
| (f := (finiteTensorMap (E := E) v).toLinearMap) (finiteTensorMap_surjective v) | |
| simpa only [Module.finrank_baseChange, hQuadratic] using h | |
| have hpos : 0 < Module.finrank (v.adicCompletion F) (FiniteBlock (E := E) v) := | |
| Module.finrank_pos | |
| by_contra hne | |
| have hone : Module.finrank (v.adicCompletion F) (FiniteBlock (E := E) v) = 1 := by omega | |
| have hsum : (β w : FiniteNorm.CompletionFactors.FinitePlacesOver E v, | |
| Module.finrank (v.adicCompletion F) (w.val.adicCompletion E)) = 1 := by | |
| simpa only [FiniteBlock, Module.finrank_pi_fintype] using hone | |
| have hcard : Fintype.card (FiniteNorm.CompletionFactors.FinitePlacesOver E v) β€ 1 := by | |
| calc | |
| _ = β _w : FiniteNorm.CompletionFactors.FinitePlacesOver E v, 1 := by simp | |
| _ β€ β w : FiniteNorm.CompletionFactors.FinitePlacesOver E v, | |
| Module.finrank (v.adicCompletion F) (w.val.adicCompletion E) := | |
| Finset.sum_le_sum fun w _ => Module.finrank_pos | |
| _ = 1 := hsum | |
| let : Subsingleton (FiniteNorm.CompletionFactors.FinitePlacesOver E v) := Fintype.card_le_one_iff_subsingleton.mp hcard | |
| let w := Classical.choice (finitePlacesOver_nonempty (E := E) v) | |
| have hd : Module.finrank (v.adicCompletion F) (w.val.adicCompletion E) = 1 := by | |
| rw [Finset.sum_eq_single w (fun z _ hzw => (hzw (Subsingleton.elim z w)).elim) | |
| (fun h => (h (Finset.mem_univ w)).elim)] at hsum | |
| exact hsum | |
| let : Subsingleton (E ββ[F] E) := β¨fun Ο Ο => | |
| (globalAutomorphism_eq_one_of_unique_local_degree_one v w hd Ο).trans | |
| (globalAutomorphism_eq_one_of_unique_local_degree_one v w hd Ο).symmβ© | |
| have hc := IsGalois.card_aut_eq_finrank F E | |
| have hsmall : Nat.card (E ββ[F] E) β€ 1 := by | |
| rw [Nat.card_eq_fintype_card] | |
| exact Fintype.card_le_one_iff_subsingleton.mpr inferInstance | |
| rw [hc, hQuadratic] at hsmall | |
| omega | |
| def finiteTensorEquivQuadratic (hQuadratic : Module.finrank F E = 2) : | |
| v.adicCompletion F β[F] E ββ[v.adicCompletion F] FiniteBlock (E := E) v := | |
| AlgEquiv.ofBijective (finiteTensorMap v) (by | |
| have hd : Module.finrank (v.adicCompletion F) (v.adicCompletion F β[F] E) = | |
| Module.finrank (v.adicCompletion F) (FiniteBlock (E := E) v) := by | |
| rw [Module.finrank_baseChange, finiteBlock_finrank_quadratic v hQuadratic, hQuadratic] | |
| exact β¨(LinearMap.injective_iff_surjective_of_finrank_eq_finrank | |
| (f := (finiteTensorMap (E := E) v).toLinearMap) hd).mpr | |
| (finiteTensorMap_surjective v), finiteTensorMap_surjective vβ©) | |
| end | |
| end OAI.NumberTheory.Adeles.CompletionFactorsFiniteTensor | |
Xet Storage Details
- Size:
- 17.1 kB
- Xet hash:
- 2aff4f14728b7c149eb26dbf05da560ebbdd4050aad7357b5cd966351714ab83
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.