Commit f12bc7c
committed
fix: R-0004 slice 4 (part) — kernel replay resolves its workspace from the input
`--report check-proofs` invoked `lake env lean` with no `cwd`, and `lake` finds
its workspace by walking up from wherever it is invoked. So the verdict depended
on where the caller stood. Same file, same compiler, absolute path:
from the repo root : 3 verified, 0 failed
from /tmp : 0 verified, 3 failed [E0806] ... failure=theorem_lookup
The second answer is wrong twice over — the proofs do verify, and the reported
cause sends the reader to look for missing theorems that are not missing. The
workspace was simply never found.
`findLakeWorkspace` now walks up from the input file for a lakefile and passes
that as `cwd`, so the answer is a property of what is being checked rather than
of the caller's shell. It returns `none` rather than guessing a default: a wrong
workspace would replay against the wrong library and report confident nonsense.
That case is now named ("cannot locate a Lake workspace for ...") and exits
non-zero — replay fails closed.
Gated in check_proof_freshness.sh (now 17 checks): identical verdict from two
directories, the missing-workspace case named, no theorem blamed for it, and a
non-zero exit. Verified load-bearing by reverting the fix — the gate reports the
exact 3-verified/0-verified split.
Note on that check: the first reversion attempt left `ws` unused, Lean's linter
rejected the file, and the gate then ran against a STALE BINARY and passed. A
sensitivity check has to compile, or it measures the previous build.1 parent c397efc commit f12bc7c
3 files changed
Lines changed: 89 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
857 | 880 | | |
858 | 881 | | |
859 | 882 | | |
| |||
1292 | 1315 | | |
1293 | 1316 | | |
1294 | 1317 | | |
1295 | | - | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1296 | 1338 | | |
1297 | 1339 | | |
1298 | 1340 | | |
| 1341 | + | |
1299 | 1342 | | |
1300 | 1343 | | |
1301 | 1344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
935 | | - | |
936 | | - | |
937 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
938 | 945 | | |
939 | 946 | | |
940 | 947 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
207 | 242 | | |
208 | 243 | | |
209 | 244 | | |
0 commit comments