Unique division · canonical signed Bézout · unordered prime factors

Constructive arithmetic and unique factorization

Expose exact foundation interfaces and construct an actual finite permutation between arbitrary prime factorizations, with no sorting or supplied canonicalization.

27 kernel- and Lean-verified Alpha-closed theorems · 22 conservative definitions · 28 notation dependencies

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable

Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.

49 items
AF0001 foundation_division_exists_unique

G001: construct the quotient and strict remainder for every nonzero divisor and prove the pair is literally unique.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0002 foundation_signed_bezout_canonical_gcd

G002: every pair, including (0,0), has a canonical gcd value and actual signed-natural Bezout coefficient codes. Only the gcd is asserted unique, not its coefficients.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0003 foundation_coprime_product_divisor

G003: coprimality and a witnessed divisor of the product construct an actual quotient of the other factor, with no positivity premise added.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0004 foundation_prime_factor_list_exists

G004: every positive natural has a genuinely constructed finite beta-coded prime-factor list and actual product trace; the existing sorted construction is used only to obtain witnesses, not required as a premise.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0005 factor_permutation_below_zero_impossible

There is no natural index below zero; empty list and permutation contracts are genuinely vacuous.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0006 factor_permutation_prefix_reflect

Actual beta functionality turns a finite forward entry preservation into reverse preservation at every original index.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0007 factor_permutation_all_prime_entry

Every actual decoded entry of an all-prime prefix is prime, without a supplied choice of matching factor.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0008 factor_permutation_product_exists

Construct an actual product value and trace for every finite beta prefix, including empty prefixes.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0009 factor_permutation_cancel_last

Cancel an actual final prime factor, retaining the nonzero predecessor product and all actual prime prefix entries.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000A factor_permutation_successor_decompose

Every nonempty prime factorization supplies an actual last prime, its actual quotient, and a genuine shorter factorization.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000B factor_permutation_unit_length_zero

The only prime factorization of one has empty length; this is an actual-product statement, not a convention imposed on a list.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000C factor_permutation_prime_member

An actual prime divisor is found at an actual occurrence of every unordered prime factorization of the product.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000D factor_permutation_empty_matching

The actual literal zero beta code is a bounded/injective/surjective matching permutation between any two empty factor prefixes.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000E factor_permutation_index_extend

Append the fresh top index to any actual finite permutation, construct the new beta code, and prove all three bijection conditions.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF000F factor_permutation_matching_append

A matching map stays matching when the same actual last factor is appended to both lists and the fresh last index is appended to the map.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0010 factor_permutation_matched_append

Construct a genuine matching permutation after adjoining the same last factor, retaining the exact prefix-preservation and fresh-index equations.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0012 factor_permutation_swap_reflect_unchanged

An actual swapped prefix reflects back to the original entry at every index other than the two moved indices.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0013 factor_permutation_swap_bijection

Swapping two actual map entries preserves boundedness and injectivity and constructively recovers full finite surjectivity.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0014 factor_permutation_swap_all_prime

A genuine index swap retains every prime factor, including duplicate equal primes; no distinct-factor hypothesis is required.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0015 factor_permutation_swap_factorization

The swapped prime list has an actual product trace with the identical nonzero product, not merely a proposed rearrangement equality.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0016 factor_permutation_swapped_factorization_exists

Construct a full recoded prime-factor list moving a selected interior prime to the last position, with exact swap witnesses and an unchanged actual product.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0017 factor_permutation_matching_unswap

Undo a target-list swap by swapping the two corresponding actual source-map entries. Entry alignment follows at the two moved positions and everywhere else by map injectivity.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0018 factor_permutation_matched_unswap_exists

Use the recursively constructed finite permutation's actual preimage, construct both extended and transposed map codes, and return a full matching bijection into the original unswapped target list.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF0019 prime_factor_lists_matching_by_length

Full induction on an arbitrary source factor list: locate the last prime in the arbitrary target, genuinely swap and cancel it, recursively match the shorter lists, and construct the restored index bijection. Neither list is assumed sorted or distinct.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF001A prime_factor_lists_permutation_exists

Exact G005: every two arbitrary unordered prime factorizations of the same positive natural admit an actual coded matching bijection, with equal lengths and explicit boundedness, injectivity, and surjectivity.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
AF001B prime_factorization_exists_unique_up_to_permutation

Construct an actual prime-factor list for every positive natural and an actual matching permutation to every competing unordered factorization. Both factor-list existence and uniqueness witnesses are conclusions, with no supplied canonical factorization.

Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
ND0142 SignedDecode(z,p,n)

The original canonical integer code: even 2p denotes p, and odd 2k+1 denotes −(k+1). The decoded positive and negative parts are normalized.

Conservative definition · notation layer 0
ND0143 SignedBalance(z,p,n)

The original canonical code z represents the integer difference p−n; these supplied components need not be normalized.

Conservative definition · notation layer 1
ND0144 SignedAdd(a,b,c)

Actual addition of original canonical signed codes, witnessed by their decoders and balanced equality.

Conservative definition · notation layer 1
ND0145 SignedMul(a,b,c)

Actual multiplication of original canonical signed codes; opposite-sign products remain on the negative side of the balance.

Conservative definition · notation layer 1
ND0146 SignedNegate(a,b)

Canonical signed negation swaps the positive and negative decoded parts.

Conservative definition · notation layer 1
ND0147 SignedBezout(g,a,b,u,v)

The original signed coefficient codes u and v witness a·u+b·v=g by actual decoded balanced arithmetic.

Conservative definition · notation layer 1
PD0002 Lt(a,b)

Witness-defined strict order on natural numbers.

Conservative definition · notation layer 0
PD0013 BetaAt(b,c,i,x)

x is the bounded beta-decoded value at index i.

Conservative definition · notation layer 0
ND0148 PermutationPrefix(b,c,l)

An actual beta-coded bijection of the finite index interval [0,l), including all bounds, injectivity, and surjectivity.

Conservative definition · notation layer 2
PD0014 Product(b,c,l,z)

z is the product of a beta-coded prefix of length l.

Conservative definition · notation layer 1
PD0004 Prime(p)

p is nonunit and every factorization of p has a unit factor.

Conservative definition · notation layer 0
ND0149 PrimeFactorList(n,b,c,l)

A positive number n, an actual length-l beta product equal to n, and prime entries. No sortedness or supplied canonicalization is required.

Conservative definition · notation layer 2
PD0007 DivRem(n,d,q,r)

q and r are a quotient and a strict remainder for n by d.

Conservative definition · notation layer 1
PD0003 Dvd(d,n)

The natural number d divides n.

Conservative definition · notation layer 0
PD0006 IsGCD(g,a,b)

g is a common divisor divisible by every common divisor.

Conservative definition · notation layer 1
PD0005 Coprime(a,b)

Every common divisor of a and b is one.

Conservative definition · notation layer 1

Only proof arrows are theorem dependencies. Definition arrows are hygienic abbreviations of exact first-order formulas and introduce no axiom or kernel symbol.