Skip to content

Releases

NexusVerifier v0.3.0

Choose a tag to compare

@Minu476 Minu476 released this 26 Jul 17:47
d33e46a

NexusVerifier v0.3.0

Three PRs since v0.2.0: a critical soundness fix found via an external code review and verified independently before being fixed, plus two documentation updates completing the FC100 corpus-selection story from v0.2.0.

Independence notice: This is an independent research project by Nasser Towfigh. Not affiliated with or endorsed by Google DeepMind.


Sorry-citation-laundering: the namespace bypass (#8)

An external read-only review (GLM-5.2) flagged that the #print axioms defense added in v0.2.0 (#2) could be bypassed for namespace-wrapped theorems. Verified independently before writing any fix — reproduced the exact mechanism against a real Lean build:

LeanOracle.HasSorryAxiomAsync extracted a bare theorem name and appended #print axioms <name> after the full sketch. For a theorem declared inside namespace Foo ... end Foo, that probe sits outside the namespace by the time it runs — the bare name doesn't resolve, Lean reports unknown constant (not sorryAx), and the check silently no-ops instead of catching an inherited sorry. FC-corpus problem files commonly wrap their theorem in the original problem's own namespace, so this was the majority shape in production sketches, not an edge case.

Fix: SketchValidator.QualifiedTheoremNamesIn tracks namespace/section/end alongside theorem declarations and prefixes each name with its enclosing namespace path before probing. Scoped to only the axiom-check probe — the structural-validity gate's existing bare-name matching is untouched. 6 new tests (5 pure unit tests + 1 end-to-end regression against a real Lean compile, replicating the exact bypass with the same Green14.W_3_15 citation used in #2's original regression test).

