Skip to main content

The Knowledge Compiler: Can Science, Law, and Engineering Become Machine-Verifiable?

From executable biological models and formal scientific theories to computable legislation, clinical guidelines, and cumulative knowledge infrastructures

An evidence-based, cross-domain investigation of executable knowledge and the limits of semantic, formal, empirical, and institutional assurance.
machine learning
report
software systems
🇬🇧
Author

Antonio Montano

Published

November 15, 2026

Modified

November 25, 2026

Abstract

Software engineering has developed powerful techniques for transforming formal specifications into executable artifacts whose properties can be mechanically checked. Comparable approaches are increasingly being explored in scientific knowledge, legislation, clinical guidance, financial contracts, and engineering requirements, supported by language models, domain-specific intermediate representations, proof assistants, model checkers, and validation tools.

This article investigates these developments across several knowledge domains, examining Catala and Lexifina in law; INDRA, GO-CAM, SBML, and Lean in biology; WHO SMART Guidelines and HL7 in medicine; formal chemical physics, AI-Descartes, AI-Hilbert, and FormalScience in scientific reasoning; ACTUS, FINOS CDM, ISDA DRR, and XBRL in finance; and SysML v2, buildingSMART IDS, IEC 62443, and OSCAL in engineering and cybersecurity. Although these systems differ in their objectives and underlying formalisms, they illustrate a broader effort to transform human-expressed knowledge into computational representations that can be executed, examined, and, within specified limits, verified.

The analysis distinguishes several dimensions of assurance that are frequently conflated: semantic fidelity between source knowledge and its computational representation, deductive verification, empirical validity, temporal applicability, operational conformance, and institutional authority. Building on these distinctions, the article proposes a federated reference architecture in which typed domain representations are connected to source provenance, documented interpretations, proof obligations, independent evidence, and versioned assurance cases.

Although agentic proof search and AI-assisted compilation can reduce some of the costs associated with producing formal artifacts, no general solution yet validates the entire chain from arbitrary source knowledge to real-world truth. The more defensible ambition is therefore not the automatic certification of knowledge, but the development of cumulative computational knowledge infrastructures in which conclusions can be checked within explicitly declared limits, while the assumptions, interpretations, and evidence supporting them remain visible, contestable, and revisable.

An evidence-based, cross-domain investigation of executable knowledge and the limits of semantic, formal, empirical, and institutional assurance.

When knowledge becomes executable

Scientific papers, legislative provisions, clinical guidelines and technical specifications have traditionally carried knowledge in forms optimized for expert reading. Their sentences, equations, figures and references help specialists interpret claims and contest conclusions, but ordinarily do not specify a complete machine-executable meaning. Implementations must therefore reconstruct that meaning: a biologist converts a verbal mechanism into reactions and rate laws; a developer translates legislation into decision logic; a clinician interprets recommendations against a patient record; an engineer turns requirements into a model, configuration and verification procedure. Each reconstruction introduces decisions that are often absent from the original document, even when the resulting software operates correctly.

A striking collection of contemporary research suggests that this division is beginning to change. INDRA converts descriptions of molecular interactions into structured Statements that can be assembled into executable models; Catala represents statutory calculations while respecting the architecture of legislative defaults and exceptions; WHO SMART Guidelines and HL7 artifacts seek to make clinical recommendations computable; and Lean-based scientific research converts selected mathematical and physical derivations into mechanically checked proofs.1234 These systems differ profoundly in purpose, yet all connect source material to a computational representation that can be queried, executed, analyzed or verified. The object of investigation is not one product named a knowledge compiler, but the family of transformations through which human-expressed knowledge becomes computationally inspectable.

The attraction is not merely speed. In conventional digitalization, an authority publishes a requirement and many organizations independently interpret and implement it. Their outputs may disagree because of different assumptions, missing exceptions, mismatched units or incorrect temporal scope. A reusable computational representation could reduce duplicated work, make assumptions explicit and enable consistency checking; coupled with provenance and controlled revisions, it could allow dependent systems to identify which conclusions change when the source changes. Such a system would alter the organization of knowledge work, not just the interface through which a document is accessed.

Yet the word compiler may mislead if it suggests the deterministic semantics of a conventional programming language. For a specified programming language, compilation correctness can be defined against formal source and target semantics; natural-language sources do not generally possess one globally agreed executable meaning. A legal provision may require interpretation, a scientific claim may express a provisional causal hypothesis, and a clinical recommendation may depend on information that is missing from a patient record. Choosing one executable form may resolve ambiguities without justification, while a perfectly valid proof can establish a proposition different from the one its author intended. The central research problem is therefore whether computational knowledge can be produced without concealing the interpretive decisions and external evidence on which its usefulness depends.

The distinction is illustrated by a finite scientific statement. Once an organism’s applicable genetic-code table is specified, mapping a codon to an amino acid is a well-defined function; a proof assistant can verify properties of that function. It cannot, merely by checking the function, establish that the table was selected appropriately for the biological system or that the model includes every aspect of transcription, RNA processing and translation. Similarly, an executable tax rule may calculate the consequence of an approved interpretation while remaining unable to settle disputed facts or exercise judicial discretion. These are not arguments against formalization; they identify the claims for which independent evidence is still needed.

This article proceeds from historical and current systems to a common architectural hypothesis. It examines law, biology, medicine, physics and chemistry, finance, and engineering and cybersecurity, distinguishing what each domain can formalize from what remains contingent. It then proposes a federated reference architecture, analyzes the semantic problems of ambiguity, defeasibility, causality, uncertainty and change, evaluates AI-assisted compilation, and considers economic incentives, governance and end-to-end metrics. The aim is to determine whether we are approaching a reusable infrastructure for computational knowledge—not to assume that executing a statement makes it true.

Defining the knowledge compiler: representation, execution, verification, and truth

A working definition must identify the transformations a knowledge compiler performs and the objects against which their correctness can be judged. Let a source be a versioned body of material expressing claims, procedures, norms, models or observations. A declared interpretation identifies the meanings, scope and assumptions assigned to the selected material. A formal artifact is a representation with sufficiently precise computational semantics to support specified operations, including evaluation, simulation, logical inference or proof checking. An assurance record connects these objects to evidence about the validity of their transformations and uses.

Under this definition, a domain-aware knowledge compiler is a governed system that transforms source-linked, qualified claims into typed computational representations, while preserving explicit assumptions, provenance, verification results and domain-specific evidence of applicability. The definition does not require every output to be executable: a partially specified causal hypothesis, proof obligation or family of admissible interpretations may be the most faithful representation possible. Nor does it imply that every transformation can be automated. Domain specialists, competent authorities and external experiments may be essential to determine an interpretation or validate a claim.

It helps to distinguish several properties, whose ordering is not a universal hierarchy of trust. Structural validity concerns whether an artifact conforms to its grammar and type constraints; computational validity concerns whether it behaves according to a selected formal semantics; deductive validity concerns whether a proposition follows from explicit premises; semantic fidelity concerns correspondence between the representation and the intended source; empirical validity concerns agreement with observations of the world; and institutional or operational validity concerns whether the representation possesses the authority and applicability required for a particular decision. A formally checked theorem can be strong on deductive validity and weak on empirical adequacy; an empirically successful model can have a sound predictive record without uniquely identifying its underlying causal mechanism.

Let S denote source knowledge, I its declared interpretation, F a formal representation and Q a specified class of queries. If A_{S,I}(q) is the answer supported by the interpreted source and A_F(q) the answer produced by the formal artifact, an idealized observational correspondence is

\forall q\in Q,\qquad A_{S,I}(q)=A_F(q). \tag{1}

The equation is a target condition, not an automatically testable guarantee. It presupposes that the two answer functions are comparably defined and that I has been justified. Where the source admits several interpretations, a compiler may instead need to preserve alternative formalizations or establish only a conditional refinement relationship. Even exact correspondence over a finite query set does not establish equivalence outside that set, unless completeness follows from the underlying formal semantics.

Machine checking offers a different guarantee. In a dependent type theory, a checker may accept a term p of type P under a formal environment \Gamma:

\Gamma\vdash p:P. \tag{2}

The judgment establishes a derivation within the trusted foundations of the proof environment. It does not prove that P translates the source accurately, that \Gamma contains empirically true premises, or that the claimed result is applicable to a deployed physical system. Compiler verification, model checking and proof-carrying software can provide strong internal guarantees, yet transferring them to informal requirements or external reality demands further correspondence arguments.56

Formalization object Machine-processable result Appropriate correctness question Remaining boundary
Typed claim or ontology Queries, classification, entailment Are types and inferences valid under the declared semantics? Is the source meaning preserved?
Executable rule Decision, calculation, workflow Does execution implement the approved rule? Was the rule interpreted and applied legitimately?
Mathematical theorem Proof term or certificate Does the formal conclusion follow from its premises? Are its premises and statement adequate?
Scientific model Dynamics or predictions Are simulations reproducible and consistent with the model? Does the model explain or predict nature?
Engineering model Conformance or invariant result Does the modeled system satisfy a specified property? Does the deployed system correspond to the model?
Table 1: Distinct objects and assurance questions in knowledge compilation.

