From c6d208b22d5063d0301b57ade1c7646d2ba810f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:20:10 +0000 Subject: [PATCH 1/2] WarrantClaim: warrant the grade knowledge, require p-stability Resolves the 2026-11-09 audit points on WC-1 to WC-5. - WitnessedWarrant pairs a SoundWarrant with a token for it, so the claim is derived rather than assumed. - C1 now warrants OwnGradeKnown p w (the restricted grade is constant over p's indistinguishable worlds) with knows-own-grade as its token, instead of the tautology x = x. grade-equality-warrant is kept, marked superseded. KCutWarrantComplete carries the new warrant as grade-knowledge and derives grade-known and data-known. - C2 gains grade-bound-witnessed-lower/-upper, in which H4 is used. - ReceiverLocalSideCondition gains `local`: phi is stable along p's indistinguishability from w. data-knowledge derives Knows p w phi. - tests/reject/EmptyDataWarrant now supplies every field and fails at the token, not on constructor arity. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV --- PROOF-STATUS.adoc | 34 ++++-- src/Choreographic/WarrantClaim.agda | 161 ++++++++++++++++++++++------ tests/reject/EmptyDataWarrant.agda | 17 +-- 3 files changed, 162 insertions(+), 50 deletions(-) diff --git a/PROOF-STATUS.adoc b/PROOF-STATUS.adoc index 1e1c457..e89f77a 100644 --- a/PROOF-STATUS.adoc +++ b/PROOF-STATUS.adoc @@ -245,7 +245,11 @@ not re-declared: `Warrant` carries an `Evidence` type; `SoundWarrant` adds `sound : Evidence → A`. A sound warrant alone can have an empty evidence type. The receiver-local side condition therefore also requires `evidence : Evidence`, so applying `sound` to that token establishes the -data-dependent claim. The evidence type, token and soundness proof are +data-dependent claim. It also requires `local : w ~[ p ] w' → φ w → φ w'`: +φ must not change across worlds p cannot tell apart, so the token gives p +knowledge of φ (`data-knowledge`), not only its truth. The warranted claims +are packaged as `WitnessedWarrant`: a `SoundWarrant` together with a token +for it, so the claim is derived from the record rather than assumed. The evidence type, token and soundness proof are supplied by the receiver, not derived from the choreography. [NOTE] @@ -254,25 +258,37 @@ supplied by the receiver, not derived from the choreography. * WC-1 warrants the tautology `x ≡ x`. In `KCutWarrantComplete` the `grade-eq-warrant` field can therefore be filled by any `SoundWarrant` of a tautology, so C1 as packaged carries no information; `knows-own-grade`, the - real C1 content, is not part of the record. + real C1 content, is not part of the record. *Resolved:* C1 now warrants + `OwnGradeKnown p w` (the grade is constant over p's indistinguishable + worlds) as a `WitnessedWarrant` whose token is `knows-own-grade`, and the + record field is `grade-knowledge` of that type. `grade-equality-warrant` + is kept, marked superseded. * WC-2 and WC-3: the warrant terms do not use H4; only the evidence tokens do. + *Resolved:* `grade-bound-witnessed-lower` and `-upper` pair each warrant + with its token, so H4 is used by the packaged result. The bare warrant + terms still do not use it. * WC-4: `ReceiverLocalSideCondition p φ w` does not mention `p` in any field, so "receiver-local" is a name only, and `data-claim` amounts to - `φ w → φ w`. It is a packaging step, as the text above says. + `φ w → φ w`. It is a packaging step, as the text above says. *Resolved:* + the record now has a `local` field (φ is stable along `~[ p ]` from w), and + `data-knowledge` derives `Knows p w φ` from it. That the receiver holds the + token is still not recorded by any field. * WC-1, WC-4 and WC-5 are stated over an ordered algebra but do not use the - order. + order. *Open:* the order is a module parameter needed by C2 only. * `tests/reject/EmptyDataWarrant` is rejected for a constructor-arity mismatch, not because a complete warrant for `⊥` is impossible. + *Resolved:* the invalid case now supplies every field and fails at the + token: an empty `Evidence` type has none. ==== [cols="1,3,1",options="header"] |=== | ID | Claim | Status -| WC-1 | Grade equality warrant: at every world w, p holds a `SoundWarrant` for `grade↾ p (G ↾ cut w) ≡ grade↾ p (G ↾ cut w)`, with evidence token `knows-own-grade p w`. Hypotheses: H1–H3 only | PROVEN (`Claim.grade-equality-warrant`, `grade-equality-evidence`) -| WC-2 | Grade bound warrant (lower): if `Each (𝟙 ≼_) G`, p holds a `SoundWarrant` for `grade↾ p (G ↾ cut w) ≼ grade (G ↾ cut w)`, with evidence token `knows-lower-bound G p e w`. Hypotheses: H1–H4 | PROVEN (`Claim.grade-bound-warrant-lower`, `grade-bound-evidence-lower`) -| WC-3 | Grade bound warrant (upper): if `Each (_≼ 𝟙) G`, p holds a `SoundWarrant` for `grade (G ↾ cut w) ≼ grade↾ p (G ↾ cut w)`, with evidence token `knows-upper-bound G p e w`. Hypotheses: H1–H4 | PROVEN (`Claim.grade-bound-warrant-upper`, `grade-bound-evidence-upper`) -| WC-4 | Data warrant: for data-dependent φ, p holds a `SoundWarrant` for φ w and can establish φ w IF p supplies `ReceiverLocalSideCondition p φ w` (Evidence + sound + an actual evidence token). This is the receiver-local side condition; NOT type-determined | PROVEN as a conditional (`Claim.ReceiverLocalSideCondition`, `data-warrant`, `data-claim`); TESTED (`tests/reject/EmptyDataWarrant` rejects a vacuous empty-evidence side condition) -| WC-5 | Complete K-CUT-WARRANT record: packages C1 and C3 with the inhabited receiver-local side condition; C2 stated separately (direction depends on algebra). `mkComplete` requires that side condition | PROVEN (`Claim.KCutWarrantComplete`, `mkComplete`); TESTED (`tests/reject/EmptyDataWarrant`) +| WC-1 | Grade knowledge warrant: at every world w, p holds a `WitnessedWarrant` (sound warrant plus token) for `OwnGradeKnown p w`, i.e. `grade↾ p (G ↾ cut w') ≡ grade↾ p (G ↾ cut w)` at every w' with `w ~[ p ] w'`. The token is `knows-own-grade`. Hypotheses: H1–H3 only | PROVEN (`Claim.grade-knowledge-warrant`, `grade-equality-evidence`) +| WC-2 | Grade bound warrant (lower): if `Each (𝟙 ≼_) G`, p holds a `SoundWarrant` for `grade↾ p (G ↾ cut w) ≼ grade (G ↾ cut w)`, with evidence token `knows-lower-bound G p e w`; `grade-bound-witnessed-lower` packages both. Hypotheses: H1–H4 | PROVEN (`Claim.grade-bound-warrant-lower`, `grade-bound-evidence-lower`, `grade-bound-witnessed-lower`) +| WC-3 | Grade bound warrant (upper): if `Each (_≼ 𝟙) G`, p holds a `SoundWarrant` for `grade (G ↾ cut w) ≼ grade↾ p (G ↾ cut w)`, with evidence token `knows-upper-bound G p e w`; `grade-bound-witnessed-upper` packages both. Hypotheses: H1–H4 | PROVEN (`Claim.grade-bound-warrant-upper`, `grade-bound-evidence-upper`, `grade-bound-witnessed-upper`) +| WC-4 | Data warrant: for data-dependent φ, p holds a `SoundWarrant` for φ w, can establish φ w, and knows φ at w, IF p supplies `ReceiverLocalSideCondition p φ w` (Evidence + sound + an actual evidence token + stability of φ along `~[ p ]` from w). This is the receiver-local side condition; NOT type-determined | PROVEN as a conditional (`Claim.ReceiverLocalSideCondition`, `data-warrant`, `data-claim`, `data-knowledge`, `data-witnessed`); TESTED (`tests/reject/EmptyDataWarrant` rejects an empty-evidence side condition at its token) +| WC-5 | Complete K-CUT-WARRANT record: packages the C1 knowledge warrant with its token and C3 with the inhabited receiver-local side condition, and derives p's knowledge of both (`grade-known`, `data-known`); C2 stated separately (direction depends on algebra). `mkComplete` requires that side condition | PROVEN (`Claim.KCutWarrantComplete`, `mkComplete`); TESTED (`tests/reject/EmptyDataWarrant`) |=== What WC-4 says about the keystone: the pre-registration's "SoundWarrant diff --git a/src/Choreographic/WarrantClaim.agda b/src/Choreographic/WarrantClaim.agda index 2f1cadf..4c85015 100644 --- a/src/Choreographic/WarrantClaim.agda +++ b/src/Choreographic/WarrantClaim.agda @@ -16,30 +16,38 @@ -- For a resource algebra R with order, a global type G, a party p, -- and a world w (a cut consistent for every party): -- --- (C1) GRADE EQUALITY WARRANT [PROVEN] --- p holds a SoundWarrant for --- grade↾ p (G ↾ cut w) ≡ grade↾ p (G ↾ cut w) +-- (C1) GRADE KNOWLEDGE WARRANT [PROVEN] +-- p holds a WitnessedWarrant (a SoundWarrant together with an +-- evidence token) for +-- OwnGradeKnown p w +-- = ∀ w' → w ~[ p ] w' → grade↾ p (G ↾ cut w') ≡ grade↾ p (G ↾ cut w) +-- that is, p's restricted grade is the same at every world p +-- cannot tell apart from w. This is K-CUT-LOSS read as knowledge. -- Evidence: Kripke knowledge in the choreographic frame. -- Soundness: factivity of the frame (reflexivity). -- -- (C2) GRADE BOUND WARRANT [PROVEN, with hypothesis] -- If EveryGrade≽𝟙 G (every interaction grade ≽ 𝟙): --- p holds a SoundWarrant for +-- p holds a WitnessedWarrant for -- grade↾ p (G ↾ cut w) ≼ grade (G ↾ cut w) -- If EveryGrade≼𝟙 G (every interaction grade ≼ 𝟙): --- p holds a SoundWarrant for +-- p holds a WitnessedWarrant for -- grade (G ↾ cut w) ≼ grade↾ p (G ↾ cut w) -- Evidence: Kripke knowledge of the bound. -- Soundness: factivity. -- -- (C3) DATA WARRANT [CONDITIONAL] -- For a data-dependent proposition φ : World → Set: --- a SoundWarrant indexed by p for φ w can be constructed +-- a SoundWarrant indexed by p for φ w can be constructed, +-- and p knows φ at w, -- IF the application supplies: -- Evidence : Set -- sound : Evidence → φ w -- evidence : Evidence --- This is the RECEIVER-LOCAL SIDE CONDITION. +-- local : ∀ {w'} → w ~[ p ] w' → φ w → φ w' +-- This is the RECEIVER-LOCAL SIDE CONDITION. The last field +-- makes it local to p: φ must not vary between worlds that p +-- cannot tell apart. -- A SoundWarrant alone does not supply an evidence token. -- -- ==================================================================== @@ -60,7 +68,8 @@ -- This determines the direction of the bound. -- -- (H5) For C3: ReceiverLocalSideCondition p φ w --- Evidence, a soundness proof, and a token are supplied externally. +-- Evidence, a soundness proof, a token and a proof that φ is +-- stable along p's indistinguishability are supplied externally. -- Receiver ownership of the token is also an external assumption. -- -- ==================================================================== @@ -72,9 +81,14 @@ -- Evidence : Set — the type of evidence tokens -- sound : Evidence → φ w — proof that evidence entails the claim -- evidence : Evidence — an actual token +-- local : ∀ {w'} → w ~[ p ] w' → φ w → φ w' +-- — φ does not change across worlds p cannot +-- tell apart from w -- --- Receiver ownership of that token is an external assumption: neither --- this type nor its party parameter p establishes such a relationship. +-- The `local` field is what ties the condition to p: with it, the token +-- gives p knowledge of φ at w (data-knowledge), not only the truth of +-- φ w. Receiver ownership of the token itself remains an external +-- assumption: no field records which party holds it. -- These are NOT derivable from the global type. The choreographic -- frame provides the warrant STRUCTURE (Warrant, SoundWarrant from -- epistemic-types) and the type-determined evidence (Kripke knowledge @@ -130,6 +144,23 @@ open import Choreographic.Transport R open import EpistemicTypes.Warrant using (Warrant; mkWarrant; SoundWarrant; soundWarrant) open ResourceAlgebra R +---------------------------------------------------------------------- +-- A sound warrant together with an evidence token for it. +-- +-- epistemic-types' SoundWarrant stores an evidence type and a soundness +-- map, but no token, so its Evidence may be empty. Its Epi record +-- stores a token but no soundness map. A WitnessedWarrant stores both, +-- so `claim` is derived rather than assumed. The warranted claims in +-- this module are packaged this way. +record WitnessedWarrant (p : Party) (A : Set) : Set₁ where + constructor witnessed + field + warrant : SoundWarrant Party p A + evidence : Warrant.Evidence (SoundWarrant.warrant warrant) + + claim : A + claim = SoundWarrant.sound warrant evidence + ---------------------------------------------------------------------- -- The claim, for a fixed global type. @@ -138,29 +169,42 @@ module Claim (G : Global) where open Frame G -- ==================================================================== - -- COMPONENT 1: Grade equality warrant. PROVEN. + -- COMPONENT 1: Grade knowledge warrant. PROVEN. -- - -- At every world w, p holds a SoundWarrant for the (reflexive) - -- equality of its own restricted grade. The evidence type is - -- Kripke knowledge; the soundness proof is factivity. + -- What p is warranted in is not the equality of its grade with + -- itself but that the grade does not vary over the worlds p cannot + -- tell apart from w. This is the LOSS ⇒ WARRANT direction: by + -- K-CUT-LOSS the restricted grade is a function of p's view. -- - -- This is the LOSS ⇒ WARRANT direction: by K-CUT-LOSS, the - -- restricted grade is a function of p's view, so p knows it at - -- every world. + -- The warrant is the frame's own: evidence is p's knowledge, at w, + -- of OwnGradeKnown, and soundness is factivity. The token holds + -- because knows-own-grade holds at every world. -- -- Hypotheses: H1–H3 only. No grade-ordering hypothesis needed. -- -- Ledger WC-1. - grade-equality-warrant : ∀ p w - → SoundWarrant Party p (grade↾ p (G ↾ cut w) ≡ grade↾ p (G ↾ cut w)) - grade-equality-warrant p w = own-grade-warrant p w + OwnGradeKnown : Party → World → Set + OwnGradeKnown p w = + Knows p w (λ w' → grade↾ p (G ↾ cut w') ≡ grade↾ p (G ↾ cut w)) - -- The evidence token: p knows its own restricted grade. -- Ledger WC-1. - grade-equality-evidence : ∀ p w - → Knows p w (λ w' → grade↾ p (G ↾ cut w') ≡ grade↾ p (G ↾ cut w)) + grade-knowledge-warrant : ∀ p w → WitnessedWarrant p (OwnGradeKnown p w) + grade-knowledge-warrant p w = + witnessed (sound-warrant p w (OwnGradeKnown p)) (λ w' _ → knows-own-grade p w') + + -- The evidence token on its own: p knows its own restricted grade. + -- Ledger WC-1. + grade-equality-evidence : ∀ p w → OwnGradeKnown p w grade-equality-evidence p w = knows-own-grade p w + -- Superseded by grade-knowledge-warrant. This warrants the + -- tautology `x ≡ x`, which any SoundWarrant can do, and it carries + -- no token. Kept so existing callers still type-check. + -- Ledger WC-1. + grade-equality-warrant : ∀ p w + → SoundWarrant Party p (grade↾ p (G ↾ cut w) ≡ grade↾ p (G ↾ cut w)) + grade-equality-warrant p w = own-grade-warrant p w + -- ==================================================================== -- COMPONENT 2: Grade bound warrant. PROVEN, with hypothesis H4. -- @@ -198,6 +242,21 @@ module Claim (G : Global) where → Knows p w (λ w' → grade (G ↾ cut w') ≼ grade↾ p (G ↾ cut w)) grade-bound-evidence-upper p e w = knows-upper-bound G p e w + -- The bound warrants with their tokens. The warrant terms above do + -- not use H4 (sound-warrant exists for any claim); the tokens do, so + -- these are the forms in which H4 is load-bearing. + -- Ledger WC-2. + grade-bound-witnessed-lower : ∀ p → Each (𝟙 ≼_) G → ∀ w + → WitnessedWarrant p (grade↾ p (G ↾ cut w) ≼ grade (G ↾ cut w)) + grade-bound-witnessed-lower p e w = + witnessed (grade-bound-warrant-lower p e w) (grade-bound-evidence-lower p e w) + + -- Ledger WC-3. + grade-bound-witnessed-upper : ∀ p → Each (_≼ 𝟙) G → ∀ w + → WitnessedWarrant p (grade (G ↾ cut w) ≼ grade↾ p (G ↾ cut w)) + grade-bound-witnessed-upper p e w = + witnessed (grade-bound-warrant-upper p e w) (grade-bound-evidence-upper p e w) + -- ==================================================================== -- COMPONENT 3: Data warrant. CONDITIONAL on receiver-local side -- condition (H5). @@ -210,11 +269,15 @@ module Claim (G : Global) where -- Evidence : Set -- sound : Evidence → φ w -- evidence : Evidence + -- local : ∀ {w'} → w ~[ p ] w' → φ w → φ w' -- - -- These are NOT type-determined. Neither this record nor p encodes - -- ownership of the token by the receiver; that is an external assumption. - -- The global type provides the warrant structure but not the evidence - -- or soundness. + -- These are NOT type-determined. `local` is where p enters: it says + -- φ cannot change across worlds p cannot tell apart from w. A claim + -- about data p never sees (another party's payload, say) cannot meet + -- it whenever that data differs between two such worlds. + -- No field records that p holds the token; that remains an external + -- assumption. The global type provides the warrant structure but not + -- the evidence or soundness. -- -- Hypotheses: H1–H3, plus H5 (receiver-local side condition). @@ -226,6 +289,7 @@ module Claim (G : Global) where Evidence : Set sound : Evidence → φ w evidence : Evidence + local : ∀ {w'} → w ~[ p ] w' → φ w → φ w' -- Construct a SoundWarrant from the receiver-local side condition. -- This is a packaging step: the supplied Evidence and soundness @@ -236,7 +300,7 @@ module Claim (G : Global) where data-warrant : ∀ p w (φ : World → Set) → ReceiverLocalSideCondition p φ w → SoundWarrant Party p (φ w) - data-warrant p w φ (receiverLocal E s e) = + data-warrant p w φ (receiverLocal E s e _) = soundWarrant (mkWarrant E) s -- Use the supplied token to substantiate the data claim. This cannot @@ -245,14 +309,32 @@ module Claim (G : Global) where data-claim : ∀ p w (φ : World → Set) → ReceiverLocalSideCondition p φ w → φ w - data-claim p w φ (receiverLocal E s e) = s e + data-claim p w φ (receiverLocal E s e _) = s e + + -- The token and p-stability together give p knowledge of φ at w. + -- This is the receiver-local content: data-claim alone gives only the + -- truth of φ w. + -- Ledger WC-4. + data-knowledge : ∀ p w (φ : World → Set) + → ReceiverLocalSideCondition p φ w + → Knows p w φ + data-knowledge p w φ (receiverLocal E s e loc) w' w~w' = loc w~w' (s e) + + -- The data warrant with its token. + -- Ledger WC-4. + data-witnessed : ∀ p w (φ : World → Set) + → ReceiverLocalSideCondition p φ w + → WitnessedWarrant p (φ w) + data-witnessed p w φ sc = + witnessed (data-warrant p w φ sc) (ReceiverLocalSideCondition.evidence sc) -- ==================================================================== -- COMPLETE K-CUT-WARRANT: packaging the grade and conditional data parts. -- -- A complete K-CUT-WARRANT for party p at world w, with a -- data-dependent proposition φ, packages: - -- (1) the grade equality warrant (proven, no extra hypothesis) + -- (1) the grade knowledge warrant, with its token (proven, no + -- extra hypothesis) -- (3) the data warrant (conditional on side condition H5) -- -- Component (2), the grade bound warrant, is stated separately @@ -265,9 +347,9 @@ module Claim (G : Global) where (p : Party) (w : World) (φ : World → Set) : Set₁ where constructor kcutWarrantComplete field - -- Component 1: grade equality (proven from H1–H3 alone). - grade-eq-warrant : - SoundWarrant Party p (grade↾ p (G ↾ cut w) ≡ grade↾ p (G ↾ cut w)) + -- Component 1: grade knowledge, with its token (proven from + -- H1–H3 alone). + grade-knowledge : WitnessedWarrant p (OwnGradeKnown p w) -- Component 3: data warrant and its inhabited side condition (H5). data-side-condition : ReceiverLocalSideCondition p φ w @@ -277,8 +359,17 @@ module Claim (G : Global) where data-warrant-proof : SoundWarrant Party p (φ w) data-warrant-proof = data-warrant p w φ data-side-condition + -- What the record establishes for p at w. + -- Ledger WC-5. + grade-known : OwnGradeKnown p w + grade-known = WitnessedWarrant.claim grade-knowledge + + -- Ledger WC-5. + data-known : Knows p w φ + data-known = data-knowledge p w φ data-side-condition + -- Populate a complete K-CUT-WARRANT from the receiver-local side - -- condition. The grade equality is proven; the data warrant is + -- condition. The grade knowledge is proven; the data warrant is -- constructed from the side condition. -- -- Ledger WC-5. @@ -286,7 +377,7 @@ module Claim (G : Global) where → (sc : ReceiverLocalSideCondition p φ w) → KCutWarrantComplete p w φ mkComplete p w φ sc = kcutWarrantComplete - (grade-equality-warrant p w) + (grade-knowledge-warrant p w) sc ---------------------------------------------------------------------- diff --git a/tests/reject/EmptyDataWarrant.agda b/tests/reject/EmptyDataWarrant.agda index fdab7e7..174eec9 100644 --- a/tests/reject/EmptyDataWarrant.agda +++ b/tests/reject/EmptyDataWarrant.agda @@ -18,13 +18,17 @@ open Claim end w : World w = stop , λ _ → stop --- Positive control: the supplied evidence token substantiates the claim. +-- Positive control: the supplied evidence token substantiates the claim, +-- and with p-stability it gives party 0 knowledge of the claim at w. supported : ReceiverLocalSideCondition 0 (λ _ → ⊤) w -supported = receiverLocal ⊤ (λ token → token) tt +supported = receiverLocal ⊤ (λ token → token) tt (λ _ token → token) substantiated : ⊤ substantiated = data-claim 0 w (λ _ → ⊤) supported +known : Knows 0 w (λ _ → ⊤) +known = data-knowledge 0 w (λ _ → ⊤) supported + -- Every complete warrant uses its side condition's evidence type. token : (c : KCutWarrantComplete 0 w (λ _ → ⊤)) → Warrant.Evidence (SoundWarrant.warrant (KCutWarrantComplete.data-warrant-proof c)) @@ -33,8 +37,9 @@ token c = ReceiverLocalSideCondition.evidence (KCutWarrantComplete.data-side-con from-warrant : KCutWarrantComplete 0 w (λ _ → ⊤) → ⊤ from-warrant c = SoundWarrant.sound (KCutWarrantComplete.data-warrant-proof c) (token c) --- Must fail: the old two-field side condition admitted an empty Evidence --- type and vacuous soundness function, advertising a complete warrant for --- falsehood. A token is now required before mkComplete can be applied. +-- Must fail at the token: an empty Evidence type with a vacuous soundness +-- function and a stability proof is still not a side condition, because +-- the record requires an inhabitant of Evidence. So no complete warrant +-- for falsehood can be built this way. invalid : KCutWarrantComplete 0 w (λ _ → ⊥) -invalid = mkComplete 0 w (λ _ → ⊥) (receiverLocal ⊥ (λ ())) +invalid = mkComplete 0 w (λ _ → ⊥) (receiverLocal ⊥ (λ ()) tt (λ _ ())) From b944bbda77a3fd2e197558066a8e69da1594d2ba Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:28:31 +0000 Subject: [PATCH 2/2] WarrantClaim: say what local constrains (phi's truth, not the data) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MF5GeeBBDF6sUzr6pZTjWV --- src/Choreographic/WarrantClaim.agda | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Choreographic/WarrantClaim.agda b/src/Choreographic/WarrantClaim.agda index 4c85015..d621157 100644 --- a/src/Choreographic/WarrantClaim.agda +++ b/src/Choreographic/WarrantClaim.agda @@ -272,9 +272,10 @@ module Claim (G : Global) where -- local : ∀ {w'} → w ~[ p ] w' → φ w → φ w' -- -- These are NOT type-determined. `local` is where p enters: it says - -- φ cannot change across worlds p cannot tell apart from w. A claim - -- about data p never sees (another party's payload, say) cannot meet - -- it whenever that data differs between two such worlds. + -- no world p cannot tell apart from w makes φ false while φ holds at + -- w. The data behind φ may still differ between such worlds; only + -- φ's truth may not. A claim that depends on data p never sees can + -- meet it only if that data does not change φ's truth there. -- No field records that p holds the token; that remains an external -- assumption. The global type provides the warrant structure but not -- the evidence or soundness.