lean4-htt/tests/lean/run/1804a.lean
Leonardo de Moura d428eca8a7 fix(library/equations_compiler,frontends/lean): private name support and alias generation for auxialiary declarations
fixes #1804

Remark: now, all auxiliary definitions in a private declaration share
the same "private" prefix.
2017-09-11 16:46:56 -07:00

62 lines
688 B
Text

section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,
admit
end
end
section
parameter P : match unit.star with
| unit.star := true
end
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,
admit
end
end
section
parameter P : match unit.star with
| unit.star := true
end
parameter Q : match unit.star with
| unit.star := true
end
section
include P
example : false :=
begin
dsimp [_match_1] at P,
guard_hyp P := true,
admit
end
end
section
include Q
example : false :=
begin
dsimp [_match_2] at Q,
guard_hyp Q := true,
admit
end
end
end