Commit 390cebb
proof(Path-3 prototype): same-left joint-bplus rank-mono extension (#167)
## Summary
Mechanises the **Path-3 alternative** identified in PR #166's closing
note: enrich the SOURCE RULE rather than the rank function. New module
\`Ordinal.Buchholz.RankMonoSameLeft\` introduces a \`<ᵇ⁰\`-grounded
same-left joint-bplus constructor and closes its rank-pow obligation in
**one line**, bypassing the rank-lex-jb pivot's first-eq derivation
entirely for the same-literal-left sub-case. Zero postulates, \`--safe
--without-K\`, no funext.
## The structural insight tested
PR #166's closing note flagged Path-3 as a possible reframing:
> The source rule may need enrichment, not the rank function.
> For a valid \`<ᵇ-+1\`-at-equal-head derivation under WfCNF, rank-mono
soundness *requires* tail-rank-strict. Path-3 alternative: enrich the
source side instead — promote \`_<ᵇ_\` to carry a \`<ᵇ⁺-+2\`-style
same-left constructor with both head-eq and tail-strict premises baked
in.
This PR mechanises that intuition concretely. **Result: WORKS.**
## Headlines
| Name | Role |
|---|---|
| \`_<ᵇ⁺²_\` | Extended relation: \`<ᵇ⁺²-from-<ᵇ⁰\` embeds 10 closed
cases + \`<ᵇ⁺²-same-left\` adds the source-rule enrichment |
| \`rank-pow-mono-<ᵇ⁺²\` | Two-case structural recursion: each case ONE
LINE |
| \`rank-pow-mono-same-left\` | Direct lemma showing the same-left case
without routing through embedding |
## Path-3 vs rank-lex-jb (complementary, not subsuming)
| Sub-case | Path | Closure |
|---|---|---|
| Same LITERAL left (\`bplus x s\` vs \`bplus x t\`) | **Path-3 (this
PR)** | One-line via \`rank-pow-bplus-right-mono\` |
| Same head-Ω, different left syntax (\`bpsi ν α\` vs \`bOmega ν\`) |
rank-lex-jb (#147+#165+#166) | Multi-step: leftmost-α + first-eq +
\`<lex-second\` |
The same-left case is UNREACHABLE in K-free \`_<ᵇ_\` (would require
\`<ᵇ-irrefl\` violation via \`<ᵇ-+1 (x <ᵇ x)\`); reachable only in the
extended \`_<ᵇ⁺_\` of \`Ordinal.Buchholz.OrderExtended\` via \`<ᵇ⁺-+2\`.
This prototype narrows the tail premise to \`_<ᵇ⁰_\` to keep the closure
inductively grounded.
The K-restriction does NOT bite at constructor formation (only at
pattern-match elimination), so the same-binder \`<ᵇ⁺²-same-left\`
constructor is fine under \`--safe --without-K\`.
## Honest scope
- Does NOT prove well-foundedness of \`_<ᵇ⁺²_\` — separate from
rank-mono; would need a Brouwer-rank embedding (the rank function here
provides the seed).
- Does NOT subsume rank-lex-jb for the cross-head case — Path-3 and
rank-lex-jb are complementary.
- Does NOT extend the tail premise to \`_<ᵇ¹_\` — composes mechanically
via \`rank-pow-mono-<ᵇ¹\` but kept out of the prototype for minimality.
- Does NOT wrap in WfCNF endpoints (à la \`_<ᵇ⁻ⁿ_\` from Slice 4) — left
for downstream consumers.
## Implication confirmed
PR #166's #3 implication holds mechanically: enriching the source rule
is structurally simpler than the rank-function enrichment for this
scenario. The one-line closure here contrasts with the multi-PR
rank-lex-jb assembly chain. This suggests the **future bplus-chain
rank-mono umbrella may want to be designed as a UNION of source-rule
extensions** (Path-3 style for cleanly-decomposable cases) rather than a
single enriched rank function (rank-lex-jb style for cross-head cases).
## Local verification
- \`agda -i proofs/agda
proofs/agda/Ordinal/Buchholz/RankMonoSameLeft.agda\` — clean.
- \`agda -i proofs/agda proofs/agda/Ordinal/Buchholz/Smoke.agda\` —
clean, exit 0.
- \`agda -i proofs/agda proofs/agda/Smoke.agda\` — clean, exit 0.
- \`agda -i proofs/agda proofs/agda/All.agda\` — clean, exit 0.
- \`bash tools/check-guardrails.sh proofs/agda\` — **161 modules** pass
(one new).
- \`sh scripts/kernel-guard.sh\` — PASS.
Five new names pinned in \`Ordinal/Buchholz/Smoke.agda\` under a new
\`RankMonoSameLeft\` \`using\` block.
## Test plan
- [x] Module typechecks under \`--safe --without-K\` with zero
postulates.
- [x] Full suite + Smoke remain green with the new module wired in.
- [x] Foundation guardrail + kernel-guard pass with 161 modules.
- [ ] CI: \`check\` + \`cold-check\` + governance lanes green.
- [ ] Auto-merge on green.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 930000b commit 390cebb
3 files changed
Lines changed: 191 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 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 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
0 commit comments