The key design decision follows: an artifact should never carry one undifferentiated status called verified. Its assurance record should identify which proposition was checked, under which assumptions and toolchain, with which external evidence, for which domain context and source version. Where an obligation remains unresolved, that limitation is part of the artifact’s meaning rather than a defect to be hidden by the user interface.

From expert systems to formal knowledge infrastructures

The ambition to make knowledge computationally operable predates contemporary language models. McCarthy’s Programs with Common Sense proposed an advice-taker capable of representing facts and drawing conclusions; McCarthy and Hayes subsequently investigated the relationship among formal reasoning, action, causation and the representation of common sense.78 The essential research problem was already recognizable: symbolic inference requires a formal representation of the world, while the adequacy of that representation depends on what has been observed and how its terms are interpreted.

Early expert systems concentrated domain expertise into rules and specialized representations. DENDRAL used chemical knowledge to constrain the interpretation of mass spectra, while MYCIN represented medical diagnostic reasoning through production rules and certainty factors. These systems demonstrated that domain-specific knowledge could be operationally useful; they also made knowledge acquisition and maintenance conspicuous bottlenecks, since specialists had to encode and revise structures that were much richer than isolated rules.910 Their success did not establish that a general-purpose rule engine could infer all the meaning omitted from a human source.

Logic programming and computational law gave a different form to the ambition. Kowalski’s account of logic as a basis for programming and Sergot and collaborators’ formalization of provisions of the British Nationality Act showed how legal or procedural knowledge could be represented as computational relations.1112 Yet a rule system expresses a selected interpretation: missing facts, exceptions, normative authority and temporal applicability do not disappear because a program computes a Boolean decision. Later work on ontologies, including Gruber’s formulation of explicit conceptual specifications and the Semantic Web program, sought interoperability through shared terms and formally defined relations.1314

Standards such as RDF, OWL and SHACL supplied structured languages for asserting relationships, deriving selected consequences and validating constraints, but their semantics must not be conflated. OWL commonly operates under open-world assumptions; SHACL checks whether a selected data graph satisfies declared shapes. A missing assertion does not have the same meaning under every formalism, and graph validation is not evidence that the asserted facts correspond to reality.1516 The history of knowledge representation thus demonstrates both the value of machine-checkable semantics and the danger of treating one semantics as universally applicable.

Formal proof assistants developed along another path. LCF-style architectures separated untrusted proof search from a small trusted inference kernel; descendants and related systems, including Coq and Lean, provide environments in which proofs of mathematical propositions can be checked against explicit foundations. CompCert demonstrates how formal verification can be extended across important compiler transformations under specified operational semantics.1718 These technologies offer stronger logical assurance than ordinary expert-system execution, but they still require the right theorem statement and suitable assumptions.

Contemporary AI reconnects these traditions because it can propose structured representations from heterogeneous language and invoke tools that reject formally invalid candidates. The historical obstacle has not vanished; it has shifted. Knowledge extraction and proof construction may become cheaper, whereas semantic interpretation, evidence integration, and maintenance remain necessary. A modern knowledge infrastructure must therefore combine the reusability of ontologies, the execution semantics of specialized languages, the checking guarantees of formal systems, and the provenance of its source material. The remaining sections examine what that combination looks like in actual domains.

Biology: from scientific literature to causal and executable molecular models

Molecular biology reveals an especially clear separation between what is asserted in scientific prose and what a mathematical model must specify before it can execute. A paper may report that a kinase phosphorylates a substrate, that a signaling protein activates a pathway, or that inhibiting one mechanism changes a measured phenotype. The statement may be meaningful to a specialist without specifying every binding state, reaction intermediate, stoichiometric coefficient or kinetic constant. Yet simulation generally requires much of this missing structure. A compiler that immediately translates such prose into differential equations must either find the missing assumptions elsewhere or introduce them itself.

Gyori and collaborators’ INDRA architecture addresses the problem through an intermediate representation deliberately distinct from the executable model. Natural-language processing and structured pathway databases supply mechanistic assertions; grounding resolves names to biological entities; INDRA Statements represent interactions and their supporting Evidence objects; and Assemblers then instantiate reaction networks under selected modeling policies.23 A sentence such as “MEK1 phosphorylates ERK2 at threonine 185 and tyrosine 187” may be converted into a mechanistic assertion without determining whether its eventual executable realization uses a one-step reaction, an enzyme–substrate intermediate or another kinetic scheme.

The separation is epistemically valuable because the model assembler can introduce assumptions not found in the original text. Let K denote the extracted mechanistic knowledge, \pi an assembly policy, and \theta parameters needed for simulation. An executable model may be represented conceptually as

M=\mathcal{A}(K,\pi,\theta). \tag{3}

The same K may admit multiple realizations with different dynamics because \pi and \theta are not uniquely determined by the evidence. In a deterministic reaction model the state may evolve according to \dot{x}(t)=Nv(x(t);\theta), where N is a stoichiometric matrix and v the reaction-rate vector. The mathematical properties of this equation do not establish which reaction scheme or parameters are biologically correct. Parameter identifiability, experimental controls and the applicability of the assumed mechanism remain separate research problems.

GO-CAM provides a complementary approach by constructing computable causal activity models grounded in Gene Ontology relationships and evidence. Its artifacts are not interchangeable with INDRA Statements or kinetic models; they support a different level of causal description and annotation.24 Likewise, SBML standardizes representations of systems-biology models, while SED-ML describes simulation experiments so that model execution can be reproduced across compatible tools.2526 A syntactically valid SBML document, a successfully reproduced simulation and an experimentally supported biological hypothesis are therefore three distinct results.

This distinction becomes evident in large model repositories. A stored model may execute in the author’s original environment yet fail in another because required dependencies or numerical settings were not preserved. A more portable model may reproduce numerical trajectories exactly while remaining based on a mechanism that subsequent experiments challenge. Reproducibility concerns a computational experiment’s reconstruction; empirical validation concerns its correspondence with biology. Neither is the same as faithful extraction from the literature.

The evidence-preserving assembly chain in Figure 1 connects a source passage to extracted statements, grounded entities, modeling policies, executable models, experiment specifications and external validation results. When a source claim is retracted or a modeling assumption changes, these links permit targeted reassessment rather than treating the entire model as an opaque program. Biology demonstrates that formalization is itself a knowledge-producing activity: the need to execute a mechanism exposes precisely which aspects of the source were incomplete, and the compiler should preserve that incompleteness rather than hide it.

%%{init: {"theme": "neo", "look": "handDrawn", "layout": "elk"}}%%
flowchart TD

    subgraph KNOWLEDGE["1. Evidence and knowledge extraction"]
        direction TB

        A[("Scientific literature<br/>and curated databases")]

        B["Extract and ground<br/>entities and interactions"]

        C["Mechanistic statements<br/>with source-linked evidence"]

        A -->|"Identify reported mechanisms"| B
        B -->|"Represent claims and provenance"| C
    end

    subgraph MODEL["2. Formalization and model construction"]
        direction TB

        D["Assemble mechanistic model"]

        P[("Assembly policies<br/>and modeling assumptions")]

        K[("Rate laws<br/>and parameters")]

        E[("SBML model<br/>species, reactions, dynamics")]

        P -.->|"Select mechanistic detail"| D
        K -.->|"Supply quantitative choices"| D

        D -->|"Generate formal representation"| E
    end

    subgraph EXECUTION["3. Computational experimentation"]
        direction TB

        S[("SED-ML<br/>experiment specification")]

        F["Execute simulation"]

        G[("Predicted behavior<br/>and trajectories")]

        S -->|"Specify simulation procedure"| F
        F -->|"Compute model consequences"| G
    end

    subgraph VALIDATION["4. Empirical assessment"]
        direction TB

        H[("Independent<br/>experimental observations")]

        I["Compare predictions<br/>with observations"]

        J["Qualified assessment<br/>agreement, discrepancies,<br/>uncertainty and scope"]

        H -->|"Provide external evidence"| I
        I -->|"Evaluate empirical adequacy"| J
    end

    C -->|"Select an executable interpretation"| D

    E -->|"Supply the formal model"| F

    G -->|"Supply predictions"| I

    I -.->|"Reassess mechanisms"| C
    I -.->|"Revisit modeling choices"| P

    classDef evidence fill:#e5edf1,stroke:#54758a,color:#203846
    classDef assumptions fill:#fff0d7,stroke:#a57932,color:#493513
    classDef formal fill:#e6e8f6,stroke:#5e68a0,color:#252d55
    classDef assessment fill:#e1eee5,stroke:#538265,color:#244331

    class A,B,C,H evidence
    class P,K,S assumptions
    class D,E,F,G formal
    class I,J assessment
Figure 1: From biological evidence to executable models and empirical assessment. Literature-derived mechanisms remain distinct from modeling assumptions, simulation protocols, and independent observations. Empirical discrepancies can trigger revisions without automatically determining which underlying assumption is incorrect.

Formal molecular biology: genetic code, mechanistic models, and proof assistants

Formal molecular biology explores a different kind of computational assurance. Instead of asking whether a model predicts experimental behavior, it asks whether selected biological relationships can be stated as mathematical functions and whether their consequences can be proved. These tasks can overlap, but their correctness criteria must not be confused. A proof that a genetic-code mapping is non-injective establishes a property of a specified mapping, while the biological adequacy of that mapping remains dependent on the organism, genetic code and level of abstraction selected.

Jones and Josephson’s October 2026 preprint, Reasoning about the Genetic Code in Lean, formalizes nucleotide bases, amino acids, transcription, translation, replication and mutation as Lean constructions.27 The standard genetic code maps 64 possible RNA codons to 20 canonical amino acids and termination signals, so any corresponding codon-to-output function with fewer than 64 distinct outputs must be non-injective by the pigeonhole principle. This mathematical observation is straightforward once the domain and codomain have been specified; encoding the mapping in Lean makes the relevant assumptions and proofs explicit.

If \Sigma_R is the four-symbol RNA alphabet, C=\Sigma_R^3 the 64-codon domain, and A the finite set of translated outputs, a codon table \tau:C\to A cannot be injective when |A|<|C|:

|C|=64>|A|\quad\Longrightarrow\quad \exists c_1\ne c_2:\ \tau(c_1)=\tau(c_2). \tag{4}

The proof does not establish the empirical correctness of each row of the table. The National Center for Biotechnology Information documents alternative genetic codes, including mitochondrial variants; the relevant code must therefore be specified as part of the biological context.28 A generic representation should parameterize translation by the selected code rather than hard-code one table as though it were a universal biological law.

Transcription presents another semantic boundary. A formal model can define a length-preserving, injective map by replacing DNA nucleotides with corresponding RNA symbols under a specified strand convention. That property concerns the idealized symbol transformation. It does not describe all processing of mature RNA, including splicing and other biological modifications. Strand conventions also matter: a coding-strand DNA sequence and its template complement do not produce the same RNA when the relevant direction is omitted. The original preprint’s illustrative codon prose consequently requires careful checking against the explicitly modeled strand semantics rather than assuming that an accepted Lean theorem settles the biological interpretation.

Other systems employ proof assistants or model checkers for biological dynamics. Modal and linear logics have been used to represent resource-sensitive biological interactions, while probabilistic model checking has been applied to signaling pathways and their stochastic behavior.2930 These methods establish selected properties of encoded transition systems; a model may be internally consistent while its biological assumptions remain incomplete. The appropriate research target is a paired dependency structure: formal premises and proofs on one side, empirical sources and validation evidence on the other. A change in a mathematical definition requires rechecking deductions; a new experiment may require reassessing a model’s applicability even when its proofs remain intact.

Medicine: compiling clinical guidelines without losing clinical judgment

Clinical recommendations occupy a boundary between scientific evidence and normative decision support. A guideline summarizes evidence and makes recommendations, often qualified by population, contraindications, resource availability, recommendation strength and professional judgment. An executable rule must make these qualifications operational: it identifies patient data, determines applicability, evaluates temporal conditions and offers a recommendation within a clinical workflow. The most important failure may be neither a syntax error nor an incorrect arithmetic operation, but the omission of a qualifier that changes which patients are eligible.

WHO SMART Guidelines—Standards-based, Machine-readable, Adaptive, Requirements-based, and Testable—address the challenge through a layered approach to digital adaptation. Digital Adaptation Kits supply software-neutral descriptions of recommendations, workflows, core data elements, decision-support logic, indicators and requirements. The November 2026 implementation facilitation guide describes country localization, validation, system development and monitoring rather than assuming one universal implementation.3132 This separation is essential because a recommendation derived from international evidence may need to be expressed through national clinical terminology, local referral pathways and available health services.

HL7’s Clinical Practice Guidelines implementation approach brings computational clinical knowledge into the FHIR ecosystem. Depending on the applicable FHIR version and implementation guide, resources such as PlanDefinition, ActivityDefinition and Library, together with Clinical Quality Language, can encode decision logic, clinical actions and evaluation dependencies.3334 CDS Hooks can provide workflow integration, but a mechanism for invoking decision support is not itself evidence that the underlying recommendation is clinically correct. The distinction among representation, execution, invocation and clinical evaluation must be preserved.

One illustrative representation of a patient-specific decision is R(p,c,t,v,e), where p identifies the observed patient state, c the clinical context, t the relevant time, v the applicable guideline version and e the supporting evidence. The result should be understood as a recommendation accompanied by its rationale and applicability conditions, not necessarily as an automatic clinical order. If a critical observation is unknown, a three-valued evaluation may correctly return an unresolved result rather than treating the missing condition as false. This is particularly important for allergies, contraindications, pregnancy status, renal function and other factors whose absence from a record may reflect incomplete data rather than a negative clinical finding.

Gupta, Prociuk, Russo and Delaney’s 2026 NICE-to-code study offers concrete evidence for partial automation. Their LLM-based pipeline generated inspectable intermediate artifacts and executable rules from NICE guidance, evaluated through expert review and 20 synthetic pancreatic-cancer vignettes. Its reported mean F1 score was 0.825, with many translation errors involving partial omission of relevant details or qualifiers.35 The result is evidence about rule generation and performance on the reported evaluation materials, not a prospective demonstration of safety across actual patients. Guideline-grounded LLM approaches present similar questions concerning the completeness of source retrieval, the fidelity of encoded exceptions and the evaluation of recommendations under real workflow constraints.

The distinction between the strength of a clinical recommendation and the certainty of supporting evidence also matters. GRADE explicitly separates these concepts: a strong recommendation need not rest on high-certainty evidence in every circumstance, because benefits, harms, patient values and resources can influence the recommendation.36 A compiler that collapses recommendation strength into a probability of scientific truth loses a normative dimension of the guideline. Thus a defensible clinical knowledge artifact preserves evidence, decision logic, source authority, patient applicability and the clinician’s ability to review the recommendation. Computational consistency is valuable; clinical appropriateness remains a separate, context-dependent claim.

Physics and chemistry: machine-checked theory and empirical validity

Physics and chemistry possess highly developed mathematical representations, making them natural candidates for formal proof assistants. Their apparent advantage conceals a fundamental distinction: deriving a consequence from equations is not the same as establishing that the equations adequately describe nature. A mathematically correct result may rely on idealizations that fail in a particular experiment, while an empirically accurate formula may be compatible with several competing theories.

Bobbin and collaborators’ 2024 formalization of chemical physics in Lean reconstructed selected derivations from Langmuir and Brunauer–Emmett–Teller adsorption theory.37 The Langmuir model takes the idealized form \theta(P)=KP/(1+KP) for pressure P\ge0 and positive adsorption constant K. Within those assumptions, zero coverage at zero pressure and the bound 0\le\theta<1 at finite pressure are mathematical properties. Formalization can expose a missing nonzero-denominator condition or a convergence assumption, but it cannot establish that actual adsorption sites are homogeneous or that multilayer effects are absent. In the BET derivation, the series identity \sum_{n\ge1}nx^n=x/(1-x)^2 requires |x|<1; formal checking makes the condition explicit rather than accepting informal algebraic shorthand.

Reusable scientific libraries extend this approach. HepLean formalizes selected high-energy physics structures, including CKM matrices, anomaly cancellation and Higgs-related constructions, while PhysLib develops common Lean abstractions and a lower-review staging environment for experimental contributions.3839 A library’s utility is not simply a count of checked lemmas; its definitions must preserve the intended domain structures, and its dependencies must be maintainable. A physically meaningful quantum state is not interchangeable with a scalar merely because both can occur in an algebraic formula.

The discovery problem introduces another relationship. Symbolic regression can identify equations that fit observations, but finite data generally do not determine a unique function. If f_0 fits observations at distinct inputs x_1,\ldots,x_n, then

f_c(x)=f_0(x)+c\prod_{i=1}^{n}(x-x_i) \tag{5}

fits the same observations for every admissible c, although its extrapolation may differ. AI-Descartes supplements symbolic regression with deductive constraints from background theory, while AI-Hilbert uses polynomial optimization and related certificates to connect candidate laws, data and semialgebraic assumptions.4041 Their reasoning can establish derivability or consistency relative to supplied theory, not the empirical truth of that theory.

FormalScience supplies a particularly important warning. Meadows, Zhang and Freitas generated a curated corpus of 200 physics problems with Lean formalizations and reported complete formal acceptance, but separate assessments identified substantial semantic drift, including replacement of quantum-mechanical objects with simpler mathematical structures.42 Machine-checked validity and source fidelity are therefore demonstrably distinct evaluation dimensions. A scientific knowledge compiler must connect deductive dependencies to physical interpretations and empirical evidence, allowing a mathematical theorem to remain valid even when a model’s relevance to the world is revised.

Financial knowledge: executable contracts, regulatory reporting, and temporal rules

Financial contracts already encode substantial algorithmic knowledge: payment schedules, accrual conventions, state changes, contingent rights and termination conditions can often be computed once contractual terms and external observations are specified. Yet the same economic relationship may be represented differently across trading, risk, accounting and regulatory systems. The value of standardization lies in reducing repeated translation while preserving the distinctions among a contractual entitlement, a forecast, a valuation, an accounting recognition and a payment actually settled.

