noethersolve 0.7.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- noethersolve-1.0.0/LICENSE +21 -0
- {noethersolve-0.7.0/noethersolve.egg-info → noethersolve-1.0.0}/PKG-INFO +258 -63
- noethersolve-0.7.0/PKG-INFO → noethersolve-1.0.0/README.md +251 -87
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/__init__.py +105 -5
- noethersolve-1.0.0/noethersolve/complexity.py +1090 -0
- noethersolve-1.0.0/noethersolve/conjecture_status.py +1644 -0
- noethersolve-1.0.0/noethersolve/llm_claims.py +1550 -0
- noethersolve-1.0.0/noethersolve/mcp_server/__init__.py +4 -0
- noethersolve-1.0.0/noethersolve/mcp_server/__main__.py +4 -0
- noethersolve-1.0.0/noethersolve/mcp_server/server.py +575 -0
- noethersolve-1.0.0/noethersolve/number_theory.py +815 -0
- noethersolve-1.0.0/noethersolve/pde_regularity.py +1214 -0
- noethersolve-1.0.0/noethersolve/proof_barriers.py +770 -0
- noethersolve-1.0.0/noethersolve/reductions.py +898 -0
- noethersolve-0.7.0/README.md → noethersolve-1.0.0/noethersolve.egg-info/PKG-INFO +282 -60
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve.egg-info/SOURCES.txt +19 -0
- noethersolve-1.0.0/noethersolve.egg-info/entry_points.txt +2 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve.egg-info/requires.txt +3 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/pyproject.toml +9 -3
- noethersolve-1.0.0/tests/test_complexity.py +311 -0
- noethersolve-1.0.0/tests/test_conjecture_status.py +328 -0
- noethersolve-1.0.0/tests/test_llm_claims.py +438 -0
- noethersolve-1.0.0/tests/test_number_theory.py +441 -0
- noethersolve-1.0.0/tests/test_pde_regularity.py +397 -0
- noethersolve-1.0.0/tests/test_proof_barriers.py +330 -0
- noethersolve-1.0.0/tests/test_reductions.py +358 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/adapter.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/aggregation.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/audit_chem.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/audit_facts.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/audit_sequence.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/crispr.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/hamiltonian.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/knot.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/learner.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/monitor.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/monitor_em.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/oracle.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/pharmacokinetics.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/pipeline.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/splice.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/train_utils.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve/validate.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve.egg-info/dependency_links.txt +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/noethersolve.egg-info/top_level.txt +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/setup.cfg +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_aggregation.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_audit_chem.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_audit_facts.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_audit_sequence.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_crispr.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_hamiltonian.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_knot.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_learner.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_monitor.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_monitor_em.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_pharmacokinetics.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_pipeline.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_splice.py +0 -0
- {noethersolve-0.7.0 → noethersolve-1.0.0}/tests/test_validate.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bryan Sanchez
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: noethersolve
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 32 verified tools for AI agents — physics, math, genetics, pharmacogenomics, LLM science. pip install, add to Claude, instant smarter agent.
|
|
5
5
|
License: MIT
|
|
6
|
-
Keywords:
|
|
6
|
+
Keywords: mcp,ai-tools,llm,conservation-laws,scientific-discovery,model-context-protocol
|
|
7
7
|
Requires-Python: >=3.10
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
9
10
|
Requires-Dist: numpy>=1.24
|
|
10
11
|
Requires-Dist: scipy>=1.11
|
|
11
12
|
Requires-Dist: pyyaml>=6.0
|
|
@@ -18,30 +19,33 @@ Requires-Dist: transformers>=4.40; extra == "torch"
|
|
|
18
19
|
Requires-Dist: accelerate>=0.28; extra == "torch"
|
|
19
20
|
Provides-Extra: auto
|
|
20
21
|
Requires-Dist: anthropic>=0.40; extra == "auto"
|
|
22
|
+
Provides-Extra: mcp
|
|
23
|
+
Requires-Dist: mcp>=1.0; extra == "mcp"
|
|
21
24
|
Provides-Extra: dashboard
|
|
22
25
|
Requires-Dist: matplotlib>=3.7; extra == "dashboard"
|
|
23
26
|
Provides-Extra: dev
|
|
24
27
|
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
25
28
|
Requires-Dist: black>=24.0; extra == "dev"
|
|
26
29
|
Requires-Dist: ruff>=0.4; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
27
31
|
|
|
28
32
|
# NoetherSolve
|
|
29
33
|
|
|
30
34
|
**https://github.com/SolomonB14D3/noethersolve** · **https://solomonb14d3.github.io/noethersolve**
|
|
31
35
|
|
|
32
|
-
[](https://doi.org/10.5281/zenodo.19017290) [](https://doi.org/10.5281/zenodo.19029880)
|
|
33
37
|
|
|
34
|
-
**Automated scientific discovery that
|
|
38
|
+
**Automated scientific discovery: find where models are wrong, build tools that give the right answer, and serve them to any AI agent.**
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
The pipeline: **find gaps → flip facts → build tool → add to MCP server.** Every tool we build makes every connected agent smarter.
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
NoetherSolve starts by finding where LLMs are confidently wrong. It generates candidates, verifies them numerically, and measures whether the model already knows them. When it doesn't — that's where new science lives. The system discovers the answer, builds a verified computational tool for it, and exposes that tool via [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) so any AI agent can call it at inference time.
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
This is better than embedding knowledge in weights. Adapters trained on domain facts improve general truth preference (+0.10 MC2 on TruthfulQA, statistically significant), but they can't scale to thousands of facts without interference. Tools scale indefinitely: each new tool is independent, verified, and callable on demand. The agent doesn't need to memorize that the Riemann Hypothesis is open — it calls `check_conjecture("Riemann")` and gets the verified answer.
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
**32 tools** currently exposed via MCP, covering conservation law monitoring, mathematical conjectures, complexity theory, proof barriers, number theory, PDE regularity, pharmacogenomics, LLM claims auditing, genetics therapeutics, chemical kinetics, knot theory, and conservation law discovery. All backed by verified reference databases, not model guesses.
|
|
43
47
|
|
|
44
|
-
The method is domain-agnostic. We've applied it to fluid dynamics, electromagnetism, chemical kinetics, Hamiltonian mechanics, Navier-Stokes regularity, knot theory,
|
|
48
|
+
The method is domain-agnostic. We've applied it to fluid dynamics, electromagnetism, chemical kinetics, Hamiltonian mechanics, Navier-Stokes regularity, knot theory, genetics therapeutics (7 domains covering CRISPR design through clinical translation), and unsolved mathematics (6 domains covering Millennium Problems through computational complexity). Any field where you can verify a claim and build a checker is fair game.
|
|
45
49
|
|
|
46
50
|
### Paper
|
|
47
51
|
|
|
@@ -50,10 +54,10 @@ DOI: [10.5281/zenodo.19017290](https://doi.org/10.5281/zenodo.19017290)
|
|
|
50
54
|
|
|
51
55
|
Three-phase pipeline transforms a frozen oracle (margin -77.5 +/- 1.7) into a ranking engine (Spearman rho = 0.932 from baseline -0.143). Novel Q_f invariant family verified across chaotic vortex systems and extended to continuous 2D/3D Euler equations. The LLM gap pointed directly at the physics: the model's blind spot on weighted distance sums led to the discovery of stretch-resistant invariants relevant to 3D Navier-Stokes regularity. See [`paper/breaking_frozen_priors.pdf`](paper/breaking_frozen_priors.pdf).
|
|
52
56
|
|
|
53
|
-
**NoetherSolve Toolkit: Conservation Law Monitoring and
|
|
57
|
+
**NoetherSolve Toolkit: Conservation Law Monitoring, Discovery, and Scientific Auditing Across Physics, Genetics, and Mathematics** (Sanchez, 2026)
|
|
54
58
|
DOI: [10.5281/zenodo.19029880](https://doi.org/10.5281/zenodo.19029880)
|
|
55
59
|
|
|
56
|
-
|
|
60
|
+
Twenty-one tools organized in four tiers: 6 physics tools (conservation monitors, integrator validator, chemical auditor, EM monitor, Hamiltonian validator, invariant learner), 7 genetics tools (sequence auditor, CRISPR scorer, pipeline validator, aggregation predictor, splice scorer, pharmacokinetics checker, fact auditor), 7 unsolved mathematics tools (complexity auditor, conjecture checker, proof barrier checker, number theory verifier, reduction validator, PDE regularity checker, knot monitor), and 1 LLM science tool (claims auditor with benchmark checker and scaling calculator). Q_f monitors detect corruption at 100x lower noise than standard H/Lz monitors. 173 validation test cases across all tools, 100% catch rate. 842 tests with physics-enforcing pre-commit hook. See [`paper/noethersolve_toolkit.pdf`](paper/noethersolve_toolkit.pdf).
|
|
57
61
|
|
|
58
62
|
---
|
|
59
63
|
|
|
@@ -64,43 +68,81 @@ An AI model is trained on everything humans have written. That means it knows
|
|
|
64
68
|
what we know, but it also shares our blind spots. Where the collective
|
|
65
69
|
literature is thin or wrong, the model is thin or wrong.
|
|
66
70
|
|
|
67
|
-
NoetherSolve exploits this
|
|
68
|
-
|
|
69
|
-
1. **
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
71
|
+
NoetherSolve exploits this in four steps:
|
|
72
|
+
|
|
73
|
+
1. **Find gaps.** Propose claims about how systems behave. Verify them
|
|
74
|
+
numerically. Ask the model: did you already know this? If the model is
|
|
75
|
+
confidently wrong, that's a gap — and gaps in model knowledge point to
|
|
76
|
+
gaps in human knowledge, because the model was trained on human knowledge.
|
|
77
|
+
2. **Flip facts.** Train lightweight adapters that flip the model's answer
|
|
78
|
+
from wrong to right, without degrading anything it already knows.
|
|
79
|
+
3. **Build tools.** Each discovery becomes a standalone computational tool —
|
|
80
|
+
verified reference databases, not model guesses. Tools don't have the
|
|
81
|
+
scaling problems that adapters do (interference, capacity limits).
|
|
82
|
+
4. **Add to MCP server.** Expose every tool via Model Context Protocol so
|
|
83
|
+
any AI agent (Claude, GPT, local models) can call them at inference time.
|
|
84
|
+
The agent doesn't need to memorize facts — it calls the tool and gets
|
|
85
|
+
the verified answer.
|
|
86
|
+
|
|
87
|
+
The result: every gap we find makes every connected agent smarter. The 32
|
|
88
|
+
tools currently served cover physics, genetics, mathematics, complexity
|
|
89
|
+
theory, pharmacogenomics, and LLM science.
|
|
90
|
+
|
|
91
|
+
</details>
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
<details open>
|
|
96
|
+
<summary><h2>MCP Server — Give Any AI Agent 32 Verified Tools</h2></summary>
|
|
97
|
+
|
|
98
|
+
The MCP server exposes all NoetherSolve tools to any AI agent that supports
|
|
99
|
+
[Model Context Protocol](https://modelcontextprotocol.io/). One line of config,
|
|
100
|
+
32 tools available.
|
|
101
|
+
|
|
102
|
+
### Setup for Claude Code
|
|
103
|
+
|
|
104
|
+
The project includes `.mcp.json` — Claude Code auto-discovers it when you
|
|
105
|
+
open the project. No manual config needed.
|
|
106
|
+
|
|
107
|
+
Or install globally and use the entry point:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
pip install noethersolve[mcp]
|
|
111
|
+
noethersolve-mcp # starts the server
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Available Tools (32)
|
|
115
|
+
|
|
116
|
+
| Category | Tools | Examples |
|
|
117
|
+
|----------|-------|---------|
|
|
118
|
+
| **Conservation monitors** | 4 | `check_vortex_conservation`, `check_hamiltonian_system`, `check_em_conservation`, `discover_conservation_law` |
|
|
119
|
+
| **Mathematics** | 10 | `check_conjecture`, `check_complexity_inclusion`, `check_proof_barriers`, `verify_goldbach`, `check_sobolev_embedding` |
|
|
120
|
+
| **Genetics/therapeutics** | 5 | `score_crispr_guide`, `audit_dna_sequence`, `predict_protein_aggregation`, `validate_therapy_pipeline` |
|
|
121
|
+
| **Pharmacogenomics** | 2 | `audit_drug_interactions`, `check_pharmacogenomics` |
|
|
122
|
+
| **LLM science** | 4 | `check_llm_claim`, `chinchilla_scaling`, `check_benchmark_score`, `audit_llm_claims` |
|
|
123
|
+
| **Chemical kinetics** | 1 | `audit_chemical_network` |
|
|
124
|
+
| **Knot theory** | 1 | `check_knot_invariants` |
|
|
125
|
+
| **Number theory** | 4 | `verify_goldbach`, `verify_collatz`, `check_abc_triple`, `analyze_prime_gaps` |
|
|
126
|
+
|
|
127
|
+
Every tool returns verified results from curated reference databases — not
|
|
128
|
+
model guesses. When an agent calls `check_conjecture("Riemann")`, it gets the
|
|
129
|
+
actual status (OPEN), the key facts, common errors, and references. No
|
|
130
|
+
hallucination possible.
|
|
131
|
+
|
|
132
|
+
### Why MCP instead of fine-tuning?
|
|
133
|
+
|
|
134
|
+
We tried both. Adapters trained on 411 domain facts improve truth preference
|
|
135
|
+
(+0.10 MC2 on TruthfulQA), but they can't scale: stacking 37+ adapters
|
|
136
|
+
destroys general knowledge (-43% MMLU), and a unified adapter on 244 facts
|
|
137
|
+
collapses to a degenerate mode. Tools don't have these problems:
|
|
138
|
+
|
|
139
|
+
- **No interference.** Each tool is independent. Adding tool #33 doesn't
|
|
140
|
+
degrade tools #1-32.
|
|
141
|
+
- **No capacity limits.** A tool can encode arbitrarily complex logic.
|
|
142
|
+
- **Verified correctness.** 842 tests enforce correctness. An adapter can
|
|
143
|
+
only shift probabilities; a tool returns the exact right answer.
|
|
144
|
+
- **Model-agnostic.** Any agent that speaks MCP can use these tools.
|
|
145
|
+
Adapters are tied to one model's vocabulary.
|
|
104
146
|
|
|
105
147
|
</details>
|
|
106
148
|
|
|
@@ -519,6 +561,98 @@ print(report)
|
|
|
519
561
|
|
|
520
562
|
</details>
|
|
521
563
|
|
|
564
|
+
<details>
|
|
565
|
+
<summary><h3>Unsolved Mathematics Tools</h3></summary>
|
|
566
|
+
|
|
567
|
+
Six tools for validating claims about computational complexity, open conjectures, proof techniques, number theory, reductions, and PDE regularity.
|
|
568
|
+
|
|
569
|
+
**Complexity Class Auditor** — validates claims about class relationships:
|
|
570
|
+
|
|
571
|
+
```python
|
|
572
|
+
from noethersolve import audit_complexity
|
|
573
|
+
|
|
574
|
+
report = audit_complexity(["P = NP", "SAT is NP-complete", "GI is NP-complete"])
|
|
575
|
+
print(report)
|
|
576
|
+
# Checks: inclusions, separations, completeness, collapse implications
|
|
577
|
+
# → FAIL: P=NP would collapse PH; GI is NOT known to be NP-complete
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
**Conjecture Status Checker** — validates claims about open problem status:
|
|
581
|
+
|
|
582
|
+
```python
|
|
583
|
+
from noethersolve import check_conjecture, check_claim
|
|
584
|
+
|
|
585
|
+
report = check_conjecture("riemann_hypothesis", claimed_status="SOLVED")
|
|
586
|
+
print(report) # → FAIL: Riemann Hypothesis is OPEN, not SOLVED
|
|
587
|
+
|
|
588
|
+
report = check_claim("Goldbach conjecture was proved")
|
|
589
|
+
print(report) # → FAIL: strong Goldbach is OPEN (weak Goldbach proved by Helfgott 2013)
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
**Proof Barrier Checker** — checks if known barriers block a proof technique:
|
|
593
|
+
|
|
594
|
+
```python
|
|
595
|
+
from noethersolve import check_barriers, what_works_for
|
|
596
|
+
|
|
597
|
+
report = check_barriers("diagonalization", "P vs NP")
|
|
598
|
+
print(report) # → FAIL: relativization barrier blocks diagonalization for P vs NP
|
|
599
|
+
|
|
600
|
+
alts = what_works_for("P vs NP")
|
|
601
|
+
print(alts) # Techniques NOT blocked: algebraic geometry (GCT), interactive proofs, ...
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
**Number Theory Verifier** — numerical verification of famous conjectures:
|
|
605
|
+
|
|
606
|
+
```python
|
|
607
|
+
from noethersolve import verify_goldbach, verify_collatz, check_abc_triple
|
|
608
|
+
|
|
609
|
+
print(verify_goldbach(100)) # 6 decompositions: 3+97, 11+89, 17+83, ...
|
|
610
|
+
print(verify_collatz(27)) # 111 steps, max value 9232
|
|
611
|
+
print(check_abc_triple(1, 8, 9)) # quality 1.226 — exceptional ABC triple!
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
**Reduction Chain Validator** — validates computational reduction chains:
|
|
615
|
+
|
|
616
|
+
```python
|
|
617
|
+
from noethersolve import validate_chain
|
|
618
|
+
|
|
619
|
+
chain = [("3-SAT", "many-one", "CLIQUE"), ("CLIQUE", "many-one", "VERTEX-COVER")]
|
|
620
|
+
report = validate_chain(chain)
|
|
621
|
+
print(report) # → PASS: valid transitive chain, effective type: many-one
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
**PDE Regularity Checker** — validates Sobolev embeddings and regularity claims:
|
|
625
|
+
|
|
626
|
+
```python
|
|
627
|
+
from noethersolve import check_sobolev_embedding, check_pde_regularity
|
|
628
|
+
|
|
629
|
+
print(check_sobolev_embedding(1, 2, 3)) # W^{1,2}(R^3) → L^6 (subcritical)
|
|
630
|
+
print(check_pde_regularity("navier-stokes", 3, "global_smooth")) # → WARN: open problem
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
**LLM Claims Auditor** — validates claims about LLM capabilities against a curated database of 35+ established findings:
|
|
634
|
+
|
|
635
|
+
```python
|
|
636
|
+
from noethersolve import audit_llm_claims, check_benchmark_score, chinchilla_optimal
|
|
637
|
+
|
|
638
|
+
# Audit claims
|
|
639
|
+
report = audit_llm_claims([
|
|
640
|
+
"RLHF eliminates sycophancy", # → FALSE (known misconception)
|
|
641
|
+
"scaling laws follow power-law relationships", # → TRUE
|
|
642
|
+
])
|
|
643
|
+
print(report)
|
|
644
|
+
|
|
645
|
+
# Check specific benchmark scores
|
|
646
|
+
result = check_benchmark_score("gpt-4", "mmlu", 99.0)
|
|
647
|
+
print(result) # → FALSE: above published range [86.0, 87.5]
|
|
648
|
+
|
|
649
|
+
# Chinchilla-optimal compute
|
|
650
|
+
opt = chinchilla_optimal(params_B=7.0)
|
|
651
|
+
print(f"Optimal: {opt['tokens_B']}B tokens for 7B params")
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
</details>
|
|
655
|
+
|
|
522
656
|
<details>
|
|
523
657
|
<summary><h3>Benchmark Results</h3></summary>
|
|
524
658
|
|
|
@@ -533,7 +667,7 @@ these tools against 5 experiments:
|
|
|
533
667
|
| Chemical violation | Perturbed rate constants | Wegscheider cycle product shifts 3.33 to 0.13 while mass conservation stays perfect |
|
|
534
668
|
| Sensitivity sweep | 20 noise levels, 1e-10 to 1e-1 | Standard monitors detect at noise >= 1.8e-6; discovered monitors have baseline sensitivity at 1e-10 |
|
|
535
669
|
|
|
536
|
-
**
|
|
670
|
+
**842 tests passing** across all 21 tools (`pytest tests/`).
|
|
537
671
|
|
|
538
672
|
</details>
|
|
539
673
|
|
|
@@ -544,8 +678,30 @@ these tools against 5 experiments:
|
|
|
544
678
|
<details>
|
|
545
679
|
<summary><h2>Quick Start</h2></summary>
|
|
546
680
|
|
|
681
|
+
### Use the tools (no model needed)
|
|
682
|
+
|
|
683
|
+
```bash
|
|
684
|
+
pip install noethersolve
|
|
685
|
+
|
|
686
|
+
# Python API
|
|
687
|
+
python -c "from noethersolve import check_conjecture; print(check_conjecture('Riemann'))"
|
|
688
|
+
python -c "from noethersolve import audit_drug_list; print(audit_drug_list(['warfarin', 'fluconazole']))"
|
|
689
|
+
python -c "from noethersolve import chinchilla_optimal; print(chinchilla_optimal(params_B=7.0))"
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
### Serve tools to AI agents via MCP
|
|
693
|
+
|
|
694
|
+
```bash
|
|
695
|
+
pip install noethersolve[mcp]
|
|
696
|
+
|
|
697
|
+
# Claude Code auto-discovers .mcp.json when you open the project.
|
|
698
|
+
# Or run standalone:
|
|
699
|
+
noethersolve-mcp
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
### Run the discovery pipeline (finds new gaps)
|
|
703
|
+
|
|
547
704
|
```bash
|
|
548
|
-
# Install core deps
|
|
549
705
|
pip install -r requirements.txt
|
|
550
706
|
|
|
551
707
|
# 1. Run the checker on a hypothesis
|
|
@@ -558,14 +714,8 @@ python oracle_wrapper.py --problem problems/vortex_pair_conservation.yaml
|
|
|
558
714
|
python oracle_wrapper.py --problem problems/vortex_pair_conservation.yaml \
|
|
559
715
|
--repair --diagnose
|
|
560
716
|
|
|
561
|
-
# 4.
|
|
562
|
-
python
|
|
563
|
-
--problem vortex_pair_conservation \
|
|
564
|
-
--expr "r12 + eps*(r13+r23)" \
|
|
565
|
-
--handle your_handle
|
|
566
|
-
|
|
567
|
-
# 5. View results dashboard (rebuilds from results/candidates.tsv)
|
|
568
|
-
python dashboard.py --open
|
|
717
|
+
# 4. Full autonomous run
|
|
718
|
+
python autonomy_loop.py --problem problems/vortex_pair_conservation.yaml
|
|
569
719
|
```
|
|
570
720
|
|
|
571
721
|
> **Linux / CUDA users:** use `noethersolve_torch.py` as a drop-in backend that requires only PyTorch + HuggingFace — no MLX needed.
|
|
@@ -603,7 +753,7 @@ Copy `problem_template.yaml` and follow `CONTRIBUTING.md` for the full protocol.
|
|
|
603
753
|
|
|
604
754
|
## Discoveries So Far
|
|
605
755
|
|
|
606
|
-
193+ candidates tested. 80+ genuine invariants discovered.
|
|
756
|
+
193+ candidates tested. 80+ genuine invariants discovered. 24 domains, 275 oracle facts. **All 24 domains at 100% (275/275 facts).**
|
|
607
757
|
|
|
608
758
|
<details>
|
|
609
759
|
<summary><h3>Discrete Point-Vortex</h3></summary>
|
|
@@ -808,6 +958,24 @@ The genetics domains demonstrate that the oracle-adapter pipeline generalizes be
|
|
|
808
958
|
|
|
809
959
|
</details>
|
|
810
960
|
|
|
961
|
+
<details>
|
|
962
|
+
<summary><h3>Unsolved Mathematics (6 Domains)</h3></summary>
|
|
963
|
+
|
|
964
|
+
Status of open conjectures, proof techniques, and computational complexity — where the model confidently states plausible-sounding falsehoods about problems that remain unsolved. 70 facts across 6 domains. Baseline: **11/70** (15.7% — the model is particularly bad at distinguishing true claims from plausible distractors on unsolved problems). Final: **70/70 (100%)** via orthogonal adapters.
|
|
965
|
+
|
|
966
|
+
| Domain | Facts | Baseline | Final | Key Topics |
|
|
967
|
+
|--------|-------|----------|-------|------------|
|
|
968
|
+
| Millennium Problems | 12 | 3/12 | **12/12** | Riemann Hypothesis, P vs NP, Navier-Stokes, Yang-Mills, Hodge, BSD |
|
|
969
|
+
| Number theory conjectures | 12 | 4/12 | **12/12** | Goldbach, twin primes, Collatz, ABC conjecture, Diophantine equations |
|
|
970
|
+
| Algebra/topology conjectures | 10 | 1/10 | **10/10** | Jacobian conjecture, Kervaire invariant, Borel, Baum-Connes |
|
|
971
|
+
| Proof techniques | 12 | 3/12 | **12/12** | Forcing, natural proofs barrier, algebrization, relativization |
|
|
972
|
+
| Analysis/PDE conjectures | 12 | 0/12 | **12/12** | Regularity, Kakeya, Carleson, dynamical systems, arithmetic geometry |
|
|
973
|
+
| Computational conjectures | 12 | 0/12 | **12/12** | P vs NP variants, graph isomorphism, circuit complexity, derandomization |
|
|
974
|
+
|
|
975
|
+
The math domains were particularly challenging — the model confidently confuses the status of open problems with resolved ones (e.g., claiming the Riemann Hypothesis has implications it doesn't, or misidentifying the complexity class of graph isomorphism). The 16% baseline is the lowest of any domain group.
|
|
976
|
+
|
|
977
|
+
</details>
|
|
978
|
+
|
|
811
979
|
### Summary by Domain
|
|
812
980
|
|
|
813
981
|
| Domain | Facts | Oracle Baseline | Best Adapter | Status |
|
|
@@ -831,9 +999,16 @@ The genetics domains demonstrate that the oracle-adapter pipeline generalizes be
|
|
|
831
999
|
| **Delivery optimization** | **10** | **0%** | **100%** | **COMPLETE** (GalNAc, LNPs, tissue targeting) |
|
|
832
1000
|
| **Safety invariants** | **10** | **0%** | **100%** | **COMPLETE** (off-target, genotoxicity, toxicology) |
|
|
833
1001
|
| **Clinical translation** | **12** | **0%** | **100%** | **COMPLETE** (IND-enabling, manufacturing, regulatory) |
|
|
1002
|
+
| | | | | |
|
|
1003
|
+
| **Millennium Problems** | **12** | **25%** | **100%** | **COMPLETE** (Riemann, P vs NP, Navier-Stokes) |
|
|
1004
|
+
| **Number theory conjectures** | **12** | **33.3%** | **100%** | **COMPLETE** (Goldbach, twin primes, ABC, Collatz) |
|
|
1005
|
+
| **Algebra/topology conjectures** | **10** | **10%** | **100%** | **COMPLETE** (Jacobian, Kervaire, Borel) |
|
|
1006
|
+
| **Proof techniques** | **12** | **25%** | **100%** | **COMPLETE** (forcing, barriers, logic) |
|
|
1007
|
+
| **Analysis/PDE conjectures** | **12** | **0%** | **100%** | **COMPLETE** (Kakeya, Carleson, regularity) |
|
|
1008
|
+
| **Computational conjectures** | **12** | **0%** | **100%** | **COMPLETE** (complexity, algorithms, derandomization) |
|
|
834
1009
|
| Ranking adapter | — | ρ=-0.14 | ρ=0.93 | — |
|
|
835
1010
|
|
|
836
|
-
**Total:
|
|
1011
|
+
**Total: 24 domains, 275 oracle facts, 275/275 flipped (100%). 0% MMLU degradation across all adapters.**
|
|
837
1012
|
|
|
838
1013
|
Full history: `results/candidates.tsv`
|
|
839
1014
|
|
|
@@ -877,7 +1052,10 @@ NoetherSolve
|
|
|
877
1052
|
├── claim.py ← THINK/CLAIM/RUN/PUBLISH coordination
|
|
878
1053
|
├── dashboard.py ← Results dashboard from candidates.tsv
|
|
879
1054
|
│
|
|
880
|
-
├── noethersolve/ ← Core package (
|
|
1055
|
+
├── noethersolve/ ← Core package (21 toolkit modules + MCP server)
|
|
1056
|
+
│ ├── mcp_server/ ← MCP server (32 tools for any AI agent)
|
|
1057
|
+
│ │ ├── server.py ← FastMCP tool definitions
|
|
1058
|
+
│ │ └── __main__.py ← python -m noethersolve.mcp_server
|
|
881
1059
|
│ ├── adapter.py ← Snap-on logit adapter (SwiGLU)
|
|
882
1060
|
│ ├── audit_chem.py ← Chemical network thermodynamic auditor
|
|
883
1061
|
│ ├── audit_facts.py ← Oracle fact quality auditor (token-length bias)
|
|
@@ -891,6 +1069,13 @@ NoetherSolve
|
|
|
891
1069
|
│ ├── aggregation.py ← Protein aggregation propensity predictor
|
|
892
1070
|
│ ├── splice.py ← Splice site strength scorer (PWM-based)
|
|
893
1071
|
│ ├── pharmacokinetics.py ← Pharmacogenomic CYP interaction checker
|
|
1072
|
+
│ ├── complexity.py ← Complexity class relationship auditor
|
|
1073
|
+
│ ├── conjecture_status.py ← Mathematical conjecture status checker
|
|
1074
|
+
│ ├── proof_barriers.py ← Proof technique barrier checker
|
|
1075
|
+
│ ├── number_theory.py ← Number theory conjecture numerical verifier
|
|
1076
|
+
│ ├── reductions.py ← Computational reduction chain validator
|
|
1077
|
+
│ ├── pde_regularity.py ← PDE regularity and Sobolev embedding checker
|
|
1078
|
+
│ ├── llm_claims.py ← LLM claims auditor (benchmarks, scaling, misconceptions)
|
|
894
1079
|
│ ├── train_utils.py ← Shared training utilities
|
|
895
1080
|
│ └── validate.py ← Integrator validation via conservation laws
|
|
896
1081
|
│
|
|
@@ -923,7 +1108,9 @@ NoetherSolve
|
|
|
923
1108
|
│
|
|
924
1109
|
├── paper/
|
|
925
1110
|
│ ├── breaking_frozen_priors.md ← Paper 10 source
|
|
926
|
-
│ ├── breaking_frozen_priors.pdf ← Paper 10 (pandoc
|
|
1111
|
+
│ ├── breaking_frozen_priors.pdf ← Paper 10 (pandoc *.md -o *.pdf)
|
|
1112
|
+
│ ├── noethersolve_toolkit.md ← Paper 11 source
|
|
1113
|
+
│ ├── noethersolve_toolkit.pdf ← Paper 11
|
|
927
1114
|
│ └── prior_work/ ← Papers 8-9 that this builds on
|
|
928
1115
|
│
|
|
929
1116
|
├── adapters/ ← Trained weights (gitignored)
|
|
@@ -963,4 +1150,12 @@ NoetherSolve
|
|
|
963
1150
|
doi={10.5281/zenodo.19017290},
|
|
964
1151
|
url={https://doi.org/10.5281/zenodo.19017290}
|
|
965
1152
|
}
|
|
1153
|
+
|
|
1154
|
+
@article{sanchez2026noethersolve,
|
|
1155
|
+
title={NoetherSolve Toolkit: Conservation Law Monitoring, Discovery, and Scientific Auditing Across Physics, Genetics, and Mathematics},
|
|
1156
|
+
author={Sanchez, Bryan},
|
|
1157
|
+
year={2026},
|
|
1158
|
+
doi={10.5281/zenodo.19029880},
|
|
1159
|
+
url={https://doi.org/10.5281/zenodo.19029880}
|
|
1160
|
+
}
|
|
966
1161
|
```
|