# 谢弗竖（Sheffer stroke）

**谢弗竖**是一种二元逻辑联结词，写作 \( p \mid q \) 或 \( p \uparrow q \)，当且仅当两个输入均为真时为假；逻辑学和电子学中称此运算为NAND（与非）<sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup><sup> • </sup><sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup>。其重要性来自一条性质：标准二值命题逻辑中的每一个真值函数都可以仅用谢弗竖来表达，这一性质称为功能完备性（functional completeness）<sup>[3](https://users.cecs.anu.edu.au/~jks/LogicNotes/functional-completeness.html)</sup>。其对偶 \( p \downarrow q \)，即皮尔士箭头（Peirce arrow）或NOR（或非），是唯一具有同样性质的另一个二元联结词<sup>[4](https://poincare.matf.bg.ac.rs/~janicic/papers/2006-mlq-complete-sets.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( p \mid q \) 具有 \( \neg(p \wedge q) \) 的真值表：仅当 \( p \) 与 \( q \) 皆为真时为假<sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup> |
| 功能完备性 | 否定为 \( p \mid p \)，合取为 \( (p \mid q) \mid (p \mid q) \)，析取为 \( (p \mid p) \mid (q \mid q) \)；由此可推出一切真值函数<sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup><sup> • </sup><sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup> |
| 唯一性 | 在 \( 2^{2^2} = 16 \) 个二元联结词中，只有NAND与NOR各自单独具备功能完备性<sup>[4](https://poincare.matf.bg.ac.rs/~janicic/papers/2006-mlq-complete-sets.pdf)</sup> |
| 发表 | 亨利·M·谢弗（Henry M. Sheffer），《布尔代数的一组五条独立公设，及其在逻辑常量上的应用》（"A set of five independent postulates for Boolean algebras, with applications to logical constants"），《美国数学会汇刊》（*Transactions of the American Mathematical Society*）第14卷（1913年），第481–488页<sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup> |
| 优先权 | 查尔斯·桑德斯·皮尔士（Charles Sanders Peirce）于1880年（1902年再度）注意到同一结果，但其论文直到1933年才得以发表<sup>[5](https://proofwiki.org/wiki/NAND_and_NOR_are_Functionally_Complete)</sup> |
| 命名 | 谢弗本人的竖线表示的是NOR，他称之为“拒绝”（rejection）；怀特海与罗素将该竖线用于NAND，并在《数学原理》（*Principia Mathematica*）1925–1927年第二版中创造了“谢弗竖”这一名称<sup>[6](https://iep.utm.edu/sheffers/)</sup> |
| 硬件应用 | 任何数字电路都可以完全用与非门构建，这使其在CMOS技术中非常有用<sup>[7](https://www.math.miami.edu/~armstrong/309sum19/309sum19notes.pdf)</sup> |

## 定义与真值表

谢弗竖是二值真值上的一个布尔函数，读作日常语言中的“并非___和___都成立”，等价于“或者___不成立，或者___不成立”<sup>[6](https://iep.utm.edu/sheffers/)</sup>。其真值表为：

| \( A \) | \( B \) | \( A \mid B \) |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | T |

因此 \( A \mid B \) 断言 \( A \) 与 \( B \) 不相容，即二者不能同时为真<sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup>。除竖线 \( \mid \) 之外，\( \uparrow \) 也是一个常用符号；一个较老的符号 \( \veebar \) 曾出现在阿隆佐·丘奇（Alonzo Church）的《数理逻辑导论》（*Introduction to Mathematical Logic*）中，不过该符号如今更常用于表示异或（exclusive disjunction）<sup>[6](https://iep.utm.edu/sheffers/)</sup>。在其他语境中，符号的使用也需要注意：在许多类C的编程语言中，竖线表示的是或，而非与非<sup>[8](https://www.math.uakron.edu/~jhafner/208discrete/2-4.html)</sup>。

## 功能完备性

一个联结词集合是功能完备的，当且仅当任意元数的每一个真值函数都可以只用这些联结词构成的公式来表达<sup>[9](https://calc-path.com/mathematical-logic/modules/propositional-logic)</sup>。单元集 \( \{ \mid \} \) 具有这一性质，因此谢弗竖本身被称为是功能完备的<sup>[3](https://users.cecs.anu.edu.au/~jks/LogicNotes/functional-completeness.html)</sup>。

证明很短。由于每个真值函数在 \( \{ \neg, \wedge, \vee \} \) 上都有析取范式，只需用谢弗竖表达否定、合取和析取即可<sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup>：

- 否定：\( p \mid p \) 恰在 \( p \) 为真时为假，因此它具有 \( \neg p \) 的真值表。
- 合取：\( (p \mid q) \mid (p \mid q) \) 具有 \( \neg\neg(p \wedge q) \) 的真值表，即 \( p \wedge q \)。
- 析取：\( (p \mid p) \mid (q \mid q) \) 表达 \( p \vee q \)<sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup>。

用 \( \downarrow \) 替代 \( \mid \) 的同样论证表明NOR也是完备的：\( p \downarrow p \) 即 \( \neg p \)，而 \( (p \downarrow q) \downarrow (p \downarrow q) \) 即 \( p \vee q \)<sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup>。这是仅有的两个自身完备的二元联结词；在十六个二元真值函数中，没有其他任何单个联结词足够，也没有任何一元联结词能够完备<sup>[4](https://poincare.matf.bg.ac.rs/~janicic/papers/2006-mlq-complete-sets.pdf)</sup><sup> • </sup><sup>[6](https://iep.utm.edu/sheffers/)</sup>。

**为何只有这两个。** 该分类基于埃米尔·波斯特（Emil Post，1921年、1941年）和威廉·沃尼克（William Wernick，1942年）的工作中所确定的遗传性质：如果一个联结词具有这些性质之一，那么由它可定义的每一个联结词也都具有该性质。相关性质包括保真性（当所有输入为T时输出T）、保假性（当所有输入为F时输出F）以及自对偶性（自身即为自身的对偶）。谢弗竖不具备其中任何一种性质，因此仅由它构建的公式可以逃出所有这些封闭类；反之，任何二元联结词只要具有其中哪怕一种性质，就只会生成具有该性质的联结词，因而不可能完备<sup>[6](https://iep.utm.edu/sheffers/)</sup>。谢弗竖的对偶是NOR，因此谢弗竖不是自对偶的<sup>[6](https://iep.utm.edu/sheffers/)</sup>。

功能完备性在非经典环境中可能失效：当否定和合取在多于两个真值上采取非标准意义时，不应假定“合取的否定”（即谢弗竖）仍然是完备的<sup>[6](https://iep.utm.edu/sheffers/)</sup>。相比之下，在模糊逻辑中，模糊谢弗竖仍然保持功能完备性，并且可以通过自身的组合生成任何其他模糊逻辑联结词<sup>[10](https://www.sciencedirect.com/science/article/pii/S0165011421001834)</sup>。

## 历史

亨利·莫里斯·谢弗（Henry Maurice Sheffer，1882年9月1日–1964年3月17日）在其1913年发表于《美国数学会汇刊》的论文《布尔代数的一组五条独立公设，及其在逻辑常量上的应用》中发表了这一结果，其中竖线被用作布尔代数公理基础中的唯一原始运算<sup>[11](https://www.calameo.com/books/000107044813841d8ad76)</sup><sup> • </sup><sup>[1](https://encyclopediaofmath.org/wiki/Sheffer_stroke)</sup>。这一发现此前已由查尔斯·桑德斯·皮尔士做出，有1880年的一份残稿以及1902年的再次记录为证，但皮尔士的论文直到1933年才付印<sup>[5](https://proofwiki.org/wiki/NAND_and_NOR_are_Functionally_Complete)</sup><sup> • </sup><sup>[6](https://iep.utm.edu/sheffers/)</sup>。

**一处符号上的转折。** 谢弗本人的竖线表示的是NOR，他称之为“拒绝”，并仿照除号将自己的符号命名为"per"。是阿尔弗雷德·诺思·怀特海（Alfred North Whitehead）和伯特兰·罗素（Bertrand Russell）在《数学原理》第二版（1925–1927）中专门增补的一节里赞扬了这一发现，正是他们将竖线用于NAND，并赋予该联结词如今的名称<sup>[6](https://iep.utm.edu/sheffers/)</sup>。在该第二版中，意为"并非……和___都成立"的谢弗竖 \( \mid \) 是唯一的原始联结词<sup>[12](https://plato.stanford.edu/entries/pm-notation/)</sup>。

这一归约很快得到了运用。在1916年提交给剑桥哲学会（Cambridge Philosophical Society）的一篇通讯中（该文于1916年10月宣读，并发表于该会会议录），让·尼科（Jean Nicod）用谢弗的单一函数 \( p \mid q \) 来减少逻辑的原始命题数目，将否定定义为 \( p \mid p \)，并偏好谢弗竖的析取形式，即将 \( p \mid q \) 写作 \( \sim p \vee \sim q \)，因为它给出了更简单的蕴涵定义<sup>[13](https://en.wikisource.org/wiki/Page%3AScan_of_%22Proceedings_of_the_Cambridge_Philosophical_Society_19_%281917-1920%29%22_%28English%2C_page_32%29.png)</sup>。这一发现也受到了路德维希·维特根斯坦（Ludwig Wittgenstein）和伯特兰·罗素的称赞<sup>[6](https://iep.utm.edu/sheffers/)</sup>。

## 在数字电子学中的应用

功能完备性有一个直接的硬件解读：由于任何布尔函数都可以在 \( \{ \neg, \wedge, \vee \} \) 上写出，而这些又都可归约为谢弗竖，因此任何电路都可以完全用与非门构建<sup>[7](https://www.math.miami.edu/~armstrong/309sum19/309sum19notes.pdf)</sup>。对电路设计而言，结论是一种门就足够了：一个与非门由两个串联的晶体管和两个并联的晶体管组成，其副本可以组装成从加法器到触发器的任何东西。<sup>[2](https://calc-path.com/discrete-mathematics/modules/logic-proofs)</sup>一个标准的CMOS二输入与非门使用四个晶体管<sup>[14](https://phoenix.goucher.edu/~kelliher/s2010/cs240/feb10.html)</sup><sup> • </sup><sup>[18](https://tams.informatik.uni-hamburg.de/applets/hades/webdemos/05-switched/40-cmos/nand_print.html)</sup>。

## 证明论与扩展

谢弗竖也被作为一个独立的演绎系统加以研究。卡尔加里大学（University of Calgary）的哲学家兼逻辑学家理查德·扎克（Richard Zach）于2015年证明，对任意有限值逻辑进行公理化的方法，可以为经典谢弗竖和皮尔士箭头以及任何其他真值函数联结词产生可靠且完备的自然演绎引入规则和消去规则；省略经典归谬规则则产生这些联结词的直觉主义版本的系统<sup>[15](https://arxiv.org/abs/1504.05995)</sup>。谢弗竖运算也被推广到二值之外：在布尔代数中，它满足一些恒等式，这些恒等式推动了泛代数中对抽象"谢弗运算"的研究；基于谢弗竖的布尔代数公理系统不断被精简，后续工作减少了公设和变元的数目<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC8732903/)</sup><sup> • </sup><sup>[17](https://www.cs.unm.edu/~veroff/BA/)</sup>。

## References

1. [Sheffer stroke, Encyclopedia of Mathematics (V. E. Plisko)](https://encyclopediaofmath.org/wiki/Sheffer_stroke)
2. [Discrete Mathematics — Logic and Proofs, calc-path.com](https://calc-path.com/discrete-mathematics/modules/logic-proofs)
3. [Functional Completeness, Logic Notes, Australian National University](https://users.cecs.anu.edu.au/~jks/LogicNotes/functional-completeness.html)
4. [Simple Characterization of Functionally Complete Sets of Connectives (Janicic), Mathematical Logic Quarterly](https://poincare.matf.bg.ac.rs/~janicic/papers/2006-mlq-complete-sets.pdf)
5. [NAND and NOR are Functionally Complete, ProofWiki](https://proofwiki.org/wiki/NAND_and_NOR_are_Functionally_Complete)
6. [The Sheffer Stroke, Internet Encyclopedia of Philosophy](https://iep.utm.edu/sheffers/)
7. [Discrete Math lecture notes, University of Miami](https://www.math.miami.edu/~armstrong/309sum19/309sum19notes.pdf)
8. [Discrete Math § 2.4: Digital Logic Circuits, University of Akron](https://www.math.uakron.edu/~jhafner/208discrete/2-4.html)
9. [Mathematical Logic — Propositional Logic, calc-path.com](https://calc-path.com/mathematical-logic/modules/propositional-logic)
10. [On the Sheffer stroke operation in fuzzy logic, Fuzzy Sets and Systems](https://www.sciencedirect.com/science/article/pii/S0165011421001834)
11. [A Set of Five Postulates for Boolean Algebras (H. M. Sheffer, 1913), scan](https://www.calameo.com/books/000107044813841d8ad76)
12. [The Notation in Principia Mathematica, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/pm-notation/)
13. [A Reduction in the number of the Primitive Propositions of Logic (J. G. P. Nicod), Proceedings of the Cambridge Philosophical Society 19, via Wikisource](https://en.wikisource.org/wiki/Page%3AScan_of_%22Proceedings_of_the_Cambridge_Philosophical_Society_19_%281917-1920%29%22_%28English%2C_page_32%29.png)
14. [Integrated Circuit Technology, Goucher College course notes](https://phoenix.goucher.edu/~kelliher/s2010/cs240/feb10.html)
15. [Richard Zach (2015). Natural Deduction for the Sheffer Stroke and Peirce's Arrow. arXiv.](https://arxiv.org/abs/1504.05995)
16. [Sheffer operation in relational systems, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC8732903/)
17. [Simple Axiom Systems for Boolean Algebra, University of New Mexico](https://www.cs.unm.edu/~veroff/BA/)
18. [CMOS two-input NAND and AND gates](https://tams.informatik.uni-hamburg.de/applets/hades/webdemos/05-switched/40-cmos/nand_print.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Logical calculi and logical syntax › Propositional logic › Propositional formulas, syntax and semantics

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sheffer-stroke

English original: https://www.edgepedia.org/sheffer-stroke
