Commit 2b59685
proof(Slice 3+4 Route A): (c) trichotomy + consumer-side first-eq derivation
Follow-on to PR #165's (b) primitive. Adds the (c) trichotomy
data type and the consumer-side first-eq derivation tools that
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.
## Two consumer-side first-eq derivation tools
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-level equalities
via `cong₂ _⊕_`.
1. `rank-pow-bplus-eq-from-summands` — generic `cong₂ _⊕_` helper:
from two summand-equalities derive bplus-eq.
2. `first-eq-from-bpsi-source-at-equal-head` — specialised for
bpsi-source-at-equal-head: left summands are `bpsi ν α` and
`bpsi ν β` (same ν, ANY α and β), so left-rank equality is
DEFINITIONAL (`refl`). Reduces consumer-side first-eq to the
tail-rank-equality `rank-pow x₂ ≡ rank-pow y₂`.
## (c) Trichotomy data type + dispatchers
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:
* `BplusFirstTri x₁ x₂ y₁ y₂` — two constructors:
- `bplus-tri-strict : rank-pow (bplus x₁ x₂) <′ rank-pow (bplus y₁ y₂)`
- `bplus-tri-equal : rank-pow (bplus x₁ x₂) ≡ rank-pow (bplus y₁ y₂)`
* `bplus-tri-from-strict` / `bplus-tri-from-equal` — wrapper
constructors that lift consumer-derived witnesses into the
trichotomy.
* `dispatch-trichotomy-to-<lex` — the assembly headline: consumes
a trichotomy + a leftmost-α strict witness and produces a `<lex`
judgment at rank-lex-jb level. Strict case → `<lex-first` via
`rank-lex-jb-strict-first` (PR #165); equal case → `<lex-second`
via `rank-lex-jb-strict-second-at-equal-first` (PR #147).
This IS the (a)+(b)+(c) assembly's RECIPE at the rank-lex-jb
level: every reachable case dispatches mechanically given the
consumer-side strict-or-equal-first witness. The residual
gating across the assembly is the consumer-side derivation of
the leftmost-α strict witness in the equal case AND tail-rank-
equality discharge.
## Named theorem: bpsi-source-at-equal-head fully discharged
`rank-lex-jb-bpsi-equal-head-from-tail-eq` composes the two
consumer-side derivations into a closure:
Inputs:
* `rank-pow x₂ ≡ rank-pow y₂` (tail-rank-eq, consumer gate)
* `α <ᵇ⁰ β` (source-side strict ψ-arg, 10-constructor umbrella)
Output:
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 (preserved in module)
- 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 the
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.
## 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` under
the existing `RankLexJointBplus` `using` block.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f21c62f commit 2b59685
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