Commit 246a2e2
committed
feat(JtvEcho): mechanise Echo×Epistemic function-effect lattice (ADR-0009)
Adds SECTION 5 to the Lean development: the formal counterpart of the
Rust `epistemic.rs` + `effect.rs` slices that completed ADR-0009 D1-D3.
* `Epistemic` inductive (hidden/bounded/full = Opaque/Partial/Transparent;
the lowercase keywords are reserved in Lean, hence the rename) with
`Epistemic.join` (full absorbing, hidden unit) and the lattice laws
epi_join_comm / epi_join_assoc / epi_join_idem.
* `FunctionEffect` structure — a point in the product lattice
`Echo × Epistemic` — with componentwise `FunctionEffect.join` and the
laws feffect_join_comm / feffect_join_assoc / feffect_join_idem proved
from the Echo (SECTION 1) and Epistemic component laws.
The three product laws are exactly what makes call-graph composition
(`resolved_effects` in effect.rs) well-defined: the join fold is
order- and repetition-independent, so `g ∘ f` carries `effect f ⊔ effect g`
however the calls are arranged.
`lake build` green; zero sorry/admit/axiom. Completes the (b) workstream
(Echo + Epistemic first-class) on the proof side.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJmfoz1ZS1Pejy9LLMY7421 parent f6e63b7 commit 246a2e2
1 file changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
315 | 386 | | |
0 commit comments