Constructive arithmetic and unique factorization — Exact Proof Explorer

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

27 theorem bodies · 85 proof edges · 1588 tactic lines · 7 layers

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.

27 theorems
0123456
AF0001 · foundation_division_exists_unique

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

layer 0 · 30 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 24 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 11 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 19 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF0005 · factor_permutation_below_zero_impossible

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

layer 0 · 6 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF0006 · factor_permutation_prefix_reflect

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

layer 0 · 34 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 26 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF0008 · factor_permutation_product_exists

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

layer 0 · 10 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF0009 · factor_permutation_cancel_last

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

layer 1 · 73 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF000A · factor_permutation_successor_decompose

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

layer 2 · 49 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 19 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 20 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 1 · 40 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 1 · 132 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 1 · 73 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 2 · 42 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 0 · 45 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable
AF0013 · factor_permutation_swap_bijection

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

layer 0 · 65 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 1 · 110 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 2 · 65 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 3 · 58 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 1 · 206 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 3 · 117 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 4 · 227 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 5 · 28 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; 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.

layer 6 · 29 lines · Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

Exactly 27 displayed theorems have independently verified Alpha checked-use authority; none is admitted to Stable. Body-only enrollment never grants checked theorem use.