Debian Codegraph @

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

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