test(tests/lean): new simplifier test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
a19f9d4846
commit
0bb8fe75b3
2 changed files with 17 additions and 0 deletions
9
tests/lean/simp33.lean
Normal file
9
tests/lean/simp33.lean
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import tactic
|
||||||
|
variable f {A : TypeU} : A → A
|
||||||
|
axiom Ax1 (a : Bool) : f a = not a
|
||||||
|
axiom Ax2 (a : Nat) : f a = 0
|
||||||
|
rewrite_set S
|
||||||
|
add_rewrite Ax1 Ax2 : S
|
||||||
|
theorem T1 (a : Nat) : f (f a > 0)
|
||||||
|
:= by simp S
|
||||||
|
print environment 1
|
8
tests/lean/simp33.lean.expected.out
Normal file
8
tests/lean/simp33.lean.expected.out
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Set: pp::colors
|
||||||
|
Set: pp::unicode
|
||||||
|
Imported 'tactic'
|
||||||
|
Assumed: f
|
||||||
|
Assumed: Ax1
|
||||||
|
Assumed: Ax2
|
||||||
|
Proved: T1
|
||||||
|
theorem T1 (a : ℕ) : f (f a > 0) := eqt_elim (trans (congr2 f (congr1 0 (congr2 Nat::gt (Ax2 a)))) (Ax1 ⊥))
|
Loading…
Reference in a new issue