Commit e7f373e
feat: add GNN integration for proof search guidance (v2.1.0)
Implement Graph Neural Network integration across Rust core, Julia ML
server, and Idris2 ABI. The GNN module enables neural-guided proof
search by converting proof states into typed directed graphs, computing
local embeddings, and ranking premises via GNN inference.
Rust GNN module (src/rust/gnn/):
- graph.rs: ProofGraphBuilder with 7 node kinds, 8 edge kinds, recursive
term expansion, constant deduplication, shared-structure detection
- embeddings.rs: 32-dim feature vectors with node/term kind one-hot,
symbol frequency, structural complexity; cosine similarity
- client.rs: HTTP client for Julia GNN server with graceful degradation
- guided_search.rs: hybrid GNN+symbolic scoring (70/30 default weights),
tactic inference, embedding cache, search statistics
Julia GNN endpoint (src/julia/api/gnn_endpoint.jl):
- POST /gnn/rank with sparse graph parsing and cosine fallback
- GET /gnn/health for model availability checks
Idris2 formal proofs (src/abi/EchidnaABI/Gnn.idr):
- 7 proven properties: feature dim positivity, adjacency consistency,
node/edge kind injectivity, depth monotonicity, DependsOn/UsefulFor
duality, combined score boundedness
- 0 believe_me, 0 postulates
28 new tests (556 total), 0 clippy warnings, #![forbid(unsafe_code)].
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 706556f commit e7f373e
12 files changed
Lines changed: 3111 additions & 7 deletions
File tree
- src
- abi/EchidnaABI
- julia/api
- rust
- gnn
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
129 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
130 | 140 | | |
131 | 141 | | |
132 | 142 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
155 | 207 | | |
156 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
157 | 212 | | |
158 | 213 | | |
159 | 214 | | |
| |||
0 commit comments