lean4-htt/tests/lean/run/subobject_from_source.lean
Sebastian Ullrich 009cff6f79 feat(frontends/lean/elaborator): prefer taking subobjects from structure notation sources as a whole
This guarantees definitional equality on the field as witnessed by the test
2018-02-02 08:58:52 -08:00

7 lines
134 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.

structure foo :=
(a b : := 2)
structure bar extends foo :=
(c : )
example (b : bar) : b.to_foo = {c := 2, ..b}.to_foo := rfl