Debian Codegraph @

test-suite/interactive/ParalITP_fail_on_qed.v

raw
1 (* Some boilerplate *)
2 Fixpoint fib n := match n with
3 | O => 1
4 | S m => match m with
5 | O => 1
6 | S o => fib o + fib m end end.
7
8 Ltac sleep n :=
9 try (cut (fib n = S (fib n)); reflexivity).
10
11 (* Tune that depending on your PC *)
12 Let time := 10.
13
14
15 (* Beginning of demo *)
16
17 Section Demo.
18
19 Variable i : True.
20
21 Lemma a (n : nat) : nat.
22 Proof using.
23 revert n.
24 fix f 1.
25 apply f.
26 Qed.
27
28 Lemma b : True.
29 Proof using i.
30 sleep time.
31 idtac.
32 sleep time.
33 (* Here we use "a" *)
34 exact I.
35 Qed.
36
37 Lemma work_here : True /\ True.
38 Proof using i.
39 (* Jump directly here, Coq reacts immediately *)
40 split.
41 exact b. (* We can use the lemmas above *)
42 exact I.
43 Qed.
44
45 End Demo.
46
47 From Corelib Require Import Program.Tactics.
48 Obligation Tactic := idtac.
49 Program Definition foo : nat -> nat * nat :=
50 fix f (n : nat) := (0,_).
51
52 Next Obligation.
53 intros f n; apply (f n).
54 Qed.