lean4-htt/tests/lean/1603.lean
Leonardo de Moura 70b27fb2d3 feat(library/init/meta/interactive): unfold is now based on the simp framework
See issue #1694.

There is an orthogonal issue. `simp` (and consequently `unfold`) cannot be used to
reduce projections (e.g., `has_add.add`). This issue has been
previously raised by @Armael, but it was not addressed yet.
2017-07-02 11:30:48 -07:00

9 lines
223 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.

def some_lets :
| 0 v := v
| (nat.succ n) v := let k := some_lets n v + v in k
def some_unfolded_lets (n : ) : ∃ v : , v = some_lets 5 n :=
begin
dunfold some_lets,
-- admit
end