Debian Codegraph @

test-suite/bugs/bug_11811.v

raw
1
2 Unset Positivity Checking.
3
4 Inductive foo : Type -> Type :=
5 | bar : foo (foo unit)
6 | baz : foo nat.
7
8 Definition toto : forall A, foo A -> {A = foo unit} + {A = nat}.
9 Proof.
10 intros A x. destruct x; intuition.
11 Defined.
12
13 Check (eq_refl : toto _ baz = right eq_refl).