An Integration of Axiomatic Set Theory with ACL2

ACL2(zfc) extends ACL2 with a formalization of set theory based on ZFC, i.e., Zermelo-Fraenkel set theory (ZF) extended by the Axiom of Choice (AC). This extension is obtained with the set-theory directory, which is community books directory projects/set-theory/, by including the book top.lisp in that directory. All pathnames below are relative to the set theory directory, and the current package for formulas displayed below is "ZF". Previous formal treatments of set theory include Isabelle/ZF [5,6], which has been used to develop considerably more set theory than has ACL2(zfc). Our contribution is to provide a proof assistant with the full power of ACL2's reasoning automation for which ACL2's extensive libraries are available, but with the expressive power of set theory, which supports infinite sets and functions as first-class objects. Our hope is that ACL2-based verification efforts can take advantage of the extra expressive power provided by ACL2(zfc) over that of ACL2. This abstract gives only a brief overview of ACL2(zfc). User-level documentation may be found in topic ZFC of the ACL2+books manual [3]. Foundational issues are discussed in the topic ZFC-MODEL, and worked out in detail in file logic.txt in the set-theory directory. As noted above, ACL2(zfc) can be viewed as extending ACL2 by including top.lisp; we call this the system view. But the documentation topics above explain how ACL2(zfc) may also be viewed as extending ZFC by defining all ACL2 primitives in set theory; we call this the logic view. In the logic view: (cons x y) is the classical ordered pair {{x},{x,y}}, a natural number n is {0, 1, . . . , n -1}, and indeed every object is a set. But the system view supports all of ACL2's capabilities, for example, functional instantiation, without any defaxiom events or trust tags. These two views may appear to be contradictory: ZFC clearly proves the consistency of ACL2, hence of the extension by including top.lisp that produces ACL2(zfc), hence of the theory ZFC supposedly contained in ACL2(zfc) -so ZFC appears to prove the consistency of ZFC, contradicting Gödel's Incompleteness Theorem! This paradox is resolved by a standard trick using what we call a hypothesis function: a constrained zero-ary function that is locally witnessed by nil when introduced by encapsulate but which returns t in the logic view. The following example illustrates a key hypothesis function, zfc, where the theorem says that the unordered pairs {x, y} and {y, x} are the same. (include-book "projects/set-theory/top" :dir :system) (in-package "ZF") (thm (implies (zfc) (equal (pair x y) (pair y x))))

Authors

Institutions

Publication Details

Journal
Electronic Proceedings in Theoretical Computer Science
Published
2026-12-02
DOI
https://doi.org/10.4204/eptcs.459.3
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Integration of Axiomatic Set Theory with ACL2

Matt Kaufmann
2 links
Electronic Proceedings in Theoretical Computer Science
Logic, programming, and type systems
article

An Integration of Axiomatic Set Theory with ACL2

Matt Kaufmann
article en

Abstract

ACL2(zfc) extends ACL2 with a formalization of set theory based on ZFC, i.e., Zermelo-Fraenkel set theory (ZF) extended by the Axiom of Choice (AC). This extension is obtained with the set-theory directory, which is community books directory projects/set-theory/, by including the book top.lisp in that directory. All pathnames below are relative to the set theory directory, and the current package for formulas displayed below is "ZF". Previous formal treatments of set theory include Isabelle/ZF [5,6], which has been used to develop considerably more set theory than has ACL2(zfc). Our contribution is to provide a proof assistant with the full power of ACL2's reasoning automation for which ACL2's extensive libraries are available, but with the expressive power of set theory, which supports infinite sets and functions as first-class objects. Our hope is that ACL2-based verification efforts can take advantage of the extra expressive power provided by ACL2(zfc) over that of ACL2. This abstract gives only a brief overview of ACL2(zfc). User-level documentation may be found in topic ZFC of the ACL2+books manual [3]. Foundational issues are discussed in the topic ZFC-MODEL, and worked out in detail in file logic.txt in the set-theory directory. As noted above, ACL2(zfc) can be viewed as extending ACL2 by including top.lisp; we call this the system view. But the documentation topics above explain how ACL2(zfc) may also be viewed as extending ZFC by defining all ACL2 primitives in set theory; we call this the logic view. In the logic view: (cons x y) is the classical ordered pair {{x},{x,y}}, a natural number n is {0, 1, . . . , n -1}, and indeed every object is a set. But the system view supports all of ACL2's capabilities, for example, functional instantiation, without any defaxiom events or trust tags. These two views may appear to be contradictory: ZFC clearly proves the consistency of ACL2, hence of the extension by including top.lisp that produces ACL2(zfc), hence of the theory ZFC supposedly contained in ACL2(zfc) -so ZFC appears to prove the consistency of ZFC, contradicting Gödel's Incompleteness Theorem! This paradox is resolved by a standard trick using what we call a hypothesis function: a constrained zero-ary function that is locally witnessed by nil when introduced by encapsulate but which returns t in the logic view. The following example illustrates a key hypothesis function, zfc, where the theorem says that the unordered pairs {x, y} and {y, x} are the same. (include-book "projects/set-theory/top" :dir :system) (in-package "ZF") (thm (implies (zfc) (equal (pair x y) (pair y x))))

Electronic Proceedings in Theoretical Computer ScienceVol. 459
The University of Texas at Austin (US)
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon