kernel-Nat.prime_not_prime_pow_ne_one
- Kind
- kernel-term
- Status
- checked
Supports: ∀ {x n : ℕ}, n ≠ 1 → ¬Nat.Prime (x ^ n)
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- prime_not_prime_pow_ne_one 2>/dev/null | /usr/bin/grep -Ec '^Nat\.prime_not_prime_pow_ne_one[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.prime_not_prime_pow_ne_one` through the trusted `Kernel::add_declaration` gate, which re-checks the proof term against the stated type, so producing this row at all is a machine-checked proof. `nat_theorem_inventory` exits non-zero for a name that does not exist (verified against a fabricated name), and the anchored `grep -c` count (tested `-ge 1`, not piped into `grep -q`) requires the admitted declaration to actually be printed under its own name -- `nat_theorem_inventory` matches by substring, so the anchor `^Nat\.prime_not_prime_pow_ne_one[[:space:]]` is required to avoid matching a sibling name that has this one as a prefix. Primality is spelled inline (`2 ≤ p ∧ ∀ c, c ∣ p → c = 1 ∨ c = p`, matching `prime_even_iff`/`euclid_lemma`'s own convention) rather than through a named `Nat.Prime` predicate, since this prelude has none -- this repository's established precedent for flipping a Mathlib `Nat.Prime` mirror (`prime_even_iff`, `prime_odd_of_ne_two`, `prime_dvd_of_dvd_pow`, `prime_not_dvd_mul`, `prime_pred_pos` all already do the same substitution).