Debian Codegraph @

test-suite/bugs/bug_12521.v

raw
1 Inductive foo :=
2 | F0 : nat -> foo
3 | F1 : bar -> foo
4
5 with bar :=
6 | B1 : foo -> bar.
7
8 Section Def.
9
10 (* Putting this variable here breaks simpl below *)
11
12 Variable f : nat -> nat.
13
14 Fixpoint eval_foo x :=
15 match x with
16 | F0 n => f n
17 | F1 x => eval_bar x
18 end
19
20 with eval_bar x :=
21 match x with
22 | B1 x => eval_foo x
23 end.
24
25 End Def.
26
27 Goal forall f x, eval_foo f (F1 x) = eval_bar f x.
28 Proof.
29 intros. simpl.
30 match goal with [ |- eval_bar f x = eval_bar f x ] => idtac end.
31 trivial.
32 Qed.