You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Builds on the now-verified `WokeLang.lean` (#79) by **extending the
type-safety proofs** — Tier 1 (base operators) + Tier 3 (capability
lattice) from `AUDIT.md`. Every addition is machine-checked under Lean
4.30.0 by the `lean-proofs` CI gate, **still sorry-free, no axioms**.
## Tier 1 — base operators
Each adds a `HasType` rule + `Step` rule and full `progress` /
`preservation` coverage (including the congruence and error-propagation
cases):
- **`or`** (logical) — mirrors the proven `and`.
- **`sub`, `mul`** (integer) — mirror the proven `add`.
## Tier 3 — capability lattice
- **`capSubsumes_refl`**, **`capSubsumes_trans`** — capability
subsumption is a **preorder**.
This is deliberately the order shape echo-types' `DecorationStructure`
requires (`≤-refl`/`≤-trans`), keeping WokeLang's capability lattice
on-path for a future echo/loss layer.
## Echo-types design compatibility
Per your request, I checked echo-types `main` before extending, and
documented it in `AUDIT.md`. The precedent is `EchoEphapaxBridge`:
**Ephapax** (a linear-typed language) ports `EchoLinear` + `EchoResidue`
into its prover as a separate **L3 layer**. So the echo/loss layer is a
`Mode`-indexed decoration *on top of* the base type system — these
base-operator extensions are **orthogonal and compatible**, and the
capability preorder is a stepping stone toward it.
## Verification
```
$ lean docs/proofs/verification/WokeLang.lean # exit 0, sorry-free
```
## Still open in Tier 1 (next increment)
Ordering comparisons (`lt`/`gt`/`le`/`ge`), `div`/`mod` (divide-by-zero
→ `error` panic, reusing the proven panic fragment), float variants, and
`array` typing.
https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z7
---
_Generated by [Claude
Code](https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z7)_
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments