Documentation

Atlas.ArithmeticGeometry.code.WeakApproximation

The rational numbers are dense in $\mathbb{Q}_p$: the inclusion $\mathbb{Q} \hookrightarrow \mathbb{Q}_p$ has dense range.

theorem AbsoluteValue.denseRange_algebraMap_pi {R : Type u_1} [Field R] {ι : Type u_2} [Fintype ι] {v : ιAbsoluteValue R } (hnt : ∀ (i : ι), (v i).IsNontrivial) (hne : Pairwise fun (i j : ι) => ¬(v i).IsEquiv (v j)) :
DenseRange (algebraMap R ((i : ι) → WithAbs (v i)))

Density of the diagonal embedding $R \to \prod_i (R, v_i)$ given a finite family of pairwise inequivalent nontrivial absolute values; this is the algebraic core of weak approximation.

theorem AbsoluteValue.denseRange_coe_completion_pi {R : Type u_1} [Field R] {ι : Type u_2} [Fintype ι] {v : ιAbsoluteValue R } (hnt : ∀ (i : ι), (v i).IsNontrivial) (hne : Pairwise fun (i j : ι) => ¬(v i).IsEquiv (v j)) :
DenseRange fun (x : R) (i : ι) => (WithAbs.toAbs (v i) x)

Diagonal embedding into the product of completions has dense range: the image of $R$ is dense in $\prod_i \widehat{R}_{v_i}$ for pairwise inequivalent nontrivial absolute values.

inductive PlaceQ :

A place of $\mathbb{Q}$ is either the archimedean (real) place or a $p$-adic place for some prime $p$.

Instances For
    @[implicit_reducible]

    Decidable equality on places of $\mathbb{Q}$: two places are either both infinite, or finite with the same prime.

    The absolute value on $\mathbb{Q}$ associated to a place: the $p$-adic absolute value for a finite place, and the real absolute value $|\cdot|_\infty$ for the infinite place.

    Instances For

      The $p$-adic absolute value on $\mathbb{Q}$ is nontrivial: $|p|_p = 1/p < 1$.

      The real (infinite) absolute value on $\mathbb{Q}$ is nontrivial: $|2|_\infty = 2 \ne 1$.

      Every place of $\mathbb{Q}$ yields a nontrivial absolute value.

      A $p$-adic absolute value is not equivalent to the real absolute value: any $p$ has $|p|_p < 1$ while $|p|_\infty > 1$.

      $p$-adic and $q$-adic absolute values are inequivalent whenever $p \ne q$.

      Pairwise inequivalence of distinct places: the absolute values from any two distinct places of $\mathbb{Q}$ are not equivalent.

      theorem weak_approximation_rationals {ι : Type u_1} [Fintype ι] (v : ιPlaceQ) (hv : Function.Injective v) :
      DenseRange fun (x : ) (i : ι) => (WithAbs.toAbs (v i).absValue x)

      Theorem 11.7 (Weak Approximation for $\mathbb{Q}$): the diagonal embedding $\mathbb{Q} \to \prod_i \widehat{\mathbb{Q}}_{v_i}$ has dense range for any finite injective family of places. Concretely, one can simultaneously approximate any tuple of elements in the completions by a single rational number.

      theorem strong_approximation_integers {ι : Type u_1} [Fintype ι] [DecidableEq ι] (p : ι) [hp : ∀ (i : ι), Fact (Nat.Prime (p i))] (hinj : Function.Injective p) :
      DenseRange fun (z : ) (i : ι) => z

      Theorem 11.8 (Strong Approximation for $\mathbb{Z}$): the diagonal embedding $\mathbb{Z} \to \prod_i \mathbb{Z}_{p_i}$ has dense range for any finite injective family of primes. The proof combines $p$-adic density with the Chinese Remainder Theorem.