lean4-htt/tests/lean/run/reflexive_elim_prop_bug.lean

30 lines
555 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.

namespace tst1
inductive Foo : Type
| node : ( → Foo) → Foo
| leaf : Foo
constant Bar : Type
constant P : Bar → Prop
constant Q : Bar → Type
axiom P_ax : ∀ b, P b
lemma foo_error : ∀ (foo : Foo) (b : Bar), P b
| (Foo.node f) := λ b, foo_error (f 0) b
| Foo.leaf := λ b, P_ax b
end tst1
namespace tst2
inductive Foo : Type
| node : ( → Foo) → Foo
constant Bar : Type
constant P : Bar → Prop
constant Q : Bar → Type
lemma foo_error : ∀ (foo : Foo) (b : Bar), P b
| (Foo.node f) := λ b, foo_error (f 0) b
end tst2