Download data/lean/OAI/Analysis/DifferentialForms/WeakApproximation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/WeakApproximation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DifferentialForms/WeakApproximation.lean
-
curl -L -o WeakApproximation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DifferentialForms/WeakApproximation.lean
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 | |