Sums and products
A sum is known modulo the gcd of the moduli; a product modulo the gcd of the cross terms — (3 + 12a)(5 + 8b) = 15 + 24a + 60b + 96ab, and gcd(24, 60, 96) = 12.
A number you only know modulo something is still a number you can compute with. "3 mod 12" is a set — every integer that leaves remainder 3 — and adding "5 mod 8" to it gives a set too: everything is
This page follows Mathé Hertogh's thesis Computing with adèles and idèles (Leiden, 2021) and its Sage package, over ProfiniteNumber, Adele and Idele — and everything else is an existing head that learned to take them.
ProfiniteNumber(x, m) is the coset
A sum is known modulo the gcd of the moduli; a product modulo the gcd of the cross terms — (3 + 12a)(5 + 8b) = 15 + 24a + 60b + 96ab, and gcd(24, 60, 96) = 12.
Equality asks whether the two sets meet. That is the only honest question about values known approximately, and it is not transitive: 6 mod 20 meets 6 mod 40 and 26 mod 40, which do not meet each other.
6 mod 20 is compatible with both; the two finer values are not compatible with each other.
By the Chinese remainder theorem, knowing AdicNumeral(p, z) projects, and ProfiniteNumber of a list of them glues back.
100 mod 24 is 4 mod 8 at 2 and 1 mod 3 at 3; gluing the pieces gives it back. At 5 nothing is known, so the projection declines.
Numerator and Denominator split it that way.
gcd(97/5, 10) = 1/5, and 1/2 + 1/3 = 5/6 ≡ 1/30 mod 1/5. 2/3 mod 5 is (2 mod 15)/3.
Fibonacci is a continuous function LucasL.
The Pisano period of 11 is 10, so n ≡ 3 mod 10 fixes Fₙ ≡ 2 mod 11 and Lₙ ≡ 4 mod 11.
A function on ProfinitePlot(f, x, k) fills a cell when
The identity is a diagonal; Fibonacci is a fractal that keeps meeting it.
An adèle of Adele(r, z) is the pair; a rational sits on the diagonal, Adele(q) being
A rational multiplies both components; adèles add componentwise.
The idèles are the units of the adèles, with a finer topology: a nonzero real and, at each prime, a nonzero Idele(r, s, [...]) keeps the valuations in one positive rational Idele(r, q) is principal:
7 and 1/7 are inverse. A listed component moves its valuation into the scale: 15/7 at 5 is 5 × (3/7), and 3/7 ≡ 54 mod 125.
Every idèle is an adèle — the one whose component at Adele(idèle) finds the coset in
At 3 the unit is 2 mod 9; at 2 it is odd: together 11 mod 18.
Every ProfiniteDecomposition(m) finds
The rows of [[3, 1], [1, 1]] span the lattice with Hermite form [[1, 1], [0, 2]], and B = [[3, −1], [1, 0]] is unimodular. Known only modulo 12 — a multiple of the determinant — the same A comes out, and B is known modulo 12 in its first column and 6 in its second — A⁻¹ halves it.
Hertogh's package works over any number field