Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
privateCtor.lean
blob: 61cdbec127b72f74d6cb90e5d05788f74ca9d932 [
file
]
structure
Foo
where
private
mk
::
num
:
Int
den
:
Nat
:=
1
def
Foo
.
normalize
(
a
:
Foo
)
:
Foo
:=
let
n
:=
Nat
.
gcd a
.
num
.
natAbs a
.
den
if
n
==
1
then
a
else
{
num
:=
a
.
num
/
n
,
den
:=
a
.
den
/
n
}