Alphabeta Math
ExampleConstruction: AI-adaptedVerification: AI-generatedprecheck passaudited 2026-07-27
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

The 2-adic absolute value gives an ultrametric on Q, in which every triangle is isosceles and every point of a ball is a centre

Example

Write 2:=1+1. Call an integer (The integers as equivalence classes of pairs of naturals) even if it is 2t for some integer t, and odd if it is 2t+1 for some integer t.

The 2-adic valuation. Every nonzero integer m can be written in exactly one way as

m=2 juwith j∈N and u odd,

and v2(m):=j is the 2-adic valuation of m (Integer powers am). For a nonzero rational x (The rationals as equivalence classes of pairs of integers), written x=a/b with a and b nonzero integers, the integer

v2(x):=v2(a)−v2(b)

does not depend on the chosen representation. The 2-adic absolute value is

∣x∣2:=2−v2(x)(x≠0),∣0∣2:=0,

read inside R through the embeddings Z→Q→R (The integers embed in the rationals, The unique embedding of ℚ into an ordered field), and the 2-adic distance is

d2(x,y):=∣x−y∣2(x,y∈Q).

Claims.

  1. d2 is an ultrametric on Q (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric): it satisfies (M1), (M2) and the strong triangle inequality d2(x,z)≤max⁡{d2(x,y),d2(y,z)}.
  2. Every triangle is isosceles: if d2(x,y)≠d2(y,z) then d2(x,z)=max⁡{d2(x,y),d2(y,z)}.
  3. Every point of a ball is a centre: if y∈B(x,r) then B(y,r)=B(x,r) (Open ball, closed ball and sphere in a metric space).

