Skip to content

Dataset

Formal proof and verification datasets for AI training

A formal proof dataset is a body of machine-checkable proof developments, written in systems such as Lean, Rocq (formerly Coq), Isabelle and TLA+ or as hardware property files, delivered with their specifications, lemma libraries, proof scripts and the version history of failed and repaired proofs. SourceX sources these to a buyer's spec from established businesses that do formal verification commercially, such as chip and avionics verification teams, security and smart-contract auditors, and vendors of verified software. Supply is not guaranteed. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Private proof developments with specifications, lemma libraries, proof scripts and repair history
Typical systems
Lean, Rocq (Coq), Isabelle, TLA+, Dafny and hardware property files, kept in Git with CI logs
Typical history
Varies by holder; long-lived developments span specification changes and toolchain upgrades
Modality
Proof source code with build files, checker logs and linked specification text
Delivery formats
Git repositories with pinned build files; JSONL of declarations, proof states and repair pairs
Preparation
Client and product names replaced consistently in identifiers; specify a full recheck under the pinned toolchain afterward
Licensing
Scoped per development; client ownership and design disclosure reviewed; confirm export controls with counsel; permitted use agreed per license
Availability
Sourced to your spec; supply is not guaranteed and depends on the prover you name
CodeIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
development_idstringPseudonymous ID for one proof development at one commit.
proverobjectThe proof system and logic, the proof style used and the kind of system being verified.
toolchain_pinobjectThe exact prover release the project recorded, whether it matches the CI log, and the builds of any external solvers.
dependency_pinsarrayEach library dependency with its source and exact revision, as in a Lake manifest or an opam switch export.
declarationsarrayEach definition, lemma and theorem with qualified name, kind, statement text, file and line span.
proof_scriptstringThe tactic script, structured proof or proof term for one declaration, exactly as written.
proof_statesarrayGoals and hypotheses after each proof step, extracted by replaying the proof under the pinned toolchain.
informal_statementobjectThe natural-language requirement or docstring paired with a formal statement, and how the pairing was made.
spec_sourceobjectThe specification document and section a property traces to, with the modeling abstractions it states.
repair_pairsarrayFor each repaired proof: the cause of the break, the proof before, the checker error and the proof after.
trust_baseobjectAxioms each main theorem depends on, unfinished proofs left as placeholders, and components assumed without proof.
model_checkingobjectFor TLA+ and property files: the model configuration, bounds, result and any counterexample trace.
check_resultobjectResult of a clean rebuild: files checked, failures with error text, and whether it ran after renaming.
disclosure_screenobjectThe holder's stated review for client systems, unreleased designs and export-controlled content, and what was removed or abstracted.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "development_id": "dev_a41c_c0f9e2",
  "prover": {
    "system": "Lean",
    "style": "tactic proofs",
    "domain": "payment ledger"
  },
  "toolchain_pin": {
    "file": "lean-toolchain",
    "matches_ci": true,
    "external_solvers": []
  },
  "dependency_pins": [
    {
      "name": "mathlib",
      "source": "lake-manifest.json",
      "rev": "[COMMIT_HASH]"
    }
  ],
  "declarations": [
    {
      "name": "Ledger.withdraw_balance_le",
      "kind": "theorem",
      "file": "Ledger/Withdraw.lean",
      "statement": "theorem withdraw_balance_le (s : State) (a : Nat) (h : a + s.fee ≤ s.balance) : (withdraw s a).balance ≤ s.balance"
    }
  ],
  "proof_script": "by\n  simp only [withdraw, if_pos h]\n  exact Nat.sub_le s.balance (a + s.fee)",
  "proof_states": [
    {
      "step": 1,
      "goal_after": "s.balance - (a + s.fee) ≤ s.balance"
    },
    {
      "step": 2,
      "goal_after": "no goals"
    }
  ],
  "informal_statement": {
    "text": "REQ-LED-014: A withdrawal never increases the account balance.",
    "pairing": "requirement ID in the declaration docstring"
  },
  "spec_source": {
    "doc": "ledger_spec_rev7",
    "section": "4.2 Withdrawals",
    "abstraction": "balances as natural numbers"
  },
  "repair_pairs": [
    {
      "break_cause": "specification_change",
      "breaking_commit": "9be1d07",
      "change": "State gained a fee field; withdraw deducts a + s.fee and hypothesis h was updated to match.",
      "proof_before": "by\n  simp only [withdraw, if_pos h]\n  exact Nat.sub_le s.balance a",
      "checker_error": "type mismatch\n  Nat.sub_le s.balance a\nhas type\n  s.balance - a ≤ s.balance : Prop\nbut is expected to have type\n  s.balance - (a + s.fee) ≤ s.balance : Prop",
      "proof_after_commit": "c0f9e2",
      "commits_between": 2
    }
  ],
  "trust_base": {
    "axioms": [
      "propext"
    ],
    "placeholders": 0,
    "assumed_components": [
      "fee schedule lookup"
    ]
  },
  "model_checking": null,
  "check_result": {
    "clean_rebuild": "pass",
    "rechecked_after_renaming": true,
    "files_checked": 212,
    "failures": 0
  },
  "disclosure_screen": {
    "client_work": false,
    "unreleased_design": "none found by holder",
    "export_review": "holder states not controlled; confirm with counsel"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train proof repair

Before and after proofs with the checker error and the breaking change are direct supervision for fixing a proof when its specification moves.

Predict the next proof step

Goal states paired with the step an engineer took cover software and hardware goals that mathematics libraries rarely contain.

Autoformalize requirements

Requirements traced to formal statements give paired examples for turning specification prose into a checkable property.

Evaluate provers on unseen theorems

Private developments supply statements a model is unlikely to have seen, and the checker grades each attempt without a human.

Learn invariants and helper lemmas

Lemma libraries show which intermediate facts and invariants engineers had to state before the main theorem went through.

Use-case guides: Coding agents, Private evaluation sets, Document AI, enterprise search and RAG

What makes this data valuable

Clean rebuild passes

The development checks from a fresh checkout using only the delivered pins.

Repairs tied to causes

Each repaired proof is linked to the commit that broke it and labeled by cause.

Declared trust base

Axioms, placeholders and assumed components are listed per theorem, not discovered later.

Requirement traceability

Formal statements carry the ID of the requirement or clause they formalize.

Unsquashed history

Work-in-progress commits and failed CI runs survive, so the route to each proof is visible.

Original work, not vendored libraries

Copies of public libraries are identified, so the count reflects the holder's own proofs.

Checklist

Formal proof dataset

This page covers formal proofs and verification artifacts.Illustrative

The broken proof and its repair are the training signal

Public proof libraries such as Lean's Mathlib and Isabelle's Archive of Formal Proofs are curated to show finished work. Contributions are reviewed, often shortened, and merged only once they check, and habits such as squashing a contribution into one commit remove the attempts behind it. What remains is the end state, a statement with a proof that passes. A model trained on it sees many successes and almost none of the failures in between.

Commercial verification is different because the system being verified keeps changing. A protocol gains a message type, a contract's fee logic is revised, a chip block's interface gets a new handshake signal. A definition gains a field or a case, and proofs that relied on the old shape stop checking. The checker says where: an unsolved goal, a type mismatch, a name that no longer exists, an automation step that no longer closes the goal. An engineer then repairs each one. The old proof, the error message and the new proof, tied to the change that caused the break, form a supervised repair example.

How much survives depends on habits you can ask about. Version control records committed states, so trial and error inside the editor is absent. Teams that commit work in progress leave a trail: proofs closed with a placeholder (sorry in Lean, Admitted in Rocq), their count falling commit by commit, and CI runs that failed. Teams that squash before merging leave only the end. Ask what caused each break as well. A specification change teaches repair, while a prover or library upgrade teaches migration, a different skill. For TLA+ specifications the equivalent is the counterexample trace and the fix that followed, so ask whether trace files were kept.

Pinned toolchains and paired statements

A proof's value is that a checker accepts it, and that holds for one version of the prover, its libraries and any external solvers. Proof scripts break across versions in ways ordinary code does not. A lemma renamed upstream, a change to the default simplification rules or a different build of an SMT solver behind an automation step can turn a passing proof into a timeout. Rocq scripts that refer to automatically generated hypothesis names break when naming shifts, and a new major version of a prover can mean porting a development, not rebuilding it. The delivery needs the pins the project used: Lean's toolchain file and Lake manifest, the opam switch or package versions for Rocq, the Isabelle release with its session ROOT files, and for hardware properties the tool and the proof depth reached.

Then rebuild from a clean checkout and compare the result with the holder's log. Ask for the trusted base of each main theorem: declared axioms, placeholders and components assumed correct. A development can check from end to end while resting on an admitted lemma. For property files, ask whether each pass was a full proof or a bounded one, and whether the assumptions were tested for contradiction, since contradictory assumptions make every property pass. Renaming identifiers to hide a client or product can break proofs whose automation depends on names, so the recheck must come after de-identification.

Autoformalization needs the informal statement beside its formal counterpart. In commercial work that is a numbered requirement, a clause of a protocol standard or a design note traced to a theorem or property. The hard part is faithfulness, because a formal statement can be provable and still not say what the requirement says. In several provers subtraction on natural numbers stops at zero and division by zero is defined to return zero, so a statement that reads correctly can be weaker than intended. Statements revised after a reviewer found they misstated the requirement are the direct signal, so ask for the history of statements as well as proofs.

What to check before licensing

  • Rebuild a sample development from a clean checkout using only the delivered pins, and compare the result with the holder's check log.
  • Ask for the axioms, placeholders and assumed components behind each top-level theorem, produced by the prover's own dependency listing.
  • Ask how history was kept: whether merges were squashed, whether failed CI logs survive, and how many repair pairs trace to a specification change.
  • Confirm that specifications do not disclose unreleased product designs or client systems, and who owns a development that was produced for a client.
  • For hardware and aerospace work, confirm with counsel that export-control restrictions are cleared for your locations and staff before any sample is opened.
  • Identify vendored public libraries, licensed vendor property libraries and files that need a commercial tool to check, and decide which stay in scope.
  • Read a sample of informal and formal statement pairs for faithfulness, and ask for proof that every file was rechecked after identifiers were renamed.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Why license private proofs when large proof libraries are public?

Because public libraries hold finished proofs, much of them mathematics, and they are open to every lab. Commercial developments verify software, hardware and protocols as those change, where goals involve state machines, memory and arithmetic on machine words. They can also keep what a curated library discards: proofs that broke when a specification changed, and the repairs.

Which proof systems can be sourced?

It depends on which businesses agree to license. Lean, Rocq and Isabelle are used for software and protocol proofs, TLA+ for distributed system designs, Dafny and similar tools for verified programs, and assertion languages for hardware properties. A proof written for one system does not check in another, so name the prover in your request. Supply in any one system is not guaranteed.

Will the proofs check on our own machines?

Only under the pinned toolchain and dependencies, and only where the tool is one you can run. Open-source provers can be rebuilt from the delivered pins. Hardware property files usually need a commercial formal tool under your own license, and the holder's result logs are the record if you have none. Agree in advance which developments you will rebuild and which you accept on logs.

Are intermediate proof states included?

They can be extracted, but they are not in the source files. A proof script holds only the steps. The goals before and after each step exist while the prover runs, so they are produced by replaying every proof under the pinned toolchain with an extraction tool. Agree the tool and the state format in advance, and ask for proofs that fail to replay to be listed.

Do the proofs come with natural-language statements for autoformalization?

Where the holder kept them. Some teams trace every theorem to a numbered requirement, others leave only docstrings written after the proof, and some have neither. Ask how each pair was made and whether a person confirmed that the formal statement says what the prose says. Pairs inferred from file names or comments should be labeled as inferred.

Can verification done for a client be licensed?

Only if the party licensing it has the right to. A verification vendor's proofs about a client's chip, contract or protocol are often owned by the client or covered by confidentiality terms, and the specification can reveal the design even when names are replaced. Rights review checks whether the business owns or may share the records, so ask how that was settled for each development. Some specifications can be abstracted, and others have to be excluded.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies