Debian Codegraph @

test-suite/bugs/bug_4555.v

raw
1 Definition prod_map {A A' B B'} (f : A -> A') (g : B -> B')
2 (p : A * B) : A' * B'
3 := (f (fst p), g (snd p)).
4 Arguments prod_map {_ _ _ _} _ _ !_ /.
5
6 Lemma test1 {A A' B B'} (f : A -> A') (g : B -> B') x y :
7 prod_map f g (x,y) = (f x, g y).
8 Proof.
9 Succeed progress simpl; match goal with |- ?x = ?x => idtac end. (* LHS becomes (f x, g y) *)
10
11 Succeed progress cbn; match goal with |- ?x = ?x => idtac end. (* LHS is not simplified *)
12 Admitted.
13
14
15 Axiom n : nat.
16 Arguments Nat.add _ !_.
17
18 Goal n + S n = 0.
19 Fail progress cbn.
20 Abort.
21
22 Goal S n + S n = 0.
23 progress cbn.
24 match goal with |- S (n + S n) = 0 => idtac end.
25 Abort.
26
27 Goal S n + n = 0.
28 Fail progress cbn.
29 Abort.