Submitted:
08 April 2025
Posted:
08 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- ZFC Set Theory: Establishing “set” as its fundamental concept, asserting that all mathematical objects are sets. It elegantly circumvents “Russell’s paradox” by prohibiting self-containing sets and excluding “proper classes” from its ontology. Comprising the Zermelo-Fraenkel system augmented with “the Axiom of Choice (AC)”, it is the predominant axiomatic foundation for contemporary mathematics.
- NBG Set Theory: Conceived by von Neumann, systematically developed by Bernays, and refined by Gödel. It elevates “class” to its fundamental concept and averts paradoxes through carefully constructed structural constraints on classes. Distinguished by its finite axiomatization, it serves as a conservative extension of ZFC. Notably, Gödel employed this system to demonstrate the relative consistency of “the Axiom of Choice” and “the Continuum Hypothesis”.
- MK Set Theory: Initially conceptualized by Wang Hao and subsequently formalized by Kelley and Morse. It adopts “class” as its foundational concept while embracing the existence of “proper classes” within an infinite axiomatic framework. This theory transcends both ZFC and NBG in expressive power, can establish consistency, and constitutes a proper extension of ZFC. Numerous mathematicians, including Mendelson, Monk, and Rubin, advocated its elegance and power, finding it more theoretically robust and practically applicable than its predecessors.
2. Axiomatics of ZFC, NBG, and MK
2.1. ZFC Set Theory
2.1.1. From “Naive” to “Z” (1908)
-
Axiom of Extensionality: Two sets are equal if and only if they have exactly the same elements.
-
Axiom of Empty Set: There exists a set that contains no elements (the empty set).
-
Axiom of Pairing: For any two sets, there exists a set that contains exactly those two sets as its elements.
-
Axiom of Union: For any set of sets, there exists a set that contains all elements that belong to at least one set in the original collection.
-
Axiom of Power Set: For any set, there exists another set containing all possible subsets of the original set.
-
Axiom of Infinity: There exists an infinite set that contains the empty set and is closed under the operation of adding singleton sets.
-
Axiom of Separation: For any set and any “definite” property, there exists a subset containing exactly those elements that satisfy the property.
-
Axiom of Choice: For any collection of non-empty sets, it is possible to select one element from each set to form a new set.
2.1.2. From “Z” to “ZF” (1922-1923)
-
Axiom of Extensionality: Two sets are equal if and only if they have the same elements.
-
Axiom of Empty Set: There exists a set with no elements.
-
Axiom of Pairing: For any two sets, there exists a set containing exactly these two sets as its elements.
-
Axiom of Union: For any set of sets, there exists a set containing precisely all elements of those sets.
-
Axiom of Power Set: For any set, there exists a set containing all its subsets.
-
Axiom Schema of Separation: For any set and any first-order formula, there exists a set containing exactly those elements of the original set that satisfy the formula.For any formula with free variables:
-
Axiom Schema of Replacement: If a first-order formula defines a function on a set, then the image of that set under the function is also a set.For any formula that represents a function:
-
Axiom of Infinity: There exists an infinite set containing the empty set and closed under the successor operation.
-
Axiom of Choice: For any set of non-empty sets, there exists a function that selects one element from each set.
2.1.3. von Neumann’s Foundational Contributions (1925–1929)
-
Axiom of Regularity (or Axiom of Foundation): Every non-empty set A contains an element that is disjoint from A.
2.1.4. From “ZF” to “ZFC” (1930s-1940s)
- Standardization of Axiomatic Formulations: Consensus emerged on the precise first-order logical formulations of all axioms, notably refining “the Axiom Schema of Separation”and “the Axiom Schema of Replacement” to eliminate earlier ambiguities like Zermelo’s vague “definite properties.”
- Equivalents of “the Axiom of Choice”: AC’s independence spurred proofs of its equivalence to principles such as “Well-Ordering Theorem”, “Zorn’s Lemma”, and “Tychonoff’s Theorem”, cementing AC’s utility across diverse mathematical fields.
- Metamathematical Breakthroughs: Gödel’s proof of the relative consistency of ZFC with “the Continuum Hypothesis” shows that if ZF is consistent, so is ZFC plus “the Continuum Hypothesis”.
-
Axiom of Extensionality: Two sets are equal if and only if they have exactly the same elements.
-
Axiom of Empty Set: There exists a set that contains no elements (the empty set).
-
Axiom of Pairing: For any two sets, there exists a set that contains exactly those two sets as its elements.
-
Axiom of Union: For any set of sets, there exists a set that contains all elements that belong to at least one set in the original collection.
-
Axiom of Power Set: For any set, there exists another set containing all possible subsets of the original set.
-
Axiom of Infinity: There exists an infinite set that contains the empty set and is closed under the successor operation.
-
Axiom Schema of Separation: For any set and any first-order formula, there exists a subset containing exactly those elements that satisfy the formula.
-
Axiom Schema of Replacement: If a first-order formula defines a function-like relation, then the image of any set under this relation is also a set.
-
Axiom of Regularity: Every non-empty set contains an element that is disjoint from it.
-
Axiom of Choice: For any collection of non-empty sets, there exists a function that selects exactly one element from each set.
2.2. NBG Set Theory
2.2.1. Foundational Work by von Neumann (1925-1928)
- Functions of first type : These could be arguments to other functions.
- Functions of second type: These could not be arguments to other functions.
- Domain operations: Defining operations that modified the domains of functions.
- Logical operations: Using logical conditions to define new functions.
- Function composition: These could not be arguments to other functions.
2.2.2. Modified and Developed Work by Bernays (1930s)
- Reformulation with Standard Notation: Bernays abandoned von Neumann’s functional approach in favor of a more accessible formulation using the standard membership relation (∈)
- Explicit Treatment of Classes: While von Neumann’s approach treated classes somewhat implicitly, Bernays made classes explicit objects in the theory.
- Axiom Schema of Class Comprehension: Allowing classes to be defined through first-order formulas.
- Simplification of the Axiom System: Bernays created a more elegant and streamlined system with fewer and clearer axioms.
- Conservative Extension: He demonstrated that his theory was a conservative extension of ZF, meaning that any theorem about sets provable in his system was also provable in ZF.
2.2.3. Simplified and Completed Work by Gödel (1940s)
- Axioms of “the Existence of Classes”: Instead of using a single axiom schema, Gödel introduced a finite list of specific axioms that precisely determined which formulas could define classes.
- Conservative Extension: The proof of “NBG is a conservative extension of ZF” was strictly provided.
- Introducing “the Global Axiom of Choice”: This is a very strong form of the axiom of choice, since it provides for the simultaneous choice, by a single relation, of an element from each set of the universe under consideration.
-
Axiom of Class Inclusion: Every set is a class.
-
Axiom of Set Membership: Every class which is a member of some class is a set.
-
Axiom of Extensionality: Two classes are equal if and only if they have exactly the same elements.
-
Axiom of Pairing: For any sets x and y, there exists a set containing exactly x and y as its elements.
-
Axiom of Membership Relation: There exists a class that contains all ordered pairs where the first element is a member of the second.
-
Axiom of Intersection: For any two classes, there exists a class containing exactly the elements common to both.
-
Axiom of Complement: For any class, there exists another class containing exactly the elements not in the first class.
-
Axiom of Domain: For any class, there exists a class containing exactly those elements that appear as the second component of some ordered pair in the original class.
-
Axiom of Direct Product: For any class A, there exists a class containing all ordered pairs whose second component is in A.
-
Axiom of Inversion: For any class of ordered pairs, there exists a class containing the same pairs with components reversed.
-
Axiom of Triple Permutation (Cyclic): For any class of ordered triples, there exists a class containing the same triples with a cyclic permutation.
-
Axiom of Triple Permutation (Transposition): For any class of ordered triples, there exists a class containing the same triples with the second and third components swapped.
-
Axiom of Infinity: There exists a non-empty set such that for every element, there is another element of which it is a proper subset.
-
Axiom of Sum Set: For any set, there exists a set that includes the union of all elements of the original set.
-
Axiom of Power Set: For any set, there exists a set containing all possible subsets of the original set.
-
Axiom of Substitution: For any set and any single-valued relation, there exists a set containing exactly the images of elements of the original set under that relation.
-
Axiom of Regularity: Any non-empty class has some element with which it has no members in common.
-
Axiom of Choice: There exists a single-valued relation that selects an element from each non-empty set.
2.3. MK Set Theory
2.3.1. Development of MK
2.3.2. Axioms in MK
-
Definition of Set:x is a set if, for some y, .
-
I. Axiom of Extent: For each x and each y, if and only if for each z, when and only when .
-
II. Axiom Schema of Classification: For each formula A and variables , , if if and only if is a set and B (where B is obtained from A by replacing each occurrence of with , provided does not appear bound in A).
-
III. Axiom of Subsets: If x is a set, there exists a set y such that for each z, if , then .
-
IV. Axiom of Union: If x and y are both sets, then is a set.
-
V. Axiom of Substitution: If F is a function and domain F is a set, then range F is a set.
-
VI. Axiom of Amalgamation: If x is a set, then is a set.
-
VII. Axiom of Regularity: If there is a member y of x such that .
-
VIII. Axiom of Infinity: There exists a set y, such that and whenever .
-
IX. Axiom of Choice: There exists a choice function c whose domain is the class of all non-empty sets.
2.4. Relationships and Comparative Analysis of Three Systems
- Axiom Schema Separation in ZFC: For any first-order formula and any set A, there exists a set
- Axioms of “the Existence of Classes” in NBG: For any first-order formula that does not include quantification over class variables, there exists a class (This proposition has transformed into a metatheory proved in Gödel’s version [31]).
- Axiom Schema of Classification in MK: For any first-order formula (which may include quantification over class variables), there exists a class
- In ZFC: The construction of is prevented through its “Axiom Schema Separation”, which requires that we must always start with an existing set and separate from it: .
- In NBG: The Russell class becomes being a legitimate class in NBG. However, R itself is a class that is restricted to be a member of a class.
- In MK: let . By by “Axiom Schema of Classification”, if and only if and R is a set. It follows that R is not a set. Observe that if the classifier axiom does not contain “is a set qualification ”, then an outright contradiction would result.
3. Formalization Methodology and Coq
3.1. Formalization Methodology
3.2. Advances in Formal Verification
- Four Color Theorem (2005 [92]): Gonthier’s Coq-based formalization resolved decades of controversy stemming from Appel and Haken’s 1976 computer-assisted proof, which faced skepticism due to its opaque algorithmic approach. By contrast, Gonthier’s machine-verified work established this theorem as one of the most thoroughly scrutinized results in mathematics.
- Feit-Thompson (Odd Order) Theorem (2012 [93]): A collaborative effort led by Gonthier culminated in a six-year Coq formalization, comprising 150,000 lines of code, 4,000 definitions, and 13,000 lemmas. This project exemplified the scalability of interactive theorem provers in addressing complex geometric-topological constructs.
- Kepler Conjecture (2015 [94]):Hales and collaborators completed the Flyspeck project, formalizing the proof of this centuries-old optimization problem. The endeavor underscored the utility of theorem provers in resolving intractable combinatorial arguments.
3.3. Coq
| Command | Syntax | Description |
|---|---|---|
| intros | intros x y z | Moves hypotheses into context with names x, y, z |
| apply | apply H | Uses H to match and prove current goal |
| simpl | simpl | Performs computation in goal |
| rewrite | rewrite H | Substitutes using equation H |
| destruct | destruct H | Case analysis on inductive type H |
| induction | induction n | Proof by induction on n |
| reflexivity | reflexivity | Proves equality by term identity |
| unfold | unfold def | Expands definition of def |
| auto | auto | Automatic proof search |
| exact | exact H | Uses H that exactly matches goal |
4. Formalization of Three Axiomatic Systems in Coq
4.1. Formalization of ZFC



