kernel-Nat.gcd_succ
- Kind
- kernel-term
- Status
- checked
Supports: For all natural numbers k and n, gcd(k+1, n) = gcd(n mod (k+1), k+1). Iterating this step is the Euclidean algorithm, and it terminates because the remainder is strictly smaller than the divisor.
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- gcd_succ 2>/dev/null | grep -Ec '^Nat\.gcd_succ[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits this theorem through the trusted `Kernel::add_declaration` gate, which re-checks the proof term against the stated type, so producing the row at all is a machine-checked proof. TIGHTENED 2026-08-16: the command was `cargo test -p axeyum-lean-kernel --lib nat_prelude`, a whole-suite run that passes or fails identically for every fact citing it and would stay green if THIS theorem were deleted. It now names its own subject twice over -- `nat_theorem_inventory` exits non-zero for a name that does not exist, and the `grep -q` requires the admitted declaration to be printed.