个体变项代入:修订间差异
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第1行: | 第1行: | ||
[[分类:谓词逻辑]] | [[分类:谓词逻辑]]{{DEFAULTSORT:ge4ti3bian4xiang4dai4ru4}} | ||
{{#seo: | |||
|keywords=个体变项代入 | |||
|description=本文介绍谓词公式中个体变项代入这一操作的定义。 | |||
|modified_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | |||
|published_time=2023-07-09 | |||
}} | |||
{{InfoBox | {{InfoBox | ||
|name=代入 | |name=代入 | ||
| 第14行: | 第20行: | ||
对于把 <math>x_1, \dots, x_n</math> 分别替换为 <math>t_1, \dots, t_n</math> 的代入,也记作 <math>t_1/x_1, \dots, t_n/x_n</math> 。 | 对于把 <math>x_1, \dots, x_n</math> 分别替换为 <math>t_1, \dots, t_n</math> 的代入,也记作 <math>t_1/x_1, \dots, t_n/x_n</math> 。 | ||
注:特别地,映射可以将部分个体项投影到其自身,即映射 <math>u</math> 允许存在某个 <math>u(x_i)=x_i</math> 。 | 注:特别地,映射可以将部分个体项投影到其自身,即映射 <math>u</math> 允许存在某个 <math>t_i=u(x_i)=x_i</math> 。 | ||
=== 项的代入 === | === 项的代入 === | ||
| 第23行: | 第29行: | ||
# 若 <math>s</math> 是 <math>f(s_1, \dots, s_n)</math> ,则 <math>s(u)=f(s_1(u), \dots, s_n(u))</math> 。 | # 若 <math>s</math> 是 <math>f(s_1, \dots, s_n)</math> ,则 <math>s(u)=f(s_1(u), \dots, s_n(u))</math> 。 | ||
<math>s(u)</math> | <math>s(u)</math> 也记作 <math>s[t_1/x_1, \cdots, t_n/x_n]</math> 。 | ||
=== 公式的代入 === | === 公式的代入 === | ||
| 第32行: | 第38行: | ||
# 若 <math>\phi</math> 是 <math>\phi\odot\chi, \odot\in C_2</math> ,则 <math>\phi(u)=\psi(u) \odot \chi(u)</math> 。 | # 若 <math>\phi</math> 是 <math>\phi\odot\chi, \odot\in C_2</math> ,则 <math>\phi(u)=\psi(u) \odot \chi(u)</math> 。 | ||
# 若 <math>\phi</math> 是 <math>\mathsf{Q}x \psi, \mathsf{Q} \in \{\forall, \exists\}</math> ,则 <math>\phi(u)=\mathsf{Q}x \psi(u^{-x})</math> 。 | # 若 <math>\phi</math> 是 <math>\mathsf{Q}x \psi, \mathsf{Q} \in \{\forall, \exists\}</math> ,则 <math>\phi(u)=\mathsf{Q}x \psi(u^{-x})</math> 。 | ||
其中 <math>u^{-x}</math> 是 <math>u</math> 中将 <math>x</math> 改为映射到 <math>x</math> | 其中 <math>u^{-x}</math> 是 <math>u</math> 中将 <math>x</math> 改为映射到 <math>x</math> 的结果,即 <math>u^{-x}(t) = \begin{cases}x &, t = x\\ u(t) &, t\neq x\end{cases}</math> 。 | ||
<math>\phi(u)</math> | <math>\phi(u)</math> 也记作 <math>\phi[t_1/x_1, \cdots, t_n/x_n]</math> 。 | ||
{{谓词逻辑}} | {{谓词逻辑}} | ||
2026年1月8日 (四) 04:57的最新版本
| 代入 | |
|---|---|
| 术语名称 | 代入 |
| 英语名称 | subtitution |
对个体变项的代入(subtitution)指在一个项或一个谓词公式中,将某个个体变项的全体出现,全部用另一个项来替换的操作。
定义
代入
从全体个体项所构成的集合到全体项所构成的集合的映射,称为一个代入(substitution)。
对于把 [math]\displaystyle{ x_1, \dots, x_n }[/math] 分别替换为 [math]\displaystyle{ t_1, \dots, t_n }[/math] 的代入,也记作 [math]\displaystyle{ t_1/x_1, \dots, t_n/x_n }[/math] 。
注:特别地,映射可以将部分个体项投影到其自身,即映射 [math]\displaystyle{ u }[/math] 允许存在某个 [math]\displaystyle{ t_i=u(x_i)=x_i }[/math] 。
项的代入
对任意项 [math]\displaystyle{ s }[/math] 和代入 [math]\displaystyle{ u }[/math] ,递归地定义项 [math]\displaystyle{ s }[/math] 做代入 [math]\displaystyle{ u }[/math] 的结果 [math]\displaystyle{ s(u) }[/math] 为:
- 若 [math]\displaystyle{ s }[/math] 是个体常项 [math]\displaystyle{ c }[/math] ,则 [math]\displaystyle{ s(u)=c }[/math] 。
- 若 [math]\displaystyle{ s }[/math] 是个体变项 [math]\displaystyle{ x }[/math] ,则 [math]\displaystyle{ s(u)=u(x) }[/math] 。
- 若 [math]\displaystyle{ s }[/math] 是 [math]\displaystyle{ f(s_1, \dots, s_n) }[/math] ,则 [math]\displaystyle{ s(u)=f(s_1(u), \dots, s_n(u)) }[/math] 。
[math]\displaystyle{ s(u) }[/math] 也记作 [math]\displaystyle{ s[t_1/x_1, \cdots, t_n/x_n] }[/math] 。
公式的代入
对任意公式 [math]\displaystyle{ \phi }[/math] 和代入 [math]\displaystyle{ u }[/math] ,递归地定义公式 [math]\displaystyle{ \phi }[/math] 做代入 [math]\displaystyle{ u }[/math] 的结果 [math]\displaystyle{ \phi(u) }[/math] 为:
- 若 [math]\displaystyle{ \phi }[/math] 是 [math]\displaystyle{ P(s_1, \dots, s_n) }[/math] ,则 [math]\displaystyle{ \phi(u)=P(s_1(u), \dots, s_n(u)) }[/math] 。
- 若 [math]\displaystyle{ \phi }[/math] 是 [math]\displaystyle{ \lnot\psi }[/math] ,则 [math]\displaystyle{ \phi(u)=\lnot(\psi(u)) }[/math] 。
- 若 [math]\displaystyle{ \phi }[/math] 是 [math]\displaystyle{ \phi\odot\chi, \odot\in C_2 }[/math] ,则 [math]\displaystyle{ \phi(u)=\psi(u) \odot \chi(u) }[/math] 。
- 若 [math]\displaystyle{ \phi }[/math] 是 [math]\displaystyle{ \mathsf{Q}x \psi, \mathsf{Q} \in \{\forall, \exists\} }[/math] ,则 [math]\displaystyle{ \phi(u)=\mathsf{Q}x \psi(u^{-x}) }[/math] 。
其中 [math]\displaystyle{ u^{-x} }[/math] 是 [math]\displaystyle{ u }[/math] 中将 [math]\displaystyle{ x }[/math] 改为映射到 [math]\displaystyle{ x }[/math] 的结果,即 [math]\displaystyle{ u^{-x}(t) = \begin{cases}x &, t = x\\ u(t) &, t\neq x\end{cases} }[/math] 。
[math]\displaystyle{ \phi(u) }[/math] 也记作 [math]\displaystyle{ \phi[t_1/x_1, \cdots, t_n/x_n] }[/math] 。