Reasoning as Structure-Preserving Transformation: A Structuralist Framework for AGI
Full text
REASONING AS STRUCTURE-PRESERVING TRANSFORMATION: A STRUCTURALIST FRAMEWORK FOR AGI Qiyang Shen∗ [email protected],[email protected] December 11, 2025 ABSTRACT We think that reasoning is most naturally modeled as structure-preserving transformations between representations, carried out under the invariant quantities that must be preserved for the reasoning to remain valid. In contrast to current large language models, we think a more efficient reasoning system requires an internal "structure space" whose elements are objects, admissible morphisms, and task-specific invariants. We refer to this perspective as Structure-Space Reasoning (SSR). Within this space, a reasoning step corresponds to applying an admissible morphism that preserves the invariants characterizing the problem. We think that using such a structural representation space can substantially reduce the effective search space of reasoning while abstracting common reasoning pathways across different domains, enabling forms of compositionality and analogy that are difficult to realize with existing neural architectures. Building on this view, we outline an AGI architecture in which: (1) large language models are used to extract structural patterns-along with their associated invariants from a wide range of reasoning processes; (2) a structure-representation layer encodes objects, morphisms, and invariants; (3) Adopting an AlphaZero-style search procedure, the structure search module selects transformations that preserve the problem’s invariant quantities or produce new structures consistent with those quantities; (4) symbolic and numerical computation is delegated to external "compute modules", such as large scale integral computations, in order to approximate how mathematicians use computational tools to assist their reasoning. 1 Introduction The progress of science and technology depends not only on experiments and engineering, but also on rigorous logical reasoning, which often guides the design of new experiments rather than merely interpreting their outcomes. In artificial intelligence, this has brought increasing attention to the capacity of a model to perform mathematical and logical reasoning. Recent mathematically oriented systems are typically built upon large language model (LLM) architectures and further refined through reinforcement learning, benefiting from vast working memory and high-quality, high-capacity parametric long-term memory enabling strong performance on many benchmark mathematical tasks. Nevertheless, we believe that if AI systems were equipped with a representational substrate intrinsically suited for reasoning—rather than relying on linguistic prediction alone—their capabilities could advance to a fundamentally higher level. Multimodal models represent another active line of research. A widely held view is that, given sufficient computational resources, endowing an AI system with both a "language cortex" and a "visual cortex"—in loose analogy to human cognition—can substantially enhance its overall intelligence. In this work, drawing on structuralism, category theory, and related developments in the foundations of mathematics and logic, we argue that achieving a more efficient reasoning model requires a third form of cortical substrate: a structure cortex. This analogy is purely functional, not biological. At the theoretical level, such a substrate should enable a ∗ Thanks to ChatGPT for providing unique perspectives during the writing of this article, and to the many great logicians, mathematicians, and engineers whose ideas have deeply influenced this work.
APREPRINT - DECEMBER 11, 2025 qualitative leap in reasoning capability; at the engineering level, it would allow far richer forms of inference within fixed computational budgets. We think that current deep learning systems lack an explicit structure space, and therefore their ability to perform systematic reasoning remains fundamentally limited. A very natural question is: what is the minimal representational substrate required for reasoning? Our earlier investigations suggested that systems restricted to purely logical tokens—connectives, quantifiers, and a small set of functional symbols—operate within an extremely compact embedding space that can isolate logical relations more cleanly than full natural language, but this "logic-only" representation proved fundamentally insufficient: although it reduces semantic noise, it cannot capture the diverse relational, geometric, algebraic, and diagrammatic structures that real reasoning routinely involves. Token-level logical representations excel at local inference but do not scale well to global structural abstraction, unless equipped with higher-level structure modules. This observation led us to a broader conclusion: the difficulty lies not in the choice of tokens but in the representational space itself. Natural language produces an embedding space that is unnecessarily large and noisy, whereas a purely logical vocabulary collapses the space too aggressively, erasing essential structural distinctions. What is missing is a representational layer whose basic units are themselves structures, equipped with invariants and admissible transformations. This line of reasoning motivates the central hypothesis of the present work: The appropriate substrate for reasoning is neither linguistic nor exclusively logical; it is intrinsically structural. Our central claim is that the essence of reasoning lies neither in symbols nor in language, but in structure-preserving transformations that maintain appropriate invariants. With this perspective in mind, we propose the following overall strategy. A large language model (LLM) is first used to extract a broad collection of objects, morphisms, structural transformations, and invariants, which together serve as supervised training data for learning a structure-based representation. These components are organized into a unified structure space (O, M, I). On top of this representation, we introduce an AlphaZero-style mechanism for selecting the next reasoning step. The policy network chooses either (1) a structure-preserving transformation under a selected invariant, which serves as the next inference move, or (2) the construction of a new structure to be added to the structure space. The value network then evaluates whether the resulting new structure constitutes genuine progress toward solving the target problem, while Monte Carlo Tree Search (MCTS) explores sequences of structural transformations in a manner analogous to strategic game play. Finally, we incorporate an external calculator module for performing explicit symbolic or numerical computations, and for returning the result in a single consolidated output. Isolating heavy computation in this way allows the reasoning engine to focus exclusively on structural transformations and invariant-preserving logic, rather than on raw algebraic or analytic manipulation. If reasoning can be carried out inside an explicit structure space, then inference becomes a form of computation rather than a linguistic act. Such a shift would make advanced reasoning—especially in mathematics—orders of magnitude more powerful, enabling discoveries far beyond the limits of human symbolic thought. Contributions This paper makes three contributions: (1) a structuralist formulation of reasoning as invariant-preserving transformation; (2) an architectural proposal for AGI based on a structure space (O, M, I) ; (3) explicit training objectives (invariance, MDL, structure equivalence, next-structure prediction) that operationalize the framework. 2 Motivation We now outline the motivation for introducing a structure space. 2.1 Category Theory and Structuralism Throughout the history of mathematics, category theory and structuralism have played central roles. Their central insight is that the internal nature of an object is often less important than the relations it participates in; by focusing on these relations, one can abstract the structural patterns that govern reasoning. Grothendieck is perhaps the most celebrated exemplar of such "structural thinking": the strength of his approach lies in showing that seemingly different surface phenomena can be unified under a single underlying structure, allowing one to avoid re-deriving similar arguments in each individual case. 2
APREPRINT - DECEMBER 11, 2025 2.2 Modeling How Humans Reason About Mathematical Problems When we examine how humans reason about mathematical problems, we observe that some concepts are naturally suited to linguistic or symbolic manipulation, such as equations or inequalities, while others are handled more intuitively through geometric or diagrammatic reasoning. For example, the notion of an induced topology becomes far clearer when one imagines a simple Venn diagram. In many cases, forming a mental image that "corresponds" to a textual description makes reasoning substantially easier than relying on text alone. This difference arises because the visual system operates in a representational space that is high-dimensional, continuous and parallel, allowing it to encode geometric and causal relations directly. Language, by contrast, is linear, lowdimensional, discrete, and heavily compressed. Linguistic tokens require a sequence of mental steps—decompression, structural reconstruction, and manipulation. A sentence such as "a table in a room, a cup on the table, and a pen to the left of the cup" forces both humans and language models to incrementally construct a spatial model, whereas a visual system can obtain the underlying structural relations almost immediately. But is the visual space itself the optimal substrate for reasoning? Not necessarily. Symbolic reasoning is often far more effective for algebraic or logical tasks, while purely visual representations cannot capture higher-dimensional or highly abstract structures. In what space, then, can reasoning be made more efficient? Our answer is that reasoning operates most naturally in a different kind of representational domain–a structure space. In fact, visual space is not fundamentally a reasoning substrate, it merely provides one concrete instance of a structured representational domain. Our structure space generalizes this idea beyond the limitations of spatial geometry. It is important to note that structure is not merely a correspondence between modalities (for example, between a sentence and an image). Over the course of a nontrivial reasoning process, the mapping between linguistic tokens, diagrams, and formal symbols may shift dynamically, but the underlying structure–comprising objects, morphisms, and invariants, remains the stable and essential element of the reasoning process. In this sense, structure is inherently cross-modal and dynamic. It cannot be defined within any single modality; rather, it exists only within a separate structure space in which objects, morphisms, and invariants appear as first-class entities. In our framework, language and vision provide modality-specific, and often noisy, projections of an underlying structural space. Genuine reasoning, however, operates not on these projections but on transformations within the structure space (O, M, I). Once a sufficiently rich structure space has formed, internal reasoning no longer needs to depend on human-readable labels; the relevant structural forms are the invariant patterns themselves. Moreover, as category theory suggests, reasoning processes across seemingly different domains may instantiate the same underlying structures. Extracting these latent structural patterns can greatly improve reasoning efficiency and allow structural knowledge learned in one domain to be transferred or shared between others. Our proposed structure space (O, M, I)provides the foundational substrate for structure-space reasoning (SSR). 2.3 Limitations of LLM Embedding Space for Reasoning A natural question is why enlarging the embedding space of a large language model often reduces its reasoning efficiency? Intuitively, a human speaker faced with too many possible word choices may struggle to select the most appropriate expression. Language models behave similarly. Although reinforcement learning can push a mathematical specialist model to downweight irrelevant tokens (such as metaphysical, emotional, or conversational terms), these tokens still occupy positions in the embedding matrix and therefore expand the search space during inference. As a result, large embedding spaces expand the hypothesis class of token predictions, which indirectly burdens reasoning processes that rely on token-level decisions. Does this imply that shrinking the embedding matrix would yield better reasoning performance? Clearly not. Reasoning is not purely linguistic. If every geometric or algebraic concept must be represented solely through first-order logical primitives, the representational burden becomes prohibitive. For example, defining a circle entirely in logical or set-theoretic terms requires: • defining the real numbers, • defining point sets, 3
APREPRINT - DECEMBER 11, 2025 • defining coordinate systems, • defining distance, • defining the circle equation. Under such a representation, any inference involving circles must manipulate extremely verbose logical expansions, making the reasoning process inefficient and brittle. The failure of both large and small embedding spaces suggests that the problem is not the size of the token vocabulary but the ontological type of the representational unit. A structure space replaces tokens with structured entities, avoiding both semantic noise and representational collapse. What is needed instead is a way to capture the structural essence of geometric objects. A circle, for instance, can be defined structurally as "the set of all points at equal distance from a given center." This definition highlights the invariant that characterizes a circle. Yet such structural abstractions cannot be encoded directly in a language model’s embedding matrix, because the matrix contains only a fixed vocabulary of discrete tokens. It cannot store "a new definition," "a relational structure," or "a set of invariants." From a reasoning standpoint, however, these abstract structures should exist as selectable primitives. They are precisely the kinds of entities that belong in a structure space rather than a linguistic token space. Although large language models can update the meaning of token vectors, they are still not efficient enough. Thus, the limitations of LLMs stem not merely from vocabulary size but from a deeper representational mismatch: the embedding matrix is optimized for natural language, not for structural abstraction. A more capable reasoning system must represent structures as first-class entities and manipulate them via admissible morphisms that preserve their invariants. From this perspective, existing reasoning paradigms each capture only part of the picture. Large language models operate primarily as pattern approximators over a largely linear embedding space. They can absorb many statistical regularities, but they lack explicit access to the invariants that support reliable long-horizon, compositional, and cross-domain reasoning. Graph neural networks, by contrast, encode local relational structure very naturally, yet struggle to construct higher-order "structures of structures" that organize multiple levels of abstraction. At the other extreme, formal logical systems can manipulate explicit structures with full rigor, but have no built-in mechanism for autonomously inventing new structures or discovering higher-level invariants. A structure space aims to integrate the strengths of these approaches while addressing their weaknesses, by making structures and invariants first-class entities that can be learned, transformed, and evolved. 2.4 The Strong Analogy Between AlphaZero and Human Mathematical Reasoning Once reasoning steps are formalized as morphisms, they naturally form a discrete action space. This turns reasoning into a sequential decision process, to which AlphaZero-style planning is a natural fit. When we examine how humans carry out mathematical reasoning, we find that it draws on both computational tools (e.g., calculators or symbolic engines) and genuine logical inference. The latter, in its pure form, is strikingly reminiscent of AlphaZero: one may view the current set of available structures as analogous to a board position in a strategic game. A reasoning step then corresponds to choosing a structural transformation or constructing a new structure, much like selecting a move. However, large language models are not efficient engines for such exploration. Because their internal search is entangled with the constraints of linguistic prediction, they often fail to navigate directly toward the correct chain of inference. This motivates the use of an explicit scoring mechanism: each action—whether introducing a new structure or applying an invariant preserving transformation—updates the state of the structure space, and a learned value function evaluates the resulting state. In this way, structural reasoning can proceed via an AlphaZero-style policy-and-value framework rather than relying solely on token level prediction. 2.5 Relation to Existing Paradigms Our proposal is related to several existing lines of work but differs in focus. Neuro-symbolic systems and automated theorem provers manipulate explicit symbols or formal proofs, but typically lack an explicit, learnable structure space in which objects, morphisms, and invariants are represented as first-class entities and can be autonomously extended. Graph neural networks capture local relational structure, yet they usually operate on a fixed graph and are not equipped with an explicit notion of task-specific invariants or theorem-like high-level morphisms. Large language models with tool use and external calculators provide powerful interfaces for calling symbolic or numerical engines, but their internal representations remain token-centric and do not separate structural reasoning from linguistic prediction. 4
APREPRINT - DECEMBER 11, 2025 Structure-Space Reasoning (SSR) differs from these approaches by treating structures and invariants themselves as the basic objects of computation. The structure space X= (O, M, I) is both a representational layer and a reinforcement learning environment: it can grow new objects, morphisms, and invariants over time, while a policy-and-value system learns to navigate this space via high-level, invariant-preserving morphisms. 3 The Important Roles of Invariance and Structure in the Reasoning Process 3.1 Invariance in the Reasoning Process Reasoning does not operate on "content" itself; rather, it moves between structures while preserving the invariants that define the problem. Across a wide range of reasoning scenarios, one observes a common pattern: reasoning always involves change. Figures are modified in diagrammatic reasoning, and symbolic expressions are rewritten in formal logic. Yet certain aspects must remain invariant. At its core, reasoning consists of transformations that are admissible within a given structural context, and these transformations must preserve invariants that maintain the identity of the problem under consideration. Invariance is what keeps reasoning valid; controlled change is what allows reasoning to progress. Most reasoning steps preserve some invariants, while possibly modifying others. What matters is that the task-relevant invariants remain preserved. For example, to derive B from A , the conclusion B must remain within the same underlying structure determined by A ; otherwise the chain of reasoning becomes ill-formed. This requirement of "preservation" is precisely what invariants encode. If a model cannot detect which aspects of a representation must remain fixed under transformation, it cannot learn what makes two steps of reasoning belong to the same problem. Invariants serve as the fulcrum of reasoning—they are what allow a logical chain to stay coherent. We may formalize this idea as follows. Let a "state" S denote any form of cognitive representation: mathematical formulas, natural language expressions, diagrams, graphs, geometric shapes, programs. Reasoning is then a constrained transformation within this representational space. A reasoning process can be viewed as a sequence S1→S2→S3→ ··· (1) where each step satisfies I(Sk) = I(Sk+1).(2) These invariants ensure that although the surface form of a representation may change, the core structural content is preserved. Thus reasoning should be understood not as surface-level symbol manipulation, but as structure-preserving transformation. 3.2 Structure Space Reasoning occurs in structure space, not in language space. Genuine reasoning does not unfold within linguistic space, but within what we call a structure space. In many cases, human visual reasoning often feels more intuitive because the visual system already provides a low-dimensional representational domain endowed with geometric properties such as continuity, adjacency, and spatial invariance. These properties make many forms of geometric or topological reasoning naturally accessible when carried out visually. However, visual reasoning has intrinsic limitations: it struggles to represent higher-dimensional relations or highly abstract structures. For such tasks, humans naturally shift to symbolic or hybrid forms of representation. The usefulness of vision does not arise because it is the fundamental substrate of reasoning, but because it happens to embody one particular structural regime—namely, geometric structure. The aim of constructing a structure space is to generalize this advantage: to separate what can change from what must remain invariant, and to collect the essential elements of reasoning into a unified representational domain. By "structure space" we mean a space that contains structural objects, the admissible transformations between them, and the invariants preserved by those transformations. Reasoning in such a space requires both local transformations between individual objects and global transformations between entire structures. Therefore, the structure space must support morphisms at multiple levels. 5
APREPRINT - DECEMBER 11, 2025 Not every map is a valid inference rule; only transformations that preserve selected invariants—and that correspond to admissible steps within a reasoning process—qualify as reasoning. Formally, we define a structure space as a tuple X= (O, M, I),(3) where O is the set of objects (structures), M is the set of morphisms (allowed transformations), and I is the set of invariants that these morphisms preserve. A Simple Example. To make the notion of invariance in reasoning more concrete, consider the elementary setting of parity. Let the representational state encode the parity of an integer. Suppose the initial state is S1:nis even The allowed morphisms are the transformations M={n7→ n+ 2, n 7→ n−2}, that is, operations that shift an integer by two units. The invariant preserved by these morphisms is simply parity(n)∈ {even,odd} which serves as the invariant throughout the transformation I(Sk).(4) This gives rise to a reasoning sequence S1→S2→S3, S1:nis even −→ S2: (n+ 2) is even −→ S3: (n+ 4) is even, where each state Sk corresponds to applying one of the allowed morphisms. Although the integer itself changes, its parity is preserved at every step, ensuring that the invariant condition I(Sk) = I(Sk+1) holds throughout the sequence. The reasoning process here can therefore be understood as a sequence of structure-preserving transformations within a structure space X= (O, M, I) where O is the set of integers equipped with parity labels, M is the set of allowable parity-preserving transformations, and I is the parity invariant. In practice, each object in O , M , I , X is encoded into a representation that can be accessed by both neural networks and search algorithms, ensuring that structural transformations, scoring, and planning can operate on the same underlying representation. This simple example illustrates how even the most elementary forms of reasoning rely on transforming representations while maintaining structural constraints. Below we provide further examples of invariance and structure in reasoning: 6
APREPRINT - DECEMBER 11, 2025 Structure Type Typical Invariant Why Reasoning Holds Logical Structure Transitivity of implication Ensures consistent conclusions Symmetry Structure Equivalence under group actions Preserves identity under transformations Algebraic Structure Preservation of algebraic laws Guarantees valid operations Topological Structure Invariance under continuous deformation Maintains the "same shape" Order Structure Preservation of ordering relations Supports causal/temporal inference Graph Structure Preserves node–edge relations Enables compositionality and dependency tracking Geometric Structure Distances/angles remain invariant Supports geometric reasoning Conceptual Structure Stability of semantic relations Basis for human abstract reasoning Table 1: Structural Types, Typical Invariants, and Why Reasoning Holds 3.3 A Layered Model of Formal and Semantic Structures A natural question concerns the status of the "structures" that inhabit the space X= (O, M, I) . Must they be fully specified mathematical objects with rigorously verifiable properties, or may the system also operate with semantic, approximate, or partially justified structures? We think that a realistic reasoning architecture must incorporate both, but in a layered fashion. At the lowest layer, the system operates on objects whose structural properties are mathematically rigorous and whose transformations admit precise verification. These include algebraic structures, graph-theoretic objects, logical formulas, and proof fragments whose invariants can be checked exactly. This layer functions analogously to a "formal core" of reasoning: it enforces logical soundness, guarantees invariant preservation, and prevents invalid morphisms. Above this formal layer, however, it is necessary to allow more flexible, semantic structures that are not fully reducible to strict mathematical verification. Human reasoning routinely employs such structures: for example, assuming the generalized Riemann Hypothesis enables a large body of meaningful conclusions in analytic number theory, even though the hypothesis itself is unproven. Similarly, mathematicians often reason with diagrams, analogies, or heuristic patterns that capture genuine structural regularities long before they are formalized. In our framework, higher layers of the structure space may contain semantic structures distilled from corpora of reasoning—such as recurrent proof patterns, heuristic variables, implicit analogies, and high-level argument shapes. These structures may not always be verifiable in the strict logical sense, but they remain useful as long as: (i) they admit admissible transformations M , (ii) they maintain task-relevant invariants I in an approximate or statistical sense, and (iii) they yield effective guidance for exploration, compression, or analogy. This layered design reflects the way human mathematical practice integrates rigor with heuristic insight. The formal layer ensures correctness, whereas the semantic layers perform heuristic and intuitive forms of reasoning—generating conjectures, posing tentative hypotheses, and exploiting loose structural analogies. Crucially, each structure—whether formal or semantic—is encoded into a representation accessible to both neural networks and search, allowing the system to integrate strict logic with heuristic pattern discovery within a unified framework. 7
APREPRINT - DECEMBER 11, 2025 4 A Roadmap Toward AGI: Architecture Based on Structure-Space Reasoning Task LLM Structure Extractor Structure Space X= (O, M, I) Structure Generator Structure Transformer Scoring / Search (AlphaZero-style) External Calculator Reasoning Trace Figure 1: Overview of the proposed structure-based reasoning architecture. 4.1 Overview of Structure-Space Reasoning (SSR) We refer to this overall framework as Structure-Space Reasoning (SSR): a computational paradigm in which reasoning is performed not in token space but within an explicit structure space equipped with objects, morphisms, and invariants. Operationally, SSR treats a reasoning trajectory as a sequence of invariant-preserving morphisms in a structure space: X0 m1 −−→ X1 m2 −−→ ··· mT −−→ XT, where each Xt⊆(O, M, I) is a structural state and every admissible morphism mt satisfies I(Xt) = I(Xt+1) for the task-relevant invariants I. 4.2 The Role of Structure Space in Reasoning A general artificial intelligence system grounded in a structure space forms the central component of our proposed framework. Unlike traditional symbolic systems, the structure space is open-ended and can expand dynamically as 8
APREPRINT - DECEMBER 11, 2025 the system discovers new structures, morphisms, and invariants. Such a system functions as a reasoning-specialized module whose role is not to store content, but to operate on invariants and structure-preserving transformations. Under this view, diverse kinds of mathematical, logical, or geometric structures can be unified within a single representational scheme—consisting of objects, morphisms, and invariants—which in turn supports a mechanism for structural transformation, structural comparison, and invariant-based learning. 4.3 Reasoning as Structure-Preserving Search Once reasoning steps are modeled as morphisms, the process becomes a sequential decision problem. Furthermore, the close parallel between logical reasoning and the game-like search performed by AlphaZero suggests a natural computational strategy. One may regard the current configuration as the "state" of a game and each admissible morphism as a possible move. This analogy motivates carrying out reasoning in an AlphaZero-like fashion: reinforcement-learningbased search over a space of structure-preserving transformations. We expect that algorithms inspired by AlphaZero can be adapted to this setting, potentially enabling automatic discovery of mathematical reasoning steps. 4.4 Modular Computation and Automatic Module Evolution In practice, a structure-based reasoning system is unlikely to take the form of a single monolithic network. Human mathematical cognition relies on several interacting subsystems: (i) a "calculator" module capable of exact symbolic or numerical computation (such as evaluating integrals or solving differential equations), (ii) a reasoning module that supports forward, backward, and "jumping" inferences over abstract structures, and (iii) an intuitive modeling module that constructs geometric or physical analogies. An important example comes from the relationship between the number of solutions of an elliptic curve over a finite field and the size of that field. A key parameter governing this relationship is constrained by the Hasse–Weil bound: #E(Fp)−(p+ 1)≤2√p. Such a constraint was originally observed through plotting and extensive computation: the geometric shape becomes apparent long before one encounters a formal proof. Yet this visually accessible phenomenon inspired deep mathematical investigation, ultimately contributing to the chain of ideas that led to the proof of Fermat’s Last Theorem. Motivated by this cognitive picture, our framework assumes a family of interacting modules rather than a single end-to-end Transformer. Importantly, the internal parameter spaces of these modules need not resemble conventional token-embedding vector spaces. Instead, each internal state may be regarded as a richly structured "reasoning step"—one that encodes, for example, whether an external computation should be invoked, the inputs and outputs of such calls, its local reasoning context, and its nesting relations with other steps. 4.5 Core Modules of the SSR Architecture We envision the system as comprising several key modules: Structure Representation and Structure Space: a module that encodes structures directly. All structures live inside an extensible structure space that stores objects, morphisms, invariants, and their interrelations. Structure Generator: proposes latent structures underlying a given problem and expands the search space with new candidates. Structure Transformer: applies structure-preserving transformations that maintain selected invariants. This module functions as the core reasoning engine. Scoring Module: evaluates all existing structures—including objects, morphisms, invariants, and reasoning chains—by assigning learned scores. This scoring mechanism is implemented via neural networks. The scoring module takes as input a structural configuration and outputs scalar evaluations representing progress, complexity reduction, or invariant satisfaction. To avoid unbounded expansion, structures may be pruned using MDL-based scoring and invariant consistency checks. External Calculator: invoked when reasoning requires heavy numerical computation, providing fast results that would otherwise require long step-by-step derivations. LLM: a large language model used to extract implicit structures, morphisms, objects, and invariants from large corpora of mathematical or logical reasoning traces. LLMs serve as powerful priors for structure induction, yet the system must impose explicit structural constraints and validation procedures to guarantee that the extracted reasoning patterns are rigorous, invariant-preserving, and truly relevant to the underlying problem. 9