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
{{ message }}
Repository navigation
Commit 157f282
Browse filesBrowse the repository at this point in the historyBrowse files
docs(P-037): G-V4 closed over write-capable aliasing — the ref-local hole
Arbiter follow-up on the G-V4 amendment (REQUEST CHANGES, one narrow P1):
the "cheapest sound test" was written as a list of direct write spellings,
and C# ref-locals walk around lists — `ref bool a = ref g; a = !a;` mutates
`g` with `g` never on the left of an assignment, never passed ref/out, and
no capture in sight. A literal implementation would have judged g stable,
kept the id edge, and fabricated the exact must G-V4 exists to forbid; the
self-null variant (`ref Stream a = ref q; a = replacement;`) would dispose a
different object than the caller's argument.
G-V4 is now defined over the ABSENCE OF WRITE-CAPABLE ALIASING/EXPOSURE,
with the spellings as instances, not the definition: direct writes; byref
exposure (ref/out passing; writable ref-local creation or ref-assignment —
creation ALONE disqualifies, fail-closed, no alias tracking); captures; and
any address/byref escape the extractor cannot prove read-only (in /
ref readonly stay eligible only where provably no writable alias arises —
no presumption of good behavior for unrecognized shapes).
§8: row 18 gains the alias twin as variant (b); new row 19 pins the
writably-aliased self-null resource; the closing note names the three
independent negative-control families the discharge matrix must carry
(own-body writes vs election; wrapper write/alias vs id/neg; self-null
write/alias vs G-S3). §9 wall updated (no alias tracking); status note
records the follow-up round.
Refs #304. Addresses the arbiter's ref-alias P1 on #307.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015de4MezSeUnZBoWq1fFU5M
| 15 |**overload/election ordering:** sig-keyed summary (roadmap stage 2) elects `Split`; the name-merged fallback group contains a differing election | G-F3: the merge collapses every side to `Uncond` first, then joins — deterministic, pre-solver; the precise `sig`-keyed summary keeps its split where the call carries a `sig`|`sig`-resolved site | per-cell verdicts; name-fallback site: today's behavior |
467
481
| 16 |**forward-grounded residual ⊥:**`F(p, g){ if (g) MustSink(p); else F(p, g); }`| guarded lfp `(must, ⊥)` → fin `(must, no)` → collapse `may`; today `[forward MustSink, forward F, borrow]` → `may`. Equal — the residual-⊥ lemma's branch 2 pin (grounded forward on the other side; distinct from row 14's local-release shape) | unknown site | plain + OWN051; `F(p, true)` selects `must` → `consume`|
468
482
| 17 |**`None`-coordinate refined through `const-pos`:**`Outer(Resource p){ Inner(p, true); }`, `Inner = Split(g, must, no)`|`Outer` elects `None` (its domain is plain `Transfer`) yet its `const-pos` edge reads `Inner`'s positive cell ⇒ `Outer = Uncond(must)`; today `may` forwards into `may`. The summary-refinement class reaching a split-free coordinate — pins that election does not bound where refinement can flow | any `Outer` site |`consume`|
469
-
| 18 |**mutated guard (negative control, G-V4):**`Outer(Resource p, bool g){ g = !g; Inner(p, g); }`, `Inner = Split(g, must, no)`|`g` is assigned ⇒ not entry-value stable ⇒ the edge is `opaque`, reading `join(must, no) = may`; `Outer` gets today's behavior. Without G-V4 the *syntactic* identity forward would select the positive cell while `Inner` receives the negation — a fabricated `must` (the Codex P1). Same wall pins a reassigned self-null parameter |`Outer(p, true)`| plain + OWN051 (today) — never `consume`|
483
+
| 18 |**mutated guard (negative controls, G-V4):** (a) `Outer(Resource p, bool g){ g = !g; Inner(p, g); }`; (b) the alias twin `Outer(Resource p, bool g){ ref bool a = ref g; a = !a; Inner(p, g); }` — `Inner = Split(g, must, no)`| (a) direct write, (b) writable ref-local creation — either disqualifies `g` ⇒ the edge is `opaque`, reading `join(must, no) = may`; `Outer` gets today's behavior. Without G-V4 both *syntactic* identity forwards would select the positive cell while `Inner` receives the negation — a fabricated `must` (the Codex P1 and its ref-alias twin) |`Outer(p, true)`| plain + OWN051 (today) — never `consume`|
484
+
| 19 |**writably-aliased self-null resource (negative control, G-V4):**`Close(Stream q, Stream r){ ref Stream a = ref q; a = r; if (q != null) q.Dispose(); }`| no direct `q = …`, but the writable alias disqualifies `q` ⇒ no self-null split ⇒ today's derivation (`may`): the summary never claims `must` over the caller's argument while the body may dispose a *different* object | any | plain + OWN051 (today) — never `consume`|
470
485
471
486
Each row is a fixture family for #304's conformance vectors; rows 1–3 are the
472
487
summary-level twins of the corpus cases #305 landed, and must agree with them;
473
-
rows 11–18 pin the election lattice, both declared refinement classes
488
+
rows 11–19 pin the election lattice, both declared refinement classes
474
489
(application and summary), residual-⊥ lemma branches 1–2, and the G-V4
475
-
stability wall. The discharge
490
+
stability wall. The G-V4 discharge matrix must carry **three independent
0 commit comments