Why p=2 and not a general prime. The general p-adic valuation needs primality and unique factorisation in Z, which are developed on Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic (The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a, Euclid's lemma: if p is prime and p∣ab then p∣a or p∣b, The fundamental theorem of arithmetic: every integer n≥1 is a product of primes, and the factorisation is unique up to order — if ∏i<rpi=∏j<sqj with every pi and qj prime, then r=s and qi=pπ(i) for some π∈Sym⁡(r), The p-adic valuation extends to the nonzero rationals by vp(a/b):=vp(a)−vp(b)∈Z, independently of the representation; it satisfies vp(xy)=vp(x)+vp(y), and vp(x+y)≥min⁡{vp(x),vp(y)} whenever x, y and x+y are nonzero) and are therefore available here; this item nevertheless develops the case p=2 from parity alone, so that the ultrametric geometry below rests on nothing but the discreteness of Z. At p=2 everything reduces to parity, which is available: The even and odd index maps and the alternating sequence: strictly increasing e,o with N their disjoint union, and the unique (sk) with s0=1, sσ(k)=−sk, which satisfies ∣sk∣=1, s∘e≡1 and s∘o≡−1 partitions N into the ranges of its two index maps, and that is what claim 2 of the verification turns into "even or odd, never both".

Claims 2 and 3 use nothing about d2 beyond the strong triangle inequality, so they hold in every ultrametric space.

Facts & Assumptions

Given: The integers Z and rationals Q with their arithmetic; the successor σ on N; the element 2=1+1; the index maps e,o of The even and odd index maps and the alternating sequence: strictly increasing e,o with N their disjoint union, and the unique (sk) with s0=1, sσ(k)=−sk, which satisfies ∣sk∣=1, s∘e≡1 and s∘o≡−1; and integers m,a,c and rationals x,y,z as introduced in the steps.

[L1]

Ring and field arithmetic: Z is a commutative ring (The integers form a commutative ring) and Q a field (The rationals form a field, The rationals as equivalence classes of pairs of integers); Z is totally ordered and its order is compatible with addition and with multiplication by positives (The integers form a totally ordered ring); nonzero integers have nonzero product and cancel (The integers have no zero divisors; multiplicative cancellation).

[L3]

The index maps: e0=0, eσ(j)=σ(σ(ej)), o0=σ(0), oσ(j)=σ(σ(oj)), and N is the disjoint union of the ranges of e and o, each natural lying in exactly one range and being hit exactly once (The even and odd index maps and the alternating sequence: strictly increasing e,o with N their disjoint union, and the unique (sk) with s0=1, sσ(k)=−sk, which satisfies ∣sk∣=1, s∘e≡1 and s∘o≡−1).

[L4]

Addition on N: m+0=m, m+σ(k)=σ(m+k) (Addition of natural numbers) and σ(m)+n=σ(m+n) (Left successor law for addition); the order is total and transitive (Order on the natural numbers, ≤ is a linear order on N), and n≠0 gives n≥1 (Discreteness: σ(n) is the immediate successor).

[L5]

The embedding N→Z is injective, preserves addition, multiplication and order, and its image is exactly the set of integers ≥0 (The naturals embed in the integers); the embeddings Z→Q→R are injective and order preserving (The integers embed in the rationals, The unique embedding of ℚ into an ordered field).

[L6]

Powers: a0=1, an+1=ana, am+n=aman and a−m=(am)−1, valid for integer exponents when a≠0, and a≠0 gives an≠0 (Integer powers am, Laws of integer exponents); for a>1 and k≥1 one has ak≥a>1, and a>0 gives an>0 (Monotonicity of x↦xn and of n↦an).

[L8]

Metric notions: the axioms (M1), (M2), (M3), the strong form (M3'), and the fact that a function satisfying (M1), (M2), (M3') is nonnegative and hence satisfies (M3), the maximum of two nonnegative reals being at most their sum (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric, Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Maximum and minimum of a set, Every nonempty finite set of reals has a maximum and a minimum); balls are as in Open ball, closed ball and sphere in a metric space.

Verification

technique · direct
1.1

For every j∈N one has ej=j+j and oj=σ(j+j), by induction on j: at j=0, e0=0=0+0 and o0=σ(0)=σ(0+0); and if ej=j+j and oj=σ(j+j), then eσ(j)=σ(σ(ej))=σ(σ(j+j))=σ(j)+σ(j) and oσ(j)=σ(σ(oj))=σ(σ(σ(j+j)))=σ(σ(j)+σ(j)), using σ(p)+q=σ(p+q) and p+σ(q)=σ(p+q).

L2L3L4
1.2

No integer k satisfies 0<k<1: such a k would be positive, hence the image of a natural n≠0, so n≥1 and, the embedding being order preserving, k≥1, contradicting k<1.

L1L4L5
1.3

A product of two odd integers is odd: (2a+1)(2c+1)=2(2ac+a+c)+1 by ring arithmetic.

L1
2.1

Every natural number is j+j for exactly one j, or σ(j+j) for exactly one j, and never both: this is the disjoint-union statement for the ranges of e and o, rewritten through step 1.1.

step 1.1L3
2.2

No integer is both even and odd: if 2s=2t+1 then the integer k:=s−t satisfies 2k=1, and k≤0 would give 2k≤0<1 while k≥1 would give 2k≥2>1, so 0<k<1, which step 1.2 forbids.

step 1.2L1L7
3.1

Every integer is even or odd: an integer m≥0 is the image of a natural n, which by step 2.1 is j+j or σ(j+j), so m is 2t or 2t+1 with t the image of j, the embedding preserving addition and successors; and if m<0 then −m>0 is 2t or 2t+1, whence m=2(−t) or m=2(−t−1)+1.

step 2.1L1L5
3.2

The representation is unique: if 2 ju=2 j′u′ with u,u′ odd and, without loss of generality, j≤j′, then 2 j′=2 j2 j′−j and cancelling the nonzero factor 2 j gives u=2 j′−ju′; if j′>j then j′−j≥1 and u=2(2 j′−j−1u′) is even as well as odd, which step 2.2 forbids; so j=j′ and then u=u′.

step 2.2L1L4L6
4.1

Every nonzero integer m is 2 ju with j∈N and u odd: apply strong induction to the property P(n) that every nonzero integer whose absolute value is the image of n, that is every nonzero m equal to the image of n or to its negative, has such a representation. Given n and P(k) for all k<n, note n≠0 since m≠0; by step 2.1 either n=σ(j+j), in which case m is ±(2t+1) and hence odd by the computation of step 3.1, so m=20m works, or n=j+j with j≠0, in which case m=2m′ for the nonzero integer m′ that is the image of j or its negative, and j<n because j≥1 gives n=j+j≥j+1>j, so P(j) supplies m′=2 iu and m=2 i+1u. Every nonzero integer is the image of some natural or its negative, so the conclusion holds for all of them.

step 2.1step 3.1L1L2L4L5L6
5.1

For nonzero integers a,c with a+c≠0: v2(a+c)≥min⁡{v2(a),v2(c)}. Indeed write a=2 su and c=2 s′u′ with u,u′ odd and, without loss of generality, s≤s′; then a+c=2 s(u+2 s′−su′), the bracket is a nonzero integer, so by step 4.1 it equals 2 iq with q odd, whence a+c=2 s+iq and, by the uniqueness of step 3.2, v2(a+c)=s+i≥s=min⁡{s,s′}.

step 3.2step 4.1L1L6
5.2

The valuation of a nonzero rational is well defined: if a/b=c/d with a,b,c,d nonzero integers then ad=cb, and writing a=2 su, b=2 tw, c=2 s′u′, d=2 t′w′ with all four of u,w,u′,w′ odd gives ad=2 s+t′(uw′) and cb=2 s′+t(u′w) with uw′ and u′w odd by step 1.3; the uniqueness of step 3.2 applied to the nonzero integer ad forces s+t′=s′+t, that is s−t=s′−t′.

step 1.3step 3.2step 4.1L1L6
6.1

Basic properties of ∣⋅∣2: for x≠0 the value 2−v2(x) is a positive real, since 2>0 and powers and inverses of positives are positive; so ∣x∣2>0 for x≠0 and ∣x∣2=0 exactly when x=0. Moreover ∣−x∣2=∣x∣2, because −x=(−a)/b and −(2 su)=2 s(−u) with −u=2(−t−1)+1 odd when u=2t+1, so v2(−x)=v2(x).

step 5.2L1L6L7
7.1

Strong triangle inequality for ∣⋅∣2: ∣x+y∣2≤max⁡{∣x∣2,∣y∣2}. If x=0, or y=0, or x+y=0, this is immediate from step 6.1. Otherwise write x=a/b and y=c/b over a common nonzero denominator b, with a,c nonzero integers, so that x+y=(a+c)/b with a+c≠0; then v2(x)=v2(a)−v2(b), v2(y)=v2(c)−v2(b) and v2(x+y)=v2(a+c)−v2(b), so step 5.1 gives v2(x+y)≥min⁡{v2(x),v2(y)}; finally t↦2 t is strictly increasing on Z, since for t<t′ one has 2 t′=2 t2 t′−t with 2 t>0 and 2 t′−t>1, so 2−v2(x+y)≤2−min⁡{v2(x),v2(y)}=max⁡{2−v2(x),2−v2(y)}.

step 5.1step 5.2L1L5L6L7
8.1

Claim 1: d2(x,y)=∣x−y∣2 vanishes exactly when x=y by step 6.1, is symmetric because ∣y−x∣2=∣−(x−y)∣2=∣x−y∣2, and satisfies d2(x,z)=∣(x−y)+(y−z)∣2≤max⁡{∣x−y∣2,∣y−z∣2}=max⁡{d2(x,y),d2(y,z)} by step 7.1; being nonnegative, it also satisfies the ordinary triangle inequality, the maximum of two nonnegative reals being at most their sum. So d2 is an ultrametric on Q.

step 6.1step 7.1L8
9.1

Claim 2: suppose d2(x,y)≠d2(y,z) and, without loss of generality, d2(x,y)<d2(y,z). Then d2(x,z)≤max⁡{d2(x,y),d2(y,z)}=d2(y,z); and d2(y,z)≤max⁡{d2(y,x),d2(x,z)}=max⁡{d2(x,y),d2(x,z)}, where the maximum cannot be d2(x,y), since that would give d2(y,z)≤d2(x,y)<d2(y,z); so d2(y,z)≤d2(x,z) and the two are equal, that is d2(x,z)=max⁡{d2(x,y),d2(y,z)}.

step 8.1L7L8
9.2

Claim 3: let y∈B(x,r), so d2(x,y)<r. For z∈B(y,r) the strong triangle inequality gives d2(x,z)≤max⁡{d2(x,y),d2(y,z)}<r, so z∈B(x,r); and for z∈B(x,r) it gives d2(y,z)≤max⁡{d2(y,x),d2(x,z)}<r, so z∈B(y,r). Hence B(y,r)=B(x,r).

step 8.1L8
10.1

Claims 1, 2 and 3 are established by steps 8.1, 9.1 and 9.2, so the 2-adic distance is an ultrametric on Q in which every triangle is isosceles and every point of a ball is a centre.

step 8.1step 9.1step 9.2∎

Remarks

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

105 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources