Commit d5618f8
fix(proofs/idris2): RMO.idr overwriteIrreversible + auditTrailCompleteness type-sig fixes (#117)
Two single-line type-signature errors in RMO.idr that prevented the
full Idris2 proof tree from building end-to-end. Both surfaced via the
build oracle (#70) once #112 (AuditEntry.proof reserved-keyword fix)
and #113 (hardwareEraseIrreversible single-line signature) cleared the
prior parse errors.
## overwriteIrreversible (line 120)
`length randomData >= length originalContent` is a `Bool` term (since
`(>=)` is Boolean), but a precondition in a function type requires a
`Type`. Replaced with the propositional ordering:
LTE (length originalContent) (length randomData)
Imports `Data.Nat` for `LTE`. Same fix pattern as `undoRedoComposition`
in PR #109. Body remains `?overwriteIrreversibleProof` (separate proof
debt).
## auditTrailCompleteness (line 252)
`Elem` was undefined (Idris2 0.8.0 lives in `Data.List.Elem`, not
re-exported by `Data.List`). Also `map path entries` was ambiguous
between `Filesystem.Model.Path` (a type) and `AuditEntry.path` (the
record accessor) — qualified to `AuditEntry.path`.
Imports `Data.List.Elem` for `Elem`. Body remains
`?auditTrailCompletenessProof`.
## Net effect
All 4 modules build clean for the first time:
$ idris2 --build proofs/idris2/valence-shell.ipkg
1/4: Building Filesystem.Model OK
2/4: Building Filesystem.RMO OK
3/4: Building Filesystem.Operations OK
4/4: Building Filesystem.Composition OK
This unblocks #70's Idris2 build oracle going strict (flip the
workflow's terminal `exit 0` → `exit 1` and add to branch protection's
required checks).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c7fe572 commit d5618f8
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
252 | | - | |
| 254 | + | |
253 | 255 | | |
0 commit comments