命题公式
| 命题公式 | |
|---|---|
| 术语名称 | 命题公式 |
| 英语名称 | propositional formula |
| 别名 | 命题合式公式, propositional well-formed formula, 合式公式, well-formed formula, WFF, 公式, formula |
命题公式(propositional formula)是命题语言中的合式公式, 由命题变元、逻辑联结词和括号按照特定语法规则构成的符号串。
命题公式是命题逻辑研究的基本对象,通过指派可以确定其真值。
定义
命题合式公式(propositional well-formed formula),简称合式公式(well-formed formula,缩写为WFF)或命题公式(propositional formula),有时也简称公式(formula),是通过以下规则递归定义的符号串:
- 原子公式:任意命题变元(和命题常量)是命题公式;
- 复合公式:
- 若 [math]\displaystyle{ \varphi }[/math] 是命题公式,则 [math]\displaystyle{ \lnot\varphi }[/math] 是命题公式;
- 若 [math]\displaystyle{ \varphi }[/math] 、 [math]\displaystyle{ \psi }[/math] 是命题公式,则 [math]\displaystyle{ (\varphi \land \psi) }[/math] 、 [math]\displaystyle{ (\varphi \lor \psi) }[/math] 、 [math]\displaystyle{ (\varphi \rightarrow \psi) }[/math] 、 [math]\displaystyle{ (\varphi \leftrightarrow \psi) }[/math] 是命题公式。
- 只有有限次应用规则 1 和 2 所得到的符号串是命题公式。
为简化书写,通常省略最外层括号,并规定逻辑联结词的优先级从高到低为 [math]\displaystyle{ \lnot, \land, \lor, \rightarrow, \leftrightarrow }[/math] ,其中 [math]\displaystyle{ \land,\lor }[/math] 左结合。
注:
注意:命题公式中由于含有命题变元,通常不能确认其真值,因此命题公式不是命题。只有命题公式的指派才是命题。
命题公式的分类
主条目:命题公式分类
根据在所有可能指派下的行为,命题公式可分为重言式、矛盾式、偶然式。