公式的等价定义与命题情况相同
公式
和
称为(语义)等价,如果对于
和
的所有解释
,
。我们写
。
命题情况下的等价关系在定理4中成立,此外对于量词我们还有以下情况。
以下等价关系成立


如果
在
中不作为自由变量出现








证明: 我们只证明等价关系
其中
在
中没有自由出现,例如。假设一个解释
使得

![{\displaystyle {\text{iff }}{\text{ for all }}d\in U:{\mathcal {I}}_{[x/d]}(F)=true{\text{ and }}{\mathcal {I}}(G)=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/859b5f3c48e626bee90d1ae81310579fc245ebf3)
![{\displaystyle {\text{iff }}{\text{ for all }}d\in U:{\mathcal {I}}_{[x/d]}(F)=true{\text{ and }}{\mathcal {I}}_{[x/d]}(G)=true{\text{ (x = does not occur free in = G)}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/19df559bef7a1455f0e34db2cfffed4a0f8f1b2d)
![{\displaystyle {\text{iff }}{\text{ for all }}d\in U:{\mathcal {I}}_{[x/d]}((F\land G))=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e886699d28ee1ee66d2bab1c55e7cfc0778775c6)

请注意,以下对称情况不成立
与
不等价
与
不等价
替代性定理与命题情况一样成立。
**示例:**让我们使用替代性和定理 1 中的等价关系来转换以下公式







令
为一个公式,
为一个变量,
为一个项。
是从
通过将
的所有自由出现替换为
而获得的。
注意,这个概念可以重复使用:
以及
可能包含
的自由出现。
令
为一个公式,
为一个变量,
为一个项。
令
为一个公式,其中
且
为一个不在
中出现的变量,则 ![{\displaystyle F\equiv QyG[x/y]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/93c68b5fdf78f5756224f795c19b71ebe39a06fe)
如果一个公式中没有变量同时出现于约束和自由状态,并且每个量词之后都是一个不同的变量,则称该公式为 proper 公式。
对于每个公式
,都存在一个公式
,该公式为 proper 公式,并且与
等价。
证明: 由受限重命名直接得出。
例子

有等价的 proper 公式
如果公式具有形式
,其中
,并且在
中没有出现量词,那么该公式称为前束范式。
对于每一个公式,都存在一个等价的前束范式。
例子




证明:通过对公式结构进行归纳,我们可以直接得到原子公式的定理。
:存在一个
,其中
,等价于
。因此我们有

其中 
其中
。 存在
是正确的预nex 范式,并且
以及
。 通过有界重命名我们可以构造


其中
,因此
在下文中,我们将正确的预nex 范式公式称为 PP-公式或 PPF。
令
为一个 PPF。 当
包含一个
-量词时,进行以下变换
有如下形式
其中
是一个 PPF,而
是一个
-元函数符号,它在
中不出现。
令
为
如果不存在更多
-量词,那么
处于 Skolem 标准型。
令
是一个 PPF。
是可满足的当且仅当
的 Skolem 标准型是可满足的。
证明:令
;经过一次按照 while 循环的转换后,我们得到

其中
是一个新的函数符号。我们需要证明这种变换是可满足性保持的:假设
是可满足的。那么存在一个模型
对于
是
的一个解释。根据模型性质,我们有对于所有 
![{\displaystyle {\mathcal {I}}_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}]}(G[z/f(y_{1},\cdots ,y_{n})])=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/18e8949c811b23af57043b23815659158c2af296)
根据引理1,我们可以得出结论
![{\displaystyle {\mathcal {I}}_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}][z/v]}(G)=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/219ab93a1d75b18afa03e4925afe072b5daea370)
其中
。因此,我们有,对于所有
,存在一个
,其中
![{\displaystyle {\mathcal {I}}_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}][z/v]}(G)=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/219ab93a1d75b18afa03e4925afe072b5daea370)
因此,我们有
,这意味着
是
的一个模型。
对于定理的反方向,假设
有一个模型
。那么我们有,对于所有
,存在一个
,其中
![{\displaystyle {\mathcal {I}}_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}][z/v]}(G)=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/219ab93a1d75b18afa03e4925afe072b5daea370)
令
是一个解释,它只在函数符号
上与
不同,其中
没有定义。我们假设
,其中
是根据上述等式选择的。
因此,我们有对于所有 
![{\displaystyle {\mathcal {I}}'_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}][z/f^{{\mathcal {I}}'}(u_{1},\cdots ,u_{n})]}(G)=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/193d17c81a1c9c2797dc9338e29dca5b13d1f764)
根据引理 1,我们得出结论,对于所有 
![{\displaystyle {\mathcal {I}}'_{[y_{1}/u_{1}]\cdots [y_{n}/u_{n}]}(G[z/f^{(}y_{1},\cdots ,y_{n})])=true}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c82b162a69a8aa0c26ba99eb3b2f547f3b5520a0)
这意味着
,因此
是
的模型。
以上结果可用于将一个公式转换为一组子句,即它的子句范式。
转换为子句范式
给定一个一阶逻辑公式
。
- 将
转换为等价的适当
,通过有界重命名。
- 令
是
中的自由变量。将
转换为 
- 将
转换为等价的前束范式
。
- 将
转换为它的斯科伦范式 
- 将
转换为其 CNF
,其中
是一个文字。这将导致 
- 将
写成一组子句。
,其中
令
为一个公式,
为一个变量,
为一个项。则
表示用
替换
中每个
的自由出现而得到的公式。根据公式
的结构,对这个三元函数
给出形式定义。
显示以下语义等价性


显示以下语义等价性


证明对于任意公式
和
,以下成立

- 如果
,那么
.