|
13 | 13 | -- modality carries a value or bot. Here that is |
14 | 14 | -- `PartialSection M V = (m : M) → Maybe (V m)`, with no assumption on |
15 | 15 | -- `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. |
19 | 21 | -- |
20 | 22 | -- Everything is stated POINTWISE (equalities at each `m`), never as an |
21 | 23 | -- equality of functions, so the module is funext-free. Octad.v proves |
|
50 | 52 | -- * ⊑-refl, ⊑-trans |
51 | 53 | -- * merge-comm, merge-assoc, merge-idem |
52 | 54 | -- * fill-guarded, fill-inflationary, fill-not-monotone |
| 55 | +-- * no-common-upper-bound (merge is not a join for `_⊑_`) |
53 | 56 | -- * restrict-fibre-agree, restrict-blind, restrict-echo |
54 | 57 |
|
55 | 58 | module EchoPartialSection where |
@@ -242,6 +245,33 @@ module FillNotMonotone where |
242 | 245 | absurd : fill propose₂ one₂ true ≡ just true → ⊥ |
243 | 246 | absurd () |
244 | 247 |
|
| 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 | + |
245 | 275 | ---------------------------------------------------------------------- |
246 | 276 | -- Companion remark. |
247 | 277 | -- |
|
0 commit comments