kernel-Nat.coprime_symmetric
- Kind
- kernel-term
- Status
- checked
Supports: ∀ a b, Nat.gcd a b = 1 -> Nat.gcd b a = 1
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- coprime_symmetric 2>/dev/null | grep -Ec '^Nat\.coprime_symmetric[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.coprime_symmetric` 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. `Symmetric Nat.Coprime` (Mathlib's `Symmetric` unfolds to `∀ a b, r a b -> r b a`) is stated as `∀ a b, gcd a b = 1 -> gcd b a = 1`, proved directly: `gcd a b` and `gcd b a` divide each other (`gcd_dvd_left`/`gcd_dvd_right` on both orderings, combined via `dvd_gcd`), so `dvd_antisymm` gives `gcd a b = gcd b a`, and the hypothesis transports along it. No prelude `gcd_comm` lemma existed, so this builds the antisymmetry argument directly rather than reusing one.