norm_num extensions for GCD-adjacent functions #
This module defines some norm_num extensions for functions such as
Nat.gcd, Nat.lcm, Int.gcd, and Int.lcm.
Note that Nat.coprime is reducible and defined in terms of Nat.gcd, so the Nat.gcd extension
also indirectly provides a Nat.coprime extension.
Given natural number literals ex and ey, return their GCD as a natural number literal
and an equality proof. Panics if ex or ey aren't natural number literals.
Equations
Instances For
Given natural number literals ex and ey, return their LCM as a natural number literal
and an equality proof. Panics if ex or ey aren't natural number literals.
Equations
Instances For
Given two integers, return their GCD and an equality proof.
Panics if ex or ey aren't integer literals.
Equations
Instances For
Given two integers, return their LCM and an equality proof.
Panics if ex or ey aren't integer literals.