Search arXiv⌕ Search

arXiv subjects

Grant Jurgensen

Publications and source records attributed to Grant Jurgensen.

3 recordsLinked to original sources

Inductive Definitions via Inference Rules in ACL2

Certain predicates are best defined inductively as the smallest ones that satisfy some inference rules. Prime examples are typing judgments and evaluation reductions in programming language semantics, and logical assertions in formal deductive systems. While inference rules are readily expressible as logical implications, the 'smallest' requirement needs some machinery to be expressed in ACL2. This paper describes a tool to automate that machinery: given signatures for one or more predicates, and inference rules involving the predicates, the tool generates definitions of the predicates, theorems saying that they are the smallest ones that satisfy the rules, and facilities for reasoning about them.

cs.LO↗

Treesets: Efficient Finite Sets with Unique Representations

Unique representations allow ACL2 users to reason about data structures with ordinary equality rather than weaker equivalence relations. The osets library uses totally ordered lists to uniquely model finite sets, but this representation results in linear time for core primitives like membership, insertion, and deletion. We present the new treeset library, an alternative representation of ordered finite sets based on hash-ordered treaps. Like osets, the data structure is purely functional with a unique representation, while achieving expected logarithmic time for the basic search and update primitives. The core operations are functionally verified and an isomorphism is established with osets. Performance is supported empirically through benchmarking. Finally, we implement and verify a bidirectional iterator over treesets based on zippers.

cs.LO↗

A Proof of the Schröder-Bernstein Theorem in ACL2

The Schröder-Bernstein theorem states that, for any two sets P and Q, if there exists an injection from P to Q and an injection from Q to P, then there must exist a bijection between the two sets. Classically, it follows that the ordering of the cardinal numbers is antisymmetric. We describe a formulation and verification of the Schröder-Bernstein theorem in ACL2 following a well-known proof, introducing a theory of chains to define a non-computable witness.

cs.LO↗