Commit 7e8fa4a
proof(Path-3 prototype): same-left joint-bplus rank-mono extension
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.
> The K-free `_<ᵇ_`'s `<ᵇ-+1` constructor carries `x₁ <ᵇ y₁` as
> premise — nothing on `x₂ vs y₂`. Yet 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.
## What the prototype contains
`data _<ᵇ⁺²_ : BT → BT → Set`:
* `<ᵇ⁺²-from-<ᵇ⁰` — embed every `_<ᵇ⁰_` derivation (10
inherited cases).
* `<ᵇ⁺²-same-left` — **the source-rule enrichment**: when the
left summand is LITERALLY equal on both sides and the right
summand satisfies `<ᵇ⁰`, the bplus chain is in the relation.
The K-restriction does NOT bite at constructor formation
(only at pattern-match elimination), so this same-binder
constructor is fine under `--safe --without-K`.
`rank-pow-mono-<ᵇ⁺²` — direct structural recursion. The
inherited case forwards to `rank-pow-mono-<ᵇ⁰`; the same-left
case fires `rank-pow-bplus-right-mono` (= `⊕-mono-<-right`
specialised) on the tail's rank-pow strict witness. ONE LINE
per case.
`rank-pow-mono-same-left` — convenience direct-rank-mono lemma
showing the same-left case without routing through the
embedding. Demonstrates the one-line closure.
## Path-3 vs rank-lex-jb (complementary, not subsuming)
Path-3 covers a STRICTLY DIFFERENT sub-case than rank-lex-jb:
| Sub-case | Path | Closure |
|---|---|---|
| Same LITERAL left (`bplus x s` vs `bplus x t`) | Path-3 (this PR) | One-line `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` |
Path-3's same-left 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.
## Honest scope (preserved in module preamble)
- 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
Slice4) — 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.
- `sh scripts/kernel-guard.sh` — PASS.
Five new names pinned in `Ordinal/Buchholz/Smoke.agda` under a
new `RankMonoSameLeft` `using` block. Module wired into
`proofs/agda/All.agda` between `RankMonoUmbrellaSlice4` and
`RecursiveSurfaceOrder` (sibling extension to the Slice 4
narrowing).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 930000b commit 7e8fa4a
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