FC100 corpus-selection story, completed (#7, #9)

v0.2.0 found that the "gap-set" swarm experiment was built from FC100SolvedSet1 (upstream's already-solved corpus) instead of FC100OpenSet1 (the real open-problems corpus). This release closes that thread:

  • Re-verified the ingest-parts dry-run table (7 passed, 3 rejected, 0 excluded / 6/3/1 with holdout) against the fixed pipeline — identical results, confirmed never at risk in the first place (AxiomChecker launches Lean directly, bypassing LeanOracle entirely). (#7)
  • Reran the gap-set methodology against the actually-correct FC100OpenSet1 corpus. Found first that 60 of 94 FC100OpenSet1 declarations use formal-conjectures' answer(sorry) idiom — the statement itself embeds an unknown-answer placeholder, so no proof of these can ever be sorryAx-free by construction, independent of prover capability. Of the 34 valid "plain" candidates, 23 survived preflight compilation: real famous open problems (smooth 4D Poincaré conjecture, Mandelbrot set local connectivity, the p-adic Littlewood conjecture, Gilbreath's conjecture, Selfridge's conjecture, Grimm's conjecture, the class number problem, transcendence of π^π^π, and others). Result: 0/23 solved — the correct, expected outcome, replacing the misleading 28% figure as the number that should be cited for this pipeline's actual proof-search capability. Two defenses were exercised for real under this pressure and held: SketchValidator caught 13 reward-hacking attempts, and ProofGoalGraph (v0.2.0's Topos-backed goal memory) correctly deduped 16 repeated stuck-goal states. (#9)

Full details: docs/FC100_GAP_SET_METHODOLOGY.md.


Stack

Component Version
Formal language Lean 4 v4.27.0 + Mathlib
Proof verification lake env lean + #print axioms
Graph backend Neo4j 5 (Docker / Enterprise locally)
Hypergraph backend Topos (git submodule, external/Topos)
Agent pipeline C# / .NET 10
Unit tests 128 (xUnit; 3 pre-existing failures require a local Neo4j instance)
Container Docker multi-stage

License

Apache 2.0. The formal-conjectures/ checkout and the external/Topos submodule are each governed by their own licenses.

NexusVerifier v0.2.0

Choose a tag to compare

@Minu476 Minu476 released this 26 Jul 16:11
b26a5fe

NexusVerifier v0.2.0

Six PRs since v0.1.0: three pipeline soundness fixes found by actually running the prover against FC100 problems, a real Topos hypergraph dependency (two independent consumers), and a benchmark-methodology finding from auditing a multi-sample ("swarm") experiment.

Independence notice: This is an independent research project by Nasser Towfigh. Not affiliated with or endorsed by Google DeepMind.


Pipeline soundness fixes (#1, #2)

Running FC100 problems through NexusProverSubagent surfaced and fixed four real false-positive / reward-hacking gaps:

  • LeanOracle false-positive compile check — compiled = exitCode == 0 || errors.Count == 0 (should be &&); error/warning regex didn't match a newer Lean diagnostic format. Could report Compiled=true on output Lean had actually rejected. (#1)
  • SketchValidator reward-hacking gap — the structural gate could be defeated by substring name matching or by shadowing the original declaration with a new def/abbrev/instance/etc. (#1)
  • Stale DeepSeek model names (deepseek-chat/deepseek-reasoner → deepseek-v4-flash/deepseek-v4-pro), causing silent API failures. (#1)
  • Sorry-citation-laundering — citing an already-sorry'd declaration compiles clean with SorryCount=0 and no warning at the citing site; only #print axioms reveals the inherited sorryAx. LeanOracle now runs that check whenever a sketch looks fully proved. (#2)

Rerunning the FC100 gap-set with the fixed pipeline dropped the apparent solve rate from an inflated 37% to an honest 23% — the difference is exactly the sorry-laundering false positives.

Real Topos hypergraph integration (#3, #4)

NexusAgent.Core now depends on Topos as a real, Docker-buildable git submodule (external/Topos) — not a shape-mirroring toy. Two independent consumers:

  • AND-OR backward chainer — the proof-search planner's candidate-lemma expansion is backed by a real HypergraphKernel instance. (#3)
  • ProofGoalGraph — per-run memory of proof goals and tactic attempts, surfaced in the LLM prompt as failed-attempt history and sibling-subgoal structure, so the prover isn't re-trying dead ends with zero memory. Purely additive prompt context — never influences Compiled/SorryCount/IsFullyProved/the structural gate. Ephemeral, per-SolveAsync-run local state; no cross-run persistence yet. (#4)

FC100 gap-set methodology finding (#5)

An audit of a "swarm" experiment (8 independent tries × 54 previously-unsolved gap-set problems) found a corpus-selection error, not a pipeline bug: the candidate problems were built from FC100SolvedSet1 — upstream's curated already-solved corpus — instead of FC100OpenSet1, the actual open-problems corpus. Because the reconstructed sketches still import the original file, the complete upstream proof stays in scope and citable by name.

Of 63 individual solves in that run, at least 47 (75%) were literal citations of the pre-existing answer; several of the rest were trivial by definitional unfolding rather than derivation. All confirmed sound (#print axioms clean, no sorryAx) but not evidence of novel proof-search. Full write-up and per-problem classification: docs/FC100_GAP_SET_METHODOLOGY.md.

This repository still does not claim novel proofs of open Erdős problems — this finding reinforces that disclaimer with concrete new evidence rather than weakening it.

Docs (#6)

README brought up to date: pipeline-hardening summary, benchmark-corpus caveat, new Hypergraph integration (Topos) section, test count, submodule-init clone step, updated project layout.


Stack

Component Version
Formal language Lean 4 v4.27.0 + Mathlib
Proof verification lake env lean + #print axioms
Graph backend Neo4j 5 (Docker / Enterprise locally)
Hypergraph backend Topos (git submodule, external/Topos)
Agent pipeline C# / .NET 10
Unit tests 122 (xUnit; 3 pre-existing failures require a local Neo4j instance)
Container Docker multi-stage

Upgrading from v0.1.0

git pull
git submodule update --init --recursive   # new: external/Topos

License

Apache 2.0. The formal-conjectures/ checkout and the external/Topos submodule are each governed by their own licenses.

NexusVerifier v0.1.0 — Initial Public Release

Choose a tag to compare

@Minu476 Minu476 released this 01 Jun 22:51

NexusVerifier v0.1.0

Graph-augmented Lean 4 verification pipeline for the DeepMind Formal Conjectures benchmark corpus (arXiv:2605.13171).

Independence notice: This is an independent research project by Nasser Towfigh. Not affiliated with or endorsed by Google DeepMind.


What it does

NexusVerifier provides the infrastructure layer between proof generation and rigorous formal verification:

  • Axiom-closure filtering — mechanically rejects proofs that rely on native compilation paths (Lean.ofReduceBool, Lean.trustCompiler)
  • Declaration-family holdout isolation — automatically excludes sibling declarations from the same problem file, preventing benchmark leakage
  • Neo4j fossil vault — stores verified sub-goals in a graph-backed knowledge base for future tactic retrieval
  • Deterministic Docker pipeline — reproducible, containerised verification of Lean proof artifacts

Benchmark results — FC100 (ingest-parts dry-run)

Evaluated on 10 sampled parts from the FC100SolvedSet1 corpus under native_decide=reject policy:

Result Count
Verified 7
Rejected (native axioms) 3
Excluded (holdout) 0 (1 with holdout enabled)

Holdout confirmed: enabling holdout for Erdos1074.erdos_1074.variants.EHSNumbers_init automatically excludes erdos_1074.variants.mem_pillaiPrimes → 6 passed, 3 rejected, 1 excluded.


Stack

Component Version
Formal language Lean 4 v4.27.0 + Mathlib
Proof verification lake env lean + #print axioms
Graph backend Neo4j 5 (Docker / Enterprise locally)
Agent pipeline C# / .NET 10
Unit tests 96 (xUnit, no external deps)
Container Docker multi-stage, ~1.6 GB

Quickstart

# Clone and configure
git clone https://github.com/Minu476/NexusVerifier
cd NexusVerifier
cp .env.example .env   # set NEO4J_PASSWORD

# Build image
docker build -t nexus-agent:latest .

# Dry-run verification (10 parts)
docker run --rm   -v /path/to/formal-conjectures:/formal-conjectures   -v "$(pwd)":/workspace:ro   -e NEXUS_NEO4J_URI=bolt://host.docker.internal:7687   -e NEXUS_NEO4J_PASSWORD=your_password   -e NEXUS_LEAN_PROJECT=/formal-conjectures   nexus-agent:latest   ingest-parts --from-json /workspace/parts.json --dry-run

License

Apache 2.0. The formal-conjectures/ submodule is governed by its own Apache 2.0 license.