Commit 930000b
proof(Slice 3+4 Route A): (c) trichotomy + consumer-side first-eq derivation (#166)
## Summary
Follow-on to PR #165's (b) primitive. Adds the **(c) trichotomy** data
type and the **consumer-side first-eq derivation** tools the (a)+(b)+(c)
assembly plan calls for, plus a named theorem fully closing the
bpsi-source-at-equal-head sub-case at the rank-lex-jb level GIVEN only a
tail-rank-equality discharge. Zero postulates, \`--safe --without-K\`,
no funext.
## What lands
### Consumer-side first-eq derivation (2 primitives)
The DEFINITIONAL fact underlying the closure: \`rank-pow (bplus x y) =
rank-pow x ⊕ rank-pow y\` (\`RankPow.rank-pow-bplus\`, \`refl\`). So
first-eq REDUCES to a conjunction of summand-equalities via \`cong₂
_⊕_\`.
| Name | Role |
|---|---|
| \`rank-pow-bplus-eq-from-summands\` | Generic \`cong₂ _⊕_\` helper |
| \`first-eq-from-bpsi-source-at-equal-head\` | Specialised: bpsi-source
at equal head (left-rank-eq is \`refl\`); reduces consumer-side first-eq
to **tail-rank-equality only** |
### (c) Trichotomy data type + dispatchers (5 primitives)
Brouwer ordinals are NOT decidably ordered in general (\`Ord\` carries
\`olim f\` over arbitrary ℕ → Ord functions), so a universal trichotomy
on \`rank-pow (bplus _ _)\` is unattainable under \`--safe --without-K\`
without postulates. The TRACTABLE narrowing is a STRUCTURAL trichotomy
data type that records the strict / equal cases the consumer can derive.
| Name | Role |
|---|---|
| \`BplusFirstTri x₁ x₂ y₁ y₂\` | Data type with two constructors:
\`bplus-tri-strict\` (rank-strict) and \`bplus-tri-equal\` (rank-equal)
|
| \`bplus-tri-from-strict\` / \`bplus-tri-from-equal\` | Wrapper
constructors lifting consumer-derived witnesses into the trichotomy |
| \`dispatch-trichotomy-to-<lex\` | Assembly headline: consumes a
trichotomy + leftmost-α strict witness, produces \`<lex\` at rank-lex-jb
level. Strict → \`<lex-first\` via (b) primitive (#165); equal →
\`<lex-second\` via (a) primitive (#147). |
### Named theorem: bpsi-source-at-equal-head fully discharged (1)
| Name | Type |
|---|---|
| \`rank-lex-jb-bpsi-equal-head-from-tail-eq\` | \`rank-pow x₂ ≡
rank-pow y₂ → α <ᵇ⁰ β → rank-lex-jb (bplus (bpsi ν α) x₂) <lex
rank-lex-jb (bplus (bpsi ν β) y₂)\` |
The tail-rank-equality gate is **THE SAME structural obligation** that
the ψ-rank-level closure
(\`RankLexSlice3.rank-adm-bpsi-strict-at-equality\`) carries. Resolving
that one structural blocker unblocks BOTH the ψ-rank-level and the
bplus-chain-level closures mechanically.
## Honest scope
- The Brouwer-arithmetic blocker (strict-left-mono of \`_⊕_\` +
additive-principal closure on generic sums, both CHECKED-REFUTED in PR
#146) means **strict-first via strict-left-rank** is structurally
unreachable at the bplus-chain level. Strict-first via strict-head-Ω
already lands in PR #141 / \`<ᵇ¹-+1-+\`.
- Equal-first beyond the bpsi-source-at-equal-head case is open multi-PR
research; the trichotomy data type leaves room for future dispatchers
without committing to any specific closure path.
- \`dispatch-trichotomy-to-<lex\` shows the assembly composes
mechanically — the structural ordinal-arithmetic obligation is the SOLE
remaining gating, and it's pushed to the precise consumer call site
rather than scattered across the proof.
## (a)+(b)+(c) assembly status after this PR
Per PR #147's preamble plan:
| Leg | Status |
|---|---|
| (a) equal-first lex-second | CLOSED in #147 |
| (b) strict-first lex-first primitive | CLOSED in #165 (one-liner via
\`<lex-first\`) |
| (c) first-component trichotomy | CLOSED HERE as a structural data type
+ dispatchers |
| Consumer-side first-eq derivation | CLOSED HERE for the
bpsi-source-at-equal-head case (parameterised on tail-rank-eq) |
| Full assembly headline | \`rank-lex-jb-bpsi-equal-head-from-tail-eq\`
named theorem closes the bpsi sub-case given **only** tail-rank-eq |
The bplus-chain-level rank-mono umbrella over **all** 13 \`_<ᵇ_\`
constructors is still gated on (i) tail-rank-equality discharge
(structural ordinal-arithmetic work) AND (ii) the equal-first dispatch
beyond the bpsi-source case (open research). Per the SLICE 4 narrowing
(\`RankMonoUmbrellaSlice4\`), the \`<ᵇ⁻ⁿ-shortfall-equal-head\`
matched-negative remains.
## Local verification
- \`agda -i proofs/agda
proofs/agda/Ordinal/Buchholz/RankLexJointBplus.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\` — 160 modules pass.
- \`sh scripts/kernel-guard.sh\` — PASS.
All eleven new names pinned in \`Ordinal/Buchholz/Smoke.agda\`.
## Test plan
- [x] All Agda lanes typecheck locally.
- [x] New names pinned in Buchholz Smoke.
- [x] Foundation guardrail + kernel-guard pass.
- [ ] 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 f21c62f commit 930000b
2 files changed
Lines changed: 177 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
542 | 551 | | |
543 | 552 | | |
544 | 553 | | |
| |||
0 commit comments