公式
strict provable sort wff;
集合
pure sort set;
存在唯一量词∃!x
def exu {x: set} (P: wff x): wff = $ \ex y \fo x (x \eq y \iff P) $; prefix exu: $\exu$ prec 50;
限域任意量词(∀x∈y)
def foin {x: set} (y: set) (P: wff x): wff = $ \fo x (x \in y \imp P) $; notation foin {x: set} (y: set) (P: wff x): wff = ($\foin{$:50) x ($}{$:0) y ($}$:0) P;
限域存在量词(∃x∈y)
def exin {x: set} (y: set) (P: wff x): wff = $ \ex x (x \in y \and P) $; notation exin {x: set} (y: set) (P: wff x): wff = ($\exin{$:50) x ($}{$:0) y ($}$:0) P;
限域不存在量词(∄x∈y)
def nexin {x: set} (y: set) (P: wff x): wff = $ \neg \exin{x}{y} P $; notation nexin {x: set} (y: set) (P: wff x): wff = ($\nexin{$:50) x ($}{$:0) y ($}$:0) P;
限域存在唯一量词(∃!x∈y)
def exuin {x: set} (y: set) (P: wff x): wff = $ \exu x (x \in y \and P) $; notation exuin {x: set} (y: set) (P: wff x): wff = ($\exuin{$:50) x ($}{$:0) y ($}$:0) P;
替换[y/x]
def rep (y: set) {x: set} (P: wff x): wff = $ \fo t (t \eq y \imp \fo x (x \eq t \imp P)) $; notation rep (y: set) {x: set} (P: wff x): wff = ($\rep{$:50) y ($}{$:0) x ($}$:0) P;
E4公理
axiom ax_e4 {x y: set} (P Q: wff x y): $ \fo x \fo y (x \eq y \and (\rep{y}{x} P \iff \rep{y}{x} Q) \imp (P \iff Q)) $;
幂集公理
axiom ax_pow {w x y z: set}: $ \fo x \ex y \fo z (z \in y \iff \fo w (w \in z \imp w \in x)) $;
并集公理
axiom ax_uni {u x y z: set}: $ \fo x \ex y \fo z (z \in y \iff \ex u (u \in x \and z \in u)) $;
无穷公理
axiom ax_inf {w x y z: set}: $ \fo x \ex y (x \in y \and \fo z (z \in y \imp \ex w (z \in w \and w \in y))) $;
替换公理
axiom ax_rep {u v x y: set} (P: wff x y): $ \fo u (\fo x \ex y \fo v (P \imp y \eq v) \imp \ex v \fo y (y \in v \iff \exin{x}{u} P)) $;
正则公理
axiom ax_reg {x y z: set}: $ \fo x (\ex y y \in x \imp \ex y (y \in x \and \fo z (z \in y \imp \neg z \in x))) $;