Commit b09bb4e
agda(arithmetic): Phase 1.3 ⊕-mono-<-right smoke pin + restore Brouwer inductive _≤_ (#42)
Closes #34.
## Chosen option
**(A) Right-recursive `_⊕_`** — confirmed by comments on #34.
## What landed (commit 9312add, already in main)
The core fix shipped in a prior commit. This PR completes the rung by
pinning the headline lemmas in `Smoke.agda` and updating the
deferred-list in `RankBrouwer.agda`.
### Proven lemma signature
```agda
⊕-mono-<-right : ∀ {α β γ} → β <′ γ → α ⊕ β <′ α ⊕ γ
```
located in `proofs/agda/Ordinal/Brouwer/Phase13.agda`, proved by mutual
structural induction on γ together with:
```agda
⊕-mono-≤-right : ∀ {α β γ} → β ≤′ γ → α ⊕ β ≤′ α ⊕ γ
```
with helpers `≤′-self-osuc`, `≤′-weaken-osuc`, `⊕-left-≤-sum`.
The right-recursive `_⊕_` in `Arithmetic.agda`:
```agda
_⊕_ : Ord → Ord → Ord
α ⊕ oz = α
α ⊕ osuc β = osuc (α ⊕ β)
α ⊕ olim f = olim (λ n → α ⊕ f n)
```
makes `⊕-mono-<-right` provable by induction on γ; the left-recursive
form was provably false at limit α (counterexample in #34).
## Changes in this PR
- **`proofs/agda/Smoke.agda`** — adds five names to the `Phase13`
`using` clause: `≤′-self-osuc`, `≤′-weaken-osuc`, `⊕-left-≤-sum`,
`⊕-mono-≤-right`, `⊕-mono-<-right`. Any silent rename or deletion now
fails CI.
- **`proofs/agda/Ordinal/Buchholz/RankBrouwer.agda`** — updates the
deferred-list comment: marks `⊕-mono-<-right` as landed; the sole
remaining open piece for `wf-<ᵇʳᶠ` is Phase-2.2 `rank-mono-<ᵇ`. Also
corrects the closing-chain snippet to use `wf-<′` (the recursive order)
rather than `wf-<`.
- **`proofs/agda/Ordinal/Brouwer.agda`** — restores the working
inductive-data-type `_≤_` that CI was green on (9312add). PR #40 merged
a wip branch that replaced it with a recursive predicate but left
`≤-refl {olim f}` with a `{!!}` hole; `--safe` rejects holes. The
recursive-predicate order is separately available as `_≤′_` in
`Ordinal.Brouwer.Phase13`.
## Verification command
```
agda -i proofs/agda proofs/agda/All.agda
agda -i proofs/agda proofs/agda/Smoke.agda
```
Both exit 0 under `--safe --without-K` (CI on commit 9312add confirmed
the suite green before #40 introduced the hole; this PR restores that
state plus the smoke-pin additions).
https://claude.ai/code/session_01FD6o1Ej86BaTryDA1jQDwC
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fb934cf commit b09bb4e
3 files changed
Lines changed: 148 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
11 | | - | |
| 23 | + | |
12 | 24 | | |
13 | | - | |
14 | | - | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
28 | | - | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | | - | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
50 | | - | |
51 | | - | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
58 | 154 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
64 | 164 | | |
65 | | - | |
| 165 | + | |
| 166 | + | |
66 | 167 | | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| |||
0 commit comments