-
Notifications
You must be signed in to change notification settings - Fork 0
/
axioms.px
66 lines (57 loc) · 1.11 KB
/
axioms.px
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
axiom ∧i. P, Q ⊢ P ∧ Q
axiom ∧e1. P ∧ Q ⊢ P
axiom ∧e2. P ∧ Q ⊢ Q
axiom →i. [P Q] ⊢ P → Q
axiom →e. P → Q, P ⊢ Q
axiom ∨i1. P ⊢ P ∨ Q
axiom ∨i2. Q ⊢ P ∨ Q
axiom ∨e. P ∨ Q, [P R], [Q R] ⊢ R
axiom ⊥e. ⊥ ⊢ P
// classical!
axiom PBC. [¬P ⊥] ⊢ P
// DERIVED
// for simplicity, we state ¬ rules as
// axioms so proofs don't take boxes
// (they restate implication axioms)
axiom ¬i. [P ⊥] ⊢ ¬P
axiom ¬e. ¬P, P ⊢ ⊥
prove MT. P → Q, ¬Q ⊢ ¬P
P → Q : premise
¬Q : premise
assume
P : assumption
Q : →e 1 3
⊥ : ¬e 2 4
end
¬P : ¬i [3]
qed
prove DNi. P ⊢ ¬¬P // ¬¬i
P : premise
assume
¬P : assumption
⊥ : ¬e 2 1
end
¬¬P : ¬i [2]
qed
prove DNe. ¬¬P ⊢ P // ¬¬e
¬¬P : premise
assume
¬P : assumption
⊥ : ¬e 1 2
end
P : PBC [2]
qed
prove LEM. ⊢ P ∨ ¬P
assume
¬(P ∨ ¬P) : assumption
assume
P : assumption
P ∨ ¬P : ∨i1 2
⊥ : ¬e 1 3
end
¬P : ¬i [2]
P ∨ ¬P : ∨i2 5
⊥ : ¬e 1 6
end
P ∨ ¬P : PBC [1]
qed