ACTUS defines standardized algorithmic contract types that generate events and contingent cash flows from contractual attributes and external risk factors.43 A simplified contract model can be expressed as

(s_{k+1},c_k)=T_C(s_k,e_k,z_k), \tag{6}

where C is the encoded agreement, s_k the prior state, e_k an event, z_k the required external observations, and c_k a calculated obligation. The model distinguishes computation from prediction: a floating-rate loan defines how a reference rate changes a payment, but cannot determine the future reference rate. A correct cash-flow engine may also be inapplicable when a negotiated clause falls outside its supported contract type.

The FINOS Common Domain Model (CDM) addresses products, trades, states and lifecycle events rather than only contractual cash-flow algorithms. Its event model composes operations such as quantity changes, terms changes, exercises, transfers and splits, enabling consistent lineage across transaction processing.44 ISDA’s Digital Regulatory Reporting uses CDM representations to express selected industry-agreed interpretations of reporting obligations as executable rules.45 These projects can reduce duplicated implementation, but neither the common data model nor executable reporting logic automatically verifies the truth of upstream transaction records or substitutes for the regulator’s authoritative requirements.

XBRL provides another assurance layer for financial disclosures. Its taxonomies and Formula specifications permit structural, arithmetic and conditional validation of reported facts.4647 A report satisfying A=L+E is internally reconciled under the selected accounting concepts and conventions; the equality does not prove that every asset exists, every liability has been reported or every amount has been valued correctly. It is possible for incorrect figures to satisfy every declared arithmetic relationship.

The temporal dimension is equally central. Contract execution, value dates, observation dates, accrual periods, payment dates and regulatory effective dates need not coincide. A report correct under one rule version may be incorrect under another. Consequently, financial knowledge compilation requires versioned event semantics, source-to-model mappings and traceable calculations. Its strong contribution is reproducible computation of conditional consequences; contractual enforceability, authoritative interpretation, market data quality and realized settlement remain external obligations.

Engineering and cybersecurity: computable requirements and assurance evidence

Engineering complicates the compiler analogy because the artifact to be evaluated often exists outside the model. A bridge, plant, aircraft, industrial controller or network can be described through formal requirements and simulations without necessarily behaving as designed when installed. NASA’s systems-engineering methodology accordingly distinguishes verification—whether a realized system satisfies specified requirements—from validation—whether it fulfills its intended purpose under intended conditions.48 Both require evidence, and neither follows merely from the validity of the model’s syntax.

SysML v2 and KerML, standardized by the Object Management Group in 2025, provide a more explicit semantic framework for representing requirements, components, behavior, interfaces and analysis relationships.49 Their standardized textual representation and APIs support versioned model processing, although a well-formed SysML model is not necessarily physically correct. buildingSMART’s Information Delivery Specification (IDS) provides a narrower but operationally useful mechanism: project-specific information requirements can be checked against IFC building models.50 The presence of a certified fire-resistance property in a BIM object is not evidence that the installed door has that resistance or was installed correctly.

Industrial cybersecurity adds adversarial assumptions and dynamic configuration. IEC 62443-3-2 structures risk assessments around the system under consideration, zones and conduits, while IEC 62443-3-3 specifies technical system security requirements and security capability levels.5152 A declaration that two networks belong to separate zones is not proof of effective segmentation. A valid network model must account for routing, policy enforcement, relevant identities, application protocols, maintenance connections and other paths by which information or commands may cross a boundary. A model may prove an isolation property while omitting a tunnel or dual-homed workstation present in the deployment.

If G_{\mathrm{eff}}=(V,E_{\mathrm{eff}}) represents modeled effective information-flow relationships, U the scoped endpoints and \mathcal P their authorized pairs, a simplified isolation condition is

\forall u,v\in U,\quad \operatorname{Reach}_{G_{\mathrm{eff}}}(u,v) \Longrightarrow (u,v)\in\mathcal P. \tag{7}

The model is deliberately abstract: authorization may depend on command type, direction, identity, time and system state, so an endpoint-pair relation can be insufficient for actual control-system security. Moreover, the theorem concerns the modeled graph; applying it to the plant requires evidence that the graph captures the active topology and relevant configurations.

NIST OSCAL formalizes a complementary object: security-control catalogs, profiles, component implementation descriptions, system security plans, assessment plans and results, and plans of action.53 Its machine-readable structures can connect control requirements to evidence, but a valid assessment file may accurately record an inadequate test or an incorrect implementation claim. NIST SP 800-82 Revision 3 explicitly considers the safety, reliability and operational constraints of OT systems; a September 2026 initial public draft of Revision 4 was still not a final replacement as of the article date.54

The common engineering lesson is that system-model satisfaction, implementation conformance and continued operational applicability are different claims. Factory acceptance, commissioning and site tests generate evidence under specific configurations, while subsequent changes can invalidate the transfer of model results to the installed system without invalidating the proofs themselves. Knowledge compilation can improve traceability and detect some deviations, provided it records what was tested, when, against which baseline and with which limitations.

A reference architecture for a domain-aware knowledge compiler

The six domains reveal a common need without demonstrating one universal computational semantics. An effective architecture should therefore be federated: domain compilers preserve their specialized constructs, while shared infrastructure manages sources, interpretation decisions, formal dependencies, validation evidence and lifecycle control. The common layer is an assurance discipline rather than one logical calculus, since a statutory exception, a causal biochemical mechanism and a network isolation property do not become semantically interchangeable when placed in the same graph.

The proposed architecture distinguishes three primary object families. Source objects preserve documents, structured records and observations with version, origin, effective date, integrity evidence and stable anchors. Computational objects include qualified claims, typed intermediate representations, rules, models, programs and formal propositions. Assurance objects connect those representations to proof results, source-to-model reviews, experiments, conformance tests, institutional approvals and records of operational applicability. Provenance is essential, but historical derivation is not justification: knowing which document produced a claim does not establish that the claim accurately interprets the document.55

The reference architecture in Figure 2 begins with acquisition and segmentation. Candidate claims are extracted and grounded in domain vocabularies; an interpretation stage records scope, exceptions, uncertainty and added assumptions; a domain adapter translates the resulting statements into a target language or model; and checking tools evaluate what can be established formally. External validation examines empirical, legal, clinical or operational correspondence. The release gate then decides whether the available evidence satisfies the declared assurance profile. The gate may authorize a bounded use, request further review or preserve an incomplete artifact without allowing consequential execution.

%%{init: {"theme": "neo", "look": "handDrawn", "layout": "elk"}}%%
flowchart TB
    A[(Versioned source corpus)] --> B(Extract source-linked claims)
    B --> C(Interpret scope and assumptions)
    C --> D[(Qualified domain statements)]
    D --> E(Compile with domain libraries)
    F[Domain formalisms] -.-> E
    E --> G[(Formal artifacts)]
    G --> H(Types, proofs, model checking)
    G --> I(External validation)
    J[(Observations and authoritative evidence)] --> I
    H --> K[(Assurance results)]
    I --> K
    K --> L{Release obligations met?}
    L -->|yes| M[(Versioned knowledge release)]
    L -->|revision| C
    N[(Provenance and dependency graph)] -.-> B
    N -.-> C
    N -.-> E
    N -.-> K
    M --> N
Figure 2: Proposed federated knowledge compiler. Source interpretation, formal checking and external validation remain separate assurance boundaries.

The W3C PROV model supplies a general language for entities, activities, agents and derivations; DCAT describes datasets and version relationships; SLSA captures aspects of build and source provenance; and RO-Crate packages research artifacts with machine-readable metadata.56575859 These are useful components, not substitutes for semantic assurance. A cryptographically signed, reproducible artifact can still encode an incorrect legal interpretation or an empirically inadequate scientific model.

Conceptually a domain adapter can be represented as \mathcal C_d:(K_d,I_d,A_d)\to(F_d,E_d), where K_d contains qualified claims, I_d the approved or declared interpretation, A_d additional assumptions, F_d the resulting formal artifact and E_d evidence from the transformation. Crucially, E_d must identify its actual guarantee. A type-checking result, a proof certificate, an expert review and a clinical outcome study do not establish the same property. Release profiles should therefore state which obligations are required for exploratory, decision-support or operational uses.

Versioning also changes the architecture. If a source changes, the dependency graph identifies potentially affected artifacts, but different relationships trigger different actions: a new definition may require formal rechecking; a revised experiment may require scientific reassessment; a new regulatory interpretation may require authorization; an altered industrial configuration may require new operational tests. A conservative graph can flag possible impact, yet should not automatically label every dependent theorem false. The key output is thus a versioned knowledge artifact accompanied by a reconstructable, explicitly limited assurance record.

The semantic problem: ambiguity, defaults, causality, uncertainty, and change

The architecture’s most difficult transformation is source-to-formal interpretation. An expression in a controlled language has an explicitly defined semantics, while ordinary scientific, legal or technical language can leave scope, exception priority, causal mechanism and completeness assumptions unresolved. An engineering requirement for independent communication channels may refer to separate cables, equipment, providers, power sources or failure distributions. Selecting one definition without recording the choice changes the requirement being verified.

