arXiv:2609.05690cs.LOSep 2026

Manuscript Offprint

arXiv:2609.05690

Trace-Tree Magmas: Proof-Producing Infinite Countermodels and 28 New Order-Five Austin Classifications

Jiaming Zhao, Bing Wu, Xu Miao

Jiaming Zhao 1,2^{1,2}, Bing Wu 1^{1}, and Xu Miao 1∗^{1*}

1^{1} Yanbiao Lab, DataCanvas Co., Ltd., Beijing, China

2^{2} School of Mathematical Sciences, Peking University, Beijing, China

Abstract. Finite model finders cannot witness an Austin law: an identity whose finite models are all trivial but which has a nontrivial infinite model. We introduce rank-decreasing sparse trace-tree magmas, a finitely presented class of total operations on a countably infinite constructor-tree carrier. The default product pairs its arguments, while finitely many positive Horn clauses define exceptional outputs. Our main procedure derives candidate clauses from symbolic evaluation traces. For every reported model, it proves functionality of the exceptional relation by descent on constructor size, proves the source identity by exhaustive symbolic case analysis, and compiles the result into a self-contained Lean 4 certificate. A least simultaneous fixed point gives the model language an implementation-independent semantics, so bounded search may miss models but cannot invalidate a certified result.

On ETP's 96 order-five Austin candidates, we discover and Lean-verify infinite countermodels for 28 identities that had no prior public classification in our documented literature-and-artifact audit. They form fourteen classes under opposite-magma duality and establish 28 new Austin classifications; each class has a one-clause trace-tree representative. Supplemental searches independently reconstruct four further identities in two duality classes previously reported by ALPS, giving 32 certified candidates in total. We evaluate generalization separately on Canonical-4187, the deduplicated union of Order5-130—ten known Austin laws, the 96 candidates, and 24 identities open on both the finite and infinite sides—and the public 4,141-row ALPS pool. A fresh trace run generates 636 certificates, all accepted by Judge v3: 36 from Order5-130 and 600 from the ALPS-only canonical remainder. In a separate same-resource comparison at two vCPUs, 2,048 MiB, and 120 seconds per identity, Vampire 5.0.1, E 3.5.1, and a parameter-free complete Twee 2.6.1 run have a 94-class union on the implication-proof side. Only Twee produces trusted counter-satisfiable outcomes: 18 canonical classes, of which independent finite-side certificates force 16 to be infinite. None of these ATP runs emits an explicit model or a Lean certificate, and none is decisive on the 28 newly classified identities. This comparison documents a complementary capability gap. To the best of our audit, this is the

∗^{*} Corresponding author: miaoxu@zetyun.com.

J. Zhao et al.

first automated system to synthesize this trace-tree model family, generate its well-founded inversion proofs, and emit self-contained Lean 4 certificates.

Keywords: automated deduction · infinite model synthesis · equational logic · Austin identities · Lean 4 · term rewriting

1 Introduction

A magma consists of a carrier and one binary operation. Despite this minimal signature, its equational logic exhibits a sharp finite–infinite gap. Austin showed that an identity may force every finite model to be trivial while still admitting a nontrivial infinite model [1,2]. Such Austin laws are difficult for standard model search for a structural reason: no finite multiplication table can witness the required model.

The Equational Theories Project (ETP) turns this classical phenomenon into a large, formally specified classification problem [6]. Its order-five study isolated 96 identities known to have only trivial finite models but with no known infinite model in the fixed public snapshot [10]. Proving that one of these identities is an Austin law requires more than a satisfiability answer. One must describe an infinite carrier and a total binary operation, prove the identity for every valuation, and show that the carrier is nontrivial.

This paper develops automated semantic searches that produce exactly such objects. Their principal language consists of operations on the free constructor algebra

T::=e∣k(T)∣⟨T,T⟩.\mathcal{T}::=\mathsf{e}\mid\mathsf{k}(\mathcal{T})\mid\langle\mathcal{T},\mathcal{T}\rangle.

