Commit c23ca77
committed
ArghDA M10 follow-on: Mizar local-article cross-references (M10 → 95%)
A Mizar article that `Require`s a sibling — `theorems X;` on a local article X —
is now checkable. Before this, X wasn't in any library, so `accom` on the
dependent errored.
Ground-truthed the export pipeline against real Mizar 8.1.15: to reference a
local X, X must be built into a local library — `accom X; verifier X;
exporter X; transfer X` produces X's library files, and `transfer` populates a
local `./prel` the accommodator reads. `check_file` now, before checking the
target, exports each in-tree transitive dependency in topological order
(`mizar_transitive_deps` is a cycle-safe post-order DFS over environ imports;
MML references are skipped) via that 4-tool pipeline in the temp work dir.
Honesty preserved: a broken dependency fails the dependent — dogfooded a
`ybad` that requires a broken `xbad` → `error` (no false green). A valid
`y` requiring a valid `x` → `proven`.
Verification (actually run): cargo fmt --check, clippy -D warnings, cargo test
(175 pass, +1 topo-order unit), check-spdx.sh — all green. Dogfooded vs real
Mizar 8.1.15 (MIZFILES=/opt/mizar): `y.miz` with `theorems X;` using `by X:1`
→ proven (was error pre-fix); `ybad` requiring broken `xbad` → error;
`reason --check` → x/y proven, xbad/ybad error.
Honest scope: the THEOREMS cross-reference path is dogfooded end-to-end. The
same accom→verifier→exporter→transfer pipeline is Mizar's standard library
build, so definitions/notations/constructors cross-refs travel the same path,
but were not separately dogfooded (a correct definitions fixture is finicky to
author; not rabbit-holed). Residual: verify those + a session/root convention.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT71 parent ad7d949 commit c23ca77
2 files changed
Lines changed: 104 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
117 | 137 | | |
118 | 138 | | |
119 | 139 | | |
| |||
453 | 473 | | |
454 | 474 | | |
455 | 475 | | |
456 | | - | |
| 476 | + | |
457 | 477 | | |
458 | 478 | | |
459 | 479 | | |
| |||
462 | 482 | | |
463 | 483 | | |
464 | 484 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
469 | 490 | | |
470 | 491 | | |
471 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
126 | 148 | | |
127 | 149 | | |
128 | 150 | | |
| |||
223 | 245 | | |
224 | 246 | | |
225 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
226 | 282 | | |
227 | 283 | | |
228 | 284 | | |
| |||
330 | 386 | | |
331 | 387 | | |
332 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
333 | 408 | | |
334 | 409 | | |
335 | 410 | | |
| |||
0 commit comments