kernel-Int.gcd_greatest
- Kind
- kernel-term
- Status
- checked
Supports: The proposition declared as `Int.gcd_greatest` in the pinned Mathlib v4.30 source.
cargo test -p axeyum-lean-kernel --lib int_prelude:: Evidence notes
`declare_gcd_greatest` (`crates/axeyum-lean-kernel/src/int_prelude/gcd.rs`): both `Int.dvd` directions come from the universal property already proved -- `d ∣ ofNat (gcd a b)` is `Int.dvd_gcd` fed `d`'s own two hypotheses directly (`c := d`), and `ofNat (gcd a b) ∣ d` is the fact's own universal hypothesis applied at `e := ofNat (gcd a b)` fed `Int.gcd_dvd_left`/`Int.gcd_dvd_right`. Mutual `Int.dvd` transports to mutual `Nat.dvd` between `natAbs d` and `gcd a b` via `Int.nat_abs_dvd_nat_abs_of_dvd` (`natAbs (ofNat n)` reduces to `n` by `rfl`), closed by the private `nat_dvd_antisymm` engine `gcd_comm`/`gcd_zero_right` already use, and `0 ≤ d` lifts the resulting `Eq Nat (natAbs d) (gcd a b)` back up to `Eq Int d (ofNat (gcd a b))` via `Int.of_nat_nat_abs_of_nonneg`.