The default product is the ordered pair of its arguments. A finite set of universally quantified Horn rules presents exceptional products; the induced relations are defined by a least simultaneous fixed point, without reference to the search program. The principal algorithm extracts rule shapes from an evaluation trace of the source law. Pair projections recover rule parameters, while constructor size provides a well-founded measure for recursive inversion. The generated source proof then considers every relevant way in which an earlier computation can return either an exceptional result or the default pair. Thus the result is not a finite approximation to a large model. It is a finite presentation of a genuinely infinite magma.

The second defining feature is proof production. A model is reported only with a self-contained Lean 4 theorem that reconstructs the carrier and operation, proves universal source validity, and refutes the target identity. The common constructor presentation separately supplies the uniform injection n↦kn(e)n \mapsto \mathsf{k}^n(\mathsf{e}), so every trace carrier is infinite (Lemma 3). The Python search and code generator remain untrusted: a wrong candidate or a defective proof script is rejected by Lean's kernel [23,30].

The trace procedure produced the first public nontrivial infinite models found in our documented literature-and-artifact audit for 28 order-five identities, forming 14 duality classes. The distinction from prior ATP results is concrete. All

28 occur among the 96 order-five candidates that the published Vampire campaign left unresolved; that campaign reports no constructed infinite model for them [10]. In our same-resource experiment, Vampire, E, and one parameter-free complete Twee run likewise return no decisive status on any of the 28. The later Vampire/E extraction of explicit, possibly infinite models applies to the order-at-most-four ETP corpus rather than these identities [15]. Our supplemental searches also reconstruct four identities in two duality classes previously reported by ALPS; those four are explicitly excluded from the novelty count [31,32].

The published ALPS experiment is separate from our same-resource runs. Its eight-configuration ATP portfolio resolves 2.2% of the 4,141-law pool at its initial budget, and a twentyfold budget increase adds only 0.6 percentage points. At the largest budget it reports 110 implication proofs but only four construction-side models, all from complete Twee; under ALPS's fixed reasoning-model protocol, the strongest tested model solves no construction-side instance [32]. These results expose a measured shortage of model-construction methods rather than merely a shortage of proof-search time.

Our novelty lies in a specific combination: a finite presentation derived from source-law traces, a functionality proof based on rank-decreasing inversion, and end-to-end compilation of every reported operation into a self-contained Lean 4 theorem. To the best of our literature and public-artifact audit, no prior system searches this model family or generates certificates for it.

The contributions are:

  1. an implementation-independent semantics for finitely presented trace-tree magmas, together with a trace-clause synthesis algorithm. An explicit theorem chain starts from the least relational semantics, proves the exceptional relation functional by constructor-size induction, and obtains a total magma on a countably infinite carrier;

  2. a proof-producing trace search whose depth sweep, orientation schedule, source generalizations, and finite resource bounds are explicit, together with a Lean 4 compiler producing end-to-end certificates and an explicit trust boundary: untrusted enumeration, proof search, and text generation cannot create a counted result without kernel acceptance;

  3. the first public infinite models for 28 previously unclassified order-five identities, establishing 28 new Austin classifications in fourteen duality classes, together with a one-clause structural taxonomy and a fresh evaluation on Canonical-4187, the explicitly deduplicated union of Order5-130 and ALPS-4141;

  4. three supplementary searches with proof production—guarded decoding, strict completion, and canonical-form search—whose different model languages and targeted regression scopes are reported separately rather than merged into the comparison with Vampire, E, and Twee.

The paper emphasizes the model language, search principles, correctness, and mathematical structure of the synthesized models. Runtime and memory are reported only to establish feasibility.

J. Zhao et al.

Section 2 fixes the equational setting and duality notation. Sections 3 and 4 define the model language and the search algorithm. Section 5 gives the soundness chain and trust boundary, after which Section 6 analyzes the models found. Section 7 reports the independent experiments and the comparison with established ATPs.

References (31)