Let \mathfrak I(S) be a nonempty collection of admissible interpretations of source S. If two interpretations yield different answers to the same query, one unconditional output cannot preserve both. A conservative system can identify conclusions supported by every interpretation and distinguish them from conclusions supported by at least one:

A_{\cap}(q)=\bigcap_{I\in\mathfrak I(S)}A_{S,I}(q), \qquad A_{\cup}(q)=\bigcup_{I\in\mathfrak I(S)}A_{S,I}(q). \tag{8}

These are respectively skeptical and credulous constructions over the stated interpretations. Their usefulness depends on the quality and coverage of the admissible interpretation set; they do not identify the uniquely authoritative interpretation from syntax alone. Preserving alternatives or abstaining can therefore be semantically more faithful than producing a complete but unjustified executable rule.

Missing and contradictory information must also be distinguished. OWL’s open-world semantics does not infer a negation merely because a fact has not been asserted; Belnap’s four-valued logic permits positive support, negative support, both or neither.6061 A medical record lacking a documented contraindication does not establish its absence. Two scientific sources reporting conflicting observations do not necessarily describe the same experimental context. A knowledge compiler should attach completeness and conflict assumptions to specific predicates and situations instead of treating all missing data as false.

Defaults create a separate problem. Reiter’s default logic formalizes conclusions that may be withdrawn when additional information defeats their justification, while Dung’s argumentation frameworks analyze sets of mutually attacking arguments under specified acceptance semantics.6263 These structures are pertinent to statutory exceptions, clinical exclusions and engineering priorities, but the frameworks do not establish which sources should prevail. Their actual rule priorities, authority and conflict relationships must be supplied or reviewed within the domain.

Causal inference is another semantic boundary. An observational distribution P(Y\mid X=x) does not generally determine the intervention distribution P(Y\mid\operatorname{do}(X=x)). Two causal models can reproduce the same observations while predicting different outcomes when X is actively changed. Pearl’s structural causal framework makes this distinction explicit, while causal identification from observational data requires defensible assumptions about confounding, exchangeability and measurement.6465 A literature extractor can accurately report that a paper asserts a causal mechanism; the validity of that assertion is still an evidentiary question.

Finally, knowledge changes in more than one sense. Valid time concerns when a claim applies in the modeled domain, while transaction time records when information was entered into a system. Allen’s interval relations support temporal reasoning, and AGM belief revision provides formal machinery for modifying commitments when new information conflicts with earlier beliefs.666768 A corrected observation should not erase what was previously recorded; a new legal rule should not automatically govern a historical event; and a mathematical theorem need not become invalid because subsequent experiments undermine a premise’s empirical applicability. The compiler must distinguish these change modes if its dependency analysis is to support justified revision rather than indiscriminate rebuilding.

The theoretical limit is precise: when available sources and context do not determine a unique meaning, no algorithm can guarantee one unconditional interpretation without introducing information not established by those sources. Better models may identify the missing distinctions more reliably; they cannot logically derive what has not been specified. A trustworthy compiler should expose its assumptions, retain alternatives and produce a qualified answer whenever a complete one would imply unsupported certainty.

AI-assisted compilation: agent architectures, evaluation, and failure modes

AI makes the generation of candidate formal artifacts cheaper and more scalable, but it does not dissolve the distinction between the statement to be proved and the proof of that statement. A robust agentic compiler should therefore separate source retrieval, claim extraction, interpretation, formalization, proof search, source-correspondence assessment, external validation and release authorization. Several activities can use language models, yet no part of the design should assume that agreement among several models constitutes independent evidence of meaning.

LeanDojo demonstrates how language models can retrieve relevant mathematical premises and interact with a formal proof environment, rather than infer proofs only from text. APOLLO adds specialized repair and decomposition procedures, while Ax-Prover investigates multi-agent Lean workflows in mathematical and quantum-theory settings.697071 These systems illustrate a productive asymmetry: proof-search agents can generate many incorrect candidates because the formal checker rejects them, provided that the target theorem and its trusted dependencies remain fixed. The same asymmetry does not protect against an incorrect theorem statement.

AlphaProof supplies a powerful demonstration of reinforcement-learning-based formal mathematical reasoning; its Olympiad achievements depended on precise formalized problem statements, whose relationship to the original questions required separate work.72 A stronger software-engineering case appeared in November 2026. AlphaProof Code reports approximately 6.5 million lines of machine-checked Lean proofs connecting selected Signal cryptographic security specifications with a particular compiled AArch64 libsignal build, resting on roughly 26,000 lines of trusted definitions and machine semantics.73 The system deliberately separates human-approved specifications from autonomous proof construction, and its authors state the assumptions and excluded scenarios. It does not prove the security of every Signal application or operating environment.

This distinction motivates a protected specification baseline. If a proof-search agent can weaken the property or strengthen its assumptions until a proof succeeds, the checker may accept a correct derivation of the wrong requirement. Even if the theorem’s text is unchanged, altering an imported definition can indirectly weaken its meaning. An agentic harness must therefore control who can modify source interpretations, trusted definitions and release criteria, while allowing proof-search agents to inspect their failures and repair untrusted proof candidates. AlphaProof Code’s gatekeeping approach supplies a concrete implementation of part of this boundary.

%%{init: {"theme": "neo", "look": "handDrawn", "layout": "elk"}}%%
flowchart TB
    A[(Source and evidence)] --> B(Retrieve and extract)
    B --> C(Propose interpretations)
    C --> D[Authorized semantic review]
    D --> E[(Protected specification)]
    E --> F(Generate and repair formal artifacts)
    F --> G[(Candidate artifact)]
    G --> H(Formal checker)
    G --> I(Independent semantic review)
    G --> J(External validation)
    E -.-> H
    A --> I
    K[(Independent observations)] --> J
    H --> L[(Assurance record)]
    I --> L
    J --> L
    L --> M{Release obligations met?}
    M -->|approved| N[(Versioned release)]
    M -->|revision| C
    O[(Execution provenance)] -.-> B
    O -.-> F
    O -.-> L
Figure 3: An assurance-oriented agentic compiler separates probabilistic generation from protected specifications, deterministic checking and independent domain validation.

A second LLM can criticize source interpretation, but shared training, retrieval sources or biases may cause correlated errors. Counterexample generation, mutation testing and independent domain review provide stronger evidence when their criteria are distinct from those used to generate the artifact. FormalScience’s physics benchmark makes the risk concrete: complete formal acceptance can coexist with loss of Hilbert-space structure or other scientific semantics.74 Evaluators should deliberately test whether a generated formalization preserves quantifiers, exclusions, units, causal direction and temporal conditions, rather than rewarding compilation alone.

Tool interfaces introduce another trust boundary. The Model Context Protocol standardizes access to resources and tools, but neither a protocol schema nor a tool description establishes that returned content is authoritative.75 A retrieved paper or legal document must be interpreted as source data, not as instructions that can change the agent’s permissions or acceptance conditions. AgentDojo demonstrates how untrusted tool output can redirect agents; a knowledge compiler is especially exposed because malicious or erroneous content can contaminate the specification even when the subsequent code executes without incident.76

The assurance-oriented workflow in Figure 3 illustrates the practical objective: an orchestrated state machine whose permissions and validation gates are technically enforced. Source custodians and semantic reviewers control authoritative interpretations; proof agents search for derivations; validators evaluate formal and external correspondence; release authorities decide which results may be used consequentially. Agent provenance should record source spans, candidate assumptions, tool calls, rejected outputs, proof results and approvals, while controlling access to sensitive materials. As generation becomes less expensive, the pivotal assurance question increasingly concerns whether the system can reject valid proofs of semantically invalid statements.

The economics and governance of computational knowledge

The economics of a knowledge compiler depend on the relationship among generation, semantic review, reuse and maintenance. Arrow’s analysis of information goods provides a useful starting point: producing knowledge can be costly, while its subsequent reuse may have a low marginal cost.77 A formal theorem, algorithmic contract rule or machine-readable guideline can be copied and executed by many organizations, but qualified interpretation, integration and revision require finite resources. The artifact may be non-rival in distribution without making expert attention or institutional authority non-rival.

Suppose n organizations independently incur lifecycle costs c_i to encode substantially similar requirements. A shared infrastructure incurs common development cost F, governance and maintenance cost M, and residual local adaptation costs a_i. Sharing is economical, under a matched scope and assurance standard, when

F+M+\sum_{i=1}^{n}a_i<\sum_{i=1}^{n}c_i. \tag{9}

The inequality is an accounting condition, not evidence that every shared representation produces savings. The comparison must include migration, review, integration, expected error losses and time-dependent costs. Coase’s transaction-cost reasoning helps explain why organizations may choose internal development, proprietary vendors or collaborative infrastructure, while Baldwin and Clark’s theory of modularity explains why stable semantic interfaces can reduce the cost of change.7879

