Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/realize-nested-kernel-check
/
.
/
tests
/
elab
/
structPrivateFieldBug2.lean
blob: 12dbdd33f1482c99def7a6a9a426fbb484bc56c4 [
file
] [
edit
]
structure A
where
private
x
:
Nat
:=
10
def
g
(
a
:
Nat
)
:
A
:=
{}
theorem ex1
(
a
:
Nat
)
:
(
g a
|>.
x
)
=
10
:=
rfl
structure B
extends
A
where
y
:
Nat
x
:=
20
def
f
(
a
:
Nat
)
:
B
:=
{
y
:=
a
}
theorem ex2
(
a
:
Nat
)
:
(
f a
|>.
x
)
=
20
:=
rfl