Documentation

Mathlib.Init.Data.Nat.GCD

Note about Mathlib/Init/ #

The files in Mathlib/Init are leftovers from the port from Mathlib3. (They contain content moved from lean3 itself that Mathlib needed but was not moved to lean4.)

We intend to move all the content of these files out into the main Mathlib directory structure. Contributions assisting with this are appreciated.

Definitions and properties of gcd, lcm, and coprime #

gcd

theorem Nat.gcd_def (x : ) (y : ) :
x.gcd y = if x = 0 then y else (y % x).gcd x