File: omit_test.v

package info (click to toggle)
proofgeneral 4.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,172 kB
  • sloc: lisp: 33,783; makefile: 388; sh: 118; perl: 109
file content (25 lines) | stat: -rw-r--r-- 510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

Definition classical_logic : Prop := forall(P : Prop), ~~P -> P.

(* automatic test marker 1 *)

Lemma classic_excluded_middle :
  (forall(P : Prop), P \/ ~ P) -> classical_logic.
Proof.
  intros H P H0.
  (* automatic test marker 2 *)
  specialize (H P).
Abort.

Lemma classic_excluded_middle :
  (forall(P : Prop), P \/ ~ P) -> classical_logic.
Proof using.
  intros H P H0.
  specialize (H P).
  (* automatic test marker 3 *)
  destruct H.
    trivial.
  contradiction.
Qed.

(* automatic test marker 4 *)