Skip to content

Commit fe5f462

Browse files
committed
proofs: merge on partial sections is not a join for the information order
Late review finding on #370 (merged): the module header and the bridge-status row called the resolve-parametric merge a join-semilattice of partial sections. Under `_⊑_` every present value must stay unchanged, so two sections with different values at one index have no common upper bound at all; merge-comm/assoc/idem are algebraic laws of a resolver-parametric merge, not join laws. - EchoPartialSection.NoJoin.no-common-upper-bound proves it (Bool-indexed counter-model, `--safe --without-K --cubical-compatible`, no postulates); pinned in Smoke.agda. - Module header, docs/bridges/cross-repo-bridge-status.adoc and MAP.adoc now say "resolver-parametric merge algebra" and cite the lemma. - CHANGELOG entry. Checked: EchoPartialSection.agda typechecks with Agda 2.7.0.1, stdlib 8326c74, absolute-zero f486c29 (scripts/setup-agda.sh); the warning count is unchanged (12, all the existing UnsupportedIndexedMatch class, none in the new block). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDizuhJtQDcxHxM2wj8
1 parent 6bc52b8 commit fe5f462

5 files changed

Lines changed: 52 additions & 6 deletions

File tree

‎CHANGELOG.adoc‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ Changelog].
77

88
=== [Unreleased]
99

10+
==== Added (2026-11-17)
11+
12+
* `+EchoPartialSection.NoJoin.no-common-upper-bound+`: two partial sections
13+
holding different values at one index have no common upper bound under the
14+
information order `+_⊑_+`. The R1–R3 merge laws are therefore a
15+
resolver-parametric merge algebra, not a join-semilattice for `+_⊑_+`; the
16+
module header and the bridge-status row that called it a join-semilattice are
17+
corrected. Pinned in `+Smoke.agda+`.
18+
1019
==== Added (2026-11-09)
1120

1221
* _squeakwell / VeriSimDB recovery ladder._ `+EchoPartialSection.agda+`

‎docs/bridges/cross-repo-bridge-status.adoc‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ pending owner decision).
236236
`+Octad.v+`), tropical-types `+Resource/HubCeiling.lean+` (reach grades,
237237
hub ceilings, weighted residue measure), squeakwell `+docs/ROUTE-PLAN.adoc+`
238238
|*Theory landed, pointwise.* Partial sections with the resolve-parametric
239-
merge (the join-semilattice-of-partial-sections abstraction verisimdb’s
240-
CROSS-REPO-MAP flagged), guarded fill (inflationary, not monotone), the
239+
merge (a resolver-parametric merge algebra, the partial-section companion
240+
verisimdb’s CROSS-REPO-MAP flagged; not a join for the information order,
241+
`+NoJoin.no-common-upper-bound+`), guarded fill (inflationary, not monotone), the
241242
restriction fibre (fragment observation fidelity), binary and `+Fin n+`
242243
narrowing with `+narrow-shrinks+` on the honest count. Checked here with
243244
Agda 2.7.0.1 and the pinned stdlib / absolute-zero; Recovery.v with Coq

‎docs/echo-types/MAP.adoc‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,10 @@ plan rungs R3, R8, R9, R12, R13). Landed 2026-11-09, `--safe --without-K
527527
verisimdb `Octad.v` R1–R3 — implications, not CRDT laws); guarded fill
528528
is the left-biased merge against an oracle proposal, never overwrites
529529
(`fill-guarded`), is inflationary (`fill-inflationary`) and is NOT
530-
monotone (`fill-not-monotone`, two-modality counter-model); restriction
530+
monotone (`fill-not-monotone`, two-modality counter-model); `merge` is
531+
not a join for the information order (`NoJoin.no-common-upper-bound`:
532+
two sections with different values at one index have no common upper
533+
bound); restriction
531534
to an observed mask and its Echo fibre (`restrict-fibre-agree`,
532535
`restrict-blind`) — the fragment-granularity observation-fidelity shape.
533536
* *Multi-witness narrowing* — `EchoFibreIntersection.agda`: the fibre of a

‎proofs/agda/EchoPartialSection.agda‎

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
-- modality carries a value or bot. Here that is
1414
-- `PartialSection M V = (m : M) → Maybe (V m)`, with no assumption on
1515
-- `M` (so the eight-slot octad is one instance). This is the
16-
-- "join-semilattice of partial sections" abstraction that
17-
-- verisimdb/formal/CROSS-REPO-MAP.adoc flagged as the missing
18-
-- echo-types companion to Octad.v's R1–R3.
16+
-- partial-section companion to Octad.v R1–R3 that
17+
-- verisimdb/formal/CROSS-REPO-MAP.adoc flagged as missing. It is a
18+
-- resolver-parametric merge algebra, NOT a join-semilattice for the
19+
-- information order `_⊑_`: `NoJoin.no-common-upper-bound` exhibits two
20+
-- sections with no common upper bound at all.
1921
--
2022
-- Everything is stated POINTWISE (equalities at each `m`), never as an
2123
-- equality of functions, so the module is funext-free. Octad.v proves
@@ -50,6 +52,7 @@
5052
-- * ⊑-refl, ⊑-trans
5153
-- * merge-comm, merge-assoc, merge-idem
5254
-- * fill-guarded, fill-inflationary, fill-not-monotone
55+
-- * no-common-upper-bound (merge is not a join for `_⊑_`)
5356
-- * restrict-fibre-agree, restrict-blind, restrict-echo
5457

5558
module EchoPartialSection where
@@ -242,6 +245,33 @@ module FillNotMonotone where
242245
absurd : fill propose₂ one₂ true ≡ just true → ⊥
243246
absurd ()
244247

248+
----------------------------------------------------------------------
249+
-- `merge` is not a join for `_⊑_` (counter-model).
250+
--
251+
-- `merge-comm` / `merge-assoc` / `merge-idem` are algebraic laws of a
252+
-- resolver-parametric merge; they do NOT make `merge resolve` a least
253+
-- upper bound in the information order. `_⊑_` keeps every present
254+
-- value unchanged, so two sections holding different values at one
255+
-- index have no common upper bound at all, whatever `resolve` does.
256+
----------------------------------------------------------------------
257+
258+
module NoJoin where
259+
260+
V₁ : Bool → Set
261+
V₁ _ = Bool
262+
263+
yes no : PartialSection Bool V₁
264+
yes _ = just true
265+
no _ = just false
266+
267+
no-common-upper-bound :
268+
¬ Σ (PartialSection Bool V₁) (λ t → (yes ⊑ t) × (no ⊑ t))
269+
no-common-upper-bound (t , y , n) =
270+
absurd (trans (sym (y true true refl)) (n true false refl))
271+
where
272+
absurd : just true ≡ just false → ⊥
273+
absurd ()
274+
245275
----------------------------------------------------------------------
246276
-- Companion remark.
247277
--

‎proofs/agda/Smoke.agda‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,9 @@ open import EchoPartialSection using
658658
open EchoPartialSection.FillNotMonotone using
659659
( fill-not-monotone
660660
)
661+
open EchoPartialSection.NoJoin using
662+
( no-common-upper-bound
663+
)
661664

662665
open import EchoThermodynamics using
663666
( landauer-bound

0 commit comments

Comments
 (0)