Skip to content

Commit d2d56a8

Browse files
committed
improve notations
1 parent c40b33b commit d2d56a8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

FOL.lp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ constant symbol ∃ {a} : (τ a → Prop) → Prop;
1616

1717
notationquantifier;
1818

19-
constant symbol ex_intro {a} p (xa) : π (p x) → π (∃ p);
20-
symbol ex_elim {a} p q : π (∃ p) → (Π xa, π (p x) → π q) → π q;
19+
constant symbol ∃ᵢ {a} p (xa) : π (p x) → π (∃ p);
20+
symbol ∃ₑ {a} p : π (∃ p) → Π q, (Π xa, π (p x) → π q) → π q;
21+
22+
rule ∃ₑ _ (∃ᵢ _ $x $px) _ $f ↪ $f $x $px;

Prop.lp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@ constant symbol top : π ⊤;
2020

2121
constant symbol ⊥ : Prop;
2222

23-
constant symbol false_elim p : π ⊥ → π p;
23+
constant symbol ⊥_elim p : π ⊥ → π p;
2424

2525
// Conjunction
2626

2727
constant symbol ∧ : PropPropProp; // \wedge
2828

2929
notationinfix left 7;
3030

31-
constant symbol conj_intro p q : π p → π q → π (pq);
32-
symbol conj_elim_left p q : π (pq) → π p;
33-
symbol conj_elim_right p q : π (pq) → π q;
31+
constant symbol ∧ᵢ p q : π p → π q → π (pq);
32+
symbol ∧ₑ₁ p q : π (pq) → π p;
33+
symbol ∧ₑ₂ p q : π (pq) → π q;
3434

3535
// Disjunction
3636

3737
constant symbol ∨ : PropPropProp; // \vee
3838

3939
notationinfix left 6;
4040

41-
constant symbol disj_intro_left p q : π p → π (pq);
42-
constant symbol disj_intro_right p q : π q → π (pq);
43-
symbol disj_elim p q r : π (pq) → (π p → π r) → (π q → π r) → π r;
41+
constant symbol ∨ᵢ₁ p q : π p → π (pq);
42+
constant symbol ∨ᵢ₂ p q : π q → π (pq);
43+
symbol ∨ₑ p q r : π (pq) → (π p → π r) → (π q → π r) → π r;
4444

4545
// check that priorities are correctly set
4646
assert x y zxyzx ∨ (yz);

0 commit comments

Comments
 (0)