Commit da34183
ArghDA M10 follow-on: Mizar local-article cross-references (M10 → 95%) (#51)
## What
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.
## How
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 — no false green:
| case | result |
|---|---|
| `y.miz` with `theorems X;` using `by X:1`, valid `x` | `proven` (was
`error` before) |
| `ybad` requiring a **broken** `xbad` | `error` |
| `reason --check` over the dir | x/y `proven`, xbad/ybad `error` |
## Verification (actually run)
- `cargo fmt --check` / `clippy -D warnings` — clean
- `cargo test` — **175 pass** (+1 topo-order unit)
- `check-spdx.sh` — OK
- Dogfooded vs real Mizar 8.1.15 (`MIZFILES=/opt/mizar`) — table above.
## 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; I chose not to rabbit-hole).
Residual (the 5%): verify those + a session/root convention.
Part of the heavy-tail completion cuts — last one next: Isabelle
multi-session (M9).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT7
---
_Generated by [Claude
Code](https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT7)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent ad7d949 commit da34183
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