Weak approximation at finite places #
This file proves the finite-place weak-approximation theorem needed for function-field Riemann--Roch constructions. For finitely many distinct height-one prime ideals, one may prescribe an element of the fraction field to arbitrary positive order. The resulting global fraction is integral at every other height-one prime.
The proof is elementary Dedekind-domain algebra. First clear all prescribed fractions by one denominator. The numerator is then chosen by the Chinese remainder theorem. At a selected prime the modulus contains both the desired precision and the multiplicity of the common denominator. At every other prime dividing the denominator, a zero residue cancels the complete denominator multiplicity.
Mathlib's multiplicative adic valuation is exp (-order). Thus
v.valuation L (z - x) ≤ exp (-n) means that z - x has additive order at
least n, while v.valuation L z ≤ 1 means that z is regular at v.
If the numerator contains every occurrence of a height-one prime in the denominator, the resulting fraction is integral at that prime.
A congruence modulo the desired prime power plus the denominator multiplicity gives the corresponding adic approximation bound after division by the denominator.
Chinese-remainder numerator selection with simultaneous denominator cancellation. At selected primes the congruence precision is increased by the denominator multiplicity. Every unselected prime factor of the denominator divides the chosen numerator to its full multiplicity.
Finite-place weak approximation in a Dedekind fraction field.
The selected ideals must be prime. The function target prescribes a local
fraction at each selected ideal, and precision prescribes its approximation
order. The returned global fraction has that approximation order at every
selected height-one place and is integral at every unselected height-one
place.