AI modifies the cost structure unevenly. Candidate formalizations may be generated cheaply, yet reviewers must determine whether they fit the domain, duplicate existing work or introduce fragile dependencies. Mathlib explicitly requires contributor understanding and maintainable abstractions; its 2026 contribution guidance cautions against unsupervised AI submissions whose review burden may exceed their value.8081 This is an operational example of a bottleneck migrating from production to curation. If candidate arrival exceeds the capacity to review and integrate them, the backlog grows even as raw generation productivity increases.

Governance also depends on what authority the common representation claims. FINOS CDM has working groups and maintainers empowered to govern the standard’s product and lifecycle semantics, but those roles do not determine the legal meaning of every underlying financial contract.82 WHO SMART Guidelines support internationally reusable clinical artifacts with authorized national adaptation, while the OECD’s Law as Code consultation concerns the possibility of publicly authorized executable legal representations that remain subordinate to enacted texts.8384 A proof-library maintainer, industry standards body, clinical authority and legislature therefore exercise different kinds of legitimacy; one generic approval field would conceal the distinction.

Shared infrastructure concentrates some risks. An implementation used by many institutions can eliminate inconsistent local defects, but a common semantic error can propagate to many users. Open licensing improves inspectability and exit options without guaranteeing that users possess the expertise to maintain independent implementations. Historical versions must also remain reconstructable, since a statutory rule, reporting obligation or clinical recommendation applicable at an earlier date may continue to matter after supersession. The governance process must record source rights, authority over interpretations, correction procedures, independent challenge and responsibility for local deployments.

A computational knowledge commons is sustainable only when its maintenance and review incentives persist over time. Hess and Ostrom’s work on knowledge commons provides a useful institutional analogy: open access by itself does not supply the arrangements required for collective stewardship.85 The expected benefit is a reduction in the lifecycle cost of trustworthy reusable knowledge, not maximal output volume. Whether automation achieves that benefit is an empirical question that must be answered at matched assurance quality.

Measuring end-to-end knowledge assurance across domains

The knowledge-compiler hypothesis is testable only if evaluation separates the stages whose guarantees differ. A model that parses, a rule that executes, a theorem that checks, a scientific prediction that matches observations and an implementation that works in production are different outcomes. The NIST AI Risk Management Framework’s MEASURE function emphasizes validity, reliability, representative evaluation, documented limitations and monitoring; it supplies relevant principles but not a ready-made benchmark for computational knowledge.86

The appropriate evaluation unit is a bounded source-to-artifact task with identified source versions, qualified claims, admissible interpretations, intended formal representation, release profile and expected evidence. Counting documents, lines of proof code or generated rules can reward redundant output or semantic weakening. A task may legitimately end in a partial formal model or a justified abstention when the source does not determine one unique executable meaning.

Assurance dimension Main question Illustrative measurement Boundary of inference
Source coverage Were claims and qualifications recovered? Claim precision/recall against annotated spans Correct meaning is not guaranteed
Semantic fidelity Is intended meaning preserved? Independent review, counterexamples, formal equivalence where possible Source truth is not guaranteed
Formal correctness Does the artifact satisfy its declared specification? Proof or type-check acceptance; model checking Specification adequacy is not guaranteed
External applicability Does the artifact correspond to the domain? Experiments, clinical cases, legal review, deployment tests Generalization beyond the evaluation scope
Provenance and revision Can evidence and dependencies be reconstructed? Reproducibility, change-impact testing Evidence quality is not guaranteed
Governance and economics Is intended use authorized and sustainable? Approval records; cost per accepted artifact Universal reliability is not guaranteed
Table 2: A stage-specific scorecard for end-to-end knowledge assurance.

The denominator matters. Let C^\ast(S) be the independently annotated required claims of source corpus S and \widehat C(S) the claims extracted under an explicit matching criterion. Claim recall is |\widehat C(S)\cap C^\ast(S)|/|C^\ast(S)|, but the matching criterion must account for exceptions, conditions and source context. Likewise, proof acceptance among the subset of successfully formalized tasks does not measure total source-to-proof yield. For sequential obligations E_1,\ldots,E_k, the probability of passing every stage follows the chain rule:

P\!\left(\bigcap_{i=1}^{k}E_i\right) =P(E_1)\prod_{i=2}^{k}P\!\left(E_i\mid\bigcap_{j=1}^{i-1}E_j\right). \tag{10}

The conditional factors must describe the same task population; multiplying unrelated percentages from different papers does not produce a measured end-to-end rate. BEq+ and related autoformalization benchmarks show why semantic equivalence requires separate evaluation from proof acceptance.87 In FormalScience, reported Lean acceptance and semantic-fidelity assessments describe different properties and cannot be substituted for one another.

Abstention changes the success measure. Selective prediction evaluates a system’s accuracy at different levels of coverage, rewarding correct refusal when information is insufficient while exposing systems that answer only easy cases.88 Confidence scores must be calibrated against well-defined events: the probability that an independent reviewer approves a mapping is not the probability that the underlying scientific assertion is true. Similarly, mutation testing can measure detection of deliberately introduced errors—omitted statutory exceptions, reversed causal directions, altered temporal thresholds or prohibited network paths—but the detected proportion is not a direct estimate of real-world fault-detection probability.89

External validity demands domain-appropriate evidence. A chemical simulation needs empirical comparison; a clinical rule requires patient and workflow evaluation; a financial report depends on authoritative rules and accurate transaction data; and a cybersecurity theorem must be connected to the deployed system. DECIDE-AI’s guidance on early-stage clinical evaluation illustrates why offline algorithmic performance cannot stand in for operational consequences.90 Assurance cases, as formalized in ISO/IEC/IEEE 15026-2, provide a way to relate claims, arguments and evidence without assuming that completion of a checklist establishes substantive correctness.91

A credible benchmark should include unseen or time-separated sources, domain-specific boundary cases, multiple admissible interpretations, controlled semantic mutations, confidence and abstention analysis, and test cases involving subsequent amendments or configuration changes. It should report not only accepted output yield but also expert review, correction and maintenance costs. Causal claims about AI productivity require matched workflows or research designs capable of distinguishing automation effects from learning, task selection and improved libraries. The decisive metric is not the amount of generated code; it is the proportion of original tasks producing appropriately assured and maintainable artifacts at an observable total cost.

Conclusion: toward cumulative, machine-checkable knowledge infrastructures

The cases examined here show that computational knowledge is no longer a speculative category. Rules of law can be represented in specialized executable languages; biological assertions can be normalized and assembled into mechanistic models; clinical recommendations can be adapted into decision logic; mathematical scientific derivations can be checked by proof assistants; financial contracts and regulatory reporting can share reusable computational semantics; and engineering requirements can be linked to models, assessments and operational evidence. These achievements are substantial, yet none establishes that arbitrary human knowledge has become automatically verifiable in the strongest sense.

The central distinction is between checking the consequences of a representation and justifying the representation itself. A formally valid proof can establish an unintended theorem. A reproducible simulation can instantiate a scientifically inadequate mechanism. A correct tax calculation can implement a disputed interpretation. A valid assessment artifact can record an insufficient test. In each case, the computational operation may be sound while the source-to-model or model-to-world correspondence remains unresolved. This is why the proposed architecture separates semantic interpretation, deductive validity, empirical evidence, temporal applicability and institutional authority.

The strongest feasible architecture is federated. A shared provenance and assurance infrastructure can connect source records, qualified claims, domain-specific intermediate representations, formal artifacts, independent validation results and versioned release decisions. The formal languages need not share one calculus, because legal defeasibility, clinical uncertainty, stochastic biology and cyber-physical state transitions possess distinct semantics. What can be shared is the discipline of recording assumptions, checking specific properties and preserving the evidence required to decide whether an artifact remains applicable.

AI changes the achievable scale of this infrastructure but not its logical foundations. Agentic proof search and compiler feedback can automate large portions of deductive work; AlphaProof Code makes the separation between approved specifications and autonomous proof construction particularly concrete. Yet an agent that can prove a theorem cannot derive from the proof alone that the theorem expresses the intended source. The system must be designed to detect specification weakening, preserve alternative interpretations, request additional evidence and abstain when the available source does not determine an unconditional answer.

The economic consequence is similarly conditional. Shared formal artifacts can reduce duplicated implementation, while AI can reduce the marginal cost of generating candidates. Expert review, domain libraries, evidence collection, version maintenance and authorized release remain costly; an abundance of generated formalizations may intensify these bottlenecks rather than remove them. Reliable knowledge infrastructure therefore depends on governance and stewardship as much as on compiler technology.

The immediate research agenda is testable. Domain-specific benchmarks should measure extraction, semantic correspondence, formal correctness, external validation, justified abstention and change-impact reassessment separately. Independent studies should compare end-to-end accepted yield and lifecycle costs against alternative workflows. Curated formal libraries should expose their assumptions and support compositional reuse, while provenance systems should distinguish historical derivation from evidentiary justification. The central challenge is not to produce ever more artifacts that compile, but to connect them reliably to the conditions under which their conclusions hold.

