lean4-htt/tests/lean/run/cheap_try_refl.lean
Leonardo de Moura 692701c5ef feat(library/init/meta): use cheap "reflexivity" after simp and rewrite
The idea is to make sure lean doesn't timeout (at reflexivity) when we apply simp or
rewrite in goals such as

    (x y : nat) |- x + y + 10000000000 = x + y + 200000000000000

This commit also addresses an issue raised at #1218
2016-12-08 14:41:26 -08:00

23 lines
387 B
Text

example (h : false) : 10000000 = 20000000 :=
begin
try {simp},
contradiction
end
example (h : false) (x : nat) : x + 10000000 = x + 20000000 :=
begin
try {simp},
contradiction
end
example (h : false) (x y : nat) : x + y + 10000000 = x + y + 20000000 :=
begin
try {simp},
contradiction
end
example (h : false) : "hello" = "world" :=
begin
try {simp},
contradiction
end