diff --git a/PROOF-STATUS.adoc b/PROOF-STATUS.adoc index e89f77a..1870bcd 100644 --- a/PROOF-STATUS.adoc +++ b/PROOF-STATUS.adoc @@ -82,7 +82,7 @@ epistemic-types' `Warrant.agda` is imported (same kernel; pinned commit | T-2 | *The local frontier is known*: at every world p knows exactly its projected cut, hence every fact about its own frontier — receiving is knowing it was received; synchronously, sending is knowing it was sent | PROVEN (`knows-local-cut`, `knows-local`; `receiver-knows`, `sender-knows`) | T-3 | p-accessibility is exactly sameness of p's projected cut (both directions) | PROVEN (`knows-local-cut`, `local-cut-determines`) | T-4 | Party access `p ⊑ q` ("q sees at least what p sees") is a preorder — epistemic-types' `Preorder` record, instantiated — and knowledge is monotone along it | PROVEN (`party-access`, `knows-mono`) -| T-5 | A silent party is below every party; knowledge flows up the preorder only — `1 ⊑ 2` for the witness protocol is refused | PROVEN (`silent-⊑`, `inherited`); TESTED (`tests/reject/AccessWrongWay`). Audit 2026-11-09: the negative half rests only on that fixture, which fails because the view equation is stuck on abstract worlds, not because `1 ⊑ 2` is refuted; no `¬ (1 ⊑ 2)` theorem exists +| T-5 | A silent party is below every party; knowledge flows up the preorder only — `1 ⊑ 2` for the witness protocol is refused | PROVEN (`silent-⊑`, `inherited`, `1-not-⊑-2`); TESTED (`tests/reject/AccessWrongWay`). The negative half is now a theorem: `1-not-⊑-2 : ¬ (1 ⊑ 2)` uses the two witness worlds, which party 2 cannot tell apart and party 1 can. The fixture still fails because the view equation is stuck on abstract worlds, so it tests the type error, not the refutation | T-6 | epistemic-types' unindexed `AccessibleModality` cannot express this frame directly: its `E : K → Set → Set` has no world index, and world-free knowledge collapses to the proposition itself (reflexivity). With `E : K → (World → Set) → (World → Set)` in the local `IndexedAccessible` record, the choreographic frame is a lawful instance with every law by `refl` | PROVEN (`knowledge`); the current sibling pin (6ce8c74) already contains the upstream Kripke/Indexed module; adapting this local instance to it remains pending |=== @@ -420,7 +420,8 @@ proof irrelevance nor choice. link exists or is claimed. Every MaxPlus discharge above (K-6, W-6, A-2) inherits that obligation: the Lean theorem is provenance, never an import. * *Sibling pins.* resource-algebra at - `b2c9f1f6bc7ed7cc83c7573014cdf88d49d2a881`, epistemic-types at + `f211fc1406d345fa6e972bcfc960c0acd57df1cd` (since 2026-11-16, previously + `b2c9f1f6`; the commit its own PWG-1 receipt describes), epistemic-types at `6ce8c74e8a91e5021cb0c1fb4fc805bdff837178`, echo-types at `ebde9ac4e1a9f115b441c642c82aced1316c5983` (`scripts/fetch-siblings.sh`, full SHAs verified after checkout). Correction to the 2026-10-12 entry: the diff --git a/scripts/fetch-siblings.sh b/scripts/fetch-siblings.sh index 2516bae..8863ea6 100755 --- a/scripts/fetch-siblings.sh +++ b/scripts/fetch-siblings.sh @@ -16,7 +16,7 @@ set -euo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." -RESOURCE_ALGEBRA_COMMIT="${RESOURCE_ALGEBRA_COMMIT:-b2c9f1f6bc7ed7cc83c7573014cdf88d49d2a881}" +RESOURCE_ALGEBRA_COMMIT="${RESOURCE_ALGEBRA_COMMIT:-f211fc1406d345fa6e972bcfc960c0acd57df1cd}" EPISTEMIC_TYPES_COMMIT="${EPISTEMIC_TYPES_COMMIT:-6ce8c74e8a91e5021cb0c1fb4fc805bdff837178}" ECHO_TYPES_COMMIT="${ECHO_TYPES_COMMIT:-ebde9ac4e1a9f115b441c642c82aced1316c5983}" DEPENDENCIES_DIR="${DEPENDENCIES_DIR:-_build/dependencies}" diff --git a/src/Choreographic/All.agda b/src/Choreographic/All.agda index 4f2be65..00d5032 100644 --- a/src/Choreographic/All.agda +++ b/src/Choreographic/All.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Checking this module checks the whole development. diff --git a/src/Choreographic/Async.agda b/src/Choreographic/Async.agda index b1df7e4..f18475c 100644 --- a/src/Choreographic/Async.agda +++ b/src/Choreographic/Async.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/AsyncBound.agda b/src/Choreographic/AsyncBound.agda index da9d287..0ae8ecc 100644 --- a/src/Choreographic/AsyncBound.agda +++ b/src/Choreographic/AsyncBound.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/AsyncKnowledge.agda b/src/Choreographic/AsyncKnowledge.agda index 81bf243..794b23b 100644 --- a/src/Choreographic/AsyncKnowledge.agda +++ b/src/Choreographic/AsyncKnowledge.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Base/EchoAdditive.agda b/src/Choreographic/Base/EchoAdditive.agda index f03e34e..25884ba 100644 --- a/src/Choreographic/Base/EchoAdditive.agda +++ b/src/Choreographic/Base/EchoAdditive.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Base/EchoProjection.agda b/src/Choreographic/Base/EchoProjection.agda index 6ab4a52..8043882 100644 --- a/src/Choreographic/Base/EchoProjection.agda +++ b/src/Choreographic/Base/EchoProjection.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Base/RoleGraded.agda b/src/Choreographic/Base/RoleGraded.agda index 14f8a5f..efcf6c3 100644 --- a/src/Choreographic/Base/RoleGraded.agda +++ b/src/Choreographic/Base/RoleGraded.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Bound.agda b/src/Choreographic/Bound.agda index a82baeb..b5f1576 100644 --- a/src/Choreographic/Bound.agda +++ b/src/Choreographic/Bound.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Global.agda b/src/Choreographic/Global.agda index 23ecf28..6648274 100644 --- a/src/Choreographic/Global.agda +++ b/src/Choreographic/Global.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/GradingSemantics.agda b/src/Choreographic/GradingSemantics.agda index 9ba7118..5796265 100644 --- a/src/Choreographic/GradingSemantics.agda +++ b/src/Choreographic/GradingSemantics.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Independent2.agda b/src/Choreographic/Independent2.agda index 3abc13b..b5260a6 100644 --- a/src/Choreographic/Independent2.agda +++ b/src/Choreographic/Independent2.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Instances.agda b/src/Choreographic/Instances.agda index 89969b7..fb2484c 100644 --- a/src/Choreographic/Instances.agda +++ b/src/Choreographic/Instances.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- @@ -202,6 +202,14 @@ module TransportWitness where inherited : Knows 1 w₂ (λ w' → cutproj 2 (cut w') ≡ cutproj 2 (cut w₂)) inherited = knows-mono w₂ (silent-⊑ 1) (knows-local-cut 2 w₂) + -- The negative half: party 2 does not see at least what party 1 sees. + -- 2 cannot tell w₁ from w₂ (it takes no part), but 1 has received one + -- message at w₁ and two at w₂, so its views differ. + -- Ledger T-5. + 1-not-⊑-2 : ¬ (1 ⊑ 2) + 1-not-⊑-2 h with h w₁ w₂ Witness.indistinguishable + ... | () + ---------------------------------------------------------------------- -- The two-thread diamond (Swap.agda) at the instances. Loss and MaxPlus -- sequence commutatively, so their global grades swap; the high-water diff --git a/src/Choreographic/KCut.agda b/src/Choreographic/KCut.agda index b1addd6..959c942 100644 --- a/src/Choreographic/KCut.agda +++ b/src/Choreographic/KCut.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Kripke.agda b/src/Choreographic/Kripke.agda index d2ba851..10bcaca 100644 --- a/src/Choreographic/Kripke.agda +++ b/src/Choreographic/Kripke.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Local.agda b/src/Choreographic/Local.agda index 22d7074..f2c3ff1 100644 --- a/src/Choreographic/Local.agda +++ b/src/Choreographic/Local.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Operational.agda b/src/Choreographic/Operational.agda index f95f2e5..bbe26ba 100644 --- a/src/Choreographic/Operational.agda +++ b/src/Choreographic/Operational.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/PartialRecovery.agda b/src/Choreographic/PartialRecovery.agda index af40ce8..8467369 100644 --- a/src/Choreographic/PartialRecovery.agda +++ b/src/Choreographic/PartialRecovery.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger PR-1. diff --git a/src/Choreographic/Party.agda b/src/Choreographic/Party.agda index 93af64f..ac2c609 100644 --- a/src/Choreographic/Party.agda +++ b/src/Choreographic/Party.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Projection.agda b/src/Choreographic/Projection.agda index ab8e5fb..f7a58f6 100644 --- a/src/Choreographic/Projection.agda +++ b/src/Choreographic/Projection.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Swap.agda b/src/Choreographic/Swap.agda index bced326..af9fdeb 100644 --- a/src/Choreographic/Swap.agda +++ b/src/Choreographic/Swap.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/Transport.agda b/src/Choreographic/Transport.agda index 324eed6..b2e8d36 100644 --- a/src/Choreographic/Transport.agda +++ b/src/Choreographic/Transport.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/src/Choreographic/WarrantClaim.agda b/src/Choreographic/WarrantClaim.agda index d621157..1df6b7a 100644 --- a/src/Choreographic/WarrantClaim.agda +++ b/src/Choreographic/WarrantClaim.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- diff --git a/tests/PartialRecoveryBoundary.agda b/tests/PartialRecoveryBoundary.agda index 90f2b62..1b894cc 100644 --- a/tests/PartialRecoveryBoundary.agda +++ b/tests/PartialRecoveryBoundary.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger PR-2. diff --git a/tests/minimal-laws/ResourceAlgebra/Core.agda b/tests/minimal-laws/ResourceAlgebra/Core.agda index aeeb5fe..d5ece4e 100644 --- a/tests/minimal-laws/ResourceAlgebra/Core.agda +++ b/tests/minimal-laws/ResourceAlgebra/Core.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- A deliberately impoverished Core used ONLY by scripts/minimal-laws.sh to -- certify which laws K-CUT-LOSS depends on. Not part of the library. diff --git a/tests/reject/AccessWrongWay.agda b/tests/reject/AccessWrongWay.agda index 8b3d91e..edaac90 100644 --- a/tests/reject/AccessWrongWay.agda +++ b/tests/reject/AccessWrongWay.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger T-5. diff --git a/tests/reject/CollidingWholeWorldRecovery.agda b/tests/reject/CollidingWholeWorldRecovery.agda index 712a3ea..e915814 100644 --- a/tests/reject/CollidingWholeWorldRecovery.agda +++ b/tests/reject/CollidingWholeWorldRecovery.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger PR-2. diff --git a/tests/reject/EmptyDataWarrant.agda b/tests/reject/EmptyDataWarrant.agda index 174eec9..ab48ef0 100644 --- a/tests/reject/EmptyDataWarrant.agda +++ b/tests/reject/EmptyDataWarrant.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger WC-4, WC-5. diff --git a/tests/reject/GlobalGradeKnown.agda b/tests/reject/GlobalGradeKnown.agda index 0b9fdb1..d3ce9ff 100644 --- a/tests/reject/GlobalGradeKnown.agda +++ b/tests/reject/GlobalGradeKnown.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger W-7. diff --git a/tests/reject/InconsistentCut.agda b/tests/reject/InconsistentCut.agda index be3da2f..8efcfa4 100644 --- a/tests/reject/InconsistentCut.agda +++ b/tests/reject/InconsistentCut.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger K-7. diff --git a/tests/reject/RevealingResidueCollision.agda b/tests/reject/RevealingResidueCollision.agda index 2c15785..44710f1 100644 --- a/tests/reject/RevealingResidueCollision.agda +++ b/tests/reject/RevealingResidueCollision.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger PR-2. diff --git a/tests/reject/SenderKnowsReceipt.agda b/tests/reject/SenderKnowsReceipt.agda index 8197cad..5d1ff66 100644 --- a/tests/reject/SenderKnowsReceipt.agda +++ b/tests/reject/SenderKnowsReceipt.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger Y-6. diff --git a/tests/reject/UnprojectableChoice.agda b/tests/reject/UnprojectableChoice.agda index 3850c46..6156b74 100644 --- a/tests/reject/UnprojectableChoice.agda +++ b/tests/reject/UnprojectableChoice.agda @@ -1,4 +1,4 @@ -{-# OPTIONS --safe --without-K #-} +{-# OPTIONS --safe --without-K --cubical-compatible --exact-split --no-sized-types --no-guardedness #-} -- SPDX-License-Identifier: MPL-2.0 -- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -- Ledger K-7.