Commit 36d4396
agda(EchoEpistemic): fix Agda 2.8.0 inference for knowledge-monotone-{comp,id}
Two surgical changes to keep `--safe --without-K` green under
Agda 2.8.0:
1. `Knows r P y` was defined as `∀ e → P (proj₁ (RoleEcho r y ∋ e))`
using a where-bound type-ascription operator `_∋_`. Under 2.8.0
the unifier can no longer see the role/value parameters through
that indirection, which leaves r and y as unsolved metas in any
downstream lemma quantifying over `e`. Spelt out as
`(e : RoleEcho r y) → P (proj₁ e)` — equivalent meaning, no
ascription helper.
2. `knowledge-monotone-comp` and `knowledge-monotone-id` previously
used `∀ e → ...` in their signatures, which left e's type as a
meta. Made the type explicit (`(e : RoleEcho r y) → ...`) and,
because `obs : Role → Global → Bool` is not injective, supplied
the implicit `r y P Q R` arguments at every `knowledge-monotone`
call site inside the equality. The proof body remains `refl` —
both sides reduce definitionally to
`qr (proj₁ e) (pq (proj₁ e) (k e))`.
EchoEpistemic.agda now typechecks under `--safe --without-K`. No
postulates introduced. No semantics changed — the lemmas express
the same modal-layer composition rung the previous version
described.
This fix does not touch Ordinal.Brouwer (separately failing under
the in-flight Phase 1.3 recursive-predicate redesign).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 59cf61f commit 36d4396
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | | - | |
76 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
0 commit comments