kernel-Nat.prime_pred_pos
- Kind
- kernel-term
- Status
- checked
Supports: ∀ {p : ℕ}, Nat.Prime p → 0 < p.pred
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- prime_pred_pos 2>/dev/null | grep -Ec '^Nat\.prime_pred_pos[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.prime_pred_pos` 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, and the `grep -c` count (tested `-ge 1`, not piped into `grep -q`) requires the admitted declaration to actually be printed. Primality is spelled inline (`2 ≤ p ∧ ∀ d, d ∣ p → d = 1 ∨ d = p`) rather than through a named `Nat.Prime` predicate. `2 ≤ p` transports along `p = succ (pred p)` (`pos_implies_succ_pred`, `finite.rs`, applied to a prime's own positivity witness) to `2 ≤ succ (pred p)`, then `le_of_succ_le_succ` strips one `succ`, leaving `1 ≤ pred p`, defeq to the goal `0 < pred p`.