lean4-htt/tests/lean/run/parent_struct_inst.lean
Daniel Selsam a9b01991c2 feat(frontends/lean/inductive_cmd): new frontend for the inductive cmd
Conflicts:
	src/frontends/lean/CMakeLists.txt
	src/frontends/lean/structure_cmd.h
2016-08-17 07:34:03 -07:00

10 lines
150 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open nat
structure [class] A := (n : )
definition f [A] := A.n
structure B extends A :=
(Hf : f = 0)
example : B := ⦃B, n := 0, Hf := rfl⦄