Documentation
Mathlib
.
Init
.
Data
.
Nat
.
GCD
Search
Google site search
return to top
source
Imports
Init
Mathlib.Mathport.Rename
Batteries.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 :
ℕ
)
:
x
.gcd
y
=
if
x
=
0
then
y
else
(
y
%
x
)
.gcd
x