math / data /lean /OAI /Analysis /DifferentialForms /WeakApproximation.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.08 kB
import Mathlib
import OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType
/-! # Weak Approximation -/
namespace OAI.Analysis.DifferentialForms.WeakApproximation.Local
noncomputable section
/- WeakApproximation is used with its stated completion-valued conclusion. The local targets
are field elements (eventually 0 or 1), so no surjectivity of a completion map
onto β„‚ is required. No statement stub is imported. -/
open scoped Classical
open _root_.NumberField
variable {E Place : Type*} [Field E] [Algebra β„š E] [NumberField E]
[Fintype Place]
/-- The supplied WeakApproximation proposition, specialized to E and the finite place set. -/
def WeakApproximationInput : Prop :=
βˆ€ (v : Place β†’ AbsoluteValue E ℝ),
(βˆ€ i, (v i).IsNontrivial) β†’
(Pairwise fun i j => Β¬ (v i).IsEquiv (v j)) β†’
DenseRange (fun x : E => fun i : Place => (x : (v i).Completion))
omit [NumberField E] [Fintype Place] in
lemma distinct_places
(Οƒ : Place β†’ E →ₐ[β„š] β„‚)
(hσ : Function.Injective (fun p : Place × Bool =>
if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (Οƒ p.1) else Οƒ p.1)) :
Function.Injective (fun Ο„ => InfinitePlace.mk (Οƒ Ο„).toRingHom) := by
intro u v huv
rcases InfinitePlace.mk_eq_iff.mp huv with h | h
Β· have he : Οƒ u = Οƒ v := by
ext x
exact congrArg (fun f : E β†’+* β„‚ => f x) h
have hp : (u, false) = (v, false) := hσ (show (if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ u) else σ u) =
(if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (Οƒ v) else Οƒ v) from he)
exact congrArg Prod.fst hp
Β· have he : AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (Οƒ u) = Οƒ v := by
ext x
exact congrArg (fun f : E β†’+* β„‚ => f x) h
have hp : (u, true) = (v, false) := hσ (show (if (true : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (σ u) else σ u) =
(if (false : Bool) then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (Οƒ v) else Οƒ v) from he)
have hb := congrArg Prod.snd hp
cases hb
omit [NumberField E] in
lemma approximate_local_field_elements
(hWeakApproximation : WeakApproximationInput (E := E) (Place := Place))
(Οƒ : Place β†’ E →ₐ[β„š] β„‚)
(hσ : Function.Injective (fun p : Place × Bool =>
if p.2 then AlgebraicGeometry.ComplexMultiplication.EmbeddingHodgeType.CM.conjugateEmbedding (Οƒ p.1) else Οƒ p.1))
(target : Place β†’ E) (Ξ΄ : Place β†’ ℝ) (hΞ΄ : βˆ€ Ο„, 0 < Ξ΄ Ο„) :
βˆƒ t : E, βˆ€ Ο„, dist (Οƒ Ο„ t) (Οƒ Ο„ (target Ο„)) < Ξ΄ Ο„ := by
let w : Place β†’ InfinitePlace E := fun Ο„ => InfinitePlace.mk (Οƒ Ο„).toRingHom
have hw : Function.Injective w := distinct_places σ hσ
let O : Set ((Ο„ : Place) β†’ (w Ο„).val.Completion) :=
{z | βˆ€ Ο„, dist (z Ο„) (target Ο„ : (w Ο„).val.Completion) < Ξ΄ Ο„}
have ho : IsOpen O := by
simp only [O, Set.ofPred_forall]
apply isOpen_iInter_of_finite
intro Ο„
exact isOpen_lt ((continuous_apply Ο„).dist continuous_const) continuous_const
have hn : O.Nonempty := ⟨fun Ο„ => (target Ο„ : (w Ο„).val.Completion), by
intro Ο„
simpa using hΞ΄ Ο„βŸ©
have hd := hWeakApproximation (fun Ο„ => (w Ο„).val) (fun Ο„ => (w Ο„).isNontrivial)
(fun u v huv he => huv (hw (InfinitePlace.eq_iff_isEquiv.mpr he)))
obtain ⟨t, ht⟩ := hd.exists_mem_open ho hn
refine ⟨t, fun Ο„ => ?_⟩
have h := ht Ο„
change dist
((WithAbs.toAbs (w Ο„).val t : WithAbs (w Ο„).val) : (w Ο„).val.Completion)
((WithAbs.toAbs (w Ο„).val (target Ο„) : WithAbs (w Ο„).val) :
(w Ο„).val.Completion) < Ξ΄ Ο„ at h
rw [UniformSpace.Completion.dist_eq, dist_eq_norm] at h
change β€–Οƒ Ο„ (t - target Ο„)β€– < Ξ΄ Ο„ at h
simpa only [map_sub, dist_eq_norm] using h
end
end OAI.Analysis.DifferentialForms.WeakApproximation.Local