Documentation
Mathlib
.
Init
.
Data
.
Nat
.
GCD
Search
Google site search
return to top
source
Imports
Init
Mathlib.Mathport.Rename
Std.Data.Nat.Gcd
Mathlib.Init.Data.Nat.Notation
Imported by
Nat
.
gcd_def
Definitions and properties of gcd, lcm, and coprime
#
gcd
source
theorem
Nat
.
gcd_def
(x :
ℕ
)
(y :
ℕ
)
:
Nat.gcd
x
y
=
if
x
=
0
then
y
else
Nat.gcd
(
y
%
x
)
x