Debian Codegraph @

test-suite/misc/comment-lexing/test.v

raw
1 Inductive coulfeu : Set :=
2 | Vert : coulfeu
3 | Orange : coulfeu
4 | Rouge : coulfeu
5 .
6
7
8 Definition coul_suiv : coulfeu -> coulfeu :=
9 fun c =>
10 match c with
11 | Vert => Orange
12 | Orange => Rouge
13 | Rouge => Vert
14 end.
15
16 Theorem th_crou_gen : forall c : coulfeu, c = Rouge -> coul_suiv c = Vert.
17 Proof.
18 intro c0.
19 (** Pour démontrer [c0 = Rouge -> coul_suiv c0 = Vert],
20 on suppose [c0 = Rouge]
21 et on doit alors prouver [coul_suiv c0 = Vert]
22 sous cette hypothèse supplémentaire ;
23 lorsque l'on introduit une hypothèse, on lui donne un nom. *)
24 intro c0rou. (* /!\ CRASH ON THIS LINE /!\ *)
25 (** Le raisonnement sous-jacent est :
26 soit c0rou une preuve arbitraire (inconnue) de [c0 = Rouge],
27 on peut s'en servir pour démontrer coul_suiv [c0 = Vert]. *)
28 rewrite c0rou. cbn [coul_suiv]. reflexivity.
29 Qed.