lean4-htt/tests/lean/run/387.lean
Leonardo de Moura 6dbf227cf2 fix: issues #387 part 2
see #387
2021-04-10 15:51:07 -07:00

26 lines
566 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.

--
axiom p {α β} : α → β → Prop
axiom foo {α β} (a : α) (b : β) : p a b
example : p 0 0 := by simp [foo]
example (a : Nat) : p a a := by simp [foo a]
example : p 0 0 := by simp [foo 0]
example : p 0 0 := by simp [foo 0 0]
example : p 0 0 := by
simp [foo 1] -- will not simplify
simp [foo 0]
example : p 0 0 ∧ p 1 1 := by
simp [foo 1]
traceState
simp [foo 0]
namespace Foo
axiom p {α} : α → Prop
axiom foo {α} [ToString α] (n : Nat) (a : α) : p a
example : p 0 := by simp [foo 0]
example : p 0 ∧ True := by simp [foo 0]
end Foo