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