4.2. Formalization of NBG


4.3. Formalization of MK





4.4. Discussion on the Formalization of Three Set Theories
5. Conclusions
- Improvement and integration of formalization libraries: Continue to improve the formalization libraries of ZFC, NBG, and MK in proof assistants such as Coq and promote interoperability between different formalization libraries.
- Automation enhancement: Enhance proof automation capabilities, reduce the difficulty of formalization work, and make it more accessible to ordinary mathematicians.
- Educational applications: Integrate formalization tools into mathematics education, especially set theory, to foster rigorous mathematical thinking and formalization skills.
- Cross-system formalization: Establish a translation mechanism between different proof assistants (e.g., Coq, Isabelle/HOL, Lean, etc.) to facilitate collaboration and knowledge sharing in the formalization community.
Author Contributions
Funding
Data Availability Statement
-
coq-mk-reals-axioms (version 1.0.0): https://coq.rocq-prover.org/packages/coq-mk-reals-axioms/1.0.0coq-mk-choice-axiom-and-equivalent-propositions (version 1.0.0): https://coq.rocq-prover.org/packages/coq-mk-choice-axiom-and-equivalent-propositions/1.0.0coq-morse-kelley-axiomatic-set-theory (version 1.0.0): https://coq.rocq-prover.org/packages/coq-morse-kelley-axiomatic-set-theory/1.0.0
Acknowledgments
Conflicts of Interest
Abbreviations
| ZF | Zermelo–Fraenkel |
| MK | Morse–Kelley |
| NBG | von Neumann-Bernays-Gödel |
References
- Katz, V.J. A History of Mathematics: An Introduction; Addison-Wesley: Boston, MA, USA, 2009.
- Kline, M. Mathematical Thought From Ancient to Modern Times; Oxford Univ. Press: London, U.K., 1972.
- Aleksandrov, A.D.; Kolmogorov, A.N.; Lavrent’ev, M.A. Mathematics: Its Content, Methods, and Meaning; MIT Press: Cambridge, MA, USA, 1963.
- Grattan-Guinness, I. Companion Encyclopedia of the History and Philosophy of the Mathematical Sciences; Routledge: New York, NY, USA, 1994.
- Grattan-Guinness, I. From the Calculus to Set Theory, 1630–1910: An Introductory History; Princeton Univ. Press: Princeton, NJ, USA, 1630.
- Grattan-Guinness, I. The Search for Mathematical Roots, 1870–1940: Logics, Set Theories and the Foundations of Mathematics From Cantor Through Russell to Gödel; Princeton Univ. Press: Princeton, NJ, USA, 2000.
- Cantor, G. Contributions to the Founding of the Theory of Transfinite Numbers; Dover: New York, NY, USA, 1915.
- Li, W.L. An Introduction to History of Mathematics, 3rd ed.; Higher Education Press: Beijing, China, 2010.
- Enderton, H.B. Elements of Set Theory; Springer: New York, NY, USA, 1977.
- Fraenkel, A.A.; Bar-Hillel, Y.; Levy, A. Foundations of Set Theory; Elsevier: Amsterdam, The Netherlands, 1973.
- Morse, A.P. A Theory of Sets; Academic: New York, NY, USA, 1965.
- Wang, H. On Zermelo’s and von Neumann’s axioms for set theory. Proc. Nat. Acad. Sci. USA 1949, 35, 150–155. [CrossRef]
- Jech, T. Set Theory; Springer: Berlin, Germany, 2003.
- Zermelo, E. Untersuchungen über die Grundlagen der Mengenlehre I. Mathematische Annalen 65, 261-281, 1908.
- Hatcher, W. The Logical Foundations of Mathematics; Pergamon: Oxford, UK, 1982.
- Kunen, K. Set Theory: An Introduction to Independence Proofs; Elsevier: Amsterdam, Netherlands, 1980.
- Suppes, P. Axiomatic Set Theory; Dover: New York, NY, USA, 1972.
- Tourlakis, G. Lectures in Logic and Set Theory, Vol. 2; Cambridge Univ. Press: Cambridge, UK, 2003.
- Fraenkel, A.A. Abstract Set Theory; North Holland: Amsterdam, The Netherlands, 1966.
- Van Heijenoort, J. From Frege to Gödel: A Source Book in Mathematical Logic; Harvard University Press: Cambridge, CA, USA, 1967.
- Russell, B.; Whitehead, A.N. Principia Mathematica; Cambridge Univ. Press: Cambridge, U.K., 1910.
- Frege, G. Begriffsschrift: Eine Der Arithmetischen Nachgebildete Formelsprache Des Reinen Denkens; Louis Nebert: Halle, Germany, 1879.
- Mendelson, E. Introduction to Mathematical Logic, 4th ed.; Chapman & Hall: London, U.K., 1997.
- Boole, G. An Investigation of the Laws of Thought on Which Are Founded the Mathematical Theories of Logic and Probabilities; Cambridge Univ. Press: Cambridge, U.K., 2009.
- Bernays, P.; Fraenkel, A.A. Axiomatic Set Theory; North Holland: Amsterdam, The Netherlands, 1958.
- von Neumann, J. Zur Einführung der transfiniten Zahlen. Acta Litt. Acad. Sc. Szeged X. 1, 199–208, 1923.
- von Neumann, J. Eine Axiomatisierung der Mengenlehre. Journal für die Reine und Angewandte Mathematik 154, 219–240, 1925.
- Bernays, P. A System of Axiomatic Set Theory—Part I. The Journal of Symbolic Logic 2, 65–77, 1937.
- Bernays, P. A System of Axiomatic Set Theory—Part II. The Journal of Symbolic Logic 6, 1–17, 1941.
- Bernays, P. Axiomatic Set Theory, 2nd Revised ed.; Dover Publications: New York, NY, USA, 1991.
- Gödel, K. The Consistency of the Axiom of Choice and of the Generalized Continuum Hypothesis with the Axioms of Set Theory, Revised ed.; Princeton University Press: Princeton, NJ, USA, 1940.
- Gödel, K. Collected Works, Volume 1: Publications 1929–1936; Oxford University Press: Oxford, UK, 1986.
- Gödel, K. Collected Works, Volume 2: Publications 1938–1974; Oxford University Press: Oxford, UK, 1990.
- Kelley, J.L. General Topology; Springer: New York, NY, USA, 1955.
- Cohen, P. Set Theory and the Continuum Hypothesis; Dover Publications: New York, NY, USA, 2012.
- Morse, A.P. A Theory of Sets; Academic Press: New York, NY, USA, 1965.
- Lemmon, E.J. Introduction to Axiomatic Set Theory; Routledge & Kegan Paul: London, UK, 1986.
- Lewis, D.K. Parts of Classes; Basil Blackwell: Oxford, UK, 1991.
- Mendelson, E. Introduction to Mathematical Logic; Chapman & Hall: London, UK, 1987.
- Monk, J.D. Introduction to Set Theory; Krieger: Malabar, FL, USA, 1980.
- Mostowski, A. Some impredicative definitions in the axiomatic set theory. Fundamenta Mathematicae 1950, 37, 111–124. [CrossRef]
- Rubin, J.E. Set Theory for the Mathematician; Holden Day: San Francisco, CA, USA, 1967.
- Davis, M. The Universal Computer: The Road From Leibniz to Turing; CRC Press: New York, NY, USA, 2001.
- Paulson, L.C. A machine-assisted proof of Gödel’s incompleteness theorems for the theory of hereditarily finite sets. Rev. Symbolic Log. 2014, 7, 484–498. [CrossRef]
- Paulson, L.C. A mechanised proof of Gödel’s incompleteness theorems using nominal Isabelle. J. Automated Reasoning 2015, 55, 1–37. [CrossRef]
- Tarski, A. A Decision Method for Elementary Algebra and Geometry; Univ. California Press: Berkeley, CA, USA, 1951.
- Avigad, J. The mechanization of mathematics. Notices Amer. Math. Soc. 2018, 65, 681–690. [CrossRef]
- Harrison, J. Formalized mathematics. Technical Report 36, Turku Centre for Comput. Sci., Turku, Finland, 1996.
- Beeson, M.J. The mechanization of mathematics. In Alan Turing: Life and Legacy of a Great Thinker; Springer: Berlin, Germany, 2004; pp. 77–134.
- Avigad, J.; Harrison, J. Formally verified mathematics. Commun. ACM 2014, 57, 66–75. [CrossRef]
- Gordon, M.J.C.; Melham, T.F. Introduction to HOL: A Theorem-Proving Environment for Higher-Order Logic; Cambridge Univ. Press: New York, NY, USA, 1993.
- Gordon, M.J.C. Mechanizing programming logics in higher order logic. In Current Trends in Hardware Verification and Automated Theorem Proving; Springer: New York, NY, USA, 1989; pp. 387–439.
- Gordon, M.J.C. Why higher-order logic is a good formalism for specifying and verifying hardware. Technical Report UCAM-CL-TR-77, Dept. Computer Laboratory, Univ. Cambridge, Cambridge, U.K., 1985.
- Gordon, M.J.C. From LCF to HOL: A short history. In Proof, Language, and Interaction: Essays in Honour of Robin Milner; MIT Press: Cambridge, MA, USA, 2000; pp. 169–186.
- Chen, G.; Yu, L.Y.; Qiu, Z.Y. Logic-based formal verification methods: Progress and applications. Acta Scientiarum Naturalium Universitatis Pekinensis 2016, 52, 363–373.
- Wang, J.; Zhan, N.J.; Feng, X.Y.; Liu, Z.M. An overview of formal methods. J. Softw. 2019, 30, 33–61.
- Bertot, Y.; Castéran, P. Interactive Theorem Proving and Program Development: Coq’Art: The Calculus of Inductive Constructions; Springer: Berlin, Germany, 2004.
- Chlipala, A. Certified Programming With Dependent Types: A Pragmatic Introduction to the Coq Proof Assistant; MIT Press: Cambridge, MA, USA, 2013.
- Nipkow, T.; Paulson, L.C.; Wenzel, M. Isabelle/HOL: A Proof Assistant for Higher-Order Logic; Springer: Berlin, Germany, 2002.
- Harrison, J. The HOL Light Theorem Prover. Available online: http://www.cl.cam.ac.uk/~jrh13/hol-light/ (accessed on 2017).
- Harrison, J. The HOL Light System Reference. Available online: https://github.com/jrh13/hol-light/ (accessed on 2016).
- Avigad, J.; de Moura, L.; Kong, S. Theorem Proving in Lean (Release 3.23.0). Available online: https://leanprover.github.io(accessed on 2021).
- de Moura, L.; Kong, S.; Avigad, J.; Van Doorn, F.; von Raumer, J. The lean theorem prover (system description). In Proceedings of the Int. Conf. Automated Deduction; Springer: Cham, Switzerland, 2015; pp. 378–388.
- Bancerek, G.; Byliński, C.; Grabowski, A.; Korniłowicz, A.; Matuszewski, R.; Naumowicz, A.; Pąk, K.; Urban, J. Mizar: State-of-the-art and beyond. In Proceedings of the Int. Conf. Intell. Comput. Math.; Springer: Cham, Switzerland, 2015; pp. 261–279.
- Hales, T.C. Formal proof. Notices Amer. Math. Soc. 2008, 55, 1370–1380.
- Wang, Z.M.; Chen, Y.Y.; Wang, Z.F. Automated theorem prover for pointer logic. J. Softw. 2009, 20, 2037–2050. [CrossRef]
- Wu, W.J. Mathematics Mechanization; Science Press: Beijing, China, 2003.
- Wu, W.J. Review and prospect of research on mathematical mechanization. J. Syst. Sci. Math. Sci. 2008, 28, 898–904.
- De Bruijn, N.G. Checking mathematics with computer assistance. Notices Amer. Math. Soc. 1991, 38, 8–15.
- Milner, R. Implementation and applications of Scott’s logic for computable functions. In Proceedings of the ACM Conf. Proving Assertions Programs, 1972; pp. 1–6.
- Beeson, M. Mixing computations and proofs. J. Formalized Reasoning 2016, 9, 71–99.
- Nicely, T.R. How to make a Pentium divide by zero. IEEE Comput. 1994, 27, 101–102.
- Coq Develop. Team. The Coq Reference Manual (Version 8.9.1). Available online: https://coq.inria.fr/distrib/V8.9.1/refman/ (accessed on 2018).
- Klein, G.; Elphinstone, K.; Heiser, G.; Andronick, J.; Cock, D.; Derrin, P.; Elkaduwe, D.; Engelhardt, K.; Kolanski, R.; Norrish, M.; Sewell, T.; Tuch, H.; Winwood, S. SeL4: Formal verification of an OS kernel. In Proceedings of the 22nd ACM SIGOPS Symp. Oper. Syst. Princ. (SOSP), 2009; pp. 207–220.
- Choi, J.; Vijayaraghavan, M.; Sherman, B.; Chlipala, A. Kami: A platform for high-level parametric hardware specification and its modular verification. Proc. ACM Program. Lang. 2017, 1, 1–30. [CrossRef]
- Bhargavan, K.; Delignat-Lavaud, A.; Fournet, C.; Gollamudi, A.; Gonthier, G.; Kobeissi, N.; Rastogi, A.; Sibut-Pinote, T.; Swamy, N.; Zanella-Beguelin, S. Short paper: Formal verification of smart contracts. In Proceedings of the ACM Workshop Program. Lang. Anal. Secur., Vienna, Austria, 2016; pp. 91–96.
- Sun, T.; Yu, W. A formal verification framework for security issues of blockchain smart contracts. Electronics 2020, 9, 255. [CrossRef]
- Van Benthem Jutting, L.S. Checking Landau’s ’Grundlagen’ in the Automath System; North Holland: Amsterdam, The Netherlands, 1979.
- Brown, C.E. Faithful Reproductions of the Automath Landau Formalization. Available online: https://www.ps.uni-saarland.de/Publications/documents/Brown2011b.pdf (accessed on 2011).
- Devlin, K.J. The Joy of Sets: Fundamentals of Contemporary Set Theory; Springer: New York, NY, USA, 1992.
- Landau, E. Foundations of Analysis: The Arithmetic of Whole, Rational, Irrational, and Complex Numbers, 3rd ed.; Chelsea: New York, NY, USA, 1966.
- Monk, J.D. Introduction to Set Theory; McGraw-Hill: New York, NY, USA, 1969.
- Rubin, J.E. Set Theory for the Mathematician; Holden-Day: San Francisco, CA, USA, 1967.
- Formalizing 100 Theorems. Available online: http://www.cs.ru.nl/~freek/100/ (accessed on Feb. 26, 2023).
- Archive of Formal Proofs. Available online: https://www.isa-afp.org/ (accessed on Mar. 19, 2004).
- TPChina, Theorem Proving Community of China. Available online: https://tpchina.github.io/ (accessed on Dec. 2021).
- Jiang, N.; Li, Q.A.; Wang, L.M. Survey on mechanized theorem proving. J. Softw. 2020, 31, 82–112.
- Castelvecchi, D. Mathematicians welcome computer-assisted proof in ’grand unification’ theory. Nature 2021, 595, 18–19. [CrossRef]
- Tao, T. Formalizing the Proof of PFR in Lean4 Using Blueprint: A Short Tour. Available online: https://terrytao.wordpress.com/2023/11/18/formalizing-the-proof-of-pfr-in-lean4-using-blueprint-a-short-tour/ (accessed on 2023).
- Harrison, J. Formalizing an analytic proof of the prime number theorem. J. Automated Reasoning 2009, 43, 243–261. [CrossRef]
- Avigad, J.; Hölzl, J.; Serafin, L. A formally verified proof of the central limit theorem. J. Automated Reasoning 2017, 59, 389–423. [CrossRef]
- Gonthier, G. Formal proof—The four-color theorem. Notices Amer. Math. Soc. 2008, 55, 1382–1393.
- Gonthier, G.; Asperti, A.; Avigad, J.; Bertot, Y.; Cohen, C.; Garillot, F.; Le Roux, S.; Mahboubi, A.; O’Connor, R.; Ould Biha, S.; Pasca, I.; Rideau, L.; Solovyev, A.; Tassi, E.; Théry, L. A machine-checked proof of the odd order theorem. In Proceedings of the Interact. Theorem Proving, Rennes, France, 2013; pp. 163–179.
- Hales, T.C.; Adams, M.; Bauer, G.; Dang, D.T.; Harrison, J.; Hoang, T.L.; Kaliszyk, C.; Magron, V.; McLaughlin, S.; Nguyen, T.T.; Nguyen, T.Q.; Nipkow, T.; Obua, S.; Pleso, J.; Rute, J.; Solovyev, A.; Ta, A.H.T.; Tran, T.N.; Trieu, D.T.; Urban, J.; Vu, K.; Zumkeller, R. A formal proof of the Kepler conjecture. Forum Math., Pi 2017, 5, 1–29. [CrossRef]
- Pierce, B.C.; Amorim, A.A.; Casinghino, C. Software Foundations (Version 6.1). Available online: https://softwarefoundations.cis.upenn.edu/ (accessed on 2021).
- Community, T.M. The lean mathematical library. In Proceedings of the 9th ACM SIGPLAN Int. Conf. Certified Programs Proofs, 2020; pp. 367–381.
- Boyer, R. The QED manifesto. In Proceedings of the 12th Int. Conf. Automated Deduction; Springer: Berlin, Germany, 1994; pp. 238–251.
- The QED Manifesto. Available online: http://www.cs.ru.nl/~freek/qed/qed.html (accessed on May 15, 1994).
- Wiedijk, F. The QED manifesto revisited. Stud. Log., Grammar Rhetoric 2007, 10, 121–133.
- Weiss, I. The QED manifesto—Version 2.0. In Proceedings of the Asia–Pacific World Congr. Comput. Sci. Eng., Nadi, Fiji, 2014; pp. 1–7.
- Hales, T.C. The Kepler conjecture. 1998, arXiv:math/9811078.
- Hales, T.C. Formalizing the proof of the Kepler conjecture. In Proceedings of the Int. Conf. Theorem Proving Higher Order Logics; Springer: Berlin, Germany, 2004; p. 117.
- Hales, T.C. Introduction to the flyspeck project. Technical Report 432, Schloss Dagstuhl-Leibniz Center for Informat., Dagstuhl, Germany, 2006.
- Paulson, L.C. ALEXANDRIA: Large-Scale Formal Proof for the Working Mathematician. Available online: https://www.cl.cam.ac.uk/~lp15/Grants/Alexandria/ (accessed on Sep. 1, 2017).
- Bertot, Y. MARELLE—Mathematical, Reasoning, and Software. Available online: https://team.inria.fr/marelle/en/ (accessed on Nov. 1, 2006).
- Grimm, J. The Gaia Software. Available online: http://www-sop.inria.fr/marelle/gaia/ (accessed on Oct. 19, 2018).
- Grimm, J. Implementation of Bourbaki’s elements of mathematics in coq: Part one, theory of sets. Technical Report RR-6999, INRIA, Sophia Antipolis, France, 2013.
- Grimm, J. Implementation of Bourbaki’s mathematics in coq: Part two, ordered sets, cardinals, integers (Version 10). Technical Report RR-7150, INRIA, Sophia Antipolis, France, 2018.
- Grimm, J. Implementation of three types of ordinals in coq. Technical Report RR-8407, INRIA, Sophia Antipolis, France, 2013.
- Grimm, J. Fibonacci numbers and the Stern–Brocot tree in coq. Technical Report RR-8654, INRIA, Sophia Antipolis, France, 2014. [CrossRef]
- Castelvecchi, D. Mathematicians welcome computer-assisted proof. Nature 2021, 595, 18–19.
- Boldo, S.; Lelay, C.; Melquiond, G. Formalization of real analysis: A survey of proof assistants and libraries. Math. Struct. Comput. Sci. 2016, 26, 1196–1233. [CrossRef]
- Werner, B. An encoding of Zermelo-Fraenkel set theory in Cog. Available online: https://github.com/cog-contribs/zfc/ (accessed on 6 February 2016).
- Barras, B. Sets in Coq, Coq in Sets. Journal of Formalized Reasoning 2010, 3(1), 29–48. https://doi.org/10.6092/issn.1972-5787/1695. [CrossRef]
- Formal Developments of Set Theory in Coq. Available online: https://www.ps.uni-saarland.de/settheory.html (accessed on 1 August 2018).
- Ackermann, W. Die Widerspruchsfreiheit der allgemeinen Mengenlehre. Mathematische Annalen 1937, 114, 305–315. [CrossRef]
- Aczel, P. The type theoretic interpretation of constructive set theory. In Logic Colloquium ’77; MacIntyre, A., Pacholski, L., Paris, J., Eds.; North-Holland: Amsterdam, Netherlands, 1978; pp. 55–66.
- Werner, B. Sets in types, types in sets. In Proceedings of the Theoretical Aspects of Computer Software (TACS ’97), Sendai, Japan, September 1997; pp. 530–546.
- Wan, X.; Xu, K.; Cao, Q. Coq Formalization of ZFC Set Theory for Teaching Scenarios. Int. J. Softw. Informatics, 2023, 13, 323-357. [CrossRef]
- Zhang, Q.P. Set-Theory: Coq Encoding of ZFC and Formalization of the Textbook Elements of Set Theory. Available online: https://github.com/choukh/Set-Theory (accessed on Sep. 30, 2021).
- Bancerek, G.; Bylinski, C.; Grabowski, A.; Kornitowicz, A.; Matuszewski, R.; Naumowicz, A.; Urban, J. Mizar: State-of-the-art and Beyond. In Proceedings of the Conferences on Intelligent Computer Mathematics (CICM), 2015; Lecture Notes in Computer Science, Volume 9150, pp. 261–279.
- Trybulec, A. Tarski Grothendieck Set Theory. Formalized Mathematics 1990, 1, 9–11.
- Bancerek, G. The Fundamental Properties of Natural Numbers. Formalized Mathematics 1990, 1, 41–46.
- Calle-Saldarriaga, A. A Set Theory Formalization. Technical Report, Universidad EAFITs, 2017. Available online: https://acallesalda.github.io/files/settheoryagda.pdf (accessed on 1 April 2025).
- Quaife, A. Automated deduction in von Neumann-Bernays-Gödel set theory. J Autom Reasoning 1992, 8, 91–147. [CrossRef]
- Boyer, R.; Lusk, E.; McCune, W.; Overbeek, R.; Stickel, M.; Wos, L. Set Theory in First-Order Logic: Clauses for Gödel’s Axioms. Journal of Automated Reasoning 1986, 2, 287–327. [CrossRef]
- Farmer, W.M.; Guttman, J.D. A Set Theory with Support for Partial Functions. Studia Logica 2000, 66, 59–78. [CrossRef]
- Gao, H.; Goto, Y.; Cheng, J. A Set of Metrics for Measuring Interestingness of Theorems in Automated Theorem Finding by Forward Reasoning: A Case Study in NBG Set Theory. In Intelligence Science and Big Data Engineering. Big Data and Machine Learning Techniques; He, X., et al., Eds.; Lecture Notes in Computer Science, Volume 9243; Springer: Cham, Switzerland, 2015.
- NBG_HOL: A formalisation of NBG set theory in Isabelle/HOL. Available online: https://github.com/ioannad/NBG_HOL (accessed on 23 July 2016).
- Sun, T.Y. Research on formalization system of axiomatic set theory and its application based on theorem prover coq. Ph.D. dissertation, School Electron. Eng., Beijing Univ. Posts Telecommun., Beijing, China, 2020.
- Yu, W.S.; Sun, T.Y.; Fu, Y.S. Axiomatic Set Theory Machine Proving System; Science Press: Beijing, China, 2020.
- Sun, T.; Yu, W. A formal system of axiomatic set theory in coq. IEEE Access 2020, 8, 21510–21523. [CrossRef]
- Sun, T.; Yu, W. Machine proving system for mathematical theorems in coq—Machine proving of Hausdorff maximal principle and Zermelo postulate. In Proceedings of the 36th Chin. Control Conf. (CCC), 2017; pp. 9871–9878.
- Yu, W.S.; Chen, S.; Dou, G.W.; Fu, Y.S.; Leng, S.K. Machine Proving System of Axiomatic Set Theory and Foundations of Analysis Based on Coq; Science: Beijing, China, 2023.
- Fu, Y.S. Analysis machine proving system. Ph.D. dissertation, School Electron. Eng., Beijing Univ. Posts Telecommun., Beijing, China, 2022.
- Yu, W.S.; Fu, Y.S.; Guo, L.Q. Analysis Fundamentals Machine Proving System; Science Press: Beijing, China, 2022.
- Fu, Y.; Yu, W. Formalization of the equivalence among completeness theorems of real number in coq. Mathematics 2020, 9, 38. [CrossRef]
- Fu, Y.; Yu, W. Formalizing calculus without limit theory in coq. Mathematics 2021, 9, 1377. [CrossRef]
- Guo, L.Q.; Fu, Y.S.; Yu, W.S. The third generation calculus machine proving system based on coq. Scientia Sinica Mathematica 2021, 51, 115–136.
- Yan, S.; Yu, W.S. Formal proof of Yang’s theorem based on coq. J. Softw. 2022, 33, 2208–2223.
- Yan, S.; Yu, W. Formal verification of a topological spatial relations model for geographic information systems in coq. Mathematics 2023, 11, 1079. [CrossRef]
- Guo, D.; Yu, W. A comprehensive formalization of propositional logic in coq: Deduction systems, meta-theorems, and automation tactics. Mathematics 2023, 11, 2504. [CrossRef]
- Zhang, Q.; Yu, W. Formalizing three-dimensional ordered geometry in coq: A Hilbert’s perspective. J. Syst. Sci. Complex. 2024, 2024, 1–27.
- Granville, A. Proof in the time of machines. Bull. Amer. Math. Soc. 2024, 61, 317–329. [CrossRef]


| Feature | ZFC | NBG | MK |
|---|---|---|---|
| Basic Objects | Sets only | Sets and classes | Sets and classes |
| Axiomatization | Infinite | Finite | Ininite |
| Class Handling | Cannot directly handle | Handle with limitations | Handling without restrictions |
| Quantification Power | Sets only | Sets only | All classes |
| Expressive Power | Basic | Intermediate | Strongest |
| Consistency Strength | Basic | Equivalent to ZFC | Stronger than ZFC and NBG |
| Primary Applications | Most mathematical fields | Category theory, large cardinal theory | Metamathematical research |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).