Can science, law and engineering become machine-verifiable? Selected computational consequences already can; complete external truth and institutional legitimacy cannot generally be inferred from compilation or proof checking alone. A universal system that converts arbitrary documents into unconditionally true executable knowledge has not been demonstrated, and genuine underdetermination prevents that stronger aspiration without additional information. A more defensible ambition is a federation of domain-aware compilers that preserves meaning, assumptions, evidence and revision, making an increasing share of accumulated knowledge computationally inspectable and independently checkable within declared boundaries. The decisive advance would not be a machine that produces certainty from prose, but an infrastructure that makes the conditions and limits of justified knowledge easier to reproduce, challenge and maintain.

See also machine learning longforms

See also software systems longforms

See also posts

Back to top

Footnotes

  1. Gyori, B. M., Bachman, J. A., Subramanian, K., Muhlich, J. L., Galescu, L., & Sorger, P. K. (2017). From word models to executable models of signaling networks using automated assembly. Molecular Systems Biology, 13(11), Article 954. DOI.↩︎

  2. Mérigoux, D., Chataing, N., & Protzenko, J. (2021). Catala: A programming language for the law. Proceedings of the ACM on Programming Languages, 5(ICFP), Article 77. DOI.↩︎

  3. World Health Organization. (2026). SMART Guidelines. WHO Digital Health. Official program.↩︎

  4. Bobbin, M. P., Sharlin, S., Feyzishendi, P., Dang, A. H., Wraback, C. M., & Josephson, T. R. (2024). Formalizing chemical physics using the Lean theorem prover. Digital Discovery, 3(2), 264–280. DOI.↩︎

  5. Leroy, X. (2009). Formal verification of a realistic compiler. Communications of the ACM, 52(7), 107–115. DOI.↩︎

  6. Moreau, L., & Missier, P. (Eds.). (2013). PROV-DM: The PROV Data Model. W3C Recommendation. Official specification.↩︎

  7. McCarthy, J. (1959). Programs with common sense. In Proceedings of the Teddington Conference on the Mechanization of Thought Processes. Historical paper.↩︎

  8. McCarthy, J., & Hayes, P. J. (1969). Some philosophical problems from the standpoint of artificial intelligence. In B. Meltzer & D. Michie (Eds.), Machine Intelligence 4 (pp. 463–502). Edinburgh University Press. Author copy.↩︎

  9. Buchanan, B. G., & Feigenbaum, E. A. (1978). DENDRAL and Meta-DENDRAL: Their applications dimension. Artificial Intelligence, 11(1–2), 5–24. DOI.↩︎

  10. Shortliffe, E. H., & Buchanan, B. G. (1975). A model of inexact reasoning in medicine. Mathematical Biosciences, 23(3–4), 351–379. DOI.↩︎

  11. Kowalski, R. A. (1979). Logic for problem solving. North-Holland. Publisher record.↩︎

  12. Sergot, M. J., Sadri, F., Kowalski, R. A., Kriwaczek, F., Hammond, P., & Cory, H. T. (1986). The British Nationality Act as a logic program. Communications of the ACM, 29(5), 370–386. DOI.↩︎

  13. Gruber, T. R. (1993). A translation approach to portable ontology specifications. Knowledge Acquisition, 5(2), 199–220. DOI.↩︎

  14. Berners-Lee, T., Hendler, J., & Lassila, O. (2001). The Semantic Web. Scientific American, 284(5), 34–43. Publisher page.↩︎

  15. World Wide Web Consortium. (2012). OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation. Official specification.↩︎

  16. World Wide Web Consortium. (2017). Shapes Constraint Language (SHACL). W3C Recommendation. Official specification.↩︎

  17. Gordon, M. J. C., Milner, A. J., & Wadsworth, C. P. (1979). Edinburgh LCF: A mechanised logic of computation. Springer. DOI.↩︎

  18. Leroy, X. (2009). Formal verification of a realistic compiler. Communications of the ACM, 52(7), 107–115. DOI.↩︎

  19. Mérigoux, D., Chataing, N., & Protzenko, J. (2021). Catala: A programming language for the law. Proceedings of the ACM on Programming Languages, 5(ICFP), Article 77. DOI.↩︎

  20. Yahya, A. (2026, November 10). Formalizing the US tax code. Lexifina. Research report.↩︎

  21. Yahya, A. (2026, November 11). Recreating Tax Court rulings in Lean. Lexifina. Research report.↩︎

  22. Organisation for Economic Co-operation and Development. (2026). Consultation on the digital provision of law: Towards a shared reference framework for Law as Code. OECD. Public consultation.↩︎

  23. Gyori, B. M., Bachman, J. A., Subramanian, K., Muhlich, J. L., Galescu, L., & Sorger, P. K. (2017). From word models to executable models of signaling networks using automated assembly. Molecular Systems Biology, 13(11), Article 954. DOI.↩︎

  24. Thomas, P. D., Hill, D. P., Mi, H., Osumi-Sutherland, D., Van Auken, K., Carbon, S., Balhoff, J. P., Albou, L.-P., Good, B., Gaudet, P., Lewis, S. E., & Mungall, C. J. (2019). Gene Ontology Causal Activity Modeling (GO-CAM) moves beyond GO annotations to structured descriptions of biological functions and systems. Nature Genetics, 51, 1429–1433. DOI.↩︎

  25. Hucka, M., Finney, A., Sauro, H. M., Bolouri, H., Doyle, J. C., Kitano, H., Arkin, A. P., Bornstein, B. J., Bray, D., Cornish-Bowden, A., Cuellar, A. A., Dronov, S., Gilles, E. D., Ginkel, M., Gor, V., Goryanin, I. I., Hedley, W. J., Hodgman, T. C., Hofmeyr, J.-H. S., … Wang, J. (2003). The Systems Biology Markup Language (SBML): A medium for representation and exchange of biochemical network models. Bioinformatics, 19(4), 524–531. DOI.↩︎

  26. Waltemath, D., Adams, R., Bergmann, F. T., Hucka, M., Kolpakov, F., Miller, A. K., Moraru, I. I., Nickerson, D., Sahle, S., Snoep, J. L., & Le Novère, N. (2011). Reproducible computational biology experiments with SED-ML: The Simulation Experiment Description Markup Language. BMC Systems Biology, 5, Article 198. DOI.↩︎

  27. Jones, C. T., & Josephson, T. R. (2026). Reasoning about the genetic code in Lean. arXiv (arXiv:2610.36343). Preprint.↩︎

  28. National Center for Biotechnology Information. (2026). The genetic codes: Translation tables. NCBI Taxonomy. Official data.↩︎

  29. de Maria, E., Despeyroux, J., & Felty, A. P. (2014). A logical framework for systems biology. Formal Methods in Molecular Biology. Author-hosted paper.↩︎

  30. Heath, J., Kwiatkowska, M., Norman, G., Parker, D., & Tymchyshyn, O. (2008). Probabilistic model checking of complex biological pathways. Theoretical Computer Science, 391(3), 239–257. DOI.↩︎

  31. World Health Organization. (2026). SMART Guidelines. WHO Digital Health. Official program.↩︎

  32. World Health Organization. (2026, November 4). Digital adaptation kits: Implementation facilitation guide. WHO. Official guide.↩︎

  33. HL7 International. (2024). Clinical Practice Guidelines Implementation Guide. HL7 FHIR. Official implementation guide.↩︎

  34. HL7 International. (2026). Clinical Quality Language specification. HL7. Official language specification.↩︎

  35. Gupta, A., Prociuk, D., Russo, A., & Delaney, B. C. (2026). Automatic conversion of NICE guidelines to an executable computational model using large language models. Learning Health Systems, 10(4), Article e70114. DOI.↩︎

  36. GRADE Working Group. (2026). GRADE: Grading of Recommendations Assessment, Development and Evaluation. GRADE Working Group. Official methodology.↩︎

  37. Bobbin, M. P., Sharlin, S., Feyzishendi, P., Dang, A. H., Wraback, C. M., & Josephson, T. R. (2024). Formalizing chemical physics using the Lean theorem prover. Digital Discovery, 3(2), 264–280. DOI.↩︎

  38. Tooby-Smith, J. (2025). HepLean: Digitalising high energy physics. Computer Physics Communications, 308, Article 109457. DOI.↩︎

  39. Lean Community contributors. (2026). PhysLib: An open-source project for formalizing physics in Lean 4. GitHub. Repository.↩︎

  40. Cornelio, C., Dash, S., Austel, V., Josephson, T. R., Goncalves, J., Clarkson, K. L., Megiddo, N., El Khadir, B., & Horesh, L. (2023). Combining data and theory for derivable scientific discovery with AI-Descartes. Nature Communications, 14, Article 1777. DOI.↩︎

  41. Cory-Wright, R., Cornelio, C., Dash, S., El Khadir, B., & Horesh, L. (2024). Evolving scientific discovery by unifying data and background knowledge with AI Hilbert. Nature Communications, 15, Article 5922. DOI.↩︎

  42. Meadows, J., Zhang, L., & Freitas, A. (2026). FormalScience: Scalable human-in-the-loop autoformalisation of science with agentic code generation in Lean. Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics. ACL Anthology.↩︎

  43. ACTUS Financial Research Foundation. (2026). ACTUS methodology and technical specifications. ACTUS. Technical specifications.↩︎

  44. FINOS. (2026). Common Domain Model: Overview and event model. FINOS Common Domain Model Documentation. Official documentation.↩︎

  45. International Swaps and Derivatives Association. (2026). ISDA Digital Regulatory Reporting. ISDA. Official documentation.↩︎

  46. XBRL International. (2026). Validation: Key concepts in XBRL. XBRL International. Official guidance.↩︎

  47. XBRL International. (n.d.). Formula 1.0. XBRL International Specifications. Official specification.↩︎

  48. National Aeronautics and Space Administration. (2016). NASA Systems Engineering Handbook (NASA/SP-2016-6105 Rev. 2). NASA. Official handbook.↩︎

  49. Object Management Group. (2025). OMG Systems Modeling Language (SysML), version 2.0. OMG Specifications. Official specification.↩︎

  50. buildingSMART International. (2024). Information Delivery Specification (IDS), version 1.0. buildingSMART International. Official standard.↩︎

  51. International Electrotechnical Commission. (2020). IEC 62443-3-2: Security for industrial automation and control systems—Part 3-2: Security risk assessment for system design. IEC. Official standard.↩︎

  52. International Electrotechnical Commission. (2013). IEC 62443-3-3: Industrial communication networks—Network and system security—Part 3-3: System security requirements and security levels. IEC. Official standard.↩︎

  53. National Institute of Standards and Technology. (2026). OSCAL layers and models. NIST OSCAL Documentation. Official documentation.↩︎

  54. National Institute of Standards and Technology. (2023). Guide to Operational Technology (OT) Security (NIST SP 800-82 Rev. 3). NIST. DOI. See also the Revision 4 initial public draft (2026).↩︎

  55. Moreau, L., & Missier, P. (Eds.). (2013). PROV-DM: The PROV Data Model. W3C Recommendation. Official specification.↩︎

  56. Moreau, L., & Missier, P. (Eds.). (2013). PROV-DM: The PROV Data Model. W3C Recommendation. Official specification.↩︎

  57. World Wide Web Consortium. (2024). Data Catalog Vocabulary (DCAT), version 3. W3C Recommendation. Official specification.↩︎

  58. SLSA Framework. (2026). SLSA specification, version 1.2: Build provenance. SLSA. Official specification.↩︎

  59. RO-Crate Community. (2026). RO-Crate specification. Research Object Crate. Official specification.↩︎

  60. World Wide Web Consortium. (2012). OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation. Official specification.↩︎

  61. Belnap, N. D. (1977). A useful four-valued logic. In J. M. Dunn & G. Epstein (Eds.), Modern Uses of Multiple-Valued Logic (pp. 5–37). Springer. DOI.↩︎

  62. Reiter, R. (1980). A logic for default reasoning. Artificial Intelligence, 13(1–2), 81–132. DOI.↩︎

  63. Dung, P. M. (1995). On the acceptability of arguments and its fundamental role in nonmonotonic reasoning, logic programming and n-person games. Artificial Intelligence, 77(2), 321–357. DOI.↩︎

  64. Pearl, J. (2009). Causality: Models, reasoning, and inference (2nd ed.). Cambridge University Press. DOI.↩︎

  65. Hernán, M. A., & Robins, J. M. (2020). Causal inference: What if. Chapman & Hall/CRC. Author-hosted textbook.↩︎

  66. Jensen, C. S., & Snodgrass, R. T. (1996). Semantics of time-varying information. Information Systems, 21(4), 311–352. DOI.↩︎

  67. Allen, J. F. (1983). Maintaining knowledge about temporal intervals. Communications of the ACM, 26(11), 832–843. DOI.↩︎

  68. Alchourrón, C. E., Gärdenfors, P., & Makinson, D. (1985). On the logic of theory change: Partial meet contraction and revision functions. The Journal of Symbolic Logic, 50(2), 510–530. DOI.↩︎

  69. Yang, K., Swope, A. M., Gu, A., Chalamala, R., Song, P., Yu, S., Godil, S., Prenger, R., & Anandkumar, A. (2023). LeanDojo: Theorem proving with retrieval-augmented language models. Advances in Neural Information Processing Systems, 36. Conference paper.↩︎

  70. Ospanov, A., Farnia, F., & Mohit, R. (2025). APOLLO: Automated LLM and Lean collaboration for advanced formal reasoning. Advances in Neural Information Processing Systems, 38. Conference paper.↩︎

  71. Breen, B., Del Tredici, M., McCarran, J., Aspuru Mijares, J., Yin, W. W., Sulimany, K., Taylor, J. M., Koppens, F. H. L., & Englund, D. (2026). Ax-Prover: A deep reasoning agentic framework for theorem proving in mathematics and quantum physics. Machine Learning: Science and Technology, 7, Article 045073. DOI.↩︎

  72. Hubert, T., Mehta, R., Sartran, L., Horváth, M. Z., Žužić, G., Wieser, E., Huang, A., Schrittwieser, J., Schroecker, Y., Masoom, H., Bertolli, O., Zahavy, T., Mandhane, A., Yung, J., Beloshapka, I., Ibarz, B., Veeriah, V., Yu, L., Nash, O., … Silver, D. (2026). Olympiad-level formal mathematical reasoning with reinforcement learning. Nature, 651, 607–613. DOI.↩︎

  73. Chaudhuri, S., Ferraiuolo, A., Kovsharov, A., Chajed, T., Schlesinger, S., Seth, K., Katz, J., Sutton, C., & Kohli, P. (2026, November 10). AlphaProof Code: Verifying Signal’s security at the machine-code level. Google DeepMind Research. Technical paper.↩︎

  74. Meadows, J., Zhang, L., & Freitas, A. (2026). FormalScience: Scalable human-in-the-loop autoformalisation of science with agentic code generation in Lean. Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics. ACL Anthology.↩︎

  75. Model Context Protocol contributors. (2026, July 28). Model Context Protocol specification: Tools. Model Context Protocol. Official specification.↩︎

  76. Debenedetti, E., Zhang, J., Balunović, M., Beurer-Kellner, L., Fischer, M., & Tramèr, F. (2024). AgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents. Advances in Neural Information Processing Systems, 37. Conference paper.↩︎

  77. Arrow, K. J. (1962). Economic welfare and the allocation of resources for invention. In The Rate and Direction of Inventive Activity: Economic and Social Factors (pp. 609–626). Princeton University Press / National Bureau of Economic Research. Original chapter.↩︎

  78. Coase, R. H. (1937). The nature of the firm. Economica, 4(16), 386–405. DOI.↩︎

  79. Baldwin, C. Y., & Clark, K. B. (2000). Design rules, volume 1: The power of modularity. MIT Press. Publisher page.↩︎

  80. The mathlib Community. (2020). The Lean mathematical library. Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, 367–381. DOI.↩︎

  81. Lean Community. (2026). Contributing to Mathlib: Use of AI. Mathlib Documentation. Contribution guidance.↩︎

  82. FINOS. (2026). Community specification governance policy. FINOS Common Domain Model. Official governance policy.↩︎

  83. World Health Organization. (2026, November 4). Digital adaptation kits: Implementation facilitation guide. WHO. Official guide.↩︎

  84. Organisation for Economic Co-operation and Development. (2026). Consultation on the digital provision of law: Towards a shared reference framework for Law as Code. OECD. Public consultation.↩︎

  85. Hess, C., & Ostrom, E. (Eds.). (2006). Understanding knowledge as a commons: From theory to practice. MIT Press. DOI.↩︎

  86. National Institute of Standards and Technology. (2023). Artificial Intelligence Risk Management Framework (AI RMF 1.0). NIST. Official framework.↩︎

  87. Poiroux, A., Weiss, G., Kunčak, V., & Bosselut, A. (2025). Reliable evaluation and benchmarks for statement autoformalization. Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 17947–17969. DOI.↩︎

  88. Geifman, Y., & El-Yaniv, R. (2019). SelectiveNet: A deep neural network with an integrated reject option. Proceedings of Machine Learning Research, 97, 2151–2159. Conference paper.↩︎

  89. Papadakis, M., Kintis, M., Zhang, J., Jia, Y., Le Traon, Y., & Harman, M. (2018). Are mutation scores correlated with real fault detection? A large scale empirical study on the relationship between mutants and real faults. Proceedings of the 40th International Conference on Software Engineering. DOI.↩︎

  90. Vasey, B., Nagendran, M., Campbell, B., Clifton, D. A., Collins, G. S., Denaxas, S., Denniston, A. K., Faes, L., Geerts, B., Ibrahim, M., Liu, X., Mateen, B. A., Mathur, P., McCradden, M. D., Morgan, L., Ordish, J., Rogers, C., Saria, S., Ting, D. S. W., … McCulloch, P. (2022). Reporting guideline for the early-stage clinical evaluation of decision support systems driven by artificial intelligence: DECIDE-AI. Nature Medicine, 28, 924–933. DOI.↩︎

  91. International Organization for Standardization, International Electrotechnical Commission, & Institute of Electrical and Electronics Engineers. (2022). ISO/IEC/IEEE 15026-2:2022: Systems and software engineering—Systems and software assurance—Part 2: Assurance case. ISO. Official standard.↩︎