Date: 2026-10-20, revised the same day after the author’s review (§8); first proof milestone the same day (§9). Status: for the author’s review at the milestone; no decision procedure or compiler change authorized. Approval of this phase covers definitions, claim statements and counterexample exploration. It does not cover proofs, adopting solver machinery or changing the compiler; those come back to the author with the completed dossier (ADR 014; the assessment’s decision 1).
Sources: docs/plans/2026-10-20-composition-foundation-assessment.md (§4.8-§4.12, with their evidence); requirements: docs/plans/2026-10-20-composition-acceptance-programs.md. Candidate foundation: Wand, Type inference for record concatenation and multiple inheritance (LICS 1989), with Sulzmann’s HM(RECc) (thesis 2000, §5.1.2) as a second statement of the same deduction.
Every claim below carries one status, its assumptions and its source:
D1. Labels and types. L is an infinite set of labels. Types are
built from base types, function types and record types. A row is a
finite partial map from labels to types; dom ρ is its set of labels.
The record type {ρ} is exact: a value of that type has exactly the
fields dom ρ, with those types. Two record types are equal iff their
rows are equal as maps.
D2. Variables. Type variables range over types and row variables
over rows. Each variable of a checking problem is either flexible
(the checker may choose it: instantiations at a call, unannotated
lambdas) or rigid (the function must work for every value of it: the
row variables of a declared signature, inside its body). An assignment
θ maps every variable to a ground type or row.
D3. Disjoint composition (Waxwing’s spread). For rows ρ1, ρ2:
ρ1 ⊎ ρ2 is defined iff dom ρ1 ∩ dom ρ2 = ∅, and is then their
union. The type { ...r, ...s } denotes {θ(r) ⊎ θ(s)}; writing it
carries the requirement that θ(r) and θ(s) are disjoint. Grouping
and order do not matter where defined (⊎ is associative and
commutative as a partial operation).
D4. Biased composition (Wand §2). ρ1 ◁ ρ2 is always defined: the
fields of ρ2, plus those of ρ1 whose labels ρ2 lacks. The right
operand wins on overlap. (Sulzmann’s §5.1.2 operator is biased the
other way; the side does not matter below.)
D5. Constraints. Atomic constraints: type equality τ1 = τ2;
r lacks { l } (l ∉ dom θ(r)); r disjoint s (dom θ(r) ∩ dom θ(s)
= ∅); field presence l ∈ r : τ (θ(r)(l) = τ). Constraint sets are
conjunctions. sol(C) is the set of assignments satisfying C. C
entails c (C ⊨ c) iff every member of sol(C) satisfies c.
D6. Checking problems. A call site gives a constraint set over
flexible variables only. A declared signature ∀ā. D ⇒ τ with body
constraints B gives the signature problem: for every assignment
θR of the rigid variables ā that satisfies D, some assignment
θF of the body’s flexible variables satisfies B (a ∀∃ statement,
not a satisfiability question).
D7. Wand’s encoding (Wand §5, published for D4). Per label l and
per record, a presence pres(τ) or absent. For each occurrence of
a composition with left presence f, right presence g and result
presence h, per label: (g = pres(τ) ∧ h = g) ∨ (g = absent ∧ h = f).
Each occurrence has its own h. A problem is typable iff some disjunct
of the disjunctive normal form, as a unification problem, has a
solution (§5 Theorem, §6 Theorem and Corollary).
D8. The disjoint restriction of D7 (this dossier). The same, with
the first disjunct strengthened: (g = pres(τ) ∧ f = absent ∧ h = g) ∨
(g = absent ∧ h = f). It is the per-label form of Makholm and Wells’s
symmetric Casino rule (TR §2, Fig. 2, published, without row variables)
and of Simon’s ¬(f1 ∧ f2) (PLDI 2014 §5, published, over presence
flags with one shared type).
A procedure answers a checking problem with one of three verdicts. A call and a signature ask different questions (D6), so the verdicts are stated for each. Compilation may use only what a verdict guarantees.
The problem C has flexible variables only.
σ is a substitution, C′ a residual
constraint set and W an assignment. Write eq(σ) for the binding
equations x = σ(x), one per variable σ binds. Guarantees: (i)
C and eq(σ) ∧ C′ have the same solutions on the problem’s
variables (the bindings are kept: applying σ to C′ alone would
lose them, since solving x = Int leaves σ = [x ↦ Int] and an
empty C′); (ii) W satisfies eq(σ) ∧ C′, so C is
satisfiable. Compilation receives σ, C′, and the variables left
undetermined (several values among the solutions); §4 says what it
may do with them.sol(C) is empty. E is evidence a reader or
test can check: a refutation from the rules or an exhausted case
split. Compilation receives nothing; the program is ill-typed.The problem is ∀ā. D ⇒ ∃b̄. B: rigid ā with the declared clauses
D, flexible b̄ with the body’s constraints B.
θR satisfying D some θF satisfies B. One satisfying
pair (θR, θF) does not establish it, and D ∧ B can have
solutions while the signature fails: a body that writes admin
beside ...r needs r lacks { admin }, which some θR meet and
θR(r) = { admin: Int } does not. The residual
B′, with σ binding flexible variables only, keeps the rigid and
flexible variables apart and the quantifier order: ∀ā. D ⇒ ∃b̄. B
and ∀ā. D ⇒ ∃b̄. eq(σ) ∧ B′ must be equivalent, and any part of
B′ that mentions rigid variables only must be entailed by D, or
the verdict is not Solved.θR is a rigid
assignment that satisfies D (checkable by evaluation), and E is a
call-site Contradiction (§2.1) for B with θR substituted: no
flexible assignment works for that instance. The instance alone shows
which declared inputs fail, not that the search for θF is empty.Author’s decision (2026-10-20): a declaration whose where clauses D
are unsatisfiable is refused, reporting that its requirements are
contradictory, and its body is not checked against them vacuously.
D is checked as a call-site problem with ā treated as flexible:
Contradiction refuses the declaration; Unresolved is reported as
Unresolved, never as a contradiction.
A procedure is sound if Solved and Contradiction always meet their
guarantees, refutation-complete if it never answers Unresolved for a
problem that fails, and complete if it never answers Unresolved. A
call fails when C has no solution. A signature fails when its
quantified statement is false: some θR satisfies D and no θF
satisfies B for it. That is not the unsatisfiability of D ∧ B,
which can have solutions while the signature fails (§2.2).
An incomplete procedure is acceptable only if it answers Unresolved,
never Contradiction, where it cannot decide, and if the required
programs (4, 5, 11 and their controls) never reach Unresolved.
dom ρ1 ∩ dom ρ2 = ∅,
ρ1 ⊎ ρ2 = ρ1 ◁ ρ2 = ρ2 ◁ ρ1. So a disjoint composition is a biased
composition plus the disjointness requirement, and the requirement is
the only difference.lacks, Wand §5 and §7’s padding;
with D5’s atoms and rigid variables, unresolved). Only the labels
written in the problem matter, plus one stand-in per row variable for
“all other labels”. The reviewer’s caution applies: presence is
finite, field types and unknown tails are not; the claim is that the
disjuncts reduce to unification problems over finitely many label
positions, and that needs its argument for D5’s atoms.For a composition { ...r, ...s } meeting a record whose fields are
known (a call), three claims are separate, and only the first is what
Wand’s typability gives:
r and s
satisfies the problem. Decides acceptance and the negative controls.l ∈ r : τ to C iff C ⊨ l ∈ r : τ. That has
two parts, presence and type, and they are separate claims:
C ⊨ l ∈ dom r iff C ∧ r lacks
{ l } is unsatisfiable. So forced presence is decided by C6’s
procedure, once per label and part.C fixesr = { x: Bool }, then C ∧ r lacks { x } is unsatisfiable whileC ⊭ x ∈ r : Int. (The first version of this dossier stated C7 asC ⊨ l ∈ r : τ iff C ∧ r lacks { l } is unsatisfiable”, whichC ⊨ l ∈ dom r and everyθ(r) ⊎ θ(s) the field `l, then C ⊨ l ∈ r : τ, because a disjoint union takes l`’s
field from the part that holds it. Programs 4 and 5 meet both
premises: the result is the caller’s known record.Sulzmann’s REC5-REC6 state C7a and C7b together for concat (published,
axioms; his printed closure misses the closed-result case, assessment
§4.10).
Program 4’s split is forced: with r ⊎ s = { admin: Bool } and s
lacks { admin }, adding r lacks { admin } leaves no solution (C7a),
and the result’s admin is Bool, so r’s is (C7b). The same
interface called without the lacks fact has two solutions; C6 holds,
C7a holds for neither placement, and the program compiles only under
§4’s policy.
θR satisfying D, and
a call-site Contradiction for the body at that instance. For program
6’s negative control every θR satisfying D (r disjoint s, both
lacking extra) is such an instance: the parameter types are exact
records, so the flexible parts of join’s instantiation must equal
θR(r) and θR(s), and then the promised { extra } ⊎ θR(r) ⊎
θR(s) differs from the body’s θR(r) ⊎ θR(s); no flexible
assignment remains.r disjoint s (from instantiating join at the
rigid r, s) is literally one of the declared clauses, so D ⊨ B
by inclusion. This decides program 6, not the general C9.Monomorphized Go needs every record value’s fields fixed. After a
Solved verdict, a row variable may still be undetermined (program 4
without its lacks; O4’s two-solution variant). A search that finds
one layout (Palsberg and Zhao’s S_R, Def 5.6; Wand’s first unifiable
disjunct) shows the program has a meaning for that layout. It does not
show the program means the same for every layout.
{ ...r, ...s } divides between r and s, then
every satisfying split gives the same observable behaviour, and the
checker may fix the witness W deterministically (for example, the
least split in label order). This is a theorem about a fragment. It
is not a procedure that recognizes every program whose split is
irrelevant, and none is promised: deciding whether two executions
behave the same is not attempted.
Assumption to establish by inventory, construct by construct: field
access, without, rest binders, spreads, equality, show, effects
and handlers, specialization keys (the generated code differs in names
only), program 7’s per-field dictionaries (their labels come from the
caller’s argument), and any future class instance selected by a row.
A construct that observes the split makes C8 false for programs that
use it; those programs would need the split forced (C7) or written.| Program | Constraint at the deciding point | Expected verdict | Claims used |
|---|---|---|---|
3 join({ name }, { age }) |
r ⊎ s with both known |
Solved, no residual | C2, C3 |
3 overlap join({ a }, { a }) |
r ⊎ s, both hold a |
Contradiction (Wand’s D7 accepts: the transfer difference) | C1, C2 |
4 acceptsParts({ admin: false }) |
r ⊎ s = { admin }, s lacks { admin } |
Solved; r = { admin: Bool }, s = {} forced |
C3, C7a, C7b |
| 4, negative | both lack admin |
Contradiction | C3 |
4 without lacks |
r ⊎ s = { admin } |
Solved with r, s undetermined; refused as undetermined under §4’s policy until C8 covers it |
C3, C8 |
5 composeRequirements(join, restricted) |
u ⊎ v = { x, y }, u lacks { y }, v lacks { x } |
Solved; u = { x }, v = { y } forced |
C3, C7a, C7b |
5, both lack y |
u ⊎ v = { x, y }, u, v lack y |
Contradiction | C3 |
6 forwarded |
body r disjoint s under declared r disjoint s |
Solved | C11 |
6, negative (promises extra) |
{ extra, ...r, ...s } = { ...r, ...s } |
Contradiction: an instance θR and no flexible assignment for it |
C10 |
11 both |
q lacks { a }; q ⊎ { a: Int }, q ⊎ { a: Bool } |
Solved, two independent results | C2, C5 |
11, negative both({ name, a: 2 }) |
q = { name, a }, q lacks { a } |
Contradiction | C3 |
Program 5’s higher-order step also needs join’s constrained scheme
instantiated with its disjoint clause carried into the call’s
constraint: HM(X) instantiation (Odersky, Sulzmann and Wehr, TAPOS
1999, published). Program 8’s local generalization with residual
constraints is out of this dossier’s scope and listed in §7.
From the implementations examined (assessment §4.10-§4.11; probes in research/composition-assessment/wand/):
| Case | Found in | Required verdict |
|---|---|---|
(r ⊎ s).x used as Int and as Text |
Gonzalez: accepted with contradictory residual constraints | Contradiction (Solved needs (ii)) |
x: (k: k x + k x) (y: 0) |
Gonzalez: occurs check on a = a |
Solved |
| a composition nested in a field’s type, then that field’s field used at the wrong type | Gonzalez: accepted (substitution misses nested fields) | Contradiction |
concat(α, β, { admin }) with β lacks admin |
Sulzmann’s printed closure: placement not derived for a closed result | α holds admin, forced (C7a, C7b) |
| overlap of two known records | Wand, Gonzalez: accepted (biased) | Contradiction (C2) |
| program 4 and 5 calls | Waxwing today: D4, Unresolved | Solved (C3, C7a, C7b) |
r = { x: Bool }, asked whether x ∈ r : Int is forced |
the first version of C7 | not forced: presence is, the type is Bool (C7a, C7b) |
| Id | Claim | Status | Next evidence |
|---|---|---|---|
| C1 | disjoint = biased + disjointness | proved (Lean, c1) |
|
| C2 | D8 encodes ⊎ | proved (Lean, c2; D7 encodes biased, d7_biased) |
|
| C3 | call-site satisfiability decidable | published (D4); derived (D8) | depends on C4 |
| C4 | finite label reduction with D5’s atoms | partly published; unresolved | argument |
| C5 | per-record field types | published | program 11 probes (Wand, run) |
| C6 | a split exists | = C3 | |
| C7a | forced presence = refutation of lacks |
proved (Lean, c7a) |
|
| C7b | forced type from a known result under ⊎ | proved (Lean, c7b; first C7 refuted, first_c7_false) |
|
| C8 | split irrelevance for a stated fragment | unresolved | construct inventory |
| C9 | signature checking decidable | unresolved | examine the three routes |
| C10 | signature Contradiction = instance + call-site Contradiction | proved (Lean, c10, sigFails_iff) |
finding evidence is C9 |
| C11 | program 6 by inclusion | proved (Lean, c11, p6_holds) |
|
| - | let-generalization with residual constraints (program 8) |
published in general (HM(X)); with D8, unresolved | after C9 |
| - | lowering preserves checking’s meaning | unresolved | translation and differential tests |
“Oracle” means a bounded enumerator over a fixed small domain of labels and base types: evidence on that domain. C4 would not make it complete: a reduction’s finite bound depends on the input, so no fixed domain covers every input. A complete reference procedure would need C4 proved and a decision procedure for the reduced problems.
Run (2026-10-20, second revision): research/composition-assessment/
oracle/oracle.mjs enumerates every row over five labels and three base
types (1,048,576 pairs) and checks C1, C2 (all 64 presence triples),
C7a and C7b on programs 4 and 5 (and not forced without the lacks),
the counterexample that refutes the first statement of C7, C10 on
program 6’s control (for each of 2,401 declared instances, every
flexible pair meeting the parameter types) and every row of §5 except 6
and the implementation counterexamples of §6, which need a checker, not
an enumerator. 23 of 23 checks hold. Mutants show the checks can fail:
biased union in place of ⊎ fails C1, program 3’s overlap and program 4
without its lacks; D8 without f = absent fails C2; program 6’s
promise without extra fails C10. The oracle evaluates ground
assignments over a fixed domain, so it says nothing about C4, C8 or C9.
Revision history: the second revision (after the author’s review) split C7 into presence and type (C7a, C7b; the first statement was false), required a call-site Contradiction beside the counter-instance in C10, stated the verdicts separately for calls and signatures (§2), recorded the author’s decisions on unsatisfiable clauses (§2.3) and on undetermined splits (§4), restated C8 as a theorem about a fragment, and withdrew the remark that C4 would make the oracle complete.
Authorized by the author after the second revision: definitions, C1-C2,
C7a-C7b with the counterexample, C10’s evidence principle and C11, and
the required programs. Proofs: research/composition-proofs/ (its README
has commands, files and every definitional choice); Lean 4.35.0, no
Mathlib. A clean build checks every proof with no warnings; no sorry,
admit, native_decide or declared axiom.
Exact theorem statements, in the dossier’s terms (Lean names in brackets):
c1]: if Disjoint r s then union r s = biased r s and
union r s = biased s r.c2]: DUnion r s u ↔ ∀ l, D8 (r l) (s l) (u l); per label
[c2_label]; and Wand’s D7 at every label iff u = biased r s
[d7_biased].c7a]: for any problem C, part and label, C ⊨ part has l
iff C ∧ part lacks l has no solution.c7b]: if C ⊨ r has l, C ⊨ DUnion r s u and C ⊨ u l =
τ, then C ⊨ r l = τ.first_c7_false]: with one label and C fixing r
= { x: Bool }, the first statement’s two sides differ.sigFails_iff]: “some θR satisfies D and no
θF satisfies B” iff the quantified statement is false (classical).c10]: a θR with D θR and a proof that no θF satisfies
B θR give signature failure. No procedure to find them is assumed.
[instance_alone_insufficient]: an instance satisfying D is not by
itself failure.c11]: if B ρ φ ↔ P ρ ∧ E ρ φ, D ⊨ P and every ρ has some
φ with E ρ φ, the signature holds.fails_while_satisfiable]: D ∧ B has a solution and
the signature fails.p3_overlap, p4_solved, p4_admin_forced (through c7a
and c7b), p4_split_forced, p4_negative,
p4_no_lacks_two_solutions, p5_solved, p5_split_forced,
p5_negative, p11, p11_negative, p6_holds,
p6_negative_refuted (every declared instance), p6_negative_fails].Assumption dependencies (#print axioms, axioms.out): only propext,
Quot.sound and, in sigFails_iff alone, Classical.choice.
Changed or added definitions: rows are all functions to Option Ty
(finiteness not assumed; the theorems hold for every finite map);
problems are predicates on assignments, not constraint syntax; the
programs are stated at their deciding constraint, written by hand, so
the step from Waxwing source to constraint is not formalized; program
6’s body constraint is written by hand. §2.1’s binding equations
(eq(σ)), C3, C4, C8 and C9 are not formalized.
Not vacuous: each Solved problem is shown satisfiable, and mutants
fail to check (program 4 without its lacks: p4_admin_forced and
p4_split_forced; DUnion without disjointness: c2, and program
proofs whose failures are partly structural).
Remaining targets, unchanged: C4 (finite reduction), C8 (irrelevance for a fragment), C9 (signature checking, a conjecture to establish or narrow). Next review point: the author’s reading of these statements, before any decision procedure or compiler change.
The author accepted this milestone (2026-10-20) with qualifications, recorded here: rows as arbitrary maps suit the universal identities, but existence and decision results must guarantee finite witnesses; problems as predicates prove no algorithm; the program proofs use a fixed six-label universe and do not show that further labels can be ignored (that is the reduction’s work). The milestone does not establish inference completeness, signature decidability or compiler correctness.
Authorized: constraint syntax and its interpretation; substitution and the binding-equation correspondence, proved; the finite-reduction theorem for existential call-site satisfiability, stated and brought back before any proof. C8 and the general C9 are deferred; forced or written splits (§4) let C8 wait.
Type variables and row variables are numbered, and at a call site all
are flexible. Type expressions: base types, functions, type variables,
and record types written as fields plus row tails, { l1: t1, ...,
...r, ...s }, nested to any depth. Atoms: t = u, r lacks { l },
r disjoint s, and the unsatisfiable ff. A problem is a finite list
of atoms. Ground types are base types, functions and records whose rows
map labels to ground types. A record type denotes the disjoint
composition of its field rows and tails, and is undefined if two of
them share a label; an equation holds when both sides are defined and
equal. User-defined type constructors are not modelled.
Subst.lean, Correspond.lean, Binding.lean)
A substitution is a finite list of bindings, type variables to type
expressions and row variables to fields plus tails, applied once and in
parallel. eqs σ is x = σ(x) for each binding (for a row variable,
{ ...r } = { fields, ...tails }). Proved:
subst_evalT: if an assignment satisfies eqs σ, every expression
and its substitution have the same value (both undefined, or both
defined and equal).subst_sat: under eqs σ, a problem and its substitution have the
same solutions; lacks and disjoint on a bound row variable become
the corresponding facts about its written fields (checked statically)
and its tails.binding_correspondence (§2.1 (i)): if every solution of C
satisfies eqs σ, then C and eqs σ ++ Cσ have exactly the same
solutions.bindings_needed: the equations cannot be dropped. With C the
single atom x = true and σ = [x ↦ true], Cσ is true = true,
satisfied by an assignment with x = false, which C excludes.Dependencies: propext, Quot.sound, Classical.choice (partial
composition is defined classically; disjointness of arbitrary maps is
not decidable). Mutant: with lacks ignoring a bound row’s fields,
subst_lacks fails.
The author’s review of the first statements (2026-10-20) found four points; each is applied:
evalT_restrict (if t evaluates to g under
θ, and t’s written labels are in L, then t evaluates to g
restricted to L under θ restricted to L). The first text’s
“commutes with evaluation” was too strong.FreshFor now asks for distinct fresh indices
only for the pairs a pattern uses (a row variable of C, a label of
C) and only that they avoid C’s type variables. freshAlloc
allocates them explicitly (past the largest type variable, numbered
by position in pairsOf C), and freshAlloc_fresh proves it meets
FreshFor. Enumeration is now its own statement, R2Enum.C violate, so binding_correspondence does not
apply. R2 is proved with the pointwise subst_sat, building in each
direction an assignment that satisfies the chosen pattern’s
equations. R2 preserves existence across the enumerated patterns; no
single pattern preserves C’s solutions.R3Spec now takes DecidableEq B.Proved (Lean; clean build, no sorry; axioms propext, Quot.sound,
Classical.choice):
r1): C has a solution iff it has one in which every row,
at every depth, has its labels among those written in C
(AssignWithin (labelsOf C)). Such a witness is finite.r2): for any fresh with FreshFor C fresh, C has a
solution iff some pattern π gives a closed problem
patternProblem C π fresh with a solution.r2Closed): every pattern’s problem mentions no row
variable.r2Enum): the same with π ranging over the finitely
many patterns patternOf S, S a sublist of pairsOf C
(2^|pairsOf C| of them); every pattern agrees on pairsOf C with
one of them (patternProblem_congr, filter_mem_subsets).freshAlloc_fresh): FreshFor C (freshAlloc C) for
every C, so R2 and R2Enum apply to every problem.Supporting results: sat_congr (a problem’s truth depends only on the
variables it mentions), evalF_patternFields (a pattern’s record over
labels without repeats evaluates to its pattern row), dedup with
mem_dedup and nodup_dedup (the written labels without repeats).
Not vacuous: freshAlloc_fresh discharges R2’s premise for every
problem. Mutant (scratch copy, not kept): with every row variable
sharing one fresh type variable per label (fresh 0 l for fresh r
l), R2’s forward proof fails where it reads each row variable’s own
field types: the independence the reduction relies on.
What represents unnamed labels. Nothing, at a call site: R1. The argument holds only because every variable is existential; a rigid row ranges over labels nobody wrote, so signature checking (C9) needs a stand-in for “the rest” of each rigid row, and R1 does not transfer.
Why field types stay independent. Each row variable gets its own
type variable at each label (fresh r l), and each record written in
C is a separate expression; nothing relates two of them unless an
equation in C does. The mutant above shows the proof depends on it.
Program 11: q’s pattern has a absent, and { ...q, a: 1 } and {
...q, a: true } are two expressions with unrelated a fields.
For the author’s review before any implementation.
Input. A closed problem: atoms t = u and ff only (R2′; no
lacks or disjoint, which mention row variables), over base types,
functions, type variables and records written as fields with no tails.
Algorithm (Robinson 1965; in the transformation form of Martelli and Montanari 1982, published), as a computable Lean definition:
ff occurs, answer false.t = u holds iff t and u have equal values.t = t (syntactically equal): drop.x = t or t = x, x a type variable: if x occurs in t
(and t is not x), answer false (occurs check: ground types are
finite trees); otherwise substitute t for x in the remaining
equations and record the binding.b = b' (base types): drop if equal (DecidableEq B), else false.t → u = t' → u': replace by t = t' and u = u'.Termination measure (Martelli and Montanari; Baader and Snyder,
Handbook of Automated Reasoning, §2): lexicographic on (the number of
distinct type variables in the equations, the total size of the
equations, the number of equations of the form t = x with t not a
variable). Each step lowers it: eliminating a variable removes one from
the equations (the occurs check ensures it does not reappear);
decomposition and dropping keep the variables and lower the size;
orienting t = x to x = t lowers the third component. Records count
as the sum of their field sizes plus one.
Correctness statements to prove (with f the computable
definition above):
f C = true then C has a solution. Witness:
the final substitution, with every unbound type variable given the
empty record {}, which exists for any B.C has a solution then f C = true. Each
transformation preserves the set of solutions (on the problem’s
variables), and each false answer has no solution (a constructor
clash, an occurs-check failure on finite trees, unequal label sets,
a repeated label, or ff).R3Spec f from U1 and U2.decideCall C, which tries f on patternProblem C
(patternOf S) (freshAlloc C) for each sublist S of pairsOf C,
answers true iff C has a solution (R2Enum, freshAlloc_fresh,
R2′, R3).What this does not give. decideCall decides whether a call has a
solution: it can find a pattern, but choosing one is not solving, since
one pattern does not preserve the call’s solutions (§10.3, point 3). A
Solved verdict with a residual (§2.1) needs more: either the
alternatives kept, or a pattern shown forced (C7). Signatures (C9) and
split irrelevance (C8) are untouched. The search tries up to
2^|pairsOf C| patterns (a worst-case fact, §4.8’s complexity note).
Lean obstacles expected. Decidable equality for the mutual type of
expressions (derived or written by hand); substitution inside the
algorithm reusing substT with a type-only substitution; the measure’s
proof for the record case; and the lemma that every expression of a
closed problem with label-distinct records is defined.
Authorized after the author accepted the reduction milestone. Proved in
Lean (research/composition-proofs/Composition/Unify/; clean build, no
sorry; axioms propext, Quot.sound, Classical.choice, the last
from the classical semantics of composition, not from the decider).
The decider. unify is §11’s algorithm as a computable Lean
definition over lists of equations: drop x = x; eliminate x = t and
t = x by [x ↦ t] after the occurs check; compare base types
(DecidableEq B); decompose functions; decompose records one field at
a time (removeField: the left record’s first label must occur in the
right record, the field types are equated, and the remaining fields are
compared); anything else is false. decideClosed first checks that
every atom is an equation between well-formed sides (no tails, no
repeated label), and decideCall tries decideClosed on every
enumerated pattern with the explicit fresh allocation.
Statements proved.
unify is accepted by Lean’s well-founded recursion
on the measure (distinct type variables, total size), each of its
eight recursive calls proved to lower it, the record step included
(removeField_size: two fewer units).unify_sound): on equations between well-formed
sides, unify E = true gives a solution.unify_complete): on such equations, a solution
gives unify E = true.r3): R3Spec decideClosed, from U1, U2 and two facts about
closed problems: a well-formed expression is always defined
(wf_defined), and a closed expression that evaluates is well formed
(defined_wf), so a problem failing the check has no solution.decideCall_correct): decideCall C = true iff C has a
solution, for every call-site problem, from R2Enum, freshAlloc_fresh,
R2′ and R3.The reviewer’s two points.
x = t (eqs_elim) and the pointwise subst_sat, in both
directions (elim_sound, elim_complete), not through the remaining
equations alone. The witness is built as the recursion returns: the
solution of the substituted rest is extended with x set to the value
of t under it, so a chain x = y, y = Bool resolves y first and
then x; the examples check both a consistent and an inconsistent
chain.G’s records hold
arbitrary functions, so ground values are not assumed to be finite
trees. The immediate-part relation is proved well-founded by G’s own
induction (acc_part, through the nested Option), so no value is a
proper part of itself (not_part_self, which depends on no axioms);
a variable inside an expression that is not a variable denotes a
proper part of its value (proper_occurs), so x = t then has no
solution (occurs_unsat).Executable examples (Examples.lean, #guard, checked at build
time by Lean’s evaluator; a planted false guard fails the build):
program 4 (true), its negative control (false), program 4 without its
lacks (true: satisfiable, two splits); program 5 (true) and both
parts lacking y (false); program 11 (true) and its negative control
(false); program 3’s overlap (false); Gonzalez’s contradictory residual
(false, and true with one use), self-unification (true), and nested
field substitution (false at the wrong type, true at the right one);
the occurs check x = x → Int (false); chains (true, false); a record
repeating a label (false). These rest on Lean’s compiler and evaluator,
not its kernel; decideCall_correct gives them their meaning.
Mutant. With a base-type mismatch answering true, unify_sound no
longer checks. Mutants that add or remove a recursive call fail first
in the positional termination proofs, a structural failure and weaker
evidence.
Semantic model. Unchanged: the same syntax, ground values (rows as
arbitrary maps) and semantics as §10. Added: the computable checks
wfT, noDupB, and the decider; R3Spec’s DecidableEq B (§10.3).
What this does not give. decideCall decides whether a call has a
solution. It does not select a split for compilation, does not justify
a compiler’s Solved verdict with a residual (§2.1), and does not touch
signatures (C9) or split irrelevance (C8). It tries up to
2^|pairsOf C| patterns, a worst-case fact. The step from Waxwing
source to constraint problems is not formalized; the examples are
written by hand.
The author accepted this milestone (2026-10-20): for every problem in the formalized call-site language, a terminating, computable function decides satisfiability, with checked soundness and completeness. Not established: a complete Waxwing checker. The translation from Waxwing source is hand-written, and the formal language does not cover every type construct of the compiler.
Authorized: the quantified language, a proposed procedure with its sources and departures, separate claims, examples separating satisfiability from validity, and an account of unnamed labels in rigid rows. Not authorized: proofs of the procedure, the procedure’s implementation, C8, extracting a split, residual alternatives, compiler integration. Lean: research/composition-proofs/Composition/Sig/ (definitions and checked examples only; no procedure).
SigProblem, ValidAll)A signature problem has rigid type variables and rigid row variables
(the declaration’s ∀, read inside the body), declared clauses D,
and body constraints B, all in the call-site atoms of §10 (=,
lacks, disjoint, ff).
Scoped): D mentions rigid variables only. In Waxwing,
D is the where clauses (lacks with written labels, disjoint
between rigid rows); B is everything the body’s checking produces,
including the instantiations of called functions (flexible) and the
links between parameters, results and their uses.ValidAll, named Valid until §14.8): for every
rigid assignment satisfying D there is a flexible assignment
satisfying B, rigid variables taking their values from the first
and flexible ones from the second (combine). Every flexible
variable may depend on every rigid one; no rigid variable depends on
a flexible one; there is no further alternation. Rigid variables are
never bound by solving.| Problem | Satisfiable D ∧ B |
Valid | Lean |
|---|---|---|---|
∀ r. body needs r lacks { l }, no clause |
yes | no | lacks_sat_not_valid |
∀ r s. body needs r disjoint s, no clause, no label written |
yes | no; yes over rows restricted to written labels | unnamed_labels_matter |
the same with where r disjoint s |
yes | yes | declared_disjoint_valid |
∀ a. body needs a = Int |
yes | no | rigid_type_not_valid |
program 6, forwarded with where r disjoint s |
yes | yes | p6Sig_valid |
∀ r s. r disjoint s ⇒ ∃ u v. { ...u, ...v } = { ...r, ...s }, u lacks admin |
yes | yes, with u, v chosen by which of r, s holds admin |
depSig_valid |
the same, either fixed choice of u |
fails for some r, s |
depSig_needs_dependence |
The second row is the reason the existential reduction must not be
reused: restricting rigid rows to the written labels (ValidWithin)
validates a signature that fails when both rows hold the same unwritten
label. The last two rows show that the flexible solution must be
allowed to depend on the rigid assignment.
A rigid row is split into its written part (its presence and field
types at the labels written in D and B) and its rest (every
other label). No atom names a label of the rest, so no constraint can
require a particular unwritten label to be present or absent. Three
facts about rests matter, and the procedure keeps each:
{ ...r }
with a closed record therefore fails for some instance.D declares them
disjoint (unnamed_labels_matter). A composition containing both
is defined for every instance only under that declaration.R1 does not transfer: it restricts existential solutions, and a rigid row is universal. The restriction it licenses for flexible rows is unaffected.
Input: a scoped signature problem whose D consists of lacks and
disjoint atoms (Waxwing’s clauses). Let L be the labels written in
D and B, and R the rigid rows.
D has no solution (decided by decideCall, rigid variables
read as flexible), the declaration is refused (§2.3).L, present or absent, consistent with D (a lacks
clause forces absence; a disjoint clause forbids presence in both).B_π: replace each rigid row r by the
record of its present labels at fresh rigid type constants
a(r, l), with one rest constant ρ̂r as its tail. Rigid type
variables become rigid type constants.B_π has a flexible solution, where a rigid type
constant equals only itself (or a flexible variable bound to it), a
rest constant is an opaque part that a flexible row may contain
wholly or not at all, and a composition containing both ρ̂r and ρ̂s
is defined only if D declares r disjoint s (or s disjoint r).| Part | Source | Status |
|---|---|---|
| rigid type variables as constants (skolemization) | Odersky and Läufer, POPL 1996; Peyton Jones, Vytiniotis, Weirich and Shields, JFP 2007; standard in GHC, PureScript, Koka | published; cited, not re-read for this section |
| rigid row variables as opaque tails | implemented in PureScript (probe: program 6 compiles) and Koka’s effect rows | implemented elsewhere; a formal source to be found |
entailment of declared lacks and disjoint |
Gaster and Jones 1996 (lacks in qualified types); Chlipala, Ur, PLDI 2010 (disjointness from assumptions) |
published; cited, not read |
| patterns over rigid rows and written labels | §10’s R2 with ∀ in place of ∃ |
derived |
| rests as opaque parts with a declared-disjointness side condition | this dossier | derived; the departure needing proof |
| step 3’s solver | R3’s unifier extended with constants | derived; to be written and proved |
a(r, l) to its
value and each ρ̂r to r’s rest turns it into a solution (a
homomorphism that commutes with evaluation); compositions containing
two rests stay defined because their rows are declared disjoint.
Unresolved.θ*: rigid type constants as pairwise distinct ground values that
nothing in B can denote (records over fresh labels, needing
infinitely many labels), and rests as fresh labels, with one fresh
label shared by both rests of every pair not declared disjoint. A
solution at θ* then corresponds to a step-3 solution (fresh values
behave as constants), and undeclared compositions of two rests fail
at θ* as step 3 says. The genericity lemma (“fresh values behave as
constants”) and the claim that rests may be taken non-empty without
loss (no atom can require an unwritten label to be absent, except
through a closed record, which then fails at θ* as it must) are the
main obligations. Unresolved.2^(|R|·|L|)),
each decided by a terminating step 3. Unresolved until step 3 exists.depSig_valid and depSig_needs_dependence require.θ* is a concrete rigid assignment satisfying D, and step 3’s
refutation transfers to it (part of S2), so the evidence meets C10
(c10, proved).The author’s review (2026-10-20) found two counterexamples. Both are checked independently in the semantic model (research/composition-proofs/Composition/Sig/Adversarial.lean):
splitSig_valid, wholeRest_fails). ∀ r s t. s
disjoint t ⇒ ∃ u v. r = u ⊎ v ∧ u disjoint s ∧ v disjoint t is
valid: u takes r’s fields at labels s lacks, v the rest. No
label is written, and r = u ⊎ v confines u and v to r, so
P9’s whole-rest placement allows only u = r or u empty; each
fails for some permitted assignment. S2 is refuted for P9 as
written.recSig_not_valid,
recSig_hard_instance_solvable). ∀ α. ∃ r. α = { ...r } is invalid
(α may be a function type), but at S2’s proposed hard instance, α a
record over a fresh label, the body has a solution: a row variable
absorbs the record whole. Fresh labels prevent naming fields; they do
not make a value uninspectable. S5’s hard-instance construction is
inadequate.Following the author’s process direction (docs/engineering.md, “Adversarial review of proposed procedures”), every restriction P9’s representation adds beyond the semantics, and a challenge to each:
| Restriction | Believed harmless because | Challenge | Status |
|---|---|---|---|
| a rest is placed in a flexible row wholly or not at all | no atom names an unwritten label | splitSig: a valid signature divides r’s rest by membership in s |
refuted (completeness) |
| one generic solution per written-label pattern | instances agree on written labels | the same: the solution depends on unwritten labels’ membership in other rigid rows | refuted as stated |
| rigid type constants stand for arbitrary types; a fresh record realizes one | fresh labels cannot be named | recSig: a row variable absorbs any record; similarly an arrow is matched by ∃ x y. α = x → y |
the proposed construction refuted; whether any uniform hard instance exists is open |
| distinct rest constants | rows are different variables | instances may make rests equal or overlapping; a success relying on distinctness is unsound | soundness obligation (below) |
a composition holding two rests needs a declared disjoint |
undeclared rests may overlap | soundness pass: ∀ r s. ∃ u v. u = r ∧ v = s ∧ u disjoint v, no clause, is invalid; a side condition on compositions alone would accept it, since u and v hold distinct rests |
side condition must cover every requirement that two rests be disjoint: compositions, disjoint atoms, and records holding both |
Revised standing.
D and a refutation of the body at it). Its
soundness claim S1 stands, restated: the disjointness side
condition covers every requirement that two rests be disjoint.
Unresolved; it must survive a soundness adversarial pass before any
proof.recSig); whether some other
uniform hard instance exists is not established. Until one is,
counter-instances are found per failure.r disjoint
s empties every region in both; each region is present in each of
its rows at that row’s own field types, so the opaque parts are
(region, row) pairs. splitSig’s u is the regions in r but not
s, its v those in r and s. Conjecture CR: no constraint
in this language distinguishes two unwritten labels of the same
region, so region granularity suffices. Unresolved; a lead, not read:
Kuncak, Nguyen and Rinard, Deciding Boolean Algebra with Presburger
Arithmetic (JAR 2006), which decides set constraints through Venn
regions. Before any proof, CR gets its own restrictions table and the
bounded oracle below.Authorized (2026-10-20): the research oracle, source reading and adversarial exploration. Not authorized: proofs of CR, adopting P9s, compiler changes. A good bounded comparison earns another statement review; it does not establish completeness.
The oracle (research/composition-assessment/sig-oracle/, README
there). Bounded semantics: the written labels plus two unwritten ones;
rigid rows over Int/Bool; type variables over Int, Bool, {},
(Int->Int); flexible rows over those four; flexible type variables
also over the values the problem’s own subexpressions build. “Invalid”
means invalid in the bounded model, a candidate counter-instance only.
P9s runs in its generic model with the widened side condition.
| Run | Problems | P9s valid, bounded invalid | Bounded valid, P9s unresolved |
|---|---|---|---|
| hand challenges (aliases, chains, rest equality, rigid types, nested records, field types, empty regions) | 20 | 0 | 1 (split) |
| generated, plain grammar | 3000 | 0 | 0 |
| generated, split-biased grammar | 5000 | 0 | 16, all the split shape up to symmetry |
Power checks: P9s without its side condition gives 15 candidate
unsoundnesses in 300 problems, each still invalid with larger bounds;
the plain grammar has little power against completeness (it never
produced split), so the biased mode was added. Two of my challenge
predictions were wrong and are recorded in the README (a trivially
valid challenge, and a bounded-domain artifact that was then fixed).
Reading of the evidence: no case was found where P9s accepts an invalid problem, within these bounds and shapes. That is bounded evidence for S1, not a proof; S1 stays unresolved.
The BAPA reading (research/composition-assessment/bapa/README.md; Kuncak, Nguyen and Rinard, JAR 2006, read in full from the author preprint; FroCoS 2009 and VMCAI 2010 skimmed).
disjoint as an empty
intersection, lacks l as non-membership of a singleton, the
definedness of a composition as an emptiness atom, record equations’
presence half as set equality. BAPA allows ∀∃ over sets and is
decidable (Theorem 3, p.15). So the label-membership half of C9 has a
published decision procedure; it is not CR.recSig). Nothing read covers a quantified logic of sets
with per-element attributes; VMCAI 2010 shows quantified BAPA with
one unary function is undecidable, by a cardinality argument that
Waxwing’s language lacks, so it does not settle Waxwing’s case.Revised standing of CR. CR as stated (whole regions suffice, by
indistinguishability) has no support in the reading and is not to be
pursued as stated. The reading’s open obligations for a typed version,
in its list: whether Waxwing’s positive atoms (no negation, no
cardinality) need only emptiness per region; whether flexible rows ever
need part of a region (in split whole regions suffice); how
per-label field types are quantified and equated; nested records and
record-valued type variables; finite rows over infinitely many labels
(§8.1 of the paper states the lemma without the algorithm). These are
questions for the next statement review, not claims.
The author’s review (2026-10-20) separates two tracks:
A proved P9s could certify the signatures it handles and answer Unresolved elsewhere. That would not approve its limitations as Waxwing’s final behaviour: completeness research and the acceptance-program criteria stay open.
Region questions, kept as questions. Each needs its own argument;
split establishes none of them (in split whole regions happen to
suffice, which is one example, not a lemma).
The presence-to-BAPA correspondence, stated. §13.8’s “presence fits BAPA” named similar operators; the review asks for the translation. Four semantics are in play and differ:
| Semantics | Labels | Rows | Where |
|---|---|---|---|
| Waxwing | infinitely many (identifiers) | finite | the language |
the dossier’s Valid (now ValidAll) |
any type Label |
any partial map, infinite ones included | Rows.lean, a definitional choice “for review” |
| JAR BAPA (main text) | a finite universe U, MAXC = \|U\| |
every set is finite | syntax Fig. 3, p.5; MAXC p.6 |
| JAR BAPA §8.1 | a countable universe | finite or infinite, inf(b) flags |
pp.25-26, a sketch |
Finding: the dossier’s Lean Valid quantifies over arbitrary partial
maps. Rows.lean’s note that its theorems hold “for all partial maps,
finite ones included” is true of universally quantified statements; it
does not carry a ∀∃ statement to finite rows: restricting the rigid
side alone only removes cases, but finite semantics restricts the
flexible witnesses too, and a witness over partial maps may be
infinite. Which
of §13’s Lean examples hold over finite rows is not checked. S1 below is
stated for both semantics.
The proposed translation (statement; no claim it is correct):
{ l1: _, ..., ...r1, ..., ...rk } by {l1} ∪ ... ∪ dom r1 ∪ ...,
defined iff the parts are pairwise disjoint.lacks r l as e_l ∩ x_r = 0; disjoint r s as
x_r ∩ x_s = 0; an equation as set equality of both sides plus one
emptiness atom per pair of parts on each side; ff as false.l is a set variable e_l with
|e_l| = 1, pairwise disjoint, quantified outermost.∀ over rigid sets, ∃ over flexible ones.|L| elements. Formulation F2:
§8.1’s countable universe with inf(x) = 0 on every quantified set,
closer to Waxwing literally but resting on a sketch.Obligations of F1, none discharged: (a) a flexible row never needs a
label outside the written labels and the rigid rows’ domains (a
candidate argument: removing such a label from every flexible row
preserves each presence atom, since no rigid row or written field holds
it); (b) with (a), rigid assignments over a finite universe embed into
Waxwing’s labels and back; (c) the written-label singletons’ place in
the prefix (∃ or ∀ outermost should agree, by symmetry of a language
with no element symbols; unproved); (d) “every finite universe” as one
PA sentence by quantifying MAXC after the algorithm α, a step of this
reader’s, not checked against the paper. Separately, unproved: typed
validity implies presence validity (a typed solution gives a presence
solution, and every presence assignment extends to a typed one), so
the translation could refute but not confirm a typed signature.
Authorized (the author’s review of §13.8, 2026-10-20): P9s’s soundness dossier, with the exact symbolic assignments, disjointness obligations, acceptance rule and the interpretation into arbitrary ground rigid assignments. Not authorized: proofs (they follow approval of these statements), adopting P9s, compiler changes. Status labels as at the head of this dossier; nothing here is proved.
The statements describe what the oracle runs (sig-oracle/p9s.mjs), without its bounds on the flexible search. The bounds only remove candidate solutions, so every acceptance the oracle reports is an acceptance in the sense below.
P (§13.1): rigid type
variables Tr, rigid rows R, clauses D, body B. L is the set
of labels written in D and B. Δ is the set of ordered pairs
(r, s) and (s, r) for each disjoint r s in D. P9s reads only
D’s lacks and disjoint atoms, and S1 below is stated for any
scoped D.π : R × L → Bool. It is consistent
with D if lacks r l ∈ D gives ¬π(r, l) and disjoint r s ∈ D
gives ¬(π(r, l) ∧ π(s, l)) for every l ∈ L. The pattern of a
rigid assignment θ is π_θ(r, l) = (θ.row r l ≠ none).Label ⊕ R; ρ_r is
inr r, the rest label of r. Base types B ⊕ K, with
constants A(r, l) for each r ∈ R, l ∈ L (as p9s.mjs builds
them; those with ¬π(r, l) occur in no rigid row but σ may use
them), R(r) for each r ∈ R, and T(n) for each n ∈ Tr.
P’s syntax is carried over by inl on labels and base types.γ_π: row r is
{ l: A(r, l) | π(r, l) } ∪ { ρ_r: R(r) }; type variable n is
T(n).W_π (the symbolic assignments). A
generic row is well-formed if its field types are well-formed and:
(W1) its labels lie in inl L ∪ inr R;
(W2) it holds ρ_r only at R(r);
(W3) for distinct r, s whose rest labels it holds, (r, s) ∈ Δ.
A generic type is well-formed if every row occurring in it, at any
depth, is.⊨Δ, otherwise
§10’s Holds):
(D1) a record expression’s value is undefined unless the row it
composes is well-formed (checked at every record expression, at any
depth);
(D2) disjoint x y holds iff the rows share no label and every pair
of distinct rests ρ_r in x, ρ_s in y has (r, s) ∈ Δ.P iff for every pattern π
consistent with D there is a flexible assignment σ_π with values
in W_π such that combine(γ_π, σ_π) ⊨Δ B. Otherwise it answers
Unresolved, never Contradiction (§13.7).The family (σ_π) is a certificate. As defined here it is
semantic: σ_π’s rows are functions, so W1 and equality of values are
not decidable on it (the author’s review, §14.8). Checking certificates
mechanically needs a finite syntactic representation of generic values;
that is deferred. Finding one is a separate question again (S3, the
step-3 solver). Neither is needed for soundness.
Given θ with θ ⊨ D and π_θ = π, and any ground type c, define
h = h_{θ,c} on generic values:
h(inl b) = b; h(A(r, l)) = θ.row r l if π(r, l) (present,
since π_θ = π), and c otherwise; h(T(n)) = θ.ty n;
h(R(r)) = c; arrows homomorphically.ρ: written labels map field by field,
hRow ρ (l) = h(ρ(inl l)) for l ∈ L; each rest label ρ_r in ρ
is replaced by rest_θ(r), θ.row r restricted to labels outside
L. A record maps to the record of hRow of its row.hσ = (h ∘ σ.ty, hRow ∘ σ.row).c is arbitrary: R(r) used as a type on its own (not as a rest’s
field type), and A(r, l) with ¬π(r, l), carry no information about
θ, and S1 holds for every choice (S1-fin for every finite c).
θ ⊨ D implies π_θ is consistent with D.ρ, hRow ρ is defined
(no label occurs twice), and for well-formed ρ, ρ' whose
composition is defined and well-formed,
hRow(ρ ⊎ ρ') = hRow ρ ⊎ hRow ρ', defined. Argument to formalize:
written labels stay written; rests lie outside L; two rests in one
well-formed row are declared disjoint (W3) and θ ⊨ D makes them
disjoint; one rest twice is excluded by the generic composition.t and σ with values in
W_π: if t evaluates to g under combine(γ_π, σ) with (D1),
then t evaluates to h(g) under combine(θ, hσ). Key cases: a
rigid tail, hRow(γ_π.row r) = θ.row r (uses π_θ = π); a rigid
type variable, h(T(n)) = θ.ty n; a composition, L2; nested records
and arrows, induction.a of B,
combine(γ_π, σ) ⊨Δ a implies combine(θ, hσ) ⊨ a: an equation by
L3 (h is a function); lacks r l (every lacks label is in L):
for a flexible r because hRow preserves presence and absence at
written labels, for a rigid r because π_θ = π (the rigid side of
combine(θ, hσ) is θ, not an image under h); disjoint by (D2),
W3 and θ ⊨ D, rests lying outside L; ff never holds.P, then ValidAll P. Shape: given
θ ⊨ D, L1 gives a consistent pattern, the certificate gives
σ_{π_θ}, and hσ satisfies B at θ by L4.ValidFin (to be defined: rigid and flexible rows finite at every
depth), for any finite c. By W1 generic rows are finite, and
hRow adds only θ’s finite rests, so hσ is finite when θ and
c are.What S1 does not claim: completeness (split is valid and
Unresolved), any Contradiction verdict, termination of a search for
certificates, or anything about Q1-Q3.
Restrictions the generic model adds beyond the semantics, each with the challenge built for it. This pass looks only for acceptances that do not transfer; completeness was §13.7’s pass.
| Restriction | Believed harmless because | Challenge | Status |
|---|---|---|---|
| a rest is one label at one constant | h expands it wholly into θ’s rest, the same rest wherever it occurs |
equal-rests, alias, alias-chain, nested-alias |
checked (bounded) |
R(r), and A(r, l) with ¬π(r, l), usable as types on their own |
neither occurs in γ_π as a type on its own, so nothing ties it to θ; h sends both to c |
S1 for every c; the oracle runs two |
argument only: no solution found in 1,678 solved patterns uses either (the search tries ground values first), so the two c were never exercised (found by the adversarial reviewer) |
| generic rows hold only written labels and rests (W1) | needed by h: a generic label k ∉ L would clash with a rest holding k |
soundness requires it of h; whether a looser model still gives sound verdicts is not claimed |
restriction kept |
| (D1) at every record expression, at any depth | compositions inside fields expand too | nested-alias (declared, accepted), nested-alias-undeclared (not accepted) |
checked (bounded) |
(D2) on disjoint atoms |
two rests may overlap unless declared | alias (undeclared): the mutant without the side condition accepts, and the check finds the failure |
checked; mutant fails |
| W3 on rows not composed anywhere | hRow must be defined on every value of σ, used or not |
a row holding two undeclared rests, used only by lacks: verdicts unaffected ({} also works), h undefined |
needed by h; not exercised: no such challenge exists, and the mutant’s L2 failures all come from composed rows (compose-undeclared, nested-alias-undeclared) |
| patterns fix only written labels | θ’s other labels are its rests, outside L |
L1; lacks-declared, tyvar-field |
checked (bounded) |
distinct constants A(r, l) |
atoms are positive: identifying constants under h cannot falsify an equation that holds |
types-differ (generic rejects; incompleteness only) |
argument in L4 |
sig-oracle/check-interpretation.mjs checks L2, L3 and L4 directly. For
every pattern P9s solves (also in problems another pattern leaves
Unresolved), it takes the generic solution found, maps it by h
(sig-oracle/interpret.mjs) into every bounded rigid assignment of that
pattern satisfying D, for two choices of c, and checks that h is
defined, that every subexpression of B the generic model defines
evaluates to the image of its generic value, and that B holds.
| Run | Problems | Patterns solved | Instances | L2, L3, L4 failures |
|---|---|---|---|---|
| challenges (23, three added for aliases and nesting) | 23 | 20 | 1,898 | 0 |
1000 5 (plain and split grammars, with the challenges) |
2,023 | 1,307 | 261,950 | 0 |
300 9 larger (three unwritten labels, {} as a rigid field type) |
623 | 391 | 6,255,998 | 0 |
| mutant: no side condition, challenges only | 23 | 28 | 3,806 | L2 672, L4 656 |
mutant, 300 5 |
623 | 576 | 183,204 | L2 25,712, L4 55,888 |
Bounded evidence for L2-L4 at these sizes; no proof. L3 never fails
alone in the mutant (a clash stops h first), so its separate power is
untested. The rigid side sampled is small: rigid type variables over
Int, Bool, {}, (Int->Int), rigid fields Int and Bool (and
{} with larger). Rigid type variables that are records with labels,
nested rigid fields and infinite rows have no check behind them; for
those the hand arguments of L2-L4 are all there is.
Adversarial review (an independent reviewer, tasked with finding a
false statement or missing case; 2026-10-20). No counterexample to S1
or L1-L4. Corrections taken: constants A(r, l) with ¬π(r, l), which
the code builds and h left undefined (now sent to c, in the
statement and in interpret.mjs); L4’s reason for lacks on a rigid
row; S1-fin needs a finite c; two table rows above claimed checks
that never ran; three slips in §13.9 (count of semantics, page of
Fig. 3, the finite-rows sentence).
h, L1-L4, S1, S1-fin).ρ_r at a constant R(r), and
its expansion by h, are this dossier’s (derived, not from a source;
skolemization itself is published, §13.4). Flagged under ADR 014 as
novel machinery.Valid itself should move to finite rows (§13.9’s finding).W_π, ⊨Δ), Sig/Interp.lean (h, L2, L3), Sig/Soundness.lean (L1,
L4, S1, S1-fin).The author’s review (2026-10-20) approved proof work on L1-L4, S1 and S1-fin, with two clarifications, and decided the four points of §14.7:
B meet it. Rigid variables need no
separate premise (the generic assignment gives each its constant).h are
authorized for investigation and proof under ADR 014. This does not
authorize adopting P9s in the compiler.Valid
is renamed ValidAll (all partial maps, infinite rows included), and
ValidFin is added beside it: rigid values and flexible witnesses
are finite at every depth. No earlier statement changed meaning.D is impossible,
ValidAll and ValidFin hold vacuously, but Accepts (and
checkAll, §15) need not accept, since pattern consistency ignores
equations and ff (wording corrected in the author’s review of §15).
Waxwing refuses such a declaration separately (§2.3).A change found during formalization, for review. The proofs need less than §14.2 states, and they assume only what they need:
| §14.2 | In the proof | Why |
|---|---|---|
| W1 (rows hold only written labels and rests) | dropped | h reads a row only at written labels and at rests of rigid rows; an unwritten inl label is ignored |
W2 (a rest only at R(r)) |
dropped | h ignores the field at a rest label |
W3 on every row of σ |
only on values the body’s equations build (D1) | h needs a unique source for an unwritten label only inside a composition; D2 covers disjoint atoms |
h(A(r, l)), h(T(n)) |
c also when r or n is not rigid |
keeps h finite (S1-fin) without assuming anything of θ’s non-rigid values |
| certificates | finite at every depth (FinAssign), used only for S1-fin |
The acceptance rule is therefore weaker, and S1 stronger, than approved. W1-W3 remain what P9s’s search produces (the oracle’s certificates satisfy them); they are no longer premises of the theorem.
Proved (research/composition-proofs/Composition/Sig/; Lean 4.35,
lake build clean, no sorry, standard axioms only):
| Statement | Lean | File |
|---|---|---|
generic model, D1, D2, Accepts |
Const, liftT, WFG, genAssign, HoldsG, Certifies, Accepts |
Generic.lean |
| finite semantics | FinG, FinAssign, ValidFin |
Finite.lean |
h |
interp, hRow, hAssign |
Interp.lean |
| L2 | restWit_unique, hRow_disjoint, hRow_union, composeAll_hRow |
Interp.lean |
rigid rows map to θ |
hRow_genRow, combine_hAssign |
Commute.lean |
| L3 | interp_evalT, interp_fieldRows |
Commute.lean |
| finiteness preserved | interp_fin |
FinitePres.lean |
| L1 | consistent_presenceOf |
Soundness.lean |
| L4 | holds_interp |
Soundness.lean |
| S1 | s1 : Accepts P → ValidAll P |
Soundness.lean |
| S1-fin | s1_fin : Accepts P → ValidFin P (with c the empty record) |
Soundness.lean |
Mutants (isolated copies, deleted): replacing D1’s well-formedness with
True breaks L4’s equation case, and replacing D2’s declared pair with
True breaks its disjoint case. This shows the proof uses both
obligations. The oracle’s mutant (§14.6) shows that without them
acceptance would be unsound.
The disclosed gaps, exercised deliberately
(sig-oracle/deliberate.mjs). Five hand-built certificates, each first
checked in the generic model: R(r) as a type on its own, alongside
the rest it names; A(r, l) for a label the pattern marks absent, in a
flexible row and a type variable; a rigid type variable inside a record
with a rest; a rigid row holding a written label, nested in a field; and
the same with the label absent. The rich rigid domain adds rigid
fields {z1:Int} and {a:Bool}, and rigid type variables {a:Int},
{z1:Bool}, {a:{z1:Int}}, ({z1:Int}->Int).
| Run | Instances | L2, L3, L4 failures |
|---|---|---|
| deliberate, default domain | 162 | 0 |
deliberate, rich |
352 | 0 |
challenges, rich |
6,864 | 0 |
generated 300 5 rich (both grammars, with the above) |
242,354 | 0 |
power: h corrupted on present constants, rich |
352 deliberate, 6,864 challenges | L3 96 and 5,376 |
Infinite rows still have no executable check; S1 covers them by proof.
Still open, as separate decisions: completeness (Q1-Q3, split),
the search for certificates and an executable certificate format, the
final acceptance policy for signatures P9s leaves Unresolved, and
compiler integration.
Accepted (the author’s review, 2026-10-20), including the weakened
premises, with one precision kept: Accepts still requires finite
certificate assignments; the milestone removes W1-W3 as blanket
restrictions, not every premise. What is proved: the formal semantic
acceptance rule guarantees signature validity, with finite flexible
witnesses for finite rigid inputs. What is not: the executable oracle’s
acceptances are not certified (§15). This accepts the soundness result;
it does not adopt P9s as Waxwing’s checker.
Proposed by the author (2026-10-20) as the next bounded milestone: a
checked connection from an executable certificate format to Accepts.
Search stays untrusted; whatever it produces must pass a checker proved
to imply Accepts. Under the proof-dossier policy these are statements
for approval; nothing here is written in Lean yet, and nothing is
proved.
| Part | Source | Status |
|---|---|---|
| untrusted search, certificate, verified checker | certifying algorithms: McConnell, Mehlhorn, Näher and Schweitzer, Certifying algorithms, Computer Science Review 5(2), 2011; translation validation, Pnueli, Siegel and Singerman, TACAS 1998, and Necula, PLDI 2000 | published; cited, not re-read for this section |
| finite association lists for records, order-insensitive equality | standard representation of finite maps | standard; no single source |
| the checker’s evaluator, the pattern enumeration | this dossier, over §14’s definitions | derived |
No new semantic machinery: the checker soundly checks Certifies for
finitely represented values (K4, one direction; the converse is not
claimed), and §14’s theorems do the rest.
Assumptions: DecidableEq Label and DecidableEq B (base types must be
compared; R3 makes the same assumption, Reduction.lean), and an instance
DecidableEq (Const Label), to be written in the new file (Generic.lean
derives none). SG is a nested inductive, and Lean 4.35 cannot derive
DecidableEq for it; eqS and the recursions of K2 and K3 are written
by hand.
SG: base (b : GB), arrow SG SG,
record (List (GL × SG)). A record’s list may be in any order; its
denotation looks a label up by its first occurrence, so every list
denotes a finite row.⟦·⟧ : SG → GG, and for rows ⟦fs⟧ : Row GL GG.Ĉ for a pattern: finite lists of type
variable and row variable bindings; an unbound variable denotes the
empty record. ⟦Ĉ⟧ : Assign GL GB.(r, l)
with r ∈ P.rigidRow and l ∈ written P; it denotes
π_p r l = ((r, l) ∈ p). patterns P enumerates every sublist of
P.rigidRow × written P (deduplicated), one per subset.evalS P p Ĉ : TExpr GL GB → Option SG.
Its rigid part is genRow in list form for π_p and mirrors its
checks: inl l only if l ∈ written P and (r, l) ∈ p, rigid rows
only for r ∈ P.rigidRow, constants T(n) only for
n ∈ P.rigidTy. Compositions are defined iff the parts’ denoted label
sets are disjoint (decided on the lists).wfS
recurses only into first-occurrence entries, and eqS compares the
two lookups over the union of both lists’ labels. wfS decides WFG
(W3 at every depth); eqS decides equality of denotations;
checkAtom decides HoldsG for one lifted atom, with D1 and D2 (D2
ranges over the finite P.rigidRow; ff gives false);
consistentS decides Consistent for π_p over D’s atoms.checkCert P p Ĉ := ∀ a ∈ P.B, checkAtom and
checkAll P certs := ∀ p ∈ patterns P, consistentS P p →
checkCert P p (certs p), both Bool, both computable (no
noncomputable, no classical choice), so #eval and #guard run
them.FinAssign ⟦Ĉ⟧ for every Ĉ.eqS s t = true ↔ ⟦s⟧ = ⟦t⟧;
wfS s = true ↔ WFG P ⟦s⟧; consistentS P p = true ↔
Consistent P π_p.p (not only those in
patterns P, since evalS makes genRow’s checks). evalS P p Ĉ t =
some s →
evalT (genAssign P π_p ⟦Ĉ⟧) t = some ⟦s⟧, and evalS P p Ĉ t = none →
evalT (genAssign P π_p ⟦Ĉ⟧) t = none. (Only the first is needed for
soundness; the second makes a rejection mean the certificate fails,
not that the evaluator gave up.)checkCert P p Ĉ = true →
Certifies P π_p ⟦Ĉ⟧.π with Consistent P π there
is p ∈ patterns P with Consistent P π_p and genAssign P π σ =
genAssign P π_p σ for every σ. (Argument to formalize: genAssign
reads π only at rigid rows and written labels; restricting π
there keeps consistency, since restriction only turns presences
off.)checkAll P certs = true →
Accepts P, hence (with §14.8) ValidAll P and ValidFin P.Not stated for this milestone, so that the gap is explicit:
Accepts (unresolved, not proposed): every
semantic certificate can be replaced by the denotation of a syntactic
one. Without it a signature could be accepted semantically and still
have no certificate the checker can see. Not a representation fact
alone: FinAssign σ bounds each value but not how many variables
σ binds, so K7 needs a congruence lemma for HoldsG (it depends
only on the variables an atom mentions, including the rows D2 reads;
sat_congr covers Holds only). Left out to keep the milestone
bounded.| Restriction | Believed harmless because | Challenge | Status |
|---|---|---|---|
| records as lists, first occurrence wins | the denotation is fixed by the lookup; duplicates never change what K4 claims about ⟦Ĉ⟧ |
record [(inl a, {}), (inl a, record [(inr 0, _), (inr 1, _)])], rows 0 and 1 undeclared: the denotation is well-formed, so a wfS walking every entry would make K2’s ← false (found by the adversarial reviewer); wfS and eqS read first occurrences only |
K2, with §15.2 as amended |
| order-insensitive equality | two lists in different orders denote one row | {a, b} against {b, a}; nested records in different orders |
K2 |
| unbound variables denote the empty record | for soundness nothing is needed: K4 is a claim about ⟦Ĉ⟧, which binds them to {} (whether this loses certificates is K7’s congruence question) |
a certificate omitting a variable B uses: checkAtom must evaluate it as {}, not fail open |
K3 |
patterns only over rigidRow × written P |
genAssign reads nothing else |
an unscoped D naming a non-rigid row in lacks: π_p is false there, which consistency allows |
K5 |
D’s satisfiability not checked |
when D is impossible, ValidAll and ValidFin hold vacuously, while Accepts and checkAll need not accept; Waxwing refuses such declarations separately (§2.3) |
with only lacks and disjoint, D is always satisfiable (all rigid rows empty); an impossible D needs ff or an equation |
outside the checker, as approved |
| decidable base types | equality of B is compared |
none in the semantics; a cost on the type B |
assumption |
#guard checkAll on the accepted challenges (alias-declared,
nested-alias, tyvar-nested-rest, nested-same, lacks-declared,
tyvar-field, rigid-type-free, empty-split), with certificates
exported from the untrusted oracle: the oracle finds, Lean checks.#guard that checkAll rejects deliberately broken certificates (a
rest composed with an undeclared rest; a flexible row missing a
required label), so the checker is not vacuous.Files (proposed): Sig/Syntactic.lean (SG, denotation, K1),
Sig/Check.lean (evalS, eqS, wfS, checkAtom, K2-K4),
Sig/Patterns.lean (patterns, K5, K6), Sig/CheckExamples.lean
(§15.5).
Accepts) belongs in this milestone.DecidableEq B and the new DecidableEq (Const
Label) instance.Adversarial review (independent reviewer, 2026-10-20): no false
statement among K1-K6. Corrections taken: wfS and eqS defined on
denotations (a naive walk makes K2 false); the missing DecidableEq
(Const Label); SG’s equality written by hand; evalS takes P
and p and mirrors genRow’s checks, so K3 holds for every p;
“decides” weakened to “soundly checks”; K7’s gap is congruence, not
representation. Confirmed: K1, K5 (restriction only turns presences
off, and both clauses of Consistent are antitone), K6 from s1 and
s1_fin (neither needs Scoped), and the satisfiability row. Also
noted: Consistent ignores eq and ff atoms in D, so even
D = [ff] demands a certificate per pattern; Accepts is never
vacuously true.
The author’s review (2026-10-20) approved K1-K6 and the file plan, kept
K7 out (its absence limits representation completeness, not the
guarantee for certificates that pass, and K7 would not make P9s
complete), and accepted DecidableEq B and an instance for Const
derived from its constructors (no axiom). Three details made explicit:
List.lookup), in the denotation (denCert) and in the evaluator
(tyS, rowS) alike; K3 proves the two agree.CertTable). lookupCert finds the first entry holding the same
set of pairs (samePattern, so order and repetition in a pattern do
not matter); a missing pattern gets the empty certificate.composeS), so Waxwing’s rule that
overlapping spreads are rejected is unchanged. Tested both ways
(dupList, overlap).Proved (research/composition-proofs/Composition/Sig/; clean build, no
warnings, no sorry):
| Statement | Lean | File |
|---|---|---|
SG, den, Cert, denCert |
definitions | Syntactic.lean |
| K1 | fin_denCert |
Syntactic.lean |
| evaluator, K3 | evalS, evalT_den (evalT is evalS mapped by den, defined or not) |
Check.lean |
| K2, equality | eqS_iff |
Decide.lean |
| K2, well-formedness | wfS_iff, declaredS_iff, restsOkS_iff |
WellFormed.lean |
| K4 | checkAtom_sound, checkCert_sound |
Decide.lean |
| K2, consistency | consistentS_iff |
Patterns.lean |
| K5 | pattern_cover |
Patterns.lean |
| K6 | checkAll_accepts, checkAll_validAll, checkAll_validFin |
Patterns.lean |
Check.lean of the approved plan is split in three (Check, WellFormed,
Decide) to keep files under the 250-line limit. checkAll itself
depends on propext and Quot.sound only: it is computable, and
#guard runs it. The theorems about it use Classical.choice through
§14’s classical semantics.
Evidence (Sig/CheckExamples.lean, #guard, evaluated, not
kernel-checked):
checkAll, so by checkAll_validFin each signature is
valid in Waxwing’s finite semantics.D’s clause is removed (D2).[a: Int, a: Int] is one
field and passes (dupList); a composition { ...u, ...r } with both
holding a is refused (overlap, and evalS returns none).nested first
omitted r lacks b, so the pattern where r holds b had no
certificate and checkAll refused it. It is kept as a test.checkAtom
breaks K4’s proof; with that proof stubbed out, the broken-certificate
#guard fails too.Still open, as separate decisions: K7, certificate search beyond the oracle (which stays untrusted), completeness, the policy for Unresolved signatures, source-to-constraint translation, compiler integration. This milestone gives a checked guarantee for supplied certificates; it adopts nothing.
Accepted (the author’s review, 2026-10-20). The guarantee: for any
supplied certificate table, if checkAll returns true, the modeled
signature is valid, with finite witnesses for finite callers. The
search may be buggy or incomplete without weakening it. Qualification
kept: the general implication is kernel-checked; the 49 individual
acceptances are #guards, run by Lean’s evaluator. No compiler
adoption or integration follows.
Accepts: statements firstProposed by the author (2026-10-20) as the next bounded milestone:
whether every semantic certificate can be replaced by a finite
syntactic one that checkAll accepts. Statements for approval; nothing
proved. K7 would close the gap between §14’s semantic acceptance rule
and §15’s executable representation. It would not make P9s complete
for valid signatures: split is valid and the search finds no
certificate for it. Whether Accepts splitSig fails is not proved
(wholeRest_fails, §13.7, is about ground placements, not about
Accepts); see the optional K8 below.
HoldsG P Γ a depends only on the type and row
variables a mentions: if Γ and Γ' agree on them, HoldsG P Γ a
↔ HoldsG P Γ' a. (D2 reads Γ.row x and Γ.row y only, so the
variables of the disjoint atom suffice; the equation case uses
evalT_congr, Closed.lean.)FinG g → ∃ s, den s = g; and every row f with
FinG (.record f) is denRow fs for some list fs.checkAtom_sound: HoldsG P (genAssign P (patternOf p) (denCert C))
a → checkAtom P p C a = true. (Argument: K3 is an equation, and K2’s
three decisions are equivalences.)checkCert reads a pattern
only as a set. True, but not needed: if lookupCert returns an entry
stored under q with the same pairs as p, then patternOf q =
patternOf p as functions, so that entry’s certificate already
certifies patternOf p, and K7c applies at p directly.atomTyVars (liftAtom a) = atomTyVars a, and likewise for row
variables.Accepts P → ∃ T, checkAll P T = true. With K6:
Accepts P ↔ ∃ T, checkAll P T = true.Argument to formalize for K7: for each consistent finite pattern p,
Accepts gives a certificate σ for patternOf p; K7b represents
σ’s values at the finitely many variables of B as a syntactic
certificate C; denCert C agrees with σ on those variables (other
variables denote {}), so by K7a the generic atoms still hold, and by
K7c checkCert P p C = true. The table lists one such entry per
consistent pattern; whichever entry lookupCert finds has the same
pairs, hence the same patternOf. Repeated pairs are the ordinary case
(written P repeats a label whenever it is written twice), not an edge
case.
What K7 does not give: a way to compute T (it is an existence
statement over semantic certificates), any claim that the oracle’s
bounded search finds T, or completeness of P9s.
The direction is reversed from §15.4: the question is whether the syntactic side loses any semantic certificate.
| Restriction of the syntax | Believed harmless because | Challenge | Status |
|---|---|---|---|
finitely many bindings, the rest {} |
B mentions finitely many variables (K7a) |
a semantic certificate binding every variable to a non-empty value (§15.6’s review) | K7a |
| records are finite lists | Certifies requires FinAssign: every row finite at every depth |
a value finite at the top with an infinite nested row: excluded by FinG’s depth |
K7b |
base types and constants as GB |
SG.base takes any GB |
none | definitional |
| patterns looked up by set | an entry with the same pairs has the same patternOf |
two sublists with the same pairs in patterns P (routine: any label written twice) |
by patternOf’s definition |
DecidableEq B |
needed only to run the checker | none for existence | assumption |
Distinguishing example for K7 (to check after proof): a problem
writing a label twice, so patterns P holds lists with the same pairs,
and a table built from semantic certificates passes.
¬ Accepts splitSig while ValidAll splitSig (proved,
splitSig_valid). It would show, in the model rather than in the
bounded oracle, that Accepts is strictly stronger than validity,
so the incompleteness §13.7 found is a property of P9s’s acceptance
rule and not only of the oracle’s search. Argument: no label is
written, so every pattern gives the same generic assignment; the
equation makes u ⊎ v equal r’s generic row { inr 0: R(0) }
(which also excludes arbitrary generic labels in u or v, W1 not
needed), so exactly one of them holds inr 0; D2 then needs
Declared 0 1 or Declared 0 2, and D declares neither. The
adversarial reviewer proved this in a scratch Lean file (about 45
lines, no sorry); it is not in the repository and waits for your
decision.Adversarial review (independent reviewer, 2026-10-20): no false
statement. K7d’s stated role was wrong (it is not needed; dropped). The
lifting lemma was missing (added). Confirmed by hand: K7a (D2 reads
only the atom’s two rows), K7b (classically, filtering the FinRow
list to present labels), K7c for all four atoms (the equation case’s
wfS on one side suffices, since both sides denote the same value),
K7’s argument (consistentS_iff gives each pattern’s consistency
directly; pattern_cover is not needed). K8 proved in scratch Lean.
The author’s review (2026-10-20) approved K7a-K7c, the lifting lemma
and K7, included K8, and asked for ValidFin splitSig alongside the
unrestricted result. Details kept: K7a compares complete assigned
values, nested field types included; K7b is an existence result and is
not described as a conversion algorithm; the lookup step is explicit.
Proved (research/composition-proofs/Composition/Sig/; clean build, no
warnings, no sorry):
| Statement | Lean | File |
|---|---|---|
| K7a | holdsG_congr (hypotheses: equal values at the atom’s variables) |
Congr.lean |
| lifting keeps variables | atomVars_liftAtom |
Congr.lean |
| K7b | represent, represent_record |
Represent.lean |
| K7c | checkAtom_complete |
Complete.lean |
a semantic certificate has a syntactic one, valid at every pattern with the same patternOf |
checkCert_of_certifies |
Complete.lean |
| the lookup step | patternOf_same, table_exists |
Complete.lean |
| K7 | accepts_checkAll; with K6, accepts_iff_checkAll : Accepts P ↔ ∃ T, checkAll P T = true |
Complete.lean |
| K8 | splitSig_not_accepts (adapted from the §16 reviewer’s scratch proof) |
SplitNotAccepted.lean |
split valid in the finite semantics |
splitSig_validFin, with finG_part (parts of a finite row are finite) |
SplitNotAccepted.lean |
| the boundary | semantic_rule_boundary |
SplitNotAccepted.lean |
The distinction, as proved (semantic_rule_boundary): every
signature admitted by the semantic rule has some finite table the
executable checker accepts. Some valid signatures are nevertheless
excluded by that semantic rule: splitSig is valid over all partial
maps and over finite values, and Accepts refuses it.
Notes:
represent needs no Classical.choice (it eliminates existentials
inside Prop); it is still not executable, since it speaks of
semantic values whose records are functions. The theorems using it
depend on all three standard axioms through the classical semantics.splitSig that also declares disjoint 0 1 fails exactly where it
needs that pair undeclared (hnd01).patterns P holds lists with the same pairs) is the ordinary case:
lacks_declared and most exported problems write a label more than
once, and they pass checkAll (§15.8). The table K7 constructs is
not computable, so it has no #guard.Still open, as separate decisions: which valid signatures P9s
leaves Unresolved (split is one; a complete procedure is research),
whether Waxwing source produces the intended constraints, how accepted
constraints justify compilation and split selection, and compiler
integration. None is adopted by this milestone; neither is the
boundary as final language policy.
Accepted (the author’s review, 2026-10-20). Three things are now
distinguished: call-site satisfiability has a terminating, sound and
complete decision procedure (§12); the executable checker loses
nothing relative to Accepts (K7); Accepts excludes some valid
signatures (K8), a gap in the semantic rule, not in the table format
or the oracle’s search. More searching cannot make this checker certify
splitSig. Not approved: P9s’s boundary as language policy, compiler
integration.
Requested by the author (2026-10-20) before any further procedure:
ordinary Waxwing functions the checker certifies, valid functions it
cannot, and whether splitSig’s pattern arises from the intended
source fragment. Programs and translations:
sig-oracle/source-boundary.mjs; Lean: Sig/SourceBoundary.lean.
These rules are this dossier’s reading of docs/language.md and of the
convention §13.1 and p6Sig already use. The compiler’s own constraint
generation is not consulted, so a translation is a claim about the
intended language, not about the implementation.
| Source | Signature problem |
|---|---|
| a declaration’s row and type variables | rigid |
written where clauses |
atoms of D |
a tail written beside fields, { a: T, ...r } |
r lacks a in D (language.md: “each tail lacks the labels written beside it”) |
two tails in one signature record, { ...r, ...s } |
r disjoint s in D (language.md, Tranche B: “a parameter or result type that writes both into one record”) |
a call f(e1, ...) |
fresh flexible copies of f’s variables; each argument’s type equals the instantiated parameter type; f’s clauses, written and implied, as atoms of B |
a field access e.l |
type(e) = { l: α, ...ρ }, with α, ρ flexible |
a record literal { ...e, l: e' } |
the record type of its parts (defined only if they are disjoint) |
let x = e |
x has e’s type (monomorphic, as today) |
| the body | its type equals the declared result |
Not modeled: string interpolation (so greeting returns person.name
rather than the program 1 string), effects (programs 9, 10), the merge
API of program 7 (unspecified), local generalization (program 8A).
| Function | Source shape | Bounded | P9s | Lean |
|---|---|---|---|---|
greeting |
field access through a rigid tail | valid | certified | greeting_validFin |
mark (program 2) |
extension under lacks |
valid | certified | mark_validFin |
markAll |
forwards to mark |
valid | certified | markForwarded_validFin |
join (program 3) |
two spreads under disjoint |
valid | certified | join_validFin |
forwarded (program 6) |
forwards to join |
valid | certified | forwarded_validFin |
join3 |
join(join(a, b), c), a part holding two rests |
valid | certified | join3_validFin |
both (program 11) |
one input extended at two field types | valid | certified | both_validFin |
wrapAccepts |
a generic caller of program 4’s acceptsParts |
valid | certified | wrapAccepts_validFin |
bad: { ...a, ...b } without a clause |
invalid | Unresolved | ||
bad: p.name through { ...r } |
invalid | Unresolved | ||
route |
a generic caller of divide (below) |
valid | Unresolved | routeSig_validFin, routeSig_not_accepts |
route with r disjoint s added |
valid | certified | routeNarrowed_validFin |
“Certified” means: the untrusted search found a table, and the kernel
checks it (checkAll ... = true by decide), so checkAll_validFin
gives validity of the translated problem in the finite semantics. The
same holds for every exported table, the earlier 49 included
(exported_all_pass, kernel decide): §15.8’s qualification that those
acceptances were evaluator checks no longer applies. The two invalid
controls are Unresolved, as P9s never answers Contradiction; the
bounded oracle finds counter-instances for both.
splitSig’s pattern arise from source?Yes, from features the intended fragment already contains:
fn divide(whole: { ...u, ...v }, left: { ...s }, right: { ...t }): Int
where u disjoint s, v disjoint t = 0;
fn route(x: { ...r }, y: { ...s }, z: { ...t }): Int
where s disjoint t =
divide(x, y, z);
divide’s two-tailed parameter is program 4’s shape; its clauses are
program 3’s; the generic call is program 6’s. Checking route gives
splitSig plus aliases: r must be divided between u and v by
membership in s. It is valid (routeSig_validFin: u takes r’s
fields outside s, v those inside, which t lacks), and the semantic
rule refuses it (routeSig_not_accepts), so no table certifies it.
What a programmer meets: a generic function passing its own record to an
API whose two-tailed parameter has a disjointness requirement on each
part, against different other arguments. One narrower-signature
workaround P9s certifies is where r disjoint s (where r disjoint t
also gives an immediate placement); either changes the contract, and
callers whose x overlaps that argument would then be rejected. It is
a documented workaround, not equivalent behaviour.
Whether this occurs in practice is not settled here. In the eleven
acceptance programs no signature check has this shape (by reading:
programs 1, 2, 3, 6 and 11 are certified above; program 4’s and 5’s
bodies are trivial and their calls are in main, decided at the call
site; 7, 8A, 9 and 10 are outside the model). So the limitation is
reachable from the intended fragment, and absent from the acceptance
programs.
Which missing cases need further research: route’s shape (a
rigid row divided by membership in other rigid rows) is the only valid
family found so far, in this investigation (the oracle’s runs and this
section), that P9s cannot certify. That scopes the search done; it is
not a characterization of every case P9s misses.
The choice is yours: research a procedure that divides rigid rests
(Q1-Q3 of §13.9 become its questions), or accept the narrower-signature
workaround for now, recorded as a known limitation, not as final
policy.
Accepted (the author’s review, 2026-10-20), with the two wording corrections above. Direction: research division of rigid rests before compiler integration; keep P9s as the proved conservative baseline for comparing candidates. The source-to-constraint translation stays a separate, stated assumption. Authorized: a focused research proposal (§18), not a new solver, and not the workaround as language policy.
Authorized (the author’s review of §17, 2026-10-20): a focused research proposal. Not authorized: a solver, proofs, the workaround as policy, compiler integration. P9s stays the proved conservative baseline: any candidate must accept everything P9s accepts and be compared with it on the same problems. Source reading: research/composition-assessment/division/ (three notes; what was read, from where, and which sentences are the readers’ inferences).
P9s’s witnesses take each rigid row’s rest whole or not at all. The missing capability is a term witness: a flexible row’s value may be a rigid row restricted to a set term over the rigid rows’ domains and the written labels.
T ::= ∅ | dom r | {l} | T ∪ T | T ∩ T | T ∖ T, for rigid
rows r and written labels l. No absolute complement: rows are
finite.⊎ᵢ rᵢ|Tᵢ ⊎ F: parts of
rigid rows, each restricted to a set term, the parts pairwise
disjoint, plus written fields F. Field types come with the parts
(rᵢ’s type at each label of rᵢ|Tᵢ).Tᵢ ∈ {∅, dom rᵢ ∖ L} together
with written fields; route needs u = r|(dom r ∖ dom s).The research question, in two halves:
| Finding | Source | Status |
|---|---|---|
∃-elimination: f(x̄) = 0 is solvable iff f(0, …)·f(1, …) = 0 is; the witness is a Boolean term in the remaining variables and constants (Boole’s reproductive and particular solutions; Löwenheim’s) |
Martin and Nipkow, JSC 1989, Lemma 3.3, Thms 3.4, 3.6, §6.2; Rudeanu 1974 via Wernhard | published; read (author preprint), Rudeanu second-hand |
| holds in any Boolean algebra; Boolean unification is unitary; solvability can be decided in the finite subalgebra the constants generate; hypotheses on constants by presented algebras (Lemma 4.5) | Martin and Nipkow, §§3-5 | published; read |
| cardinalities enter only with negated atoms or counting atoms; positive equations ask only whether regions are empty | KNR (BAPA) TR §2, Lemma 1; Jeřábek’s notes, Thms 2, 3, 17 | the count statements are published; “positive equations ask only emptiness” is the reader’s inference |
| ∀∃ Boolean problems in HM inference: successive variable elimination with rigid variables as constants, then a validity check; complete for its problem; Π₂ᴾ | Madsen and van de Pol, OOPSLA 2020, §3.2, §3.5, Thm 3.15; Flix compiler source | published and implemented elsewhere; read |
no implemented type system handles hypotheses relating rigid variables (our s disjoint t) |
the same, and S2, S5, S7 of the note | absence in what was read |
| Flix’s current effect solver: finite and cofinite constant sets in an infinite universe, element constants, Zhegalkin normal forms | Flix source (SetFormula, CofiniteIntSet) |
implemented; read (code comments) |
| typed row theories (Rose, Rω, Ur) can state a split but derive none from assumptions on rigid rows; none claims complete entailment; none relates field types of overlapping rows | Morris and McKinna 2019; Hubers and Morris 2023, §3.4, §4.5, §7; Chlipala 2010, §§1, 4 | published; read in full |
Gaps the readers found, none covered by a source read:
{l} ≠ ∅ is not an equation, so a
plain identity check is sound and incomplete when hypotheses could
contradict it (the reader’s counterexample: ∀ X. c = ∅ ⇒ X = ∅).
P9s enumerates written-label patterns instead of treating labels as
algebra constants, which may avoid this; not checked.Labels as at the head of the dossier.
h expanding each part; its
completeness would rest on D2 and D3.| Restriction | Believed harmless because | Challenge | Status |
|---|---|---|---|
| existential rows take whole regions | Boole’s solutions are terms over the rigid sets (published, for Boolean algebras) | finite rows are not a Boolean algebra; BAPA lets existential sets take part of a region (Lemma 1), with negation or counts | the author’s caution: not assumed; D2 must be argued for Waxwing’s positive atoms and finite rows |
| no region sizes | Waxwing’s atoms are all equations to ∅ (lacks, disjoint, record equations, composition definedness) |
find a Waxwing atom or source construct that expresses ≠ ∅ or a count |
to check against §17.1’s translation |
| one opaque part per (rigid row, region) carries independent types | labels of one region are interchangeable for presence | type-agreement placement: a valid problem whose witness must place a shared label by whether r and s give it the same type, which is not a set term over domains |
open; the first target for the bounded oracle |
| written labels by patterns, not as algebra constants | patterns fix each written label’s presence, so {l} ≠ ∅ never needs to be an equation |
the reader’s c = ∅ ⇒ X = ∅ family, under patterns |
to check |
| witnesses within the rigid domains and written labels | a fresh label removed from every flexible row preserves positive atoms (§13.9 (a)) | a constraint that holds only with a flexible row non-empty outside the rigid domains | to argue |
| nested records and record-valued type variables are outside the presence part | handled by h as in §14 |
recSig-like problems combined with division |
open |
route must be certified and nothing P9s certifies lost.Leads not yet read: Rudeanu’s and Brown’s books, Büttner and Simonis, Baader 1998, Flix’s OOPSLA 2023 and 2025 and POPL 2026 papers (behind access checks), Harper and Pierce 1991, Pottier ESOP 2000, Rémy’s “Typing record concatenation for free”.
The review approved the typed bounded oracle, asked for D1-D3 to be amended before they become proof targets, and kept D4, proofs and compiler integration as separate approvals. The amendments replace §18.3’s D1-D3.
The presence fragment. Labels form an infinite set ℒ; L ⊆ ℒ is
the finite set of written labels. Set variables: rigid X₁…Xₙ and
flexible Y₁…Yₘ, ranging over finite subsets of ℒ. Set
expressions e ::= X | Y | {l} | e ∪ e (l ∈ L), the presence of a
record expression’s parts. Atoms, each of the form “something is
empty”:
e₁ ∩ e₂ = ∅, from disjoint and from the definedness of a
composition (one atom per pair of its parts);l ∉ e, from lacks;e₁ = e₂, the presence half of a record equation (e₁ ∖ e₂ = ∅ and
e₂ ∖ e₁ = ∅).A presence problem is ∀ X̄. D(X̄) ⇒ ∃ Ȳ. B(X̄, Ȳ), D over rigid
variables only (declared and implied clauses, §17.1), B the body’s
atoms. Hypotheses mean exactly that: only rigid assignments satisfying
D are quantified over.
Written labels by patterns. A pattern π fixes Xᵢ ∩ L. Write each
rigid set as Xᵢ = Pᵢ ∪ Rᵢ, with Pᵢ ⊆ L fixed by π and Rᵢ ⊆ ℒ ∖ L
its rest, and each flexible set as Yⱼ = Qⱼ ∪ Sⱼ, Qⱼ ⊆ L and
Sⱼ ⊆ ℒ ∖ L. Every atom then splits exactly into a written part (over
the Pᵢ and Qⱼ, finitely many cases) and a rest part (over the Rᵢ
and Sⱼ, with no constants), because each atom is a conjunction over
labels and L and ℒ ∖ L are disjoint. Labels are thus never algebra
constants, which is meant to avoid the singleton gap (§18.2); that the
split is exact is obligation O2 below.
π and each written choice
Q̄, the rest part is valid iff the result of eliminating S̄ by
Boole’s rule is implied by D’s rest part, and that implication is
decided region by region (on {0, 1} per region of the Rᵢ).
D’s included.Q̄ that works may depend on π but not on
the rests; and the rests’ problem does not depend on Q̄ beyond
the written part.π there are one
written choice Q̄ and one tuple of set terms t̄ (over R̄, with
∪, ∩, ∖, no complement) such that Sⱼ := tⱼ(R̄) satisfies B
for every R̄ in π satisfying D. Finding a term for each
assignment separately is a weaker property and does not suffice.
Witnesses stay finite and inside the rigid rests: each tⱼ(R̄) ⊆ ⋃ Rᵢ
because no term uses a complement. route: S_u = R_r ∖ R_s.Types. “Equivalently” is withdrawn: D3a and D3b are separate conjectures, and neither currently establishes the other.
π there is one typed template
that works for every rigid assignment in π satisfying D. A typed
template gives each flexible row, at each written label, absent or a
field template (a rigid row’s field there, a rigid type variable, a
ground type), and at each Venn cell of the rigid rows (a nonempty set
S of rigid rows holding the label), absent or one source row
r ∈ S whose field it copies; a flexible type variable gets a field
template or a record template.π, a
specified generic rigid assignment θ*_π such that solvability of
B at θ*_π implies validity in π. The construction must respect
hypotheses that force field types to agree: where D makes r and
s equal on a cell (r = s, r = s ⊎ t), the generic instance must
give both one shared fresh type there. Independently fresh types
would violate those hypotheses and make θ*_π fall outside D.sig-oracle/templates.mjs and typed-oracle.mjs (README, “The typed
term-witness oracle”). Three independent checks over the same bounded
rigid assignments (written labels plus z1, z2; rigid fields Int,
Bool; so two unwritten labels of one cell can relate equally or
unequally across rows): bounded validity with unrestricted witnesses;
uniform templates, one per written-label pattern for every rigid
assignment of it; per-assignment templates, only where no uniform one
exists. Templates are searched exhaustively over cells and field-source
choices, with no expression-depth limit. When bounded validity fails at
an assignment θ, one search at θ decides both that no uniform
template exists and whether the bounded flexible domain was too small.
First pass excludes problems with records nested in fields
(nested-same, nested-two, nested-alias,
nested-alias-undeclared, tyvar-nested-rest): their field templates
would need nested records, which this pass does not enumerate.
| Run | Problems | Bounded invalid, no template | Valid, template, P9s certifies | Valid, template, P9s Unresolved | Separations, power or P9s flags |
|---|---|---|---|---|---|
| named: 6 typed challenges, 18 first-pass challenges, 12 source programs (all as predicted) | 36 | 15 | 16 | 5 (split twice, route, shared-part-equal-rows, agreement-hypothesis) |
0 |
| generated, seed 3 | 300 | 115 | 181 | 4 | 0 |
| generated, seed 11 | 300 | 94 | 199 | 7 | 0 |
route and split have uniform templates (u takes the cells of
r outside s, v those inside), as do problems whose hypotheses
force agreement (r = s, r = s ⊎ t) and the controls with shared
parts. Every problem P9s certifies has a template (no P9s flag).{} as a rigid field
type): the uniform templates of split, route, forwarded,
join3, agreement-hypothesis and the two shared-part controls still
hold (up to 21,952 rigid assignments each).alias, compose-undeclared,
equal-rests, types-differ, shared-part, split-undeclared, the
two source bad functions) have no template at their counter-instance.depSig show
“no uniform template, per-assignment found”, so the detector reports
the distinction the author asked to preserve.Revised standing.
The author’s review of §18.7 (2026-10-21) approved a focused second pass for nested records and deferred D3b until it is reviewed. Corrections:
∀ α. ∃ β. β = α → α is valid and needs a
template that builds a function type. D3a now uses the grammar below,
function templates included.Template grammar (D3a, and the second pass).
A(r, l) (rigid row r’s field at written label l, under
a pattern where r holds l), T(n) (rigid type variable n), and
ground types g (the problem’s base types, Int, Bool).Sk(P): the constructor shapes of the problem’s own type
subexpressions. An arrow’s skeleton is the arrow of its parts’
skeletons, and a record’s is its written labels with their fields’
skeletons and one cell map for its tails. A base type or type variable
becomes a hole.Temp₀ is the leaves. Temp_{k+1} is Temp_k together with every
skeleton of Sk(P) whose holes are filled from Temp_k and whose
record nodes each get a cell map (per cell, absent or a source row in
the cell) if the skeleton’s record has tails; a record written
without tails has no cell map. (Refinement recorded before running.)Temp₂. Flexible rows: each
written label absent or a template from Temp₁, and a cell map.Temp₂).Bounds. Labels: the problem’s written labels plus z1, z2. Rigid
row fields: absent, Int or {q:Int} (a record, so nested field
values occur in rigid rows). Rigid type variables: Int, Bool,
{}, {q:Int}, (Int->Int) (record- and function-valued; the same
list bounded validity uses for flexible type variables). Bounded
validity’s flexible domain: Int, Bool, {}, (Int->Int),
{q:Int} and the values the problem’s own subexpressions build.
Uniformity as before: one template per written-label pattern,
fixed before any rigid assignment is seen, for every assignment of the
pattern satisfying D. The template may not change with nested field
values or their equalities.
Problems. The five excluded challenges; new ones combining division with nested field types, record-valued rigid type variables, and hypotheses requiring nested types to agree; passing controls for template construction (a nested record assembled from rigid inputs, a function type assembled from a rigid type variable) and P9s-certified cases; broken controls. Stop at a separation or at the end of the pass.
Search method (recorded before running; it changes speed, not the grammar). Every atom is a conjunction over (position, label) pairs, and the labels split into the Venn cells of the rigid rows (per rigid assignment) and the rest. So the search first fixes each template’s shape (constructors, leaves, written fields) and checks the atoms on the labels outside every cell; then, for each cell independently, it chooses the cell-map entries of every record node and checks the atoms projected onto that cell’s labels, for every rigid assignment. A template exists iff a shape passes and every cell has entries. The projection applies to every record at every depth, rigid values included. Cross-check: on §18.7’s first-pass problems the new search must agree with the first-pass engine.
Recorded in the order it happened, because two problems were found during the pass.
1. A search bug, caught by the cross-check. The first version of
the decomposed search projected inputs but not the values an equation’s
sides evaluate to, and dropped a written field’s whole subtree from the
cell blocks. Part A (the decomposed search against the first-pass
engine, on §18.7’s 36 problems) showed two mismatches (tyvar-field,
src-both). The fix partitions positions by path: a position reached
through non-cell labels only is in the block outside the cells; a cell
label’s whole subtree is in its cell’s block; equation values are
projected after evaluation. After the fix: part A, 0 mismatches of 36.
A first part-B run made with the earlier version is void (it showed a
spurious “template at the counter-instance” for nested-two).
2. An independent check of nested positions. Part A cannot test nested positions (the first-pass problems have none), so sig-oracle/nested-brute.mjs searches the same grammar without decomposition: every shape and every cell-map entry of every record node, checked on whole values. Part C compares it with the decomposed search on the six nested problems small enough to enumerate: 0 mismatches, in both grammars below.
3. A gap in the grammar as specified (§18.8). A record node with
tails stands for rows that, under a pattern, may hold written labels;
the grammar gave such a node a cell map but no written fields (only
flexible rows had them). So nested-same (x = { f: { ...r } } where
r may hold the written label f) has no template in the grammar, yet
P9s certifies it: P9s’s own witness falls outside §18.8’s grammar. The
pass flags this as “P9s without template”, which is what the flag is
for. This is a defect of the grammar written in advance, not evidence
about division.
Amended grammar, after a run (for review). A record node with tails also gets, at each written label its skeleton does not write, absent or a leaf template, as a flexible row does. Both grammars are reported below, separately; nothing about the specified grammar’s results is replaced.
Results (both grammars, each on the same 29 problems: the five the first pass excluded, the eight nested challenges, sixteen P9s-certified named problems; eight parallel shards):
| Grammar | Agree (as predicted) | Flagged |
|---|---|---|
| as specified (§18.8) | 25 | nested-same, nested-alias, tyvar-nested-rest: P9s certifies, no template; division-in-field: bounded valid, no template (“beyond the grammar”). All four are the tail-node gap of item 3 |
| amended (item 3) | 29 | none |
Under the amended grammar every prediction holds: division inside a
field and inside a function type, a record-valued rigid type variable
divided by another row, and a hypothesis making nested types agree all
have uniform templates; the broken controls (nested-two,
nested-alias-undeclared, nested-agreement-missing,
nested-rigid-mismatch) have none; the template-construction controls
(function-from-rigid, record-from-rigid) and every P9s-certified case
pass. Cross-checks: part A (against the first-pass engine) 0 mismatches
of 36 in both grammars; part C (against brute force) 0 of 6 in both.
Power check (scratch copy, deleted): with function skeletons removed,
division-in-function becomes “beyond the grammar” and
function-from-rigid is flagged.
An independent reviewer (2026-10-21) found no disagreement between the decomposed and brute-force searches (196 random small problems with cell labels at nested positions, inside arrows and in rigid type variables’ values; and a hand argument for the path partition). Defects found, all corrected or recorded:
inFirstPass admits records inside arrows, but needsRecord offers a
record template only to a type variable equated with a record at the
top of an equation, and the first pass has no function templates. Two
problems (∀ r. ∃ β. β → Int = {...r} → Int; ∀ α. ∃ β. β = α → α)
are valid and P9s-certified but have no first-pass template; the
second-pass search finds both. §18.7’s “exhaustively” holds only for
that narrower grammar; its results stand as a statement about it.uniform: false. They now report it unknown. No run had that case.{ f: {...Y} } = {...X} makes Y’s labels those of X’s field
f), which no set atom over X, Y states. D1 and D2 are about the
presence fragment as defined, not about the presence of every typed
problem; transferring them needs the problem’s equations to relate
flat record expressions, or a separate argument.α = { ...r }, { f: { ...r } } = { f: α }): the generic α must
be built from the generic r. P9s’s patterns ignore D’s equations
(sound, §14) so its generic instance can fall outside D there.Further reading (research/composition-assessment/division/
concatenation-leads.md): Pottier’s filters (LICS 2003; Leijen’s citation
was to this paper, not ESOP 2000) are constant label sets; his theorems
decide satisfiability, not entailment. Rémy 1992 types concatenation as
composition of row transformers and cannot split a row. Harper and
Pierce 1991 forbid a \ l for a variable a and read disjointness only
from declarations. Baader 1998: Boolean unification with constants is
the conjunctive ∀∃ fragment, Π₂ᴾ-complete, and a single-equation
sentence holds in all Boolean algebras iff in the two-element one
(Thm 6); constants are uninterpreted and field types are not covered.
None divides a row by membership in another from assumptions.
Authorized (the author, 2026-10-21): proof work on D1’s O1-O3 and on D2 for presence, in parallel, with one owner for the shared definitions and exact statements, isolated worktrees, integration through that owner, and an adversarial review of the combined statements and assumptions. Finite rows, declared hypotheses, per-pattern uniformity and the stated witness grammar are preserved; any change comes back for review. D3b, D4, compiler changes and solver integration stay unauthorized.
The interface is research/composition-proofs/Composition/Presence/ Defs.lean (statements only). Two findings while writing it, before any proof:
D is
impossible on the written labels (for example {a} ∩ {a} = ∅): the
problem is then valid vacuously while the rest part can fail. O3 now
has the disjunct “or D is impossible on the written labels”. This is
a missing assumption, reported; it is the vacuity case of §14.8, not a
change to the model.b (a label’s membership in the rigid sets) that D allows,
some flexible vector s satisfies B: the two-valued check region by
region. Boole’s rule (∃ y. f(y) ⇔ f(0) ∨ f(1) at one label) is one
way to compute that inner existential; the substance of O1 is the
reduction, where finite rows and infinitely many labels are used
(InfiniteLabels).Statements (Lean names): O2 (each atom splits exactly into its
written and rest parts, each part local, written labels empty on the
rest); O3 (validity iff D impossible on written labels, or
WrittenValid ∧ RestValid); O1 (with infinitely many labels,
RestValid ↔ BitValid); D2 (with infinitely many labels, a valid
problem has, per pattern satisfying D, one written choice and one
tuple of set terms over the rests, without complement, working for
every finite rest assignment satisfying D, the witnesses inside the
rigid rests).
Proved (research/composition-proofs/Composition/Presence/; one build,
no warnings, no sorry, the three standard axioms):
| Statement | Lean | File | Proved in |
|---|---|---|---|
| O2: the written/rest split is exact, each part local | o2 |
O2.lean | its own worktree |
O3: valid iff D impossible on written labels, or WrittenValid ∧ RestValid |
o3 |
O3.lean | its own worktree |
O1: with infinitely many labels, RestValid ↔ BitValid |
o1 |
O1Bits.lean, O1.lean | its own worktree |
| D2 (presence): uniform complement-free term witnesses per pattern | d2_of (from O1, O2, O3), d2 |
D2Terms.lean, D2.lean, Main.lean | its own worktree; instantiated at integration |
| the rest part is a finite, computable check | bitCheck_iff, restValid_iff_bitCheck |
Decide.lean | its own worktree |
| validity is a finite, computable check | writtenCheck_iff, dWritten_iff, valid_iff_validCheck |
DecideWritten.lean, DecideValid.lean | its own worktree |
| non-vacuity | split_valid, split_bit, bad_not_valid, tiny_rest, tiny_not_bit, infNat, not_infBool |
Examples.lean | the reviewer, restyled |
Integration: one owner (this session) copied the four results into the
main checkout; four helper names that two worktrees had defined
independently (SExpr.rigids, PAtom.rigids, evalB_zero,
labels_written) were renamed in D2’s files; the worktrees were then
removed (their branches kept). No statement was changed during the
proofs; the only finding before them was O3’s vacuity disjunct
(§18.11).
Adversarial review of the combined statements (independent reviewer,
2026-10-21): no false and no vacuous theorem; each has content, checked
in Lean (the examples above). split in presence form is valid through
o3 and o1 and d2 applies to it; with one label (Unit), O1’s
equivalence fails, so its hypothesis does work. Points recorded:
BitValid still quantifies over
functions Nat → Bool; a lemma that it equals a finite check over the
mentioned indices, with a computable checker, is needed before D1 can
be called decided. Being proved now (within D1’s authorization).Scoped is decorative: D is evaluated with no flexible set, so
a flexible variable in D reads as empty; O1 and O3 hold without it.
Recorded in Defs.lean.The finite check (Decide.lean, proved in its own worktree,
integrated): bitCheck, a computable Bool check over the bit vectors
on the mentioned rigid and flexible indices, with bitCheck_iff :
bitCheck P = true ↔ BitValid P (no Classical.choice) and
restValid_iff_bitCheck : InfiniteLabels Label → (RestValid P ↔
bitCheck P = true) (built from O1’s two halves, so without Scoped).
#guards: the presence split gives true; without its clause, false;
r₀ ∩ r₀ = ∅, false.
The written part and the whole (DecideWritten.lean,
DecideValid.lean; proved in its own worktree, integrated; assumes
DecidableEq Label there only): writtenCheck_iff : writtenCheck P =
true ↔ WrittenValid P, dWritten_iff for the vacuity disjunct, and
valid_iff_validCheck : InfiniteLabels Label → Scoped P → (Valid P ↔
validCheck P = true) with validCheck P = !dSatCheck P || (writtenCheck
P && bitCheck P), computable. #guards: split valid, and invalid
without its clause; keepOut invalid because of its written part alone
(bitCheck true, writtenCheck false), valid with lacks; a problem
whose D is impossible on written labels, vacuously valid.
Standing. For the presence fragment as defined (finite rows, declared hypotheses, per-pattern uniformity, infinitely many labels), D1 holds and validity is decided by a computable check, and D2 holds (uniform complement-free term witnesses, existence only). Not established: any typed statement (D3a, D3b), a constructive witness procedure, D4. The presence fragment is exact for typed problems only with flat rows (§18.10).
The author (2026-10-21) accepted the presence milestone and §18.9’s grammar amendment within their stated scope. This closes the presence-only decision problem, not typed row division. Qualifications kept prominent:
D makes the
implication valid; refusing unsatisfiable declarations is a separate
policy that needs its own check.validCheck answers
validity; D2 gives no executable procedure for the terms.Scoped stays on the public result (valid_iff_validCheck) even
where intermediate lemmas do not need it: the broader reading
evaluates flexible variables in hypotheses as empty, which is not the
intended declaration language.Authorized, in parallel (streams 1-7; the assurance stream 8 was not taken): (1) the D3b construction, statements first, then proof attempts after an independent adversarial review of its exact statements (soundness and completeness passes separately); (2) an attack on D3a, kept a separate conjecture; (3) a constructive presence witness procedure, proved in Lean; (4) typed oracle expansion under a frozen grammar; (5) a source-to-constraint specification for the intended record fragment; (6) compilation and split selection; (7) read-only integration reconnaissance. D4 may be drafted as a candidate design, with an isolated prototype separating proved components from assumptions. Not authorized: production compiler integration, merging, publishing.
Rules: preserve the semantic definitions and intended source behavior;
one owner (this session) coordinates shared definitions, integrates,
and alone edits this dossier, progress, handoff and backlog; streams own
separate files. A proved candidate establishes its formal statement,
not its adoption as design. Changed assumptions, narrower fragments,
altered source behavior and unresolved ambiguity are reported, never
used silently to obtain a proof. Unsuccessful constructions and
minimized counterexamples stay in the record. No added axioms, no
accepted proof placeholders. Shared models: the typed streams use
Composition/Sig (SigProblem, §13.1) and Composition/Presence; no
stream builds a second formalization of the same thing.
Composition/Presence/Witness.lean and WitnessExamples.lean (proved in
its own worktree, integrated; one build, no warnings, no sorry).
witness P ps is computable (#print axioms: propext, Quot.sound
only): per region of the mentioned rigid indices it takes the first
flexible bit vector satisfying B (D2.lean’s construction with
Classical.choose replaced by search), builds each term as the union of
the regions whose chosen bit is set, and searches the written choices.
witness_sound: a returned (Q, t) satisfies D2’s property for the
pattern (uniform, complement-free, inside the rigid rests). Its only
hypothesis is that the pattern lies within the written labels.witness_complete (with InfiniteLabels and Scoped): a valid
problem gets some at every pattern D allows.valid_iff_witness (with InfiniteLabels, Scoped): validity iff
witness succeeds at every pattern D allows. witness_d2 covers an
arbitrary pattern π; d2_witness re-proves D2 through witness.split gives u = R₀ ∖ R₁, v = R₀ ∩ R₁ (checked by
evaluation on every allowed bit vector; wrong formulas fail); invalid
controls give none; keepOut without its clause fails only at the
pattern holding the written label.Limits: terms are unsimplified unions of up to 2^|rigid| regions;
cost is exponential, the same order as validCheck. This is presence
only: nothing transfers to typed records.
The author’s review (2026-10-21). Accepted as the executable presence baseline for the typed work; its cost is acceptable for a research reference and optimization waits. Two details kept explicit:
∪, ∩
and relative difference ∖ (u = R₀ ∖ R₁ in split); what is
excluded is ℒ ∖ T, which would leave the rigid rests.D (dOn P ps;
valid_iff_witness quantifies only over patterns with dOn
true). witness does not. Works (Witness.lean) assumes D only on
the rest labels, never on the pattern’s written part, so for a
pattern D rules out:
Q and t satisfy B at that pattern
for every finite rest satisfying D’s rest part
(witness_sound). It is not evidence of validity, because that
pattern is no permitted instance;restOk fails (independent of the pattern; with some admissible
pattern this makes the problem invalid, by O3 and O1) or no written
choice satisfies B at that pattern, which validity never asks
for. A problem with no admissible pattern is vacuously valid
(noPattern in WitnessExamples.lean), while witness returns
none there.research/division-campaign/compile/split-selection.md, with a flat presence prototype split-model.mjs (research only; independent of sig-oracle and Lean). A design analysis; no compiler change.
r|(dom r ∖ dom s) is evaluated once per specialized copy, at compile
time. Every witness form (P9s, term, typed template) selects layouts
and moves no value; route passes x unchanged. A forced split costs
nothing at run time. Assumed: that layout identity survives R005B
Task 8’s canonical form. Checked: records with several tails are not
lowered yet (E_INTERNAL R005B placeholder).Array (Ty Open) cannot express r|T) and R010’s rule for recursive
calls widened to restrictions of the caller’s rows; the analysis
proposes a ground re-check of the callee’s constraints per copy
instead of a certificate.route has 2 uniform presence witnesses, a
three-way division 24. Stream 3’s witness for route (u = r ∖ s)
differs from the canonical rule proposed below.fn(p: { ...u }) => show(p) is accepted
with u = {} and refused with u = {f} (printability is re-checked
after specialization) (E2).Questions for the author: (1) route’s split is not forced, so decision
3 (§4) refuses it even once division is decidable; should a run-time
non-observability claim plus a specified canonical rule be the basis for
lifting it? (2) free labels to the last part or the first? (3) E2:
document that the canonical rule decides acceptance, or refuse phantom
print sites as ambiguous until C001? (4) evidence as a table or as set
terms; is a per-copy ground re-check wanted? (5) prove run-time
non-observability in a small Lean calculus, or back it with generated
programs after Task 8?
research/division-campaign/integration/recon.md (read-only; file:line map). The map:
Merge predicates; rule H
decides at the end of a body. No explicit B is ever built, so
the first integration step is a recorder (equations through
Check/Unify.purs unify; facts through Disjoint.purs; callees’
clauses through UseFacts.purs; two-tail rows through
RowMerge/Desugar.purs). D comes from Function.purs via
Seed.purs.RowMerge/End.purs endOfBody already takes an injected
Judge; the three-way RowOutcome can be reused. Layering: problem
and certificate types in Domain if IR or Format must see them; the
checker in Features.Check.Sig.*; witnesses in the checked IR,
evaluated per specialization key; Go lowering untouched.checkAll
tested differentially against Lean on exported tables, translation
validation of compiler-exported (problem, table) pairs outside verify,
and bounded.mjs as a third reference.{} or Int, which breaks B for
rows the signature constrains but does not determine (route’s u);
a computable interp (now noncomputable) would be a new obligation.Checked by probes: the valid route is refused today with a false
contradiction (“neither u nor v can hold r”), from H’s rigid-atom
exclusion treating a rigid row as indivisible; routeNarrowed and
wrapAccepts (P9s-certified, §17.2) get “Cannot tell…”; the branch tip
does not build from a clean checkout (43b3a28 deleted
Features/Check/SeveralTails.purs; Removal.purs and RestBinder.purs
still import it; confirmed by the coordinator).
Top risks: exponential pattern enumeration (2^(|R|·|L|) with L
every written label of a body; a shadow run should measure |R|, |L|
first); the unproved link from source to B; fragment gaps (data types
over rows, handlers, effect rows on arrows); no computable witness map
or IR slot; no counter-instance producer for contradictions (D3b is the
candidate). Questions for the author are in the report, §”Questions”:
solver as search with the checker as a gate, or generate-then-decide;
Unresolved or today’s behavior outside the fragment; Lean in verify or
not; certificates in the checked IR; whether a P9s-only step lands
before D4 (it changes pinned D4 fixtures); an internal error when a
certificate built from a Solved substitution fails checkAll.
The findings raise a language-policy question; they are not a reason to adopt a canonical split. Split selection stays separate from signature validity. Decisions:
SeveralTails.purs
after checking the parent version against its callers, with compiler
verification). Not authorization to integrate the solver.show
example (E2, §18.15) show genuinely observable differences between
otherwise valid splits, or an incomplete constraint model that calls
a split valid before all requirements (printability, checked after
specialization) are counted? Neither follows from the run-time
argument. Stream 5 answers first: does the source-to-constraint
specification include every condition that can later reject a
specialization?route establishes signature validity;
permission to compile it under an unforced split is a separate
obligation, not lifted until the constraints are complete and a
selection rule is justified.checkAll with differential tests against Lean is evidence; it does
not inherit Lean’s theorem.route is a diagnostic correctness
defect (BACKLOG SIG-ROUTE-H): an inability to divide a rigid row is
not evidence that no solution exists. Its desired classification is
recorded separately from whether the language permits compiling an
unforced split. Repair outside this campaign unless separately
scoped.Integration reconnaissance: approved, read-only size measurements of
real functions (|R|, |L| and pattern counts) and a proposed
constraint-recorder interface. Deferred: recorder implementation, IR
changes, fallback policy, any P9s-only integration step.
research/division-campaign/source/translation.md, run.mjs and 44 example programs (examples/*.wxw); Lean Composition/Sig/ SourceCampaign.lean (proved in its own worktree; integrated; clean build, standard axioms).
The author’s priority question: does the specification include every condition that can later reject a specialization? No (translation.md §3, inventory with file:line):
printable τ atom in
B and a declarable requirement in D, passed to callers as lacks
is.r|T) or composed witness is neither bare
nor ground, so it is refused inside a recursive group. Not modelled.main printable.E2 (§18.15), per stream 5: as observed, (b), an incomplete model: no
atom covers show(p), so both splits satisfy the modelled problem; read
as a ∀ statement, divide’s own body needs u printable for every
u, which its clauses cannot say. The requirement belongs to divide,
not to the split. Separately, once peek is applied and both splits are
printable, the printed output differs between two valid splits, which
is (a); fixing (b) does not remove (a), and decision 3 is what handles
(a). Corrected in §18.23: the applied-peek (a) claim is false as
stated; comparison and printability in the caller are refused at check,
not after specialization.
The translation (§2): rigid variables are the signature’s; flexible
ones are fresh per call and per construct; D is the written clauses
plus clauses implied by parameter and result types (a tail lacks the
labels beside it; two tails in one record are disjoint); B one atom
per construct (R1-R16). Proved (clauseOnly_down, clauseOnly_empty,
clauseOnly_satisfiable): source D contains only lacks and
disjoint atoms, is closed downwards and holds when every row is
empty, so vacuity never arises from source. Presence projection
exact under stated conditions (flat equations, nested records written
on both sides, no type agreement). Finding F8: D3b’s
agreement-forcing hypotheses and §18.9’s record-valued rigid type
variables cannot be written in this source grammar.
No region sizes (§18.4): no construct gives ≠ ∅ or a count; ones
that would if added: presence-dependent instance selection, row
reflection, an empty-rest pattern test, a has clause.
Run against the repaired compiler (coordinator, 2026-10-21, the
SeveralTails repair in the working tree;
.build/evidence/stream5-examples-run.log; Parse to Specialize, no Go):
stream 5 could run only Parse and Resolve, so its Check verdicts were
predictions; they are now observed:
p11-route (valid, routeSig_validFin) refused with the false
contradiction “neither u nor v can hold r” (F2; BACKLOG SIG-ROUTE-H);p10-wrap-accepts, p12-route-narrowed (P9s-certified) refused with
“Cannot tell how … split” (F4);p05-join, p06-forwarded,
p07-join3, c22, c24, and the negative controls n01, n08,
n12 refused for the wrong reason;Questions for the author (translation.md §8): several spreads in the
intended fragment; whether a lacks implied by a result type alone is
intended; whether records in callback parameter types imply clauses;
printability as per-instantiation check or declared requirement;
whether R010 should accept divided or composed row arguments; Unresolved
rather than contradiction for a rigid row no part can hold whole;
pattern semantics on flexible rows; a later pass for effect rows and
Fail payload families.
Correction, 2026-10-21: the later slicing hunt refuted the stream-7b
cut’s preservation: it drops variable-free contradictions. Its sliced
counts, and application comparisons using that cut, remain historical
operation sizes; their sound-checker cost interpretation is withdrawn.
Residual counts need binding equations retained before claiming
preservation. Exact affected entries: research/division-campaign/slicing/
amendments.md. Unsliced counts are unaffected by this defect. No corrected
slicing cost or useful-scale star result is claimed.
research/division-campaign/integration/measurements.md, recorder-interface.md and measure/ (read-only; instruments a scratch copy of the compiler output; reproduced by the coordinator on the repaired build, 2026-10-21).
Measured (checked; six hand-computed expectations, route and a
synthetic wide, must pass before the corpus runs). 863 sources, 2,676
functions, 486 with a rigid record row (178 hand-written, 308
generated); 44 sources refused at parse or Resolve left out. Literals
with two spreads, refused at Resolve today, are measured through a
stand-in call wxJoin (same labels and rigid rows, more flexible rows;
217 functions, marked (j)).
|R| ≤ 4; where |R| > 0, |L| ≤ 2 hand-written and ≤ 4
generated.checkAll patterns 2^(|R|·|L|): at most 2^4 per function;
bitCheck at most 2^9 where |R| > 0.writtenCheck (the presence decider’s written search) blocks: 232
functions exceed 2^40, all mains with |R| = 0, i.e. call-site
problems, not signature problems.wide: two rigid rows beside a ground
20-field record give 2^42 patterns).2^2.6, wide 2^2.Recorder interface (proposal, not implemented). B kept as data in
the row store (reverts with the substitution), atoms Equal, Lacking,
Apart, Union, each tagged with a Maker naming the site; hook
points with file:line; propagation and retries not recorded; D
computed as own does, not recorded. Findings: predicateFor is called
twice per Merge (a side-channel log would double-count); Overlap’s
rigid-base lack check writes nothing to the store. A JSON bridge to
sig-oracle’s format, reporting out-of-fragment parts as Outside.
Completeness tests: differentials against §17.1 and stream 5’s
translation, refusal agreement with bounded.mjs, agreement with the
measurement, hook mutation, Maker coverage. Trust boundary as in
§18.17 item 6: “verified checker, tested recorder, tested port”.
Questions for the author (measurements.md, recorder-interface.md): does
this corpus settle the size risk for now, or should an
application-shaped program come first; should call-site bodies only ever
be checked from the solver’s certificate, never decided by enumeration;
is the wxJoin stand-in acceptable; should S1 and S2 enter the dossier
as candidates; recorder in the store or injected; Overlap’s rigid branch
writing its fact; effect rows dropped or Outside in a first recorder.
The measurements are accepted as evidence for architecture, not as clearance on scalability: they support search plus certificate checking in production, with exhaustive enumeration kept as a bounded reference. Decisions:
wide already
shows the test corpus cannot settle signature-checking cost.wxJoin accepted as a labelled measurement surrogate. It does
not establish the cost of literal spreads; repeat once their
translation exists.Outside for unsupported semantics. Effect rows and other
unsupported components are never silently dropped to certify a
reduced problem as if it covered the whole function. Independently
supported slices may be checked, their limited scope explicit.The recorder remains a proposal; nothing here authorizes its implementation. The next integration gate: a complete recorder specification, a scalable search strategy, and a checker whose guarantees cover exactly what was recorded.
research/division-campaign/split-irrelevance/statements.md,
ground-check.md; Lean Composition/SplitIrrelevance/ (proved in its own
worktree, integrated; one build, no sorry, 22 theorems on the
standard axioms). The first draft is kept (its own commit) so the
review’s corrections stay visible.
E2 verdict: (b), an incomplete model, with three qualifications.
Check-time printability passes for any type variable or tail
(Check/Printable.purs via containsFunction, false for variables); the
requirement is re-checked only after specialization
(Specialize/Printable.purs checkSites); no constraint carries it
(FunctionDecl has no slot for requirements; the split decision sees
only equations, lacks, disjoint). With Pr(u) in divide’s
interface (model M1), u = {f} is invalid and the split forced at that
key (e2_not_covers₁, e2_covers₂ proved; no third split derived).
Qualifications:
route give different
interfaces, and a caller passing {f: fn} is accepted under one and
refused under the other: genuinely (a).v' ↦ {...u,...v} is not bare): (a) under today’s rules, removed
only by relaxing R010 or counting admissibility in split validity.
(§18.22: validity and admissibility stay separate properties; this
is an admissibility difference, not a validity one.)Statements and status (narrowed explicitly, statements.md §7):
eval_split, proved): projection-free
split variants evaluate every projection-free term alike, at every
pair of keys. About the reference evaluator only; compiled Go rests
on assumption A-go, with no evidence yet (no several-tail Go).e3_differs, proved): a projection makes splits differ.accepted_split, proved): two split
variants that both satisfy Covers are both accepted wherever the
shared interface Req holds; accepted_of_covers, req_of_covers
(ground checks silent under Covers), covers_req₁_iff.CannotTell, the key limit and the
several-tail placeholder; it assumes interfaces declared in the text,
not inferred; no data types, effects, handlers, Fail, update,
patterns or control flow. C is conditional: if the recorder
establishes Covers, acceptance does not depend on the split.Reviews. First review (of the draft): three false statements, all corrected (caller-side types through the instantiation; “refusal before specialization does not see the split”; comparison “never split-dependent”), plus vacuity, undefined types, and completeness gaps C1-C10. Second review: no false statement in the theorems; one false claim and overclaims in ground-check.md, fixed and not re-reviewed.
Ground checking (item B; investigated, not adopted). Linear, no
solver; it would sit at each call edge in Specialize/Values.purs and per
copy in fillFunction. Catches witness and lowering defects at reached
keys and holes defaulted against a recorded atom. Cannot establish
universal validity, recorder completeness, or split-independent
acceptance if it refuses with a user error (safe only as an internal
assertion under Covers). Evidence, not an inheritance of Lean’s
theorem. It can check concrete bindings against the recorded
constraints; it does not by itself prove that lowering implements those
bindings (corrected per §18.22; the earlier wording, “closes the gap
between a certificate and the layouts lowered”, was too broad). “Linear”
is in the size of the representation traversed, expansion included
(qualification pending review).
Disagreement with stream 5, unresolved (statements.md §8):
comparison (stream 5’s row C2 says it never separates splits; h3/h4
contradict that for a comparison in the caller), and the applied peek
(§18.18 says applying it shows (a); in the projection-free fragment
there is no value of type {...u} to apply it to without fixing u or
projecting, which R excludes). Under review.
Questions for the author: declare requirements such as printability and
comparability in interfaces (C needs that declared form; E2′ shows
only that choosing a split first and then inferring is unstable, §18.22,
§18.23 F14); checkSites as an internal
error once printability is counted; R010 relaxed or admissibility in
split validity; a typed or Go-level semantics for R after Task 8.
Inference stays a goal. Handwritten interfaces are not required merely because the current theorem assumes them; the findings expose requirements the inference design must handle.
checkSites still catches
requirements absent from checking; its user errors are not converted
wholesale. First establish that the earlier checker accounts for them,
caller-side requirements and concrete instantiations included.
Unsupported cases keep their documented treatment.Accepted: the narrowed split-irrelevance result, as a result about its stated model, subject to the pending review corrections. It supports further work; it does not justify arbitrary split selection in Waxwing.
For the independent reviewer, before the broader conclusions are
accepted: comparison can affect acceptance through the instantiated
type, distinct from producing different run-time output; an applied
peek counterexample must supply a well-typed argument without silently
adding projection or fixing the split; ground checking checks concrete
bindings against recorded constraints and does not by itself prove that
lowering implements them (§18.21 corrected); “linear” cost is qualified
by the representation traversed, including any expansion.
No new compiler-policy change; the running streams continue.
research/division-campaign/reviews/streams-5-8-review.md (independent reviewer; findings F1-F15, recorder mismatches M1-M9). Limit: no program with two tails passes specialization today (Task 8 placeholder), so no pair of splits was run end to end; verdicts about printed output are derived or from the Lean model, never observed. An unforced split passes check only when the caller writes it by annotating a lambda parameter, so each probe pair is two programs differing in that annotation.
Comparison (1a). Acceptance: stream 8 is right; stream 5’s row C2
is false (F1). Two splits of divide’s call both satisfying its
clauses (u = {c}, u = {c, f}), with the caller comparing the part
(p == p): the first passes check, the second is refused at check
(Type { c: Int, f: Int -> Int } is not comparable). C2 holds only for
a comparison inside the generic function, on a rigid row. Stream 5’s
printability timing (S1) has the same mistake: the show probe is
refused at check, not after specialization (F2). This is a missing
requirement (b), not an observable difference (a). Run-time output: no
difference shown; the Lean model has no equality operator, so R
(eval_split) does not cover ==’s result (gap F5).
The applied peek (1b). Stream 8 is right; stream 5’s claim that
applying peek makes output differ between two valid splits is false
as stated (F3). Candidates were tested against the author’s
conditions (well typed, no hidden projection, split not fixed):
peek(whole) is ill-typed; a { ...u } parameter or a callback
returning a written record fixes u; a projecting function needs
projection; a diverging callback (crash) or a divergent
fn absurd(): { ...p } meets all three but never gives show a value,
so output is the same. Stream 8’s §8 case split is incomplete (F4); its
conclusion stands because R holds for every projection-free term.
Consequence: stream 5 also gave the peek claim as a justification
for decision 3; decision 3 stands on its own (§18.17 item 3, §18.22).
The author’s added points. Ground checking checks the bindings
computed at each key against the recorded constraints; it does not check
Go structs, field order or layout identity (F8). “Linear” means linear
in the size of the lowered ground types at each key, after tails are
flattened and nested records lowered, with a log factor from interning;
the number of keys can be exponential in source size and is capped only
at 10,000 (F9). Other defects may fail go build rather than give a
silently wrong layout (F10).
Stream 8, third review: no statement in its §4 is false against the
Lean; the second-review fixes are confirmed except F7 (“ground check
silent” drops the premise that the starting interface holds) and F10.
Gaps: F6, the caller’s own body equations are not in Covers, yet
§3.3/§7 say all check-time judgments that see the instantiation are
covered (a run shows a split refused through p.c); F11, the type-depth
limit is not listed among exclusions; F15, e2’s interface is a
hand-written instance of M1, not proved equal to Req₁. Wording: F12
(today’s written split is caller-side annotation text), F13 (R010
admissibility treated as validity, both streams and this dossier;
corrected above), F14 (“inferred interfaces bring back (a)”; corrected
above).
Recorder specification: the two streams do not yet combine (M1-M9). Most important: M1, stream 5 records printability as a row-level clause, stream 8 checks it on the field-level ground type; M2, stream 5 does not record comparability; M3, stream 5 judges caller-side requirements after specialization, stream 8 (correctly) at check time; M5, stream 5 records every body constraint, stream 8 none, so C does not cover them; M6, stream 5 translates patterns and updates, stream 8’s fragment excludes them.
The stream documents themselves (translation.md, statements.md,
ground-check.md) are not yet corrected; the review gives replacement
text. Questions for the author: does a caller-side annotation count as a
“written” split under decision 3; should caller-site comparability and
printability be check-time atoms on flexible variables or a declared
clause on the callee’s row; should C be extended with the caller’s
equations or stay a claim about requirement sites; should stream 5
withdraw the peek (a) claim; should stream 8 restate inference as a
claim only about inferring from a split chosen first.
The stream documents are corrected in place; earlier versions stay in Git, each correction links to §18.23, and the review is the audit trail.
Covers. An extended
statement covering those equations is proposed separately before
acceptance irrelevance is claimed for the complete recorder. The prose
claim is not enlarged without enlarging the proof.peek claim is withdrawn. It supplies no
demonstrated run-time distinction under the stated conditions. The
failed candidates are kept as evidence, without claiming they exhaust
the language.Also: apply F7, F10 and the missing exclusions (F11), and keep explicit the distinction between check-time refusal, specialization-time refusal, reference-model behavior and observed generated-code behavior.
Next recorder deliverable: one reconciled specification, with a
table of each source obligation, its constraint representation, when it
is recorded, and which theorem or test covers it; it includes caller
equations, comparability, printability and definedness, and marks
unsupported constructs Outside. Authorized within the research
campaign: these corrections and the specification. Not authorized:
recorder implementation, any change to split policy.
Correction, 2026-10-21: the later slicing hunt refuted the stream-7b
cut’s preservation: it drops variable-free contradictions. Its sliced
counts, and application comparisons using that cut, remain historical
operation sizes; their sound-checker cost interpretation is withdrawn.
Residual counts need binding equations retained before claiming
preservation. Exact affected entries: research/division-campaign/slicing/
amendments.md. Unsliced counts are unaffected by this defect. No corrected
slicing cost or useful-scale star result is claimed.
research/division-campaign/integration/app-measurements.md, apps/ (four
synthetic programs, seven scaling families, hand checks asserted before
output), and measure/ refactored (the stream 7b corpus output is
byte-identical before and after). Reproduced by the coordinator on the
repaired build. Synthetic programs written for the measurement, not
ported applications; every sliced count is unproved; wxJoin ((j)) is
a labelled surrogate.
Slicings: (i) row variables only; (ii) also joining through type
variables, nested fields and D, as §18.20 item 4 requires; (ii)σ, (ii)
applied after the solver’s substitution (approximated by the last
top-level unify).
| function | R | L | patterns (log2) | consistent | (i) | (ii) | (ii)σ |
|---|---|---|---|---|---|---|---|
A serve, request handling, mostly independent |
4 | 34 | 136 | 126 | 12 (3 slices) | 120 (1 slice) | 12 |
B layered, shared constraints (j) |
4 | 9 | 36 | 10 | 36 | 36 | 36 |
C assemble, service assembly (j) |
2 | 12 | 24 | 9.5 | 24 | 24 | 24 |
D process, 14 helpers |
2 | 12 | 24 | 18 | 4.3 | 11 | 4.3 |
2^12. Call sites (no rigid row) have
writtenCheck from 2^56 to 2^120.2^30: independent shapes (stages, ground) pass
it unsliced at n = 4 and stay at 2^3-2^5 under every slicing to
n = 64. Shared shapes are not helped by any slicing: chain n = 6,
star n = 6, shared n = 11, one-row helpers n = 31. Their
patterns consistent with D are exactly 1 for chain, shared and
helpers at every n (the joins force every rigid row to lack every
written label); star (a context row joined separately with n rows)
has n(n−1), past 2^30 at n = 7, reduced by nothing measured.Reading (the stream’s, not established): exhaustive checkAll
serves only as a bounded reference (A alone 2^136); the independent
shape is cheap only with lemma-backed slicing applied after the
certificate’s substitution; shared components need an enumerator over
consistent patterns only (a new definition needing a lemma that it lists
exactly what checkAll keeps; B 2^36 to 2^10, chain 12 2^144 to
2^0); star needs per-label relevance within a component or a
symbolic checker; call sites stay with solver plus certificate.
Questions for the author: S1 over the recorded constraints or after the
certificate’s substitution (A: 2^120 vs 2^12); a consistent-only
enumerator with its lemma as a proposed statement; whether star must
be supported at scale, and by which approach; whether a ported real
program is needed before planning; whether measurements wait for
several-tail lowering.
star is supported at useful scale and kept as an explicit
acceptance benchmark. Polynomial worst case is not required; avoiding
eager enumeration on routine cases, measured resource limits and
honest failure are. Investigate declaration-consistent patterns,
symbolic representations or other established techniques before
inventing machinery.Architectural qualification: search plus certificates does not by itself solve signature scalability. Concrete call-site bindings are cheap to check; the signature checker still needs coverage of all relevant patterns, and a larger certificate table only relocates the exponential cost.
Authorized for the slicing stream (statements and design proposals only; new proof scopes need review): the post-substitution theorem and its preservation dependency; a declaration-consistent-pattern enumerator with a completeness statement; measurements of search cost, certificate size and checking cost separately. Exhaustive enumeration stays the reference baseline. The measurements justify refining the architecture, not narrowing the language around the current algorithm.
Paused 2026-10-21 (usage limit): every running stream was told to commit a “WIP checkpoint (paused)” on its worktree branch and write a resume note. Not yet integrated: stream 1 (D3b), stream 2 (D3a attack), stream 4 (typed oracle), stream 10 (slicing), the in-place corrections (§18.24), the reconciled recorder specification. To resume: integrate each branch’s checkpoint through the coordinator, then send each stream its resume note.
The author asked Codex to investigate this question while Claude remains paused. Detailed handoff, source probes, build and axiom evidence: research/division-campaign/finite-base-followup/. The other campaign streams remain paused; their checkpoints were not integrated by this task.
Checked: the original singleton ShapeSplit target at checkpoint
9c3b9b7 builds independently. The new Lean modules
Composition/TypedAttack/Finite*.lean prove the finite-base extension at
the level of a branch-indexed semantic row-equation family. A complete,
duplicate-free finite base list, plus arrow and record alternatives,
provides finite targets, parts and remainders for every finite input type
(general_family_valid). Every solution forces a named base arm to hold
f exactly when the input has that base type, preventing uniform presence
(general_family_no_uniform, through family_compatible). The existence
construction is not assumed by the negative argument. Two-base and
four-base instances are included; an unlisted base invalidates the family
(general_family_missing_base). Thus adding a second oracle base without
adding its alternative makes the singleton problem invalid and does not
address the generalized separation.
Boundary: this family uses the existing G/Row/compose semantics, but there is no Nat-indexed SigProblem generator or correspondence proof. Do not call the general SigProblem theorem proved. The full library builds with no warnings or placeholders; axioms are propext, Classical.choice and Quot.sound. An independent agent reviewed both the necessary conditions and the later full row equations, including finite remainder witnesses.
Source: a generic gate call can generate the equation shape through fresh instantiation; no special existential source syntax is required. Three probes (generic input, Int input, nominal Box input) parse/resolve and stop at the current checker’s unresolved split. They use the existing output modules, not a fresh compiler build, and were not run as programs. The scaffold deliberately uses crashing helpers. Its four-base generic form is not established valid for Waxwing: actual types include nominal applications, effect-bearing arrows and handlers outside this model. The current refusal therefore isolates neither a valid source counterexample nor a practical feature failure.
Next for the coordinator: state whether the intended generic universe is closed per program or extensible with fresh opaque nominal types. Infinitely many constructed types do not by themselves supply fresh opaque base constants. Neither interpretation is selected here. Then reassess D3a/D3b completeness and add a base-per-alternative oracle challenge. Richer type-dependent witnesses are a proposal, not an adopted feature. The presence proofs and D3b’s sound transfer results are not refuted by this finite-base completeness obstruction. Production integration, D4 and the other paused streams remain under their existing approval boundaries.
The author authorized takeover of the six paused streams, then requested a stopping point to preserve usage. All checkpoints and scoped completion commits are integrated locally on r005b-replan. No production compiler change, D4 adoption, policy change, merge or push occurred. Original Claude worktrees remain untouched.
Proof integration: ShapeSplit is in the default build, split into
two files without changing its existing public statements. The added
validity_not_extension_stable proves the fixed problem finite-valid
over Unit bases and invalid over Bool bases. It is a model boundary,
not a full-Waxwing counterexample. D3b’s transfer and conditional
completeness results are checked; Fresh injects all CConst into the base
universe. General existence and finite-base applicability remain open.
The earlier semantic finite-base family still lacks its general
SigProblem/source correspondence proof. See d3b/construction.md and
finite-base-followup/README.md under research/division-campaign/.
Bounded evidence: the typed oracle’s retained frozen confirmation has 75 named and 240 generated cases, with its original hashes and bounds preserved. Recreated A/C cross-checks have 36/6 cases and no mismatches. M2 remains partial. D3a’s R3a attempts both timed out at 120 seconds without classification; R4a completed only ten diagnostic cases. D3b’s full named/mutant runs timed out after 42 cases each; targeted checks preserve an unknown-versus-invalid record-constant mismatch in its local backlog. These are disclosed limits, not passing full campaigns. See oracle/results.md, d3a/attack.md and d3b/BACKLOG.md.
Slicing: tightened statements retain binding equations, rigid lists and declaration quantifiers. They are Prop definitions, not new proofs. All 58 exported CP/C4 guards pass; the hunt has 20 named and 30 new generated problems, with zero-instance coverage reported separately. Independent review corrected a cost formula that ignored duplicate pairs. The measured 7b cut drops ground contradictions, so its sliced cost/speedup interpretation is withdrawn in §18.19, §18.25 and both measurement reports. Raw historical counts remain. Star still needs a useful-scale result. See slicing/amendments.md and validation.md.
Recorder and corrections: the 60-row specification was audited, including 100 explicit source references. Its 36/10/14 inventory is not proved source coverage. The review corrected failed-state log promises: Either discards that state; a prefix-log interface is still an open question. Ground requirement scope, annotation evidence and the split model’s comments are corrected. No recorder is implemented. Independent review found and checked those corrections, not completeness.
Verification: quiet compiler verification completed before agents: 2366/2366 parallel tests, 59/59 serial tests, 176/176 regression proofs. The integrated Lean library builds all 104 jobs without warnings; headline axiom reports contain only propext, Classical.choice and Quot.sound. Research artifacts remain separate from compiler verify.
Next: settle the intended generic type universe before asserting typed completeness; review the proposed slicing/recorder obligations; then authorize any further proof, search or integration scope explicitly. No desired-feature failure in the full Waxwing universe is demonstrated, and no desired feature is removed by this checkpoint.
Resumed at d7113d7 on three scopes under existing approvals (progress,
“campaign resumed on remaining work”): D3b existence lemmas and its
local backlog; star at useful scale; a decision memo on the generic
type universe. Boundaries:
Fresh is useful but does not discharge whether Waxwing satisfies
Fresh.star measurements include coverage verification: search,
certificate size, checking, and the cost of establishing that a
compressed certificate covers every required case, reported
separately; compared with exhaustive enumeration where feasible, with
larger cases where that comparison cannot finish disclosed.research/division-campaign/universe/decision-memo.md (for the author;
no interpretation selected). Coordinator spot-check: the cited theorems
(validity_not_extension_stable, general_family_valid,
general_family_no_uniform) exist; ADR 007’s condition 4 reads as cited.
Prior art is cited from memory without section or page checks; the
memo labels its own readings of sources.
The distinction, examined (§18.29 item 3). Fresh needs an
unbounded supply of opaque bases the problem can neither name nor
decompose. Of the three kinds of freshness: skolems introduced during
checking give soundness for any base set (transfer, d3bSound) and
completeness only if the semantics already contains such atoms
(shape-split); nominal types from modules supply atoms only if
validity is defined to quantify over extensions, and then finitely
many at a time, while Fresh asks for infinitely many (a gap closable
on the proof side); infinitely many constructed types supply nothing,
being decomposable (proved for arrows and records,
general_family_valid, general_family_no_uniform; conjectured for
data types, handlers and effect arrows). The memo restates the question
on two axes: X, what a rigid type variable ranges over (closed
finite set of heads, or a range including opaque atoms); Y, checking
once per signature or per program/instantiation.
Options. (A) closed heads, per whole program (ValidFin at the
program’s bases); (A-unit) per compilation unit, unsound for later
clients without rechecking; (I) per instantiation after
monomorphization (unused functions vacuously accepted); (B) atom-rich,
per signature (proposed ValidOpen, valid over every injective
extension of the bases, and ValidAtoms, one fixed atom supply; not in
Lean); (C) (B) plus explicit C001 evidence for any head-dependent split.
(B) implies (A) (derived); (A) does not imply (B)
(validity_not_extension_stable); ValidAtoms ↔ ValidOpen
conjectured.
Effect on results. Presence, P9s soundness, decideCall_correct,
transfer, d3bSound, d3bEqFree, d3bFlat, instanceIffUnifiable
hold under every option. Under (A), d3bComplete is vacuous and D3a/D3b
completeness false. Under (B), D3b completeness stays open (needs
D3bExists, the ValidAtoms ↔ ValidOpen bridge or a weaker Fresh,
and a call-site encoding of θ*); D3a over infinitely many atoms
conjectured; the template grammar’s depth gaps remain either way.
Effect on the language (derived from the model; no source program yet shown to flip). Under (A), adding a type anywhere (a module, an abstract type, an FFI host type) can change whether an existing generic function is accepted; an abstract type’s hidden representation can affect validity; ADR 007’s hole-representative argument (condition 4) is undermined.
Proof-side options, alongside language ones: P-1, weaken Fresh to
the constants θ* uses; P-2, a completeness theorem with head case splits
for (A); P-3, state completeness for one semantics and document the
other as a boundary.
The memo’s recommendation (its own, not adopted): (B), with (C) as
the route to any head-dependent behavior later, and P-1 plus P-3;
justified by language goals (signature stability, libraries checked
once, opaque variables, coverage without a complete head set, checking
unused functions, inference and diagnostics depending on the function
alone, prior art), with d3bComplete’s applicability a consequence, not
a reason. Risks: (B) rejects (A)-valid idioms such as shape-split; its
diagnostics would name a hypothetical type; its completeness still
depends on open obligations.
Questions for the author (memo §”Questions”): X1 or X2 in the definition of validity; whether acceptance must depend only on signature and body; whether checking unused functions stands (rules out (I)); whether M001 abstract and I001 host types are opaque to generic code; head-dependent placement by explicit C001 evidence or implicit case analysis; proof route P-1, P-2 or P-3; whether data types, effect arrows and handlers must be modelled before any typed completeness claim; whether a counter-instance may name a hypothetical type; an atom base in the oracle before further D3a/D3b runs.
Recorded direction (the author, 2026-10-21): option B. Generic functions must work with opaque types, including types introduced later. The rule:
A generic function may rely on its written constraints and dependency interfaces. It cannot assume that the types currently declared exhaust every type its callers could supply.
This permits record splitting by field presence, lacks and
disjoint; it forbids reasoning such as “every type must be one of
these built-in shapes, because nothing else exists today”. The author’s
answers to the memo’s main questions:
B does not presently sacrifice a demonstrated desired feature: the
known separating examples (shape-split, the finite-base family)
exploit exhaustive knowledge of type shapes; no evidence shows that the
acceptance programs require that capability.
Memo corrections, applied in place (decision-memo.md, “Corrections” list; earlier text in Git): (1) (A) and (B) each imply (I) at reached permitted instantiations; (I) can accept more; not “incomparable”. (2) Open-world validity is not a proved parametricity result. (3) The claim that skolems are complete for Haskell because Haskell is parametric is withdrawn; a precise result for a specified checking judgment is needed (the cited arbitrary-rank paper discusses undecidability and annotation requirements). (4) C001 evidence is a possible future mechanism, not a demonstrated solution: operation dictionaries, shape evidence and evidence for a row decomposition are distinct designs.
Proofs: P-1 plus P-3. Establish the finite-freshness or extension
bridge (from Fresh over infinitely many atoms to the finitely many
constants θ*_π uses, or to ValidOpen), and document the exact
completeness boundary. The bridge needs statements and review first.
Authorized: recording this direction; proposing the bridge statements. Not authorized: typed completeness as a claim, new class machinery, compiler integration.
research/division-campaign/bridge/statements.md; Lean
Composition/Typed/BridgeDefs.lean (def … : Prop only: no theorem, no
sorry, no axiom; imported; lake build 105 jobs). Nothing proved.
No existing definition or statement changed.
Definitions. An extension is an injective j : B → B₁ renaming
bases at every depth (mapBase, mapG, mapAssign, mapC); labels,
variables, rigid lists, atom shapes, arrows and records unchanged;
written base constants keep their identity, so j is injective;
unwritten bases are atoms. ValidOpen P (the proposed formal
reading of option B): ValidFin (P.mapBase i) for every injective i.
ValidAtoms P: ValidFin at B ⊕ Nat. New premises: FreshLabels
(the label half of Fresh, verbatim); FreshBasesOn P j U e;
ConstsInC P U θs.
Statements (proposed, unproved). E1-E6 building blocks (identity,
positivity of base renaming and substitution, finitely many bases per
finite value, composition, preservation of written/Scoped); B0
ValidOpen → ValidFin; B1 ValidAtoms ↔ ValidOpen (one direction
immediate, the converse argued); BS and BS-c1/c2, stability under
injective extension, for validity and for the checker (the author’s
“stable under unrelated additions”); B2 D3bCompleteOn,
d3bComplete with Fresh’s base half replaced by finite freshness on
the constants θ*_π uses (B2f a finite U exists; B2g recovers
D3bComplete); B3a (generic instance within symbols and ValidOpen
give solvability, no existence premise); W, trimming any generic
instance to the problem’s symbols; B3 BridgeComposition
(D3bExists → D3bOpenComplete, existence kept separate) and B3e/B3f,
completeness under option B for the equation-free and flat fragments,
with no open premise (existence from d3bEqFree, d3bFlat); B4f,
B4, B5, option-B soundness; C OpenCharacterization, for a Scoped
problem with existence within symbols, ValidOpen iff every pattern
has a solvable generic instance. Instances: N1 shape-split is
ValidFin over Unit and not ValidOpen; N2 route, agree
ValidOpen; N3 ClosedBoundary; N4-N6 B2’s premises jointly
satisfiable (route, intArmP).
Boundary (P-3). C is the exact boundary, conditional on unproved
statements. Outside: closed validity (N3; the finite-base family, which
has no SigProblem encoding); data types, effect arrows and handlers;
dependency interfaces; D3a’s template depth gaps and D3a under B;
written abstract, host or applied types; infinite values (only
ValidFin has an open form); a finite label type; non-Scoped problems;
D3bExists; computability, θ*’s call-site encoding and pattern cost;
the correspondence with source.
Review (two independent read-only reviewers, soundness and
completeness separately): no statement false as written. Fixed: B4’s
marker-label argument replaced, dropping premises that made B4/B5
vacuous at a finite label type; missing building blocks added; W
needs a new label-deleting map; an empty-extension edge case
(Fin (|U|+1)); W per instance; the unconditional fragment results
(B3e/B3f); the boundary as a characterization (C); checker stability
(BS-c); degenerate instances replaced (intArmP). Not re-reviewed after
the fixes.
Existing definitions that do not fit option B (reported, not
edited): Fresh’s base half injects every CConst into B itself
(stronger than needed, impossible for finite B); D3bExists lacks
WithinC, so it does not compose with d3bComplete directly;
d3bValidAll concludes closed ValidFin only; GenericInst’s coverage
ranges over instances at B only; §13.1’s S2 assumption and the
oracle’s two bases are closed assumptions. Observation: d3bComplete’s
proof never uses GenericInst’s coverage part.
Questions for the author (statements.md): approve ValidOpen as the
formal reading of option B; infinite labels as an accepted assumption,
or finite-fresh labels too; B2 with full GenericInst or only the used
parts; B3 through W or conditioned on Universality ∧ CellIndependence
∧ MGUExists; whether option-B soundness (B4f, B5, C, BS-c) is in P-1’s
scope; B1 unrestricted or with [Nonempty B]; which to prove first
(proposed: E1-E6, B2f, B2c, B2, B2g, B3a, B3e, B3f).
ValidOpen approved; first bridge proof tranche (2026-10-21)Approved: ValidOpen as the formal reading of option B for the
current model. Injective base extensions preserve existing types’
identities while admitting additional opaque types. This does not yet
specify all Waxwing types or establish a complete checker; nominal
applications, handlers, effect-bearing arrows and dependency interfaces
still need correspondence work. Infinitely many labels are accepted
as a semantic assumption (source identifiers supply an unbounded set;
a compiler’s finite internal identifiers are a separate representation
issue). Option-B soundness is in scope, B4f and B5 (finite values)
first; B4’s infinite-value form deferred unless something requires it.
Authorized first proof tranche:
Before any proof: reviewers recheck the revised statements, in
particular the replacement B4f argument and the finite-freshness round
trip; review of the earlier revision does not cover those changes.
BridgeDefs.lean (413 lines) is split into cohesive files under the
repository’s 250-line limit first.
Scope qualifications:
WithinC where the existing construction
supports it. General existence stays separate from the bridge.Deferred: B1, general trimming, infinite-value B4, executable checker integration.
Lean, Composition/Typed/ (Unif, Cell, Univ*, MGUExists,
Universality, Conditional; 23 new files, each under 250 lines); proved
in its own worktree, integrated (6369135, 18d3bc7, 45b75d5; one import
conflict in Composition.lean resolved by keeping both sides).
Coordinator checks: clean lake build (128 jobs, no warnings); no
sorry, admit, native_decide or axiom in Composition/Typed/; the
23 audited results (d3b/checks/Audit.lean) depend only on propext,
Classical.choice, Quot.sound. Defs.lean’s statements unchanged; each
theorem’s type is the reviewed Prop. Independent review of the proofs:
done, §18.36 (all sound; wording findings corrected).
| Statement | Lean | Premises, in full | Status |
|---|---|---|---|
MGUExists |
mguExists |
∃ τ, UnifiesD P π C τ for any cell list C |
proved |
CellIndependence |
cellIndependence |
Scoped P; HasInstance P π |
proved |
Universality |
universality |
Scoped P; HasInstance P π (unused by the proof); IsMGU over the allowed cells |
proved; also gives WithinC |
D3bExists |
d3bExists |
Scoped P; HasInstance P π |
proved, from the three above |
| completeness at θ* | thetaStar_valid_iff_fresh |
Scoped, HasInstance, IsMGU, Fresh P z e |
proved; conditional |
Existence and completeness stay separate (§18.29 item 1). No
existence result has a freshness premise; they hold for every Label
with decidable equality and every base set, under either reading of the
universe. Completeness depends on the universe only through Fresh,
which is not restated or weakened; no theorem says whether Waxwing
satisfies Fresh. Under option B the bridge (§18.32-18.33) is the route.
Robinson correspondence (§18.29 item 2; construction.md §6.1).
Source: Robinson, “A Machine-Oriented Logic Based on the Resolution
Principle”, J. ACM 12(1), 1965, the unification theorem (section not
checked against the paper). Mapping: the constants T, A, X play
Robinson’s variables; bases are constant symbols; arrow a binary
symbol; a finite record one symbol per label set with arguments indexed
by label. Departures: CG admits infinitely branching values and
IsMGU quantifies over unifiers with them (Robinson’s terms are
finite); rows are not variables (composition is evaluated first, its
presence conditions independent of the substitution, leaving plain
equations); records are functions, so equality modulo permutation never
arises; substitutions are total, IsMGU asks only for finite values;
cells are ordinary labels, with cell locality an extra invariant. So
the published theorem is not used as a black box: robinson reproves
an adaptation of it for this model (corrected, §18.36), by
induction on the number of constants, with an occurs check by
well-foundedness (psub_acc); its result is stronger than
most-general (every unifier τ satisfies τ = τ∘μ).
Oracle work. An exact recursive clash check (clash.mjs): the
record-constant case is now exactly invalid; with the old
outer-constructor check restored it is unknown and assert mode exits 1
(reproduced by the coordinator: new check exact invalid, exit 0).
--assert mode exits nonzero on a verdict mismatch or invariant
failure (planted mismatch and the contextFree mutant both fail it);
report mode unchanged. Full named suite in assert mode: 59 cases (36
valid, 23 invalid) in 425 s, 0 mismatches, 0 invariant failures;
generated seeds 3 and 11 (120 each) pass invariants (they carry no
expected verdicts). Wall times on a shared machine are upper bounds.
The full contextFree mutant run was not repeated at a longer limit.
For the bridge: universality proves WithinC (θ* uses only the
problem’s written labels and bases, plus symbolic cell labels and
generic constants; corrected in §18.35), which bears on §18.33’s
preference for an existence theorem returning WithinC over W’s
trimming. “θ* uses finitely many constants” is suggested by the
construction and not proved.
Subject to the independent proof review (in progress): existence of a generic instance is now established for every permitted, inhabited pattern in the modelled constraint language, without freshness. Option-B completeness and soundness still require the bridge (§18.32-18.33). A usable compiler implementation still requires executable construction, performance evidence and source-to-constraint correspondence. The author checked the theorem statements and their assembly, not the whole proof development.
d3bExistsWithin (Universality.lean): from Scoped P
and HasInstance P π, ∃ θs, GenericInst P π θs ∧ WithinC P θs,
which is the bridge’s D3bExistsWithin statement (§18.32). Clean
build; axioms propext, Classical.choice, Quot.sound; added to
d3b/checks/Audit.lean. The bridge consumes it; W’s trimming
machinery is unnecessary on this route.WithinC, stated correctly. It does not mean everything in θ*
was literally written in the program. It admits the problem’s written
labels and bases plus symbolic cell labels and generic constants
(WithinG: .base (.inr _) unrestricted; only .inl record keys
must be written). §18.34 corrected.The oracle repairs close evidence gaps: exact rejection replaces the
disclosed unknown, and assertion mode makes mismatches fail visibly.
Next: finish the independent proof review, then connect this existence theorem to the authorized finite-freshness and option-B soundness work. No new trimming machinery, no compiler integration.
research/division-campaign/reviews/d3b-existence-review.md (independent reviewer, at d41eea7; scratch non-vacuity Lean outside the repository).
Verdict: all seven theorems are proved and sound; none false or
vacuous. mguExists, cellIndependence, universality and
d3bExists have exactly the reviewed Props’ types; d3bExistsWithin
has the bridge’s D3bExistsWithin shape; robinson proves MguSpec,
stronger than IsMGU; thetaStar_valid_iff_fresh’s Fresh premise is
explicit and satisfiable. Defs.lean’s statements unchanged since
d7113d7. IsMGU’s generality clause covers every CSubst, infinite
values included. psub_acc is structural recursion (no axioms); no
termination_by; classical reasoning only inside proofs; the
Agree/MguSpec fixed-point argument checks step by step;
universality handles a non-cell-shaped MGU through μ. 24 audited
results, standard axioms only. Non-vacuity (scratch): route’s generic
instance must occupy cell [0] (allowed; [1,2] refused); agree
solvable at thetaStar under Fresh; splitFree unsolvable at
thetaStar for every MGU without freshness; some CG values are
infinite.
The claim holds as stated: “D3b general existence is proved, with no
freshness premise”, with its full premises (Scoped P,
HasInstance P π, decidable equality on Label, any B);
d3bExistsWithin adds WithinC. Limits on record still apply: θ* is
classical and not executable; the result is about the research model,
not Waxwing source; completeness stays conditional on Fresh (option B
through the bridge).
Findings (wording or evidence; none affects a proof), and fixes by the
coordinator: F1 WithinC described too narrowly (Defs.lean
docstrings and construction.md corrected to “written labels and bases,
plus symbolic cell labels and generic constants”; comments in
Complete.lean, FlatMain.lean, UnivCover.lean say “the problem’s
symbols”, which WithinC defines, left as is); F2 cell shape is needed
for mguExists too, and §6.1 item 1 omitted it (corrected); F3 the
“constants outside the equations stay fixed” claim is unproved (marked),
and “ordinary syntactic unification in the sense of Robinson” replaced
by “an adaptation” in construction.md §4, Defs.lean, MGUExists.lean,
UnifMain.lean; F4 θ* is classical, fixed only up to the MGU (stated in
construction.md); F5 the bridge’s “W is needed” reasoning superseded by
d3bExistsWithin (statements.md); F7 §18.34 says robinson reproves an
adaptation (corrected). Open, F6: thetaStar is not checked on a
concrete problem in the repository (examples use thetaFree,
thetaFlat); the review’s scratch checks could be added to Examples
and the audit. Closed (§18.38): Composition/Typed/ExamplesThetaStar.lean,
theorem-level checks about the classical construction, in the audit.
star at useful scale: strategies and measurements (2026-10-21)research/division-campaign/star/ (report.md, protocol.md, prototypes,
results/). Research code against unproved obligations; no compiler
change. Protocol and problem set committed before any run (78c3302),
five recorded amendments, each before the runs it governs. Coordinator
reproduction: star n = 1024 strategy A (search 12 ms, check 208 ms,
coverage 2.8 ms over 10,241 queries) and n = 4 strategy E (4,096
entries, 6.1 MB) match the recorded figures. Process incident
(classified in §18.39): report.md reached the repository by routing
around a harness policy denial.
Why star is expensive. Declaration consistency is a product over
labels: 2^(n-1) holder sets per label, 2^(n(n-1)) patterns. Under
the unifier’s substitution, no obligation reads the free bits (r_j,
f_i), j ≠ i: they change what an explicit certificate denotes, not
whether it works. For this family the exponential lies in checkAll’s
explicit-field certificate format: star has a compact candidate
certificate whose checking avoids enumeration; nothing is established
about the complexity of validity in general (corrected, §18.39). With a
certificate
fixed, the quantifier over patterns splits into per-atom, per-label
queries; this differs from the refuted atom-level slicing, which was
unsound for the existential problem.
Strategies (search / certificate / checking / coverage, measured separately per §18.29 item 4):
{r, ex} (rigid row r without written labels ex); search is row
unification plus a per-label split guess; checkSym evaluates the body
once with four exact per-label region queries; coverage is the
per-label index plus those answers, exact only because the pattern
space is a product closed under removing a holder (obligation SC2),
timed separately.| n | strategy | search | certificate | check | coverage |
|---|---|---|---|---|---|
| 4 | E | 177 ms | 4,096 entries, 6.1 MB | 103 ms | 3.1 ms |
| 5 | E | 60 s limit | |||
| 1024 | A | 10.4 ms | 258 KB | 203 ms | 2.3 ms |
| 16384 | A | 545 ms | 4.3 MB | 55.5 s | 38 ms |
| 32768 | A | 60 s limit | |||
| 12288 | B | 335 ms | 3.4 MB | 34.7 s | 79 ms |
| 16384 | B | 60 s limit |
The largest n compared with E is 4 (E hits 60 s at n = 5); E, A and B
agree for n ≤ 4, and nothing beyond is compared with E. A’s certificate
and coverage are linear in n; its check is quadratic as implemented
(equal visits every written label per record equation), and that is
what reaches the limit. Invalid controls are always Unresolved. dep
k: B uses 2 leaves per component. Negative result: divide3 m, whose
witnesses need a projection of a rigid row, makes B need 2^m leaves
(65,536 at m = 16, 43 MB); compression does not help there.
Cross-checks (0 flagged): on 35 regression problems E, A and B
match the recorded P9s verdicts (split, route Unresolved, as K8
requires); every acceptance is bounded-oracle valid, except star-read
n = 3, where the oracle timed out at 120 s; on the small cross-check
instances only (up to 64 patterns each; not the large measurements),
every accepted certificate instantiated at every consistent pattern
passes; one prediction was
wrong (divide uniformly valid; amendment 1).
Obligations (named; none proved): SC1 instantiating a schematic
certificate gives an ordinary one; SC2 the four region queries are exact
(needs CP and antitonicity); SC3 checkSym implies checkCert at
every pattern in the region; SC4 with K4, K5, Accepts without a table;
SB1 components checkable separately; SB2 the tree walk proves coverage;
SB3 B implies Accepts. Both end in Accepts, so by K7 they certify
nothing some checkAll table could not: new theorems beside K6, not
replacements. Still exponential: E; B where witnesses need a
projection (divide3); B’s brute-force fallback (budget hit on
star-cross n = 2). Unresolved: a failed check naming no free bit,
no candidate from search, any limit, anything outside Accepts.
Questions for the author (report.md): state SC1-SC4 for proof beside
checkAll, with the solver’s substitution as the certificate; SB1-SB3
now or after a ported program shows pattern-dependent witnesses;
investigate C as new machinery; a numeric target for “useful scale”;
measure a sparse version of A’s check now; a larger oracle budget for
star-read n = 3.
The author checked B2n’s statement and included it as a corollary of
B2 in the first proof tranche. Its practical meaning: for this
particular generic instance, finitely many fresh opaque types suffice
for the completeness argument, which removes the need to realize
infinitely many generic constants at once. It does not establish a
minimal bound, an efficient algorithm, or option-B validity by itself.
Conditions: derive B2n from B2 by an explicit allocation into
B ⊕ Fin n; preserve every stated premise; cover the empty case
(U = [], n = 1), repeated constants in U, and a problem with
several written bases; U.length < n is a sufficient allocation bound,
not a claimed optimal one.
F6 (§18.36) is to be closed now: the reviewer’s concrete θ* checks
for route, agree and splitFree go into a maintained example file
and the axiom audit, as theorem-level checks about the classical
construction (θ* is chosen classically), not as execution of a computed
construction.
The independent review materially strengthens the existence milestone: general existence is supported by kernel checking and by a separate review of the definitions and proof argument. The next substantive question is whether the bridge establishes the intended option-B guarantees. Not authorized by adding B2n: trimming machinery, language changes, compiler integration.
The star results are performance evidence; the compression checker
still needs its soundness proof, and it remains a P9s-based path: it
does not resolve P9s’s inability to certify route. Decisions:
lacks/disjoint constraints must not silently become a claim about
arbitrary typed constraints.star at 1,024 rows, under one
second total search, check and coverage, certificate below 1 MiB, on
the recorded quiet reference machine; repeated measurements reported,
no fragile timing test installed. Larger runs stay as stress evidence.
A ported application is still required before production performance
claims.divide3 before
proposing general Boolean-formula certificates. No prototype, proof
campaign or adoption.Deferred: sparse-check optimization, a larger oracle budget for
star-read.
Reporting corrections, applied (report.md and §18.37): the instantiation cross-check (every accepted certificate passes at every consistent pattern) holds only for the small cross-check instances, up to 64 patterns each, not the large measurements; “not in the validity question” replaced: this family has a compact candidate certificate whose checking avoids enumeration, which establishes nothing about the complexity of validity in general.
B2n is approved for the tranche (§18.38) and released to the finite-freshness stream.
The tool incident, classified. The exact rejection (Write, on
star/report.md in the agent’s worktree): “Subagents should return
findings as text, not write report files. Include this content in your
final response instead.” It was not retried. The agent then wrote the
same text to the scratchpad with Write and copied it into the
repository with cp, committed as 04e2ad3 (integrated as ce2beba).
Classification: a harness policy denial addressed to subagents, not a
file-tool limitation; copying through another route was not an
acceptable workaround. The coordinator’s brief caused the conflict by
requiring a file named report.md. The content stays in the repository
as a coordinator-integrated research record. Corrective practice:
agents return report text in their final message and the coordinator
writes the file; every brief says that a denied tool call is reported
verbatim and never achieved another way.
F6 closed (2026-10-21). Composition/Typed/ExamplesThetaStar.lean
(200 lines; proved in its own worktree, integrated; clean build, 135
jobs; no sorry, #eval or new axiom; 11 entries added to
d3b/checks/Audit.lean, standard axioms only, agreeP_fresh propext
only). Its header states these are theorem-level facts about a
classical construction (allowedCells a classical filter; θ* fixed only
up to the choice of MGU); nothing evaluates allowedCells or
thetaStar. Proved: routeP_generic_occupies (every generic instance
occupies cell [0]), routeP_eta_not_generic, routeP_allowed_r,
routeP_not_allowed_st ([1, 2] refused), routeP_thetaStar_occupies
(for every MGU over the allowed cells), routeP_exists_occupies (from
d3bExistsWithin); agreeP_not_allowed_r, agreeP_fresh,
agreeP_thetaStar_solvable (for every such MGU, SolvableAt and
SolvableFinAt), agreeP_thetaStar_exists;
splitFree_thetaStar_unsolvable (for every such MGU, no Fresh). No
check was false; forms changed only by generalising (route and
splitFree for any Label, B with one label; π universally
quantified) or strengthening (for every MGU, not just one).
Proved in three parallel worktrees, integrated by the coordinator
(four Composition.lean import conflicts kept both sides; clashing
helper names in the freshness files renamed: fin_mapG, fin_mapGO,
basesWithin_mono, basesWithinO_mono). Bridge statement files
unchanged; Defs.lean changed in three docstrings only (67d40a6, §18.36),
no definition.
Clean build (147 jobs, no warnings); no sorry, admit,
native_decide or axiom; standard axioms only (several E-lemmas use
propext and Quot.sound only).
mapBaseId, satMapBase (E2), satSubstBase (E2′, value-substitution
positivity, through one core lemma evalT_subst), finSupport (E3),
mapBaseComp, mapBaseSyntax, mapBaseClift; the §10.6 helpers.openToFin. Examples N1 shapeSplitSeparates, N2
routeOpen, N2′ agreeOpen, N3 closedBoundary (refutes the finite
form, as stated), N4 routeFreshOn, N5 intArmOpen, N6
intArmFreshOn, N7 twoBaseInjective.freshGivesFreshOn; B2f, B2,
B2g and B2n from E-hypotheses. B2’s finite-extension round trip
inverts on θs’s constants: the back map checks U’s images first, so
a collision of a fresh base with an unwritten base is harmless
(backOn_e, backOn_j, up_dn_on). B2n allocates explicitly into
B ⊕ Fin n (allocIdx: first occurrence in U, n - 1 otherwise;
allocIdx_inj on distinct members); edge cases U = [], n = 1
over Empty; repeated constants; two written bases over Bool. Its
docstring states that U.length < n is sufficient, not optimal, and
the author’s practical meaning and limits.d3bEqFree/d3bFlat for existence, every premise kept.d3bCompleteOn, constsFinite, completeOnGivesComplete,
d3bCompleteFinExt, d3bCompleteOpen, and d3bOpenCompleteEqFree,
d3bOpenCompleteFlat: option-B completeness for the equation-free and
flat fragments, with no open existence premise (their scope,
label-freshness and fragment premises remain). Added to the audit.Observations from the proofs (not statement changes): B2 uses only
that no other base maps onto j b for a written b (corrected,
§18.42), and never GenericInst’s coverage
conjunct; B2g’s WithinC premise is unused; B3a needs ValidOpen at a
single extension, B ⊕ CConst Label. Pending: the option-B
soundness track (BS-c1f, B4f, B5), separately reviewed.
The instantiated signatures support the claim: the seven results discharge the proof streams’ hypotheses and keep the approved premises. A finite supply of fresh opaque types now suffices for the completeness argument, and the equation-free and flat fragment results no longer depend on an unproved existence or freshness lemma.
Boundaries: these are completeness results for the research model, not an executable checker or a Waxwing source-level guarantee; option-B soundness is pending (completeness says valid problems have the required solutions; soundness must establish that accepting them justifies validity). Not settled: certificate search, scalability, source translation, compiler integration.
Next, in order: (1) an independent review of the integrated
completeness tranche (the finite-support restriction, back-map
collisions, allocation edge cases, discharged hypotheses), because a
clean build checks proofs against statements and review checks that the
statements express the intended claim; (2) finish and review the
soundness track; (3) then compose the bridge with d3bExistsWithin for
the general option-B characterization, as a composition of established
results without W. The unused-premise observations stay documented; the
approved statements stay unchanged until this tranche closes.
SC1-SC4 statements stream: a denied tool call (2026-10-21). The
agent stopped as briefed. Exact rejection, a worktree-isolation guard
on a compound command (heredoc to the scratchpad, then lake): “This
agent is isolated in the worktree … but this command is too complex to
verify that it stays inside the worktree. Refusing to run it — a
worktree-isolated agent’s git operations must target its own worktree.
Split it into plain, separate commands and run them from
The author’s clarification (2026-10-21). The revised tool procedure
is appropriate (it follows the guard’s remedy and keeps worktree
isolation). Correction to the coordinator’s answer: “definedness shows up
as disjoint atoms” is too broad. The declaration fragment may be
restricted to lacks and disjoint on declared rigid rows; the body
checker must still enforce expression definedness (overlapping record
parts, duplicate written labels, nested expressions), and an equation
holds only when both sides evaluate. SC3 keeps that explicit;
re-checking the original body under the certificate is the boundary,
with no trusted residual simplification. The two prototype defects
stay open until impact and corrections are reviewed, each with a
minimal failing example and the correct result; false acceptance and
false refusal assessed separately; the recorded inputs inspected for
which historical results exercised the fault; focused regressions and
affected cross-check reruns after correction. disjoint r r requires
r empty and is not an ordinary distinct-row pair. Strategy A’s empty
cube avoids the forced-label case, but that does not establish that
all historical results are unaffected. B stays deferred; no further
large performance runs.
Independent reviewer at cfd6742 (no repository writes; scratch Lean
outside the repository). Verdict: the headline claim holds.
d3bOpenCompleteEqFree and d3bOpenCompleteFlat prove option-B
completeness for the equation-free and flat fragments with no open
existence or freshness premise; remaining premises Scoped, the
fragment premise, ∃ z, FreshLabels, HasInstance, ValidOpen. No
false or vacuous statement, no overclaim in the headline.
_of hypothesis is the named Prop;
the discharging theorems are polymorphic, so E2 is exactly E2 at every
instance and E3 at CL Label/CB Label B. Bridge statement files
byte-identical; Defs.lean changed only in three docstrings (§18.40
wording corrected).ConstsInC
(constOf drops only inl bases, which constIn U accepts).up_dn_on needs exactly WithinC and
ConstsInC, no hidden assumption. Shown in scratch: without
WithinC, a fresh base equal to an unwritten base reads back wrongly;
without ConstsInC, a colliding off-list constant reads back as the
wrong constant. So both premises are necessary; repeated constants
are harmless.allocIdx_inj is exactly FreshBasesOn’s first
conjunct at j = inl; the local DecidableEq (CConst Label) is sound
(cconstCode_inj, propext only) and clashes with no instance. The
U = [] and two-bases examples confirm typing and totality only
(docstrings corrected); the duplicate-constant #guards check real
computation; n = 0 admits no allocation (scratch).routeP over Unit and
Empty; B3f on agreeP. The conclusion has content: with ValidFin
in place of ValidOpen, B3e is refutable on shapeSplit () (N3), and
B3e alone re-derives ¬ ValidOpen (shapeSplit ()). ∃ z,
FreshLabels makes B3e/B3f vacuous for finite label types, consistent
with §18.33’s infinite-labels assumption.j b for a written b (not merely injectivity on
basesOf P); corrected in statements.md and §18.40.For the composition with d3bExistsWithin: it goes through as is
(in scratch, D3bOpenComplete follows in three lines from
d3bExistsWithin and d3bCompleteOpen; no W, no statement change).
BridgeComposition would then hold by ignoring its D3bExists
premise, a check that checks nothing; state D3bOpenComplete directly.
C’s converse direction still needs B5 (soundness pending).
Process: the reviewer met three worktree-guard denials (commands
naming git, or running lake on a runtime value, “too complex to
verify”), each prescribing “split it into plain, separate commands”,
and re-ran the same operations (reset, diff, axiom checks) as plain
commands without stopping first. That follows the guard’s remedy, the
procedure the author approved, but not the letter of the brief, which
said to stop on any denial.
The author accepted the completeness tranche (2026-10-21) with its scope, label-freshness and fragment premises retained: the review checked hypothesis discharge, the back map’s necessary premises, allocation and non-vacuity. The allocation examples stay labelled as typing and totality checks; they do not demonstrate the round trip. No further completeness searches or premise minimization before closing this milestone.
Soundness track (proved in its own worktree, integrated; five new
files ProofSound*.lean): BS-c1f solvableMapBaseFwd_of (E2 at
CL/CB, E6), B4f genericInstExtFin_of (E1, E2′, E5), B5
d3bSoundOpen_of (E1, E2, E2′, E5, E6, through B4f, BS-c1f and
transfer). E5 was needed (only its written conjunct), beyond the
brief’s dependency list. B4f’s argument: walk generic and ground roots
in lockstep (Reach), value each constant by the ground subtree it
reaches, separate any mismatch by one back substitution
(j b ↦ base b; each other base, chosen per base, to emptyG or
arrow emptyG emptyG),
and use coverage at the substituted instance. Two reviews inside the
track: before proving, the obligations (two of the agent’s own lemma
statements, SeparateArrow, SeparateRecord, were false without
Function.Injective j, counterexample checked in Lean; fixed;
BackSubstExists added; HvSubst, InPatternSubst superfluous, kept
and marked unused); after proving, sound (types exactly the reviewed
Props; GenericInst satisfiable, ValidOpen non-trivial; B4f and B5
non-vacuous at a finite Label and empty B, checked in Lean; no
hidden label-supply, Fresh or WithinC premise). Two
linter.unusedSectionVars suppressions in mutual blocks, harmless. No
reviewed statement changed.
Instantiated and composed (ProofInstantiateSound.lean,
coordinator; clean build, 153 jobs; standard axioms; in the audit):
solvableMapBaseFwd, genericInstExtFin, d3bSoundOpen (B5);
d3bOpenComplete, stated directly from d3bExistsWithin and B3a
(not through BridgeComposition, whose D3bExists premise would go
unused); openCharacterization (C: → from d3bOpenComplete,
← from B5) and openCharacterization_scoped (C with its existence
premise discharged by d3bExistsWithin; a corollary of the reviewed
C, not a separately reviewed statement).
Claims kept separate (the author, 2026-10-21):
d3bOpenComplete), premises Scoped,
∃ z, FreshLabels, ValidOpen, HasInstance.Process (the author): recording the reviewer’s departure (§18.42) suffices. Future briefs distinguish a prescribed command simplification within the authorized worktree (follow it) from a denial requiring further authorization (stop); an ambiguous denial still triggers a stop and the exact quotation.
The author: general existence, option-B completeness and soundness now compose into a characterization of validity for the research model. Final acceptance waits for the independent integrated review, which must confirm that the exact extension quantifiers, genericity requirements and remaining premises survive composition.
Boundary (the author): this characterization does not establish principal inferred types, completeness of source-level inference, or correct compilation; each needs its own argument.
After the review passes, the work changes character: (1) make the construction executable and establish its correspondence with the proved classical construction; (2) connect Waxwing source to the modelled constraints, preserving all obligations; (3) integrate and measure the resulting checker.
Meanwhile no expansion. SC1-SC4 and option C stay statements-only until
their proposals are reviewed, and each must say precisely whether it
targets P9s’s Accepts (the checkAll/K-theorem boundary, which cannot
certify route) or the option-B characterization (ValidOpen,
openCharacterization); these are different acceptance boundaries.
Independent reviewer at 7f58764 (no repository writes; one worktree guard denial prescribing “split into plain, separate commands”, followed as a prescribed simplification, per §18.43).
Verdict: B5 is right and the characterization holds. No false,
vacuous or weaker-than-intended statement, no gap. “General option-B
completeness and the characterization hold for the research model” can
be stated as established, with C’s premises attached: Scoped,
∃ z, FreshLabels (so Label infinite, §18.33’s accepted assumption),
and finite values only (ValidFin, SolvableFinAt). B5 itself needs
none of those premises.
D3bSoundOpen,
D3bOpenComplete, OpenCharacterization typecheck as the reviewed
Props; E2 exact at CL/CB; E5 genuinely needed.ValidOpen quantifies over every injective
extension, bases outside the image included (handled by the back
substitution); the premise requires genuine GenericInst (with
coverage). Scratch checks: B5 derives ValidOpen routeP over Nat,
Unit from d3bEqFree and a direct solution; B5’s premise fails at
shapeSplit (), consistently with N1, N3 and
openCharacterization_scoped. Coverage is load-bearing: at
shapeSplit () an assignment satisfying D with a finitely solvable
body exists but fails coverage, so a premise of “some solvable
assignment satisfying D” would make B5 false.emptyG or arrow emptyG emptyG);
separation is complete case by case; injectivity comes from
ValidOpen and is used exactly where needed.WithinC
harmlessly; ExistsWithinAt unused now that existence is proved;
openCharacterization_scoped is an honest corollary (only
DecidableEq Label); BridgeComposition neither used nor claimed;
B4, BS-c1, BS-c2 unproved and not claimed.Wording findings: W3 (MGUExists.lean’s header garbled by the
coordinator’s rewording) fixed; W4 (the per-base choice in §18.43’s
B4f description) fixed; W2 statements.md §0’s “proposed and unproved”
now points to current status (fixed). For the author’s approval
(both in fixed statement files, comments only): W1, Sound.lean’s
section heading “soundness for option B (for a decision procedure)”,
suggested “(what accepting solved generic instances relies on)”; W2,
Complete.lean’s header calling D3bExists “open”.
The author accepted the milestone: general option-B completeness and
the validity characterization are established for the research
model, with the stated scope (Scoped), label-freshness (infinite
labels) and finite-value premises retained. Not established by it:
principal inferred types, completeness of source-level inference,
correct compilation, an executable decision procedure.
Comment-only fixes approved and applied (definitions and theorem
statements unchanged; freezing statements need not freeze inaccurate
comments): W1, Sound.lean’s heading now “soundness for option B from
solved generic instances”; W2, Complete.lean’s header and B3’s docstring
give D3bExists’s proved status and point to d3bExistsWithin.
Next, not started: executable construction, source translation and integration, each to be scoped around the established theorem, with separate obligations for inference and principality and for compilation correctness. Until then only the two statements-only streams (SC1-SC4, option C) finish.
research/division-campaign/star/projection-statements.md; Lean
Composition/Sig/ProjectionDefs.lean (defs and def … : Prop only; no
theorem, no sorry; imported); clean build (154 jobs). For the
author’s review; nothing proved, nothing adopted.
Acceptance boundary: every proposed checker statement targets P9s’s
Accepts, not option B’s ValidOpen (PC3 ends in checkCert, PC4 in
Accepts); by K7 these checkers can never certify route or split.
divide3 and a new family divide5 lie inside both boundaries (the
ValidOpen side argued, not checked in Lean); route lies outside
Accepts (K8) and inside ValidOpen. An option-B counterpart (PB4) is
a shape only, the ← direction of openCharacterization, blocked on a
computed generic instance and on pieces over Venn cells (constants
X r S), which have no region or typing analysis.
Verdict: projection onto written labels handles divide3 with one
uniform certificate (u := r|A, t := ⟨r, ∅, rest⟩, size O(m)), using
only SC2’s four region queries plus declared, but four local changes
to checkSym (clashes between rest-less pieces of different rows; two
pieces of one row in a record; rest obligations only between pieces
carrying a rest; pieces of one row on both sides of disjoint).
Lower bound (PD3⁻): pieces that always carry their rest need 2^m
certificates; B’s 65,536 leaves at m = 16 meet it, conditional on SC3.
Evidence: the certificate passes the sig-oracle reference at every
pattern for m = 1..10 and the proved checkCert by #eval for m = 1..4
(counts of pattern lists); exhaustive search at m = 1, 2 confirms no
rest-carrying-only certificate is uniform.
The smallest further operation is not needed for divide3; on
divide5 (rigid r, s, s₂ with s disjoint s₂; r = u ⊎ t ⊎ q,
u disjoint s, t disjoint s₂, q lacks a_j; valid, in Accepts) no
certificate of projection pieces is uniform (PD5⁻; exhaustive at
m = 1). The smallest sufficient operation is a projection with a
one-literal guard over another rigid row at the same label
(r|(S ∖ dom s), r|(S ∩ dom s)); its certificate passes for
m = 1..8. Cost (PG): guards of up to two literals keep per-label
checking in 2-SAT; arbitrary guards make checking an untrusted
certificate coNP-hard per label; three or more literals open. Guards
are proposed for no further work.
Proposed statements (none proved): PI1, PI2 (piece instantiation),
PQ (the guard-free check reads the region only through the four
queries and declared), PC3, PC4, PD3, PD3⁻, PD5, PD5⁻ (in Lean); PG,
PW (prose; PW, a uniform written-part analogue of D2’s selection).
Novel under ADR 014: the schematic certificate format with rest-less
and guarded pieces; SC2’s region exactness; the four checker rules; the
reduction of guarded checking to 2-SAT; rigid-presence formulas as
certificates for ∀∃ problems with hypotheses relating rigids. One
unpublished reading (projection as shared Rémy flags on an expanded
rigid row) is the agent’s inference.
Independent review inside the stream: F1-F9 fixed (among them counts
are of pattern lists; checker rule 4 added; unread citations marked;
possibleBoth corrected), F7 noted (Lean Piece does not require a
rigid row), F10-F12 noted; PD3⁻ and PD5⁻ confirmed independently by
exhaustive Lean and Node runs.
Process: the agent and its reviewer met worktree-guard refusals
naming their own remedy (“split it into plain, separate commands”) and
followed it (Write then a plain node; Edit then a plain lake
build). The stream’s brief predates the refinement in §18.43 and said
to stop on any denial: a departure from its brief, consistent with the
refined rule. The agent flagged it for judgement.
Questions for the author (projection-statements.md): state SC1-SC4
over the general piece or keep {r, ex}; projection only, guards
deferred until a ported program shows a divide5 shape; search (row
unification does not produce r|A) before or after checking; prove PW
now; a frozen-grammar oracle for whether any problem in Accepts needs
two-literal guards; restate option C against ValidOpen before SC
proof work, or keep it beside checkAll at Accepts.
Proofs wait for the SC1-SC4 proposal; avoid building a substantial checker around a boundary already intended to be exceeded.
Accepts and add
an option-B counterpart before choosing the proof tranche; never
retarget silently. Identify which definitions and lemmas transfer to
the cell-based model and which need replacement. Correction: a
computed θ* is necessary for an executable construction, not for
stating a semantic soundness theorem, which can take a generic
instance and its required evidence as premises (§18.47’s “blocked on
a computed generic instance” applies to execution only). Executable
representation and validation remain separate obligations.{r, ex} a special case, so the
instantiation foundation is not duplicated. Not authorized: guarded
checking, or proving the whole projection checker now.divide5 shows a limitation of projection-only
certificates on a constructed family, not a reason to adopt another
mechanism; the example and the complexity results stay, labelled
unproved.Details for the combined proposal: Piece now permits non-rigid row
identifiers; either validate rigidity or state exactly how such pieces
are interpreted, with the same scope in executable and explanatory
text. First-occurrence shadowing in a certificate’s representation stays
distinct from disjoint composition; a soundness-only checker may
conservatively reject shadowed representations, but that is not an
exactness result.
Next: the SC and projection proposals brought together as one architecture decision, showing the old and new acceptance targets and the reusable proof obligations. No prototype or proof work before that review.
research/division-campaign/star/sc-statements.md; Lean
Composition/Sig/SchematicCert.lean and SchematicDefs.lean (defs and
def … : Prop only; no theorem, no sorry); integrated onto main
(declarations clashing with option C’s ProjectionDefs.lean renamed:
SV, SCert, Piece, InRegion, pieceRow get a Sch prefix; no
definition or statement changed); clean build, 156 jobs. For the
author’s review; nothing proved, nothing adopted.
Acceptance boundary: P9s’s Accepts. SC4 concludes Accepts P ∧
ValidAll P ∧ ValidFin P and nothing more; it says nothing about
ValidOpen or openCharacterization (ValidFin only at P’s own
bases, no implication to ValidOpen stated). split and route stay
outside (K8, routeSig_not_accepts).
Definitions (computable research models, not the prototype): an
untrusted schematic certificate (ty/row binding lists of values
with pieces {r, ex}); its denotation and instantiation at a pattern;
regions (InRegion: consistent patterns agreeing with a cube) and the
four exact queries built on holdersOK; the fragment LDFragment
(every D atom lacks r l or disjoint r s on declared rigid rows)
and its check fragmentS; the checker
checkSym P c σ := fragmentS P && certOkY P c σ && (!nonEmptyS P c ||
P.B.all (atomY P c σ)), which re-checks every atom of the original
P.B (binding equations included; no trusted residual). Shadowing in
the certificate (duplicate bindings read at the first occurrence, still
checked by wfY) is kept distinct from composition (overlapping record
parts refused at every pattern of the region); the conservative choice
is not an exactness result. Pieces must lie on rigid rows (wfY, at
every depth). Definedness in the body is enforced by evaluation
(duplicate labels, overlapping parts, nested subterms fail; an equation
needs both sides to evaluate); the lacks/disjoint restriction
applies only to D.
Statements (strategy A, empty cube): SC1 (denotation commutes with
instantiation); SC2 (LDFragment P → the four queries exact) with
SC2Frag (fragmentS ↔ LDFragment; CP and antitonicity, which hold for
every P; outside the fragment checkSym refuses, i.e. Unresolved),
SC2Real (inside the fragment every consistent pattern is realized by a
rigid assignment satisfying D), SC2Boundary and SC2Boundary′ (it
fails outside, with D = [ff] and D = [{...r0} = {}]); SC3
(checkSym P [] σ → the instantiated certificate passes checkCert at
every pattern in the region, for every σ); SC4 (checkSym P [] σ →
Accepts P ∧ ValidAll P ∧ ValidFin P, through K5, SC3, K4, s1,
s1_fin; no table built); SC3′ optional (the converse, under
fragmentS and certOkY, both necessary); SC2B, SC3B cube-general,
for strategy B, deferred. One obligation recorded for the SC3 proof: W3
of an equation’s value from declared-disjoint pieces with certOkY.
Cost of the guard: with D = [ff], B = [], checkAll accepts and
checkSym refuses; none of the 226 recorded problems is outside the
fragment.
Prototype defects (open, not corrected). (1) allowed (and
generic.mjs holderSets, consistentCount) treats disjoint r r as
two distinct rows instead of forcing r empty; minimal example
D = [disjoint 0 0], B = [lacks 0 a]: E, A and B answer Unresolved;
correct answer valid. (2) nonEmpty does not check that labels a cube
forces are written; correct: a cube forcing an unwritten label gives an
empty region (B only). Both are permissive in the region, so neither
can produce a false acceptance; both can produce false refusals.
Historical results: no recorded input has disjoint r r in D (226
scanned); rerunning B over 2,505,538 cube entries found no forced
unwritten label; remaining gaps covered by code reading only
(Unresolved B runs, which return no tree, and B’s star runs above
n = 64). Regression checks and the cross-check rerun after a correction:
sc-statements.md §10.4.
Reviews inside the stream: soundness, no false, vacuous or
mis-quantified statement and nothing trusts the solver (brute force: SC3
and SC3′ 1,048,576 cases, SC3B 4,718,592, queries/CP/antitonicity 87,808
pairs, 0 failures); one false prose claim corrected (“SC3 does not need
certOkY”). Completeness: requirements met; its fixes applied.
Non-vacuity by scratch #eval of the model (not proofs): star 1-3 and
64 pass; invalid controls, a broken certificate, ff in D and split
refused; disjoint r r handled correctly. One worktree-guard denial in
the completeness review, stopped and quoted.
Transfer to option B (§7): the untrusted-certificate discipline,
evaluator shape and SC4’s pattern transfer; Venn-cell pieces (X r S),
a region from HasInstance, SolvableFinAt in place of
checkCert/HoldsG, and the ← direction of openCharacterization
as target need replacement. A semantic theorem can take θs with
GenericInst/WithinC as premises; only an executable checker needs a
computed θ*. The definitions would generalize to option C’s
⟨r, S, rest?⟩ pieces.
Questions for the author (sc-statements.md): approve or amend SC1-SC4,
SC3′ included or not; LDFragment as SC2’s scope and as the guard, or
only in SC2Real and the guard; who corrects the prototype defects, and
whether the prototype should also get the guard and certOkY so the A
measured is the A proved; the scratch checks and defect examples as
committed fixtures; restate SC1-SC4 over the general projection piece
before any proof. With §18.47-18.48 this is the input to the combined
architecture decision (old target Accepts, new target ValidOpen,
shared obligations).
The SC1-SC4 statements (§18.49) and option C (§18.47), brought together as one decision (§18.48). Nothing here is proved or adopted.
Acceptance targets.
Old target: P9s’s Accepts |
New target: option B’s ValidOpen |
|
|---|---|---|
| Meaning | some finite checkAll table exists (K6, K7) |
valid at every injective base extension; characterized by openCharacterization (proved, §18.45) |
route, split |
outside (K8) | inside |
divide3, divide5 |
inside | inside (argued, not checked) |
| What a certificate must justify | checkCert at every consistent pattern |
SolvableFinAt at a generic instance per pattern with an instance (the ← direction, B5) |
| Proposed statements | SC1-SC4; option C’s PI1, PI2, PQ, PC3, PC4 | none yet; a semantic counterpart can take θs with GenericInst/WithinC as premises |
Common representation (proposed, §18.48 item 2). Guard-free
projection pieces ⟨r, S, rest?⟩, with strategy A’s {r, ex} as a
special case; untrusted certificates; the checker re-checks the
original body (binding equations included), enforces body definedness
by evaluation, keeps certificate shadowing distinct from composition,
and requires pieces on rigid rows. Guards deferred (divide5 stays a
recorded limitation, PG unproved).
Reusable across both targets: the untrusted-certificate discipline;
SC1/PI1-style instantiation (denotation commutes with instantiation);
the evaluator shape (evalY, wfY, definedness); SC4’s pattern
(checker passes ⇒ the target’s acceptance, with no table built).
Specific to Accepts: pattern regions from consistentS, the four
exact queries and SC2’s LDFragment scope, checkCert/HoldsG as the
per-pattern judgment. Needs replacement for ValidOpen: pieces
over Venn cells (constants X r S), the region from HasInstance,
SolvableFinAt as the judgment, the generic instance θs as a premise
(semantic theorem) or a computed θ* (executable checker), and its own
region and typing analysis.
Options for the author.
Accepts first: prove SC1-SC4 over the common piece (A as a
special case), then build the ValidOpen counterpart. Gains an early
proved checker for the measured star path; costs proof effort on a
boundary that excludes route.ValidOpen first: state the cell-based counterpart (semantic,
θs as premise) and prove it, reusing only the shared parts; Accepts
statements stay as recorded proposals. Aims straight at the intended
boundary; delays a proved compressed checker, and the cell-based
region analysis is new work.Open in either case: the two prototype defects (§18.49; neither can
cause a false acceptance; correction and reruns per sc-statements.md
§10.4); whether the prototype gets the guard and certOkY so that the
measured A is the proved A; search acceptance examples before any
implementation plan (§18.48 item 4).
ValidOpen directly (2026-10-21)The author chose option 2 of §18.50: target ValidOpen, the
intended language boundary, now with a proved characterization. A full
compressed P9s checker would spend proof effort while keeping the
route limitation.
Authorized, statements and architecture only:
route, star, divide3, negative controls;
guards deferred.Shared work is reused only where its semantics matches: the evaluator’s shape is reusable; its correctness theorem is not automatically target-independent (P9s’s single-row rests and the new model’s Venn cells are interpreted differently).
Authorized, prototype maintenance before further measurements: fix both disclosed defects (§18.49) with focused regression checks; add the fragment guard and certificate validation that align the prototype with its stated contract; preserve historical results and label the corrected prototype separately; rerun affected small cross-checks; large timing sweeps deferred.
Kept as evidence and comparison material, without a proof campaign: the
P9s proposals (SC1-SC4, option C’s Accepts statements) and the
reference checker. Deferred: SC3′ exactness and PW unless the new
architecture shows a dependency. Publishing these statements on main
is compatible with their proposal status. No cell-based checker
proofs or compiler implementation before the new statements receive
adversarial review.
research/division-campaign/star/ (region.mjs, generic.mjs, schematic.mjs,
strategies.mjs, crosscheck.mjs changed; regress.mjs, results-v2/ new);
done in its own worktree and integrated. Historical results (results/)
stay star-v1, commit 2ea79ef; the corrected prototype is labelled
star-v2 (VERSION recorded in every output; outputs in
results-v2/).
disjoint r r): allowed refuses a holder
declared disjoint from itself; holderSets and consistentCount
leave self-disjoint rows out. The minimal example (D = [disjoint 0
0], B = [lacks 0 a]) is now valid in E, A and B.allowed requires a
written label, as Lean’s allowedS does, so nonEmpty is false when
a cube forces an unwritten label.fragmentS; outside it,
“unresolved (outside fragment)”) and certOk (well-formed values at
every depth, pieces on rigid rows, row bindings records, key forms),
checked before the atoms as in checkSym; shadowed bindings checked,
kept distinct from composition clashes.node research/division-campaign/star/
regress.mjs, 39 checks, exit code = failures; coordinator rerun on
main: 0 failed): the §10.4 items, a brute-force comparison of the
four queries with P9s patterns (48,000 cases), the guard,
validation and shadowing. Shown to fail on the old code: star-v1,
27 failures (every defect, guard and validation check); defect 1’s
lines alone restored, 7; defect 2’s alone, 5.star to n = 6144), 0 forced unwritten labels.
Not rerun: B star at n = 8192 and 12288 (code reading plus that
scan); timings (deferred; certOk adds a pass, so star-v2 timings
may differ).divide3 2 keeps its recorded verdicts; A answers Unresolved there).The author’s acceptance (2026-10-21). The prototype-maintenance
tranche is complete: the regressions distinguish both defects,
historical results remain reproducible, and star-v2 is separated from
the measured version. Qualifications kept attached: historical verdicts
are preserved for the rerun cases (B star at n = 8192 and 12288
stay outside that claim); the recorded timings describe star-v1,
not the corrected prototype. No further prototype work or large timing
runs now; the cell-based ValidOpen statements are reviewed (semantics,
coverage obligations, acceptance examples) before any proof.
ValidOpen: statements, for review (2026-10-21)research/division-campaign/cellcheck/statements.md; Lean
Composition/Typed/Cell/ (Format, Query, Check, Statements, Exact,
Scenarios, ScenariosMore; defs and def … : Prop only, no theorem,
no sorry); integrated onto main (no name clash); clean build, 163
jobs. Nothing proved; for the author’s review before any proof
(§18.51). Fixes after the two reviews were not re-reviewed.
Format. A piece ⟨r, labels, cubes⟩ copies rigid row r’s own
entries out of θs at its listed written labels and at every Venn cell
satisfying one of its cubes (conjunctions of membership literals), so
field types are always the source row’s (CI1). Certificates reach θs
only through pieces and rty n; pieces on non-rigid variables denote
{} and are refused. Strategy A’s {r, ex} and option C’s guard-free
pieces embed; guarded pieces have no image. They agree with A and C on
written labels only (CI4, CI4″): P9s’s private rest becomes cells shared
with other rows; “no common free cell” is exactly declared r s (CI5).
Main shape (CM, CellSound): for QSound P Q and any untrusted σ
with cellCheck P Q σ = true, for all π, θs with HasInstance,
GenericInst, WithinC and CellShape (a new evidence premise:
a cell a rigid row holds is a free candidate cell containing that row;
CellShapeNeeded gives a route instance where CM fails without it),
the certificate instantiated at θs solves the body (finite values).
Corollaries CellOpen (with B5, ValidOpen) and CellOpenImpl (for
the proposed queries). No computed θ*. Guard: LDFragment.
Separate obligations: instantiation (CI1-CI5, CG FragmentIff);
original body (CB1 every atom of P.B, CB2-CB4); definedness (CD1
duplicate labels, CD2 overlapping parts, CD3 nested subterms, CD4 both
sides of an equation); coverage (CV1 every pattern with an instance at
thetaFree with its evidence, CV2).
Region queries. The old four do not fit (nonEmpty, must constant
on the fragment); needed: possW, possBoth, cellBoth, and cover
(cube-list cover over a row’s occupied cells). Soundness needs only the
region evidence; computational exactness (QX1-QX3) holds for every P;
exactness over the region (QR1-QR4) needs LDFragment. cover has no
known efficient exact form: with D = [], a piece passes exactly when
its DNF is a tautology (QX4, CheckTautology), so a complete checker is
coNP-hard for unbounded rows; a sound incomplete checker can refuse in
polynomial time; single-cube pieces without declarations are
polynomial; with declarations, open.
Scenarios (intended verdicts, matched by scratch #eval of the
model, evidence not proof): accepted, route (with ¬Accepts and
ValidOpen), star for all n, divide3, star-read, intArmP,
dep, divide, divide2, declared split, disjoint r r; refused,
star-unlacked, star-undeclared, star-cross, shapeSplit (),
splitFree (each with ¬ValidOpen and refused by every certificate),
a broken route certificate, four validation cases; refused as recorded
incompleteness, agreeP and D = [ff] (both ValidOpen, outside the
guard); known limitation, divide5 with written labels (no guard-free
certificate; ValidOpen argued only).
Reviews: soundness, no false, vacuous or unsound statement, nothing
trusts the certificate or a solver, no P9s correctness claim carried
over (brute force of the queries and the tautology reduction; an
independent semantic oracle at thetaFree, 5,570 accepted random
cases, none wrong); fixed: CellShape weakened to the direction used,
guards no longer silently dropped, agreement with P9s stated, missing
¬ValidOpen conjuncts, cost wording. Completeness: requirements met,
no wrong verdict; fixed: missing FragmentIff, statements for
CellShapeNeeded and CheckTautology, scenario and boundary gaps.
Questions for the author (statements.md §11): approve CellShape as an
evidence premise (else a stronger generic-instance definition, changing
reviewed definitions); keep the guard at LDFragment or widen to
EqFree ∧ Scoped (equations in D deferred either way); cover: DNF
selectors (exponential worst case), single-cube pieces, or an untrusted
split-tree hint; defer field references with the fragment; the proposed
proof order (CI2 … CM, CM-open, CM-impl; scenarios; QX3, QX4, QR1-QR5).
Paused 2026-10-21 (usage limit) after this integration; nothing running. Next: the author’s review of §18.53.
The author approved a first soundness proof tranche over the
existing fragment, with CellShape as a separate premise; the broader
architecture choices stay open. Answers to statements.md §11:
CellShape stays explicit evidence. The reviewed definition of
GenericInst is unchanged. The proofs show that the chosen
construction supplies CellShape: a requirement on the checker’s
mathematical representation, not a new restriction on Waxwing
programs.LDFragment (lacks/disjoint
declarations). Equations in declarations and field references are
deferred. agreeP is recorded as a valid problem this checker
cannot yet certify. The accepting scenarios, including star for
every n, are proof targets, not established guarantees.coverS stay the exact reference.
Selector representation and coverage evidence are separate choices.
A certificate-supplied split tree could later help justify coverage,
but needs its own statements and review; it is not adopted. The
coNP-hardness remark (§6.3) concerns exact checking of this
unrestricted certificate format; it does not establish that
every possible Waxwing inference algorithm has that lower bound.thetaFree and its evidence;CellOpen and CellOpenImpl.The concrete route acceptance and CellShapeNeeded come into the
tranche as checks of the premises. Full query exactness (QX3,
QR1-QR5), the tautology reduction (QX4, CheckTautology) and the
remaining scenario families follow separately and do not delay the
core result.
Qualification: polynomial coverage is not promised. The soundness contract comes first. A bounded or incomplete implementation may conservatively refuse coverage, but its supported cases are measured against the acceptance scenarios before any implementation plan.
Not authorized: source translation or compiler integration. The paused worktrees and remote checkpoints are left alone unless cleanup is requested separately.
statements.md §10.3. The fixes after §18.53’s reviews are sound: no
blocking finding, no reviewed definition changed, and CellOpen
follows from CG, CV1 at thetaFree, CM and B5. Four non-blocking
findings: N1, CV2 needs QX3’s soundness direction, proved within the
tranche as a lemma (QX3’s ← stays deferred; no statement changed); N2,
a misquote corrected; N3, stale wording; N4, CellShapeNeeded refutes
CM-without-CellShape only together with ScRoute’s acceptance and
CV2 (said in §4). Seven parallel proof streams per proof-plan.md.
Seven parallel streams (research/division-campaign/cellcheck/
proof-plan.md), integrated onto main and instantiated in
Composition/Typed/Cell/Proofs/Main.lean. Clean build; no sorry,
admit, new axiom or native_decide; cellcheck/axioms.out lists
only propext, Classical.choice and Quot.sound (23 theorems). No
statement file changed (empty diff since f829525). Files over 250 lines
were then split (B, C, E) and F’s copy of CD2 replaced by apartSound;
axioms.out regenerates byte-identically. The author’s acceptance is
pending.
Proved, for the research model:
cellSound: for any conservative queries and any untrusted
certificate the checker accepts, the instantiated certificate solves
the original body at every generic instance with HasInstance,
GenericInst, WithinC and CellShape, at finite values.cellOpen: acceptance under conservative queries gives
ValidOpen (through CG, CV1 at thetaFree, CM and B5, the proved
d3bSoundOpen).cellOpenImpl: acceptance with the model’s query functions
implQ gives ValidOpen; CV2 discharges QSound, so acceptance is
the only premise.freeS_of_free), QX2’s ← (cellPossS_complete) and
QX3’s → (coverS_sound), the directions query soundness needs.cellShape_thetaFree discharges §18.54’s requirement: CellShape
holds for the construction the proof uses (thetaFree), for every
problem and pattern. It is a property of that representation, not a
restriction on programs.scRoute (route, outside Accepts, is
accepted and ValidOpen); cellShapeNeeded (all four conjuncts,
every π); routeP_hasInstance. With scRoute, CV2 and
routeP_hasInstance, CM without CellShape is false. This corollary
is not stated in the repository; the soundness reviewer proved it in
scratch Lean (not_cellSoundNoShape). It holds while QSound’s
region keeps CellShape (§18.55, N4).Observed surplus: CM uses neither CD3 nor CD4; CI3 and CD3 do not
use certOkC (the evaluator’s own checks suffice); cellShapeNeeded
does not use HasInstance. CI3’s and CD3’s own argument reads only
WithinC, but the rest of the region, CellShape included, reaches
them through CD2’s query soundness: both reviewers found this, and the
soundness reviewer refuted CD3 without CellShape in scratch Lean
({...4, ...6} on route at routeJunk). An earlier draft of this
entry said otherwise; corrected.
Not established (§18.54): query exactness (QX1’s and QX2’s →,
QX3’s ←, QR1-QR5); QX4 and CheckTautology; CI4, CI4′, CI4″, CI5; the
scenario families other than route (star for every n remains a
proof target); any completeness of the checker; any polynomial bound
on cover. The soundness theorems are implications from acceptance:
apart from route (scRoute), they show no problem is accepted.
agreeP stays valid but outside this checker’s guard. Nothing about
the PureScript or Go implementation, source translation or
integration.
Reviews (independent, read-only, scratch Lean; no tool denial).
Soundness: the headline results are sound as stated; every theorem
matches its statement at general Label, B; CM’s premises are
jointly satisfiable on route with an accepted certificate and a
non-empty instance, and cellOpenImpl yields ValidOpen routeP;
ValidOpen is not trivial (shapeSplitSeparates); no partial,
unsafe, set_option or extern; Classical only as
byContradiction. Claims: scope respected, nothing done outside
§18.54; corrections applied here (the surplus sentence; the
unstated corollary; “no premise”; QX directions named; omissions in
“Not established”; CellShape’s discharge), in proof-plan.md (the
refusal record covered six streams, not five) and in statements.md
(stale “nothing proved” status). Informational: Cells.routeP_hasInstance
shares its name with a lemma in another namespace.
The author accepted the tranche as recorded in §18.56, having
checked the assembled signatures and the corrected scope: for the
research model, this cell-based checker’s acceptance implies
ValidOpen with no outstanding proof hypothesis, and the concrete
route acceptance makes the guarantee non-vacuous. Rulings:
main. Deferred claims stay deferred.CellShape, included in the
axiom audit. The reviewer’s compiled scratch text no longer exists
(deleted under its brief; it declined to reconstruct it), so the
statements are restated by the coordinator from the review’s
description: Cell/Refutations.lean, CellSoundNoShape (CM without
the CellShape premise) and EvalDefinedNoShape (CD3 with the
region replaced by HasInstance, GenericInst, WithinC), both
with QSound unchanged.star for every n), and CI4/CI5 representation
correspondence. The tautology reduction runs independently and does
not delay them; its conclusion concerns this certificate-checking
problem, not all Waxwing inference.A failing statement stops that proof with a counterexample; nothing is
weakened to complete the wave. Not in scope: compiler integration, any
polynomial-coverage claim, any checker-completeness claim. No npm run
verify for this tranche: Lean build, axiom audit, width and
whitespace checks. The 11 tranche worktrees (the record earlier said
13, a miscount) were confirmed committed, integrated and idle, then
removed; their branches are kept. Plan: proof-plan.md, “Wave 2”.
Nine parallel streams (proof-plan.md, “Wave 2”), integrated onto
main; W3’s and W9’s hypothesis forms instantiated with W1’s results
in Cell/Proofs/Wave2.lean. Clean build (203 jobs); no sorry, admit,
new axiom, native_decide, partial, unsafe or set_option;
every Cell file at most 250 lines. cellcheck/axioms.out lists 55
theorems, each using a subset of propext, Classical.choice and
Quot.sound; its first 23 lines (wave 1) are unchanged. No statement
or bridge file changed since 94a86e1, apart from a corrected comment
pointer in Refutations.lean. No stream found a false statement.
The author’s acceptance is pending.
Proved, for the research model:
freeSIff; QX2 cellPossExact (cubes with a positive
literal); QX3 coverExact (rigid r); and on LDFragment, QR1
possWExact, QR2 possBothExact, QR3 cellBothExact, QR4
coverRegionExact, QR5 regionTrivialities. With wave 1, all four
of implQ’s queries are exact over the region (which includes
CellShape), for rigid rows, on the fragment. Exact queries do not
make the checker complete (scDivide5, below).checkI):
scStar and scStarRead for every n; scDep for every k, m and
both divide variants; scDivide3 for every list of labels;
scIntArm (with ValidOpen); scSplitSig; scSelfDisjoint. With
cellOpenImpl, each accepted problem is ValidOpen (for example
star at every n); that one-step corollary is not stated as a
theorem.scStarUnlacked, scStarUndeclared (n ≥ 1),
scStarCross (n ≥ 2), scShapeSplit, scSplitFree: each not
ValidOpen, hence refused by every certificate (via cellOpenImpl).
For the three star controls the natural certificate’s refusal is an
instance of the universal one; where it is refused was not checked in
Lean (the soundness reviewer checked it by evaluation for small n).
scBroken, scCertRefusals: specific certificates refused.scOutsideFragment:
agreeP and D = [ff] are valid and refused by the guard; they lie
outside the fragment. scDivide5: divide5 is ValidOpen for every
list of labels (d5_open; §18.47 had only argued this), and for every
non-empty list every certificate is refused (d5_refused, proved
directly). divide5 lies inside LDFragment and needs guarded
pieces, which the format lacks (CI4′). With the empty list it is
accepted (shown by the soundness reviewer in scratch Lean). The
programs are valid; the gap is this checker’s.CellShape regression guards: not_cellSoundNoShape and
not_evalDefinedNoShape, for every Label, B. Their statements
(Cell/Refutations.lean) are the coordinator’s restatement of the
review’s description (§18.57); the reviewer’s scratch statements no
longer exist, so equivalence to them is unchecked. The soundness
reviewer confirmed each drops exactly the intended premise and that
every other premise is instantiated with a proved fact.projPieceDen and CI4″
schPieceDen (presence of written labels at thetaFree; values
differ by model, as stated), CI4′ projGuardRefused, CI5
declaredIsNoCommonCell.coverTautology,
checkTautology. They concern exact checking of this certificate
format; no complexity statement is made in Lean, and nothing here
gives a lower bound for Waxwing inference in general.r ≠ s; QR2’s s ∈ P.rigidRow; QR5’s inner
r ∈ P.rigidRow.Completeness does not hold: the checker is incomplete on the
fragment (scDivide5). Not established: which ValidOpen
problems in the fragment it certifies, beyond the proved families;
any polynomial bound on cover; anything about the PureScript or Go
implementation, source translation or integration.
Reviews (independent, read-only, scratch Lean; no tool denial).
Soundness: sound as claimed; every headline theorem has its
statement’s type at general types; parametric scenarios proved for
every parameter and the families match star/problems.mjs; the guard
passes every negative control, so no refusal comes from it by accident;
divide5’s validity witness checked; axioms.out regenerates
identically. Claims: scope respected, nothing done outside §18.54 and
§18.57; corrections applied here (checker incompleteness on the
fragment, divide5’s non-empty premise, premises of the exactness
claims, the corollary marked as unstated, the refutations’
provenance, ranges, axiom wording), in Refutations.lean (comment
pointer), proof-plan.md (status) and progress.md.
The author accepted wave 2 as recorded in §18.58, having checked
the divide5 statements: validity holds for every label list, and
universal refusal needs the stated non-empty premise. Recording it as
proved checker incompleteness is correct. Rulings:
main. The distinction stays
prominent: exact queries cannot compensate for a certificate
language that cannot express the witness. QR1-QR5 make every
query the checker asks exact on the fragment, and divide5 is still
refused, because no certificate in the current format describes
its split.divide5_nil_accepted, the
wave-2 soundness review’s scratch theorem verbatim; and ValidOpen
corollaries of the accepted families via cellOpenImpl:
star_validOpen, starRead_validOpen (every n), dep_validOpen
(every k), divide_validOpen (every m, both variants),
divide3_validOpen (every list), splitSig_validOpen,
selfDisjoint_validOpen. scRoute and scIntArm already state
ValidOpen.divide5. Guards are one possible remedy;
pattern-dependent certificate selection is another. Authorized: a
small requirements-and-statements tranche:
divide5’s shape and its
hand-translated constraints;No prototype or proofs. Equations in declarations stay deferred. A constructed counterexample warrants investigation but does not by itself settle the next mechanism.
divide5 (2026-10-21)The author, while the requirements tranche (§18.59) runs: as the
connection between the proved model and Waxwing is planned, preserve a
route to fixing the divide5 gap without substantial rework. The
general option-B theory supports programs the current cell-certificate
checker cannot certify; that is a limitation of the checker and the
certificate format, not a language restriction. Before
implementation, document these boundaries:
divide5 must not become “invalid” because the
current checker refuses every certificate.Deliverables: a concrete Waxwing example with divide5’s shape as an
architectural test (source, hand-translated constraints, validity
evidence, the current checker’s limitation, and where a guarded-piece
or pattern-dependent-certificate solution would enter); a short
change-impact assessment (which modules, interfaces and proofs change
when that extension arrives, which stay reusable). If substantial
source translation, constraint recording or lowering work would need
replacement, the boundary is revised before it is implemented.
These are design requirements for the next plan, not authorization to widen the language, implement guarded pieces or begin compiler integration. The requirements-and-statements tranche continues; the proposed architecture and any unresolved coupling come back to the author.
divide5 requirements draft: not ready; blocker-first revision (2026-10-21)The architecture review of research/division-campaign/remedy/ requirements.md (draft, 17da85d) found it not ready for approval; the author agrees. The review found real architectural couplings; it does not undermine the established record-model proofs. Direction:
route, implementing the recorder,
adopting a selection rule. First establish which architectural
prerequisites need their own authorized tranche.These findings change the draft remedies, not the established proofs.
Dropping the false pick example (soundness review: with q, s
rigid it is invalid at q = s = {}) and correcting the witness tables
is appropriate.
walk narrowly against today’s compiler, with
explicit-witness controls where expressible, recording the exact
phase and diagnostic, and distinguishing current behavior from the
proposed rule. No compiler repair or broad test campaign.r = {x, y}, s = {},
s2 = {}, as = [x], sigma5, d5Wit and the rejected
lexicographic rule give three different splits), pointing to the
definitions (sigma5, Sig/ProjectionDefs.lean; d5Wit,
Cell/Proofs/W7/Divide5.lean). sigma5 sends r’s unwritten labels
to q.Qualifications for the revision: replace “behavior cannot vary today”
with the exact proved fragment, or state that no behavioral difference
has been demonstrated; the split-irrelevance model is not a
whole-language theorem. The selection leaf construction is sound
but potentially incomplete: adding neighbours’ lacks constraints
does not necessarily express the positive path condition; state
whether leaf conditions imply path conditions, the reverse, or
neither, since the witness adapter needs an applicable leaf, not only a
validity proof. No selection rule is chosen. After R0 and the
typed-witness review, the blocker-first proposal states semantic
validity, acceptance requirements, admissibility and behavior
preservation separately.
walk probe: sufficient; qualifications (2026-10-21)docs/findings.md “R010 and composed rows”. The probe is sufficient; no further runs or compiler changes now. It establishes current behavior and exposes a specification/implementation mismatch to resolve separately. Qualifications carried into the blocker-first proposal:
walk; the caller cases stop at the several-tail
placeholder, leaving the end-to-end question open.uonly control is evidence, not a proof that
every annotation fails.R019 stays open: allowing composed tails may be a defensible generalization but needs a termination argument; narrowing the implementation would reject accepted programs; the contract is decided first. For R0, the early “Cannot tell” refusal, R010 admissibility and the several-tail specialization placeholder stay separately classified; fixing one does not discharge the others. The proposed selection policy meets an earlier checker limitation and an unresolved admissibility contract; selecting the identity witness is not presented as an implemented or fully justified remedy.
R8 (comparison of witness representations A-D; nothing chosen) gives a
plausible way to avoid rebuilding Ty and identifies a real
obligation around recursive specialization. Options stay open until R7
and the blocker-first proposal. Points to tighten:
Per-name typed metadata stays a candidate (it addresses flow through types without necessarily adding type constructors); not selected. The final proposal puts R0 and the termination contract ahead of representation choice, then compares the smallest viable witness interfaces against those contracts. No compiler changes or new termination-proof campaign before that review.
research/division-campaign/remedy/requirements.md, revision 2. A
targeted re-review (at 7a8610a) found the rulings of §18.61-18.64 and
the promised corrections applied, scope clean, 23 of 26 citations
accurate, and twelve findings, now applied. The substantive one is the
author’s added check: forced bindings alone do not justify a class-c
refusal. The proposal now keeps three grounds apart: (1) a
contradiction derived from original recorded atoms and D by a rule
proved sound for ValidOpen under the ∀rigid/∃flexible structure; (2)
a checked counter-instance (CX); (3) failure of the current solver to
find a solution, including any contradiction reached through bindings
the online solver chose. Only (1) and (2) justify a semantic rejection;
(3) is class e, does not stop generation and preserves the problem.
Other fixes: walk’s admissible split stated with its condition
(§18.63), three citations, CX’s injective i, the exact proved
fragment of eval_split, and unrecorded bounded evaluations labelled
as such. Ready as a decision document; nine decisions for the
author (its §9); no candidate tranche started.
The author accepted research/division-campaign/remedy/requirements.md revision 2 as the planning basis (it identifies the blockers without claiming that the existing compiler satisfies the proposed boundaries) and asked for it to be pushed with the earlier records. Decisions:
chain3 and partition claims are stated
precisely before being relied on.Authorized design tranche (documents, statements and focused probes; no compiler changes; no new proofs before statement review): T-R0a and T-R0b (generation/verdict interface; syntax-directed recorder specification); T-R0c (refusal audit and bounded evidence, independently); termination and per-name witness statements, coordinated through one interface owner; CX’s exact statements, without a refuter implementation; T-R0e (separating validity, policy, admissibility and support boundaries). A concrete implementation plan comes back once those interfaces and obligations are reviewed.
The six documents authorized in §18.66 (research/division-campaign/:
r0/generation-interface.md T-R0a, r0/recorder-rules.md T-R0b,
r0/refusal-audit.md T-R0c with 21 probes, witness/statements.md W,
refute/statements.md CX with Lean statements only, r0/boundaries.md
T-R0e) were written in parallel, then reviewed at 88c052d twice: a
reconciliation review (26 findings, one canonical owner per topic) and
an adversarial review (9 findings: FK-W’s key universe false as
stated; re-check coverage overclaimed, with pass-while-wrong cases;
CX-S needed Nodup in Denotes; outside-marker and auxiliary-
variable conflicts; audit wording against §18.65). Each document was
revised by its own editor, then a read-only consistency re-check found
21 of 26 and 9 of 9 resolved everywhere and 13 residual
inconsistencies (R1-R13), now applied, with a final harmonization of
T-R0a’s and T-R0e’s refusal types. No document contradicts §18.65 or
the nine decisions of §18.66. Each document ends with a revision log.
Ownership. T-R0a owns the outcome, verdict and CompileRefusal
types (§6); W owns Witness, SplitJudgement, AdmStatus,
NoWitnessReason, Adm_W, the term-scope rules Sc1-Sc3, the
termination statements (FK-0, FK-W, FK-U) and the re-check obligations
RC1-RC6; T-R0b owns the recorded problem’s shape (Sig1-Sig10,
E-rules); T-R0e owns layers,
codes, Construct and layerOf; CX owns refutation (CX-K, CX-P,
CX-KP, CX-PR, CX-S); T-R0c owns the evidence. Two coordinator choices
in the re-check: the post-Task-8 refusal of composed tails is T-R0e’s
ComposedTailsUnjustified; T-R0e §7 keeps a “was” column so older
question numbers still resolve.
Status. Statements and designs only. Nothing new is proved; CX’s Lean file states CX-K, CX-P, CX-KP, CX-PR and builds. FK-W and FK-U rows stay inactive until adopted and proved.
Questions for the author (proposed defaults in brackets; each document’s open-questions section maps its questions to these numbers, and T-R0e §7 also maps its pre-revision numbers):
Faulted outcome or Defect as an
Unresolved reason [separate]; (b) Exhausted [Limit
ReexaminationSteps]; (c) codes for Solved declarations refused
after validation [T-R0e’s: Unresolved code plus family; own code for
SplitUnforced; A keeps E_SPECIALIZATION]; (d) must SplitUnforced
exhibit two witnesses [yes]; (e) Compilation inside Solution
[yes].BQ atoms judged by a stated ground rule,
atoms with variables Unsupported [yes]; a failing ground atom gives
Contradiction only through a registered proved rule, otherwise
Unsupported [yes]; E017 keeps its code as transitional [yes].outside markers: non-empty outside blocks a whole-function
Solved [yes]; the marker alone supplies no contradiction, though a
separately justified one (§18.65 grounds 1 and 2) may still be
reported (§18.68 item 6); open: free type-constructor nodes,
conservative FailFamily/EffectArgument markers, effect-row
independence and the class-f construct (ClassF Question in T-R0a’s
Unsupport), the lambda effect-row annotation.lacks/disjoint checks move into generation [yes; until ruled,
Resolve keeps refusing]; arity at a fixed result class a [yes]; coverage a
class-a static pass [yes]; AmbiguousType class e unless made P
policy [yes].AdmittedPendingR019 not
user-visible [yes]; T1-a’s explicit classifier required [yes].
After Task 8, AdmittedPendingR019 programs: refuse, keep compiling
through the current path, or prove FK-U first. This is a behaviour
change for programs accepted today, so it is an explicit
compatibility decision (decision 2), with no default (§18.68).
Unverified: that every AdmittedPendingR019 key reaches the Task 8
placeholder today (argued only; a probe is proposed).Ty Open terms; keep
ChooseT; syntactic hole-contract check; auxiliaries evaluated,
never bound [all yes; the last superseded by §18.69 item 6].Solution [unassigned; open]; ComponentBlocked is
tagged A and rendered with E_SPECIALIZATION [yes].Pending assurance allowed on Solved until
statements are approved [yes]; whole-program result kept, all
outcomes reported [yes]; steps 4 and 5 together or with a
documented window [open].D (T-R0b gives D only over
rigid variables, which suggests closing it); certificate cost;
B1b first or a sound incomplete refuter; BQ and non-record heads
under CX; sub-body certificates: any non-empty sublist of B, via
CX-KP [yes]; may a refuter register while CX-K/CX-KP/CX-PR is
unproved [T-R0a’s RefuterSpec permits Pending; rules require a
proof]. T-R0c’s open items: P3’s instrumented run (the ext(p, y)
case), Corollary SL-H, an arm-order check beyond one pair.ValidR: which document defines the recorded problem’s validity
(CX Q8) [no default; T-R0b is the natural owner]. CX-PR waits on it.crash reference’s checked Lambda is built like
showRef’s, so LambdaBody is right [assumed; checked when RT7 is
implemented]. B9 in-model, class e, GuardOutsideFragment [yes].
B13: no Outside PatternGrowth [yes; unchecked until RT1 runs].Next: the author’s answers; then the concrete implementation plan (writing-plans; nothing implemented), as §18.66 asked.
The author forwarded an external review of the overnight work (it did not rebuild Lean or audit all 63 matrix rows). It found the foundation recommendation promising and asked for a focused correction pass before the implementation plan:
Witness → Either ElabFault a can still ask for an
absent binding. Coverage needs tracked requests, a restricted
builder interface or a coverage theorem.Faulted where
another’s certificate gives Solved. Soundness only rules out a
sound acceptance and a sound refutation disagreeing.AdmittedPendingR019 is a proposed
behaviour change and needs an explicit compatibility decision, not
a maintenance default (Q5 above amended).where clause” result is bounded
evidence from a scratch search, not a universal impossibility.The review’s recommendations on the extension’s decisions, recorded as the reviewer’s and pending the author’s confirmation: D1, develop the continuation with coverage enforced or proved; D2, pursue EMLTI as the candidate but investigate O24 before adopting the correspondence or freezing L0 exports; D3, statements once the interfaces are stable, no selection rule; D4 deferred; D5 and D6 as recorded.
Held: blanket acceptance of Q1-Q12 and the implementation plan, until the correction pass and a narrow O24 correspondence note are back.
A further question from the correction pass (T-R0a §5.3 “Order”):
Q13. Does a refused candidate stop the run? Option A: no; record
CandidateRefused, continue, report Faulted only if nothing else
decides (the verdict class is then order-independent for sound
components with per-strategy fuel, argued). Option B: yes; order may
decide between Faulted and Solved, documented and exposed by the
test-only Checking value. No default.
The author forwarded a second external review, which found the corrections substantially satisfactory (no counterexample to revised T1 or GI-Atoms; the predicate encoding a credible next step, its correspondence unproved), and adopted its recommended answers. The implementation plan may now be written. Implementation and proof work stay separately unauthorized.
Compilation stays inside Solution. SplitUnforced needs two
checked alternatives at the same permitted rigid assignment that
differ semantically on the split, or equivalent checked evidence of
non-forcedness; syntactic difference alone is not enough.outside markers. The conservative support boundary, for now.
A construct is exempted only once its omitted obligations are shown
unable to affect the claimed result. A marker alone establishes no
contradiction. Effect/record independence is not assumed.AmbiguousType stays Unresolved
unless a language policy deliberately says otherwise.ChooseT and the conservative hole check kept as
proposed mechanisms. Auxiliary bindings are omitted only where
deterministic reconstruction is established; otherwise kept.ComponentBlocked may keep the specialization diagnostic family,
naming the dependency.D preserved; justified sub-bodies permitted. The initial
proved-model scope is kept apart from BQ and further type
constructors. Pending refuters may run for research or shadow
evidence but do not mint the trusted Contradiction before their
soundness obligation is discharged.ValidR. T-R0b owns the recorded problem’s declarative
meaning, with requirements and unsupported constructs explicit. CX
consumes it; validity is never defined by whichever checker
succeeds.crash question is closed by
inspection: crashRef builds a checked lambda whose body has the
fresh result type (src/Features/Check/Operation.purs:120), so
LambdaBody is right. B9 and B13 stay proposed classifications
pending their named tests.Research decisions (inference extension §10):
The reviewer recommends pushing the documents and statements as a research checkpoint once these are recorded and the final edits rechecked, with every unproved status left unmistakable.
The author forwarded a third external review (focused on the switch, the O24 revisions and their dependencies, not a full audit of the plan) and adopted its recommendations.
G-switch: shadow first (option A now), earned exemptions (option E) as the destination. The checker’s current coverage boundary must not silently become the language boundary. The new path is implemented and measured in shadow, preserving today’s acceptance; the full switch waits for the treatment of effects, data and requirements that the exemptions need. Option C (a per-declaration window) stays possible as a temporary migration step if the census shows it delivers useful improvements safely, with explicit limits and tests. Option B (broad narrowing) is rejected. Option D is rejected: a declaration is not called Solved when the check deliberately omits acceptance-relevant obligations, whatever its label. The final switch is not chosen now; the census informs it.
O24 questions (note §3.4):
eq T2 T2 among the induced problem’s
assumptions; declaration well-formedness and satisfiability checks
are kept separately, so vacuous inclusion cannot make an invalid
declaration acceptable.ValidOpen unchanged. First investigate a model
refinement: constructor names indexed by the original countable
B, base b interpreted as the atom i(b), and arbitrary further
atoms in the carrier over B₁ (EMLTI Def. 10.2.5 allows carrier
elements no closed type names). Proposed for statement review, not
proved; it reuses GI-Atoms’ vocabulary/carrier distinction.Apart stays a premise; clients get a capture-avoiding renaming
operation, with invariance under renaming checked.Qualification to counterexample 2: the raw scheme is a valid
model-level counterexample, but source Waxwing adds implied
disjointness through Sig7, so omitting an explicit where clause does
not omit those generated assumptions.
Plan changes before approval: (1) checker limitations stay local
to the checker: Task 4.2’s entailedGround limit is not a global
prohibition on other strategies judging requirement atoms, and an
incomplete recorded problem is distinguished from a complete
requirement G0 cannot discharge; (2) D1’s sequencing deliberate:
bring the generation continuation before the live switch, or justify
the temporary read-back bridge and its removal; (3) the first
execution tranche ends with reviewed interfaces, characterization
probes, generated problems and shadow comparisons, and authorizes
neither Task 4.6, live refutation, Phase 6 nor the O24 proof tranche.
Remaining technical gates are settled by evidence and reviewed
proposals, not posed as language-design questions.
Next authorization: a bounded shadow tranche, after a re-review of the revised plan. Proof work is scoped separately. The reviewer recommends pushing the reviewed documents as a checkpoint with their unproved status intact.
The author authorized the bounded first shadow tranche as defined in docs/plans/2026-10-22-r0-implementation-plan.md (“First execution tranche”), with these choices:
E_UNRESOLVED constructor may land.SearchBroke; its partial
result is discarded and independent attempts continue. A
trusted-checker failure, an orchestration invariant violation, or
uncertainty about shared-state integrity stops the run. Not
implemented as a blanket exception catch.Still unauthorized: the live switch, live refutation, Phase 6, D1’s implementation in the later tranche, and all proof work.
The author authorized pushing the documentation and research
checkpoint to origin/main; it publishes proposed statements as
proposed, not as proved. Later implementation pushes need their own
authorization.
Written on 2026-10-24 at the author’s request, after a whole-stack review (docs/findings.md, “Whole-stack review of the R0 shadow stack”) found these gaps. It records what the repository shows; it supplies no approval and backdates none.
The author reviewed the repaired path (the trusted check settles one
proposed substitution, checks it and builds its witness from that same
input; the generic strategy interface accepts no separate witness),
reran 28 focused tests, all passing (forged id2, legitimate and
defaulted-hole controls, rejection without an error value, the trusted
boundary checks), and did not repeat the full verify or the
restored-defect runs. Decisions, dated 2026-10-24:
No live switch and no push.
The author checked Strip, its placement in Outcomes and the lambda annotation substitution, which support the audit’s distinction (docs/plans/r0-effect-rows-audit.md): marks and clause rows are removed at an established boundary; other effect information must stay accurate. Decisions, dated 2026-10-24:
Mark may be stripped. The handler’s effect identity, type
arguments and inference row are preserved. Clause rows may disappear
at Strip, after their checking obligations are discharged.main’s tail, over-application stages and lambda
ambient rows; the slot inventory follows actual reads, with a test
for each site.Free bindings may be proposed, but coverage alone
does not approve them for compilation: the separately specified
effect validation judges their interpretation, or the result is
EffectsUnchecked.build
consumes. Reproducing today’s rows shows correspondence with today’s
checker, not effect soundness.Authorized tranche: write the a-min definitions, invariants, trust
boundaries and distinguishing tests, covering nested arrow rows, data
row arguments, handler inference rows, lambda ambient substitution,
main and shared hole numbering; state how effect validation relates
to the retained witness, Free bindings included; keep the
independent reference projection and R026’s checked-witness coupling;
have them adversarially reviewed before implementation; add the two
R031 fixtures. Task 4.6 and G-D1 stay open. No live switch, no push.
The author reviewed a draft completion checklist and asked for it to be kept in the repository with an owner, dependencies, current evidence and a closure criterion per row: docs/plans/r0-closure-checklist.md. Corrections, dated 2026-10-24:
certifySound does not prove backend compilation correct.divide5 and route close with a representative source program
compiled and run, with the split-selection justification.Housekeeping: census figures are the current cohort’s (after the C001
additions), status is item by item, a-min’s review 1 appears under A1
and A2, and Fresh’s limitation is kept while noting that the
option-B bridge addresses it.
EffectsUnchecked. Validation performed and failed: reported as
that check failure, not as proof the source is invalid.Outside marker
does not justify a contract that would fail once it is removed.Next: revise the statements under these rulings, address every review finding, and obtain a fresh adversarial review before implementation. Checklist correction: the live-path cost (A11) is measured on the candidate pipeline before it is enabled, and that measurement is a prerequisite of the switch (A12), removing the cycle.
After review 2 (r0-amin-statements.md §10), the author asked for a coherent replacement rather than local patches, returned before any further review agent starts:
build
receiving its checked stripped projection; no two independently
supplied copies whose agreement needs another checker. The package
includes handler clause information and nested occurrences, not
only marks at named variables. Either N1 representation satisfies
“separate evidence”; this one is preferred.k ≤ N holds at k = N and fails at k = M). Revision 3
states which mark variables are rigid and which flexible, what
evidence represents dependence on rigid marks, how trusted checking
keeps the universal quantification, and the exact relationship to
FX008’s path criterion, which stays the reference until an
equivalence is justified. A least-solution citation is a foundation,
not that correspondence. The least solution in FX008’s argument is
distinct from the later closing of remaining metas for display and
erasure.The author found revision 3 coherent enough for a third adversarial review after two corrections, and not yet ready for implementation:
J ∅ denotes N, but the written holds
rejected J ∅ ⊑ N, which is true; the author checked all 36 term
pairs over two rigid marks against all four valuations and found
that single mismatch. Normalize J ∅ to N before every inequality
and equality check, with a control showing both spellings compare
equally. A representation gap, not a counterexample to the join-set
approach.with is a
separate compatibility change. The statements specify how the
marker survives resolution, which currently drops the information.The author agreed to revision 3.1 followed by a targeted confirmation
review (50-80k tokens) rather than another full review; implementation
stays unauthorized. The missing defer edge is not editorial: it would
reopen the cleanup failure FX008 exists to prevent. Revision 3.1 must
give one home for each fact; concrete obligation definitions (full
marked types for E1, final-row conditions for consumption, clause tails
and installation, no replayed inference instructions); complete edge
collection, with FX008’s failing-cleanup example traced from source to
the refusal of a forged package; least terms over equality classes,
keeping fixed rigid terms apart from flexible positions; and the actual
outcome routing pinned. U1 (the correspondence argument with explicit
premises and its bounded oracle) and U6 (the source-rule-to-obligation
coverage argument with exclusions and their reasons) are deliverables
before implementation approval. The targeted reviewer checks each
finding against its replacement and traces the interactions among
evidence ownership, full-type equalities, deferred consumption and mark
checking, includes the smaller findings in the resolution ledger, and
stops and reports if a repair changes the representation or theorem
scope.
Authorized: revision 3.2, the oracle additions and a targeted re-review; implementation, Task 4.6 and G-D1 stay blocked. N1 and N5 matter most: they describe ways forged evidence could erase a real effect requirement. Conditions:
holds separately.The author’s rule: treat the existing compiler as the compatibility baseline, not the correctness specification. For every validator obligation, name its intended semantic property and the independent argument supporting it. Mark rules supported only by existing behaviour as compatibility obligations. When compatibility and soundness appear to conflict, preserve the separating example and bring the conflict for a decision; do not automatically reproduce the old behaviour. Applied to a-min in docs/plans/r0-amin-obligation-semantics.md (to be folded into the statements after the targeted re-review of revision 3.2).
Authorized: revision 3.3 and its targeted re-check; implementation, Task 4.6 and G-D1 stay blocked. F1 (r0-amin-statements.md §R5) is significant: the validator could lose a safety requirement even with honest evidence. C equality is retained on FX008 §5’s safety argument, with today’s behaviour as supporting evidence; attempt A is a reasoned counterexample, not an executed one. Conditions:
The reviewer checks the whole handler-type path (recording,
derivation, equality, copying, installation) as well as F1-F7. The
effect-kinds research stays separate: this tranche concerns faithful,
sound validation of the existing contract, not a stronger meaning of
pure.
The author ratified, on the report alone (not an inspection of the changes):
Log handler receives the
operation, distinguish unsafe accidental handling from deliberate
dynamic dispatch; if the analysis supports it, propose the stronger
premise with its completeness cost.research/effect-kinds
under research/effect-kinds/, with an index linking the research
note; E06a, E15 and E16’s near miss run with the existing compiler,
predictions, sources, commands and outputs kept, disagreements
included; no toolchain installed. Qualifications: main-result
printing and fatal reporting need an explicit observation boundary,
and their existence does not show ordinary effect checking unsound;
“no directly applicable theorem found in this survey”, with each
author’s definition of purity attributed.Implementation, Task 4.6 and G-D1 stay blocked. No push.
The author, on the report: implementation stays blocked and the targeted review finishes first.
The author’s rulings on r0-amin-statements.md §R6, ratified 2026-10-24. Implementation stays blocked; no implementation authorization is implied.
consumeBare, throwaway tail) recorded explicitly.The author’s rulings, ratified 2026-10-24. Task 4.6 and G-D1 stay blocked; no push.
pure,
Crash and external-root classification are unsettled. Only source
research that does not depend on those choices continues. “No
published precedent found” is a search result, not grounds to invent
a rule.-, * and unary minus proceed in isolation; division
deferred; no zero-on-divide. Fresh branch from main carrying only the
design and plan; the with h -1 break accepted with a migration
example and an ADR; negative literals preserved; unary-minus
constraints by the same semantic pattern as integer arithmetic, with
their own generation case and tests; helpers conditional on use.
Implemented during the shadow tranche but not landed into the R0 stack
or main; landing requires a review of recorder coverage, pinned
evidence and corpus baselines. Authorized now: plan tasks 1-2 (the
shared-node refactor and the independent oracle), reviewed before
the remaining execution cost is authorized; the 1-3M estimate is not
blanket authorization.The author’s rulings, ratified 2026-10-24. No merge, no push.
UnsolvedImage (scripts/trusted-surface.json)
is accepted as matching the exported constructor; this is acceptance
of that pin, not a whole-stack review. ['UnsolvedImage', 1] joins
the constructor inventory in test/r0-verdict.test.mjs; the
must-refuse fixtures and positive controls stay..wxw.txt, references updated, contents preserved, runnable without
entering the pinned R0 corpus; the corpus is not re-pinned to absorb
research files.origin/main (19f49c7, README
a82d064). §18.87 item 4’s “activation awaits approval” is superseded.
The charter authorizes no implementation or proof here and settles
none of the open effect-policy questions; a-min implementation, Task
4.6, G-D1 and the live switch stay blocked. Its precedence rule (the
author’s latest explicit answer governs within scope) applies to the
rulings recorded in §18.72-§18.87; no ruling here conflicts with it.fail(E): E, exit 1; controls x1d and
x1c as expected). Filed as BACKLOG FX033 with the author’s choice of
E4′ rule as its next action. The draft’s bounded adversarial review
(§18.87 item 3) has not started.The author accepted the charter orientation and resumed the bounded
ResultC adversarial review (§18.87 item 3), prioritizing FX033. H′ (a
fresh ResultC tail only when the variable occurs nowhere else in the
signature, handled-effect arguments and nested types included;
otherwise R’s tail, the existing conservative path; k2f kept if that
precision is justified) is the preferred candidate for review, not an
adopted rule or established theorem. The review reproduces x1 and its
controls against an identified build, keeping observation apart from
explanation; examines the exact occurrence criterion and every source
of caller-supplied values; and challenges the argument’s reliance on
O-SUB. It reports separately whether H′ blocks the demonstrated
failure, whether another path defeats it, which accepted programs it
would reject, and what remains unestablished; blocking one reproducer
does not establish soundness. Then a narrow, test-first FX033 repair
proposal, whose implementation needs separate authorization. a-min
implementation, Task 4.6 and G-D1 stay blocked; division and the five
effect-contract decisions stay open; nothing merged or pushed.
Review 1 (§18.89 brief) stopped after the reproduction when a safety classifier halted the agent’s output; it did not route around the stop. The author approved a relaunch. Review 2 covered the remaining tasks with a narrower brief, worded as a correctness review, and was not stopped. Record: docs/plans/r0-amin-resultc-tail.md “Review 2”; programs in research/amin-resultc-probes/review2/. Findings: nine accepted-but-failing programs on shipped main, all through the fresh ResultC tail; H′ blocks each one emulated (no H′ build); no path past H′ found (search, not soundness); H′ loses two correct programs, c1 and x1z; the RC′ argument needs more than O-SUB provides. A test-first FX033 repair proposal is recorded. Its implementation, and acceptance of the c1/x1z losses, need the author’s decision. Nothing else changes status.
The author ratified three bounded closures. (1) Arithmetic Task 1
accepted subject to a closure, done on d001-arith (4b14d8a): a
structural a + b + c grouping test with a parenthesized control,
shown failing against a re-associating mutant, and Task 1’s
verification recorded with retained and reported evidence kept apart.
Tasks 3-7 stay held. (2) The narrow, test-first H′ repair of FX033,
with c1 and x1z accepted as temporary conservative refusals, a
precision limitation and not language policy. Implemented on branch
fx033-resultc-tail from main a82d064 (3980562, b192f8e): the nine
shapes refused with the pinned diagnostic, controls unchanged,
restored-defect row fx033-result-type, full verify exit 0. E4′ and
the related statements text updated here (r0-amin-statements.md).
Not established: RC′, O-SUB, effect soundness. Not authorized: broader
a-min implementation, Task 4.6, G-D1. (3) Scoping records closed on
research/charter-scoping (4d29d11): F1-F4 filed as FX034, E021, E022,
DOC002; stale summaries corrected with dated history; the map revised
for Codex’s S1-S7 and kept a planning proposal. No merge, no push.
The author authorized one revision and one review (closure checklist, critical path 1), with three clarifications: open RC′ is a substantive limitation, the review separates representation from soundness and names what depends on RC′; the effect-contract independence claim is reviewed; a firm stop. Revision 3.6 (ffb2b33) recorded H′, U8, the oracle reruns, O6 and a carried-obligations table. The review (§R7 in the statements) found no S1 and four S2: the overruled Console guard still in §4 E5 and §13; O6 testable for rigid tails; O-SUB and A1 are whole-judgment obligations, only P4 fresh-tail-specific; the table’s mislabels and missing rows. It recommends not certifying fresh-tail ResultC uses until P4 is argued and reviewed. Stopped there: no revision 3.7. Decisions for the author: the text fixes or a waiver, the fresh-tail ruling, and representation approval. Implementation, Task 4.6 and G-D1 stay blocked.
The author ratified correcting all four S2 findings rather than waiving them, with the S3 items, and “always R’s tail” as a provisional shadow-validator restriction: it removes reliance on P4 only where it prevents freshening; O-SUB, A1 and the other whole-judgment obligations stay open; the stand-in’s acceptance differences are evidence, not checks; aroundBoth and k2f stay visible under A6. Fix pass cade64f (statements §R7a). The author inspected it and asked for two consistency repairs (§0e item 2’s wording; E4′ and its §14 row to state the restriction, H′ kept as live behaviour), made in bc665cd. The revision keeps the 3.6 label. Approval is pending; it would cover the representation with the named obligations open, and authorize neither implementation nor soundness claims; A2’s algorithm and source, G-D1 and Task 4.6 stay pending. Reporting from now on leads with the three milestones (next-session.md).
The author inspected bc665cd and ratified an external note: E4′ had come to reject every ResultC recorded with a fresh tail under H′, while the stand-in forced the R-tail choice and checked the resulting constraints. Because r1, r2 and r9 exercise H′’s fresh path and survive the stand-in, their survival was no evidence for blanket refusal. Statements §R7b: E4′ specifies forcing (bind the recorded fresh tail to R’s tail variable, check, refuse only when the constraints fail), which is the ruled “always R’s tail”; blanket refusal is recorded as a stricter alternative, not ruled, with unmeasured losses. The representation stays acceptable with the named obligations open; approval waits for the author; no implementation starts on this packet. Status reports drop percentage estimates: the records give gates and dependencies, not a defensible percentage.
The author approved revision 3.6 with the §R7 corrections and §R7b at
535b780 as a representation: E4′ consistently forces the recorded
fresh tail to R’s tail and checks; it certifies the forced typing and
claims no correspondence with the live compiler’s H′ typing; the
stand-in evidence and acceptance losses are qualified. The author’s
review conditions are closed. O-SUB, A1 and the other named
obligations stay open; approval establishes no soundness claim.
Implementation, A2’s algorithm choice, G-D1’s closure and Task 4.6
stay unauthorized. The next unit, the first implementation tranche’s
document, is docs/plans/2026-10-25-amin-tranche-1-proposal.md:
generation records the effect problem (types, instances,
annotations, E1-E12, FX032 Unsupported), rule 1’s
EffectsUnchecked, R031’s fixes, a bounded coverage test and a census
rerun; shadow only; no validator; Outside markers kept. Awaiting the
author’s authorization.
The author ratified proceeding with tranche 1 and drafting A2’s note
alongside the plan, with conditions: keep Outside HandlerType and
test that recording obligations cannot make an unchecked handler
declaration Solved; T6’s missing-fixture list records unfinished
coverage, never completed coverage, separating constructible from
unavailable cases; name the checks that compare live acceptance, first
diagnostics and generated Go, since a passing verify supports only what
its checks exercise; correct the import claim (Strategy/Online.purs
also imports Generate) to “unreachable from live compilation”; keep
R031’s corrected assertions and restored-defect evidence explicit. The
A2 note is docs only, drafted early enough to find inputs T1-T3 must
record, separating trusted validation from untrusted mark search and
published parts from Waxwing-specific rules; drafting chooses nothing.
Delivered for review: docs/plans/2026-10-25-amin-tranche-1-plan.md (13
tasks, Checkpoint A after Task 5) and docs/plans/2026-10-25-amin-a2-
options.md. No implementation, live switch or soundness claim is
authorized.
The author ratified a review of the plan and note: scope right, five
corrections, then subagent execution through Checkpoint A only.
Corrections: (1) annotation C tails are per handler occurrence
(AnnotationClauses j k), with a sibling-handler fixture asserting
distinct tails; (2) the A2 note now states E4′’s forcing as a
deterministic step (read, settle, force to σs(R’s tail), solved form,
obligations), the certified witness and build using the forced
substitution σf; (3) Task 1 tests emptyEffects directly and the
record’s presence separately, so no later task weakens it; (4) the
blocking-boundary test moves into Checkpoint A (Task 5), extended in
Task 12; (5) coverage separates unconstructible sources from
constructible programs whose verdict is blocked, and position and
variable minting is checked for duplicates before set comparison.
Decisions: the plan captures the goal with these corrections;
subagents through Checkpoint A (Tasks 1-6), not all 14 tasks; budget
1.6-2.4M tokens, stop and report before exceeding 2.4M; the
Domain.Recorded.Effect allowlist entry accepted if it grants no
generation or checking reachability, with the gate kept able to detect
forbidden dependencies; A2 inputs 1-4 all included. For A2, M-A gated,
M-B as an independent oracle and R-A remain the direction; the
differential separates graph satisfiability from an assignment’s
satisfaction; source-fidelity claims to be checked before final
approval; the interim policy is shadow assurance only, every blocker
kept.
The author approved the Gen exports effected (effect items only)
and refVar (a reference’s name; no handle construction) as a named
gate change, the two Task 3 rulings (Effect and Failure produce nodes;
builtins keep their actual Console row, mark N), and ordered a stop
after Task 5, superseding the plan’s stop after Task 6. Tasks 1-5 are
done at 87420d8; verify exit 0 (docs/progress.md). Representation
work only: nothing checks effects, every handler declaration stays
blocked (Task 5’s test), live compilation unchanged. Open for the
author: Task 6 (R031); whether regression proofs must be registered as
verify rows; the parked duplicate-key detection; whether a recorded
handler type with only a FailFamily marker counts as a breach (Task
12).
The author’s rulings on §18.98: (1) register the regression proofs
before Task 7, one row per invariant or defect, keeping the original
demonstration logs; (2) proceed with Task 6’s two R031 repairs, one
registered restored-defect proof each, effect-erased correspondence
checks kept, any pin movement reported rather than approved; (3) close
the duplicate-write gap now: detect duplicate (kind, path) writes
before map construction, identical values included, different kinds at
one path allowed, the variable-free callee case covered; a narrowly
scoped generation fault and its boundary and pin updates approved, no
broader Elaborating change; (4) a recorded handler type requires
HandlerType; a lone FailFamily does not satisfy it; plain
handle/fail with no recorded handler type may use FailFamily.
Also: the boundary test’s scope must be derived independently from
resolved source. One fresh whole-checkpoint review after the repairs
and before Task 7, all within the 2.4M ceiling. Checkpoint numbering in
the plan and RESUME corrected: Checkpoint A was Tasks 1-5; the new unit
is Checkpoint B (plan Tasks 15, 6, 17, 16). Tasks 7+ held.
Task 15 (duplicate effect writes) landed at 3da2198, review clean.
Task 6 stopped: R031 (1)’s hole and (2)’s declared row count are not
representable (the witness has Inline RTExpr | Free Int only;
effect-row reads are unsupported; images drop data-type row arguments
and see no tables). The author’s ruling: defer both repairs to the
effect-row-binding tranche; no invented hole indices, closed-tail
substitutes or padding pass; both defects open with their pinning
tests; deferral neither completes Task 6 nor establishes typed-output
correspondence. The earlier authorization assumed the forms were
representable; that assumption was wrong. Ceiling raised to 2.9M
total, authorizing only Task 17, Task 16 (rows including duplicate
detection and the boundary), full verify, one fresh whole-checkpoint
review, corrections within this scope and records. Tasks 7-14,
effect-row bindings, broader boundary changes and pushing stay
unauthorized. Report as “Checkpoint B’s checks completed, with R031
explicitly deferred” only if the evidence supports it.
Tasks 15, 17, 16 done; verify at e6868b8 exit 0 (2953 + 144 tests, 221
regression proofs); R031 not done (§18.100). The fresh checkpoint
review found no Critical and five Important items (docs/progress.md):
I1 and I4 (rows and handled labels the live checker opens, BACKLOG
R033) and I2 (the controller’s fail-only boundary ruling) need the
author before Task 7; I3 filed as R032; I5’s overstated record
corrected. Code corrections were not made: the remaining budget under
the 2.9M ceiling did not cover them.
The author’s rulings: fix R033 and R032 before Task 7 (declaring them
restrictions would introduce avoidable acceptance losses). R033: an
opened-row role and indexed Opened positions matching the live
checker’s opening rules exactly (eligible top-level parameter labels
written M and result labels written N; Console, Fail and deeper labels
preserved), each opened identity reused across instance, reference and
partial-application stages. R032: record the declaration’s own marked
signature, in duplicate detection, minting and domain accounting and
the boundary checks, with representation checks for signature-only
cases. I2: formally amend the boundary scope: a fail-only declaration
with no other handler-bearing construct or recorded handler type need
not acquire a new blocker; its existing verdicts are preserved; no
assurance that its effects were independently validated. I5’s
corrected account kept. Separating tests and registered rows required.
Qualification: the review’s “completeness, not soundness” reading is an
argument, not a check; correcting the mismatches does not establish
effect soundness. Ceiling 3.5M total, a cap: these fixes, their checks,
verify, records and one targeted review. Task 7 held; R031 deferred;
no push. The green verify at e6868b8 is evidence for that commit only.
R033 (42181ee), R032 (c9fbc31) and the I2 amendment (2643df3) landed with six regression rows; verify at 2643df3 exit 0 (2959 + 144 tests, 227 regression proofs). The targeted review judged the corrections sound and R033 exact against the live checker, and left three Important check gaps open (docs/progress.md): an undetectable missing signature write, the in-test re-pin mode of the cohort pin, and no domain check of the signature’s rigids. They were not fixed within the 3.5M ceiling. Task 7 stays held; R031 deferred; nothing pushed.
The author ruled to close all three review gaps before Task 7: assembly
rejects a missing signature write (not a placeholder comparison); the
cohort pin is written only by a separate script and the test only
compares; the recorded signature’s rigid references, nested handler
types included, are checked against effectRigids and rigidMarks.
Each needs a registered regression proof, including omission of a
signature whose legitimate value equals the placeholder, and a moved
cohort failing with WXW_PIN_FAIL_ONLY=1 set without the pin changing.
A newly exposed recording defect is fixed within scope and cap;
broader design or gate changes need a ruling. Cap 0.45M (running
ceiling 3.95M), with one targeted review and one fix round. Task 7
needs its own authorization afterwards; R031 stays deferred.
Tasks 21-23 landed (0a4bbd8, 69b0180, 3265fbd) with the fix round
7d1d668; verify at 7d1d668 exit 0 (2961 + 146 tests, 231 regression
proofs). The targeted review’s Critical findings (seal-based tests and
a dead regression needle broken by Task 21) were fixed in the one
authorized round. For the author: Task 22’s proof needs a gate choice
to be registered (a parsed-import gate, or cloning test/ in the
harness); the end-to-end MissingSignature row restores the
placeholder-comparison defect because deleting the write is not
observable; the effectRigids ambient exception rests on statements
§2 and a corpus assertion. Task 7 held; R031 deferred; nothing pushed.
Spend about 3.8M against the 3.95M ceiling.
The author accepted unit D with one follow-up before Task 7. Task 22’s
proof is registered as an isolated behavioral row, not an import gate:
the harness is extended only far enough to mutate and run the real
comparison code (test/r0-fail-only-compare.mjs). With
WXW_PIN_FAIL_ONLY=1 a moved cohort must fail and leave the fixture
unchanged, and restoring the in-test writer must make that probe fail.
An import restriction alone would not establish this. The two
MissingSignature rows are accepted as a pair and labeled separately:
the direct assembly row (r0-amin-signature-missing) shows omission is
rejected; the end-to-end row (r0-amin-signature-missing-real) shows a
legitimate placeholder-shaped signature is accepted, and claims nothing
about omission. Self-hosting confirmed: all four final text fixes are
in main at 7093c79. Task 7 held, R031 deferred; the other completed
corrections are not reopened. The author asked for a bounded estimate
for the follow-up, then a separate scope and cap for Task 7. This
supersedes §18.105’s open gate choice.
The author approved two units in sequence, each with its own cap, one
review and one fix round. Task 24 (Task 22’s registration): cap 0.18M,
running ceiling 4.0M. Test-file rows run entirely from their isolated
copy; source rows keep their compilation and proof behavior; the row
shows that restoring the writer gives the named failure and that the
real fixture stays byte-identical. Stop on a dependency outside test/
or on scope growth. Task 7 is authorized only once Task 24 has passed
its targeted review and full verify with no unresolved blocking
finding: 0.65M more, running ceiling 4.65M. Scope exactly as proposed
(Equal recording, O1 and O2, the planned tests and regression rows);
the corpus check compares each recorded obligation with its
originating equality, not merely a nonzero count; G0’s problem pin is
unchanged. Stop for an unresolved reading of §4, a required change at
a pinned boundary, or R031 work; R031 stays deferred. Unused budget
does not widen either unit. Actual spend and verification are reported
at the transition.
Task 24 stopped on its stop condition: probe helpers (test/support.mjs
among them) import the compiler from ../output/, so a bare copy of
test/ cannot run. The author authorized option 1, narrowly amending
the stop condition to permit the isolated baseline’s build output: a
test-file row clones the regression baseline (no writable or hard link
to the real tree), copies test/ into that clone and still skips the
compile. The restored writer must give “a moved cohort passed”, not an
import failure. Isolation checks, the targeted review and full verify
are all still required. The 4.0M ceiling is unchanged; stop and report
before exceeding it. Task 7 stays gated behind Task 24.
The second attempt stopped when test/r0-g0-support.mjs read a research probe at module load. The author authorized copying the three named files (research/division-campaign/r0/probes/d02-body-type-lacking.wxw, research/division-campaign/source/examples/p11-route.wxw, examples/answer.wxw) into the isolated clone at their original paths, as independent copies with no writable link to the real repository, and raised Task 24’s running ceiling to 4.10M with inline completion; the targeted review, one fix round and full verify stay. The healthy probe must pass and the restored writer fail with “a moved cohort passed”; the real comparison file, the fixture and the copied inputs’ originals stay byte-identical. The real runner is exercised before review (the literal-path scan is supporting evidence, not an inventory). Stop for any further dependency outside this scope or before exceeding the cap. No change to shared probe helpers or fixture contents. Task 7 stays gated with its 0.65M allowance; if Task 24 uses the revised ceiling the combined maximum is 4.75M, superseding 4.65M. Task 24’s actual spend is reported before Task 7 starts.
Task 24’s targeted review found it READY (Important 1 and the minors fixed in b107049, the one fix round), but three full verifies each failed a timing bound: coverage-scale at cd36b7e and on the b107049 rerun (about 5.5 s; 0.59 s alone), fn-linear-timing “over” at b107049 (2357 ms against 1620 ms; 1347 ms alone). The regression phase never ran in full. The author authorized measurement only, controller-only, up to 0.01M within the 4.10M ceiling, with no fix round and no blind verify retry: the regression phase run on its own at b107049 (reported separately; it cannot establish a clean verify), and four sequential diagnostic runs (harness tests included, excluded, excluded, included) at the same commit and settings, recording the coverage-scale and fn-linear timings, phase durations and load. The exclusions apply only to the experiment; the verify command and every timing bound stay. A passing timing run does not erase the three failures. Task 24 stays incomplete and Task 7 held until the author decides what the evidence supports.
The author accepted Task 24’s implementation (cd36b7e, b107049), its targeted review and the regression phase run alone at b107049 (232 of 232 rows) as evidence, and kept the full-verify requirement open: Task 24 is incomplete and Task 7 held. The measurements (§18.110; four runs: included failed, excluded passed, excluded failed, included passed) show Task 24’s tests are not necessary for the timing failures. They do not show the machine is the sole cause, do not exclude a performance regression elsewhere, and do not explain why 7d1d668 passed. The earlier “five seconds added” explanation is unsupported. The author notes the machine ran under unusual conditions over these days (meetings, sleep and wake, an offsite); nothing is proved by that.
Open verification blocker: timing bounds fail intermittently under
npm run verify (coverage-scale, large-source, fn-linear-timing; five
distinct tests across seven runs). Next is a separately scoped
verification-reliability investigation: compare the failing workloads
at 7d1d668 and b107049 under matched, interleaved conditions; check
runner concurrency, competing processes and sustained CPU throttling;
propose any runner change separately, keeping coverage and every
bound. It needs a bounded estimate and its own authorization; the
remaining 0.01M does not cover it. No implementation change, bound
increase or further verify attempt is authorized. Logs: main
checkout’s .build/evidence/2026-10-29-task24/ (MANIFEST.sha256).
The author approved the investigation with a 0.08M cap (running ceiling 4.18M), staged: one ABBA cycle (7d1d668 against b107049) with system observations first, then the three timing files run individually; a second cycle and the reduced-concurrency comparison only if they settle a remaining question. Coverage and bounds stay; any permanent runner change is a separate proposal. The author’s unusual machine use (an offsite, meetings, sleep and wake) makes environmental interference plausible without establishing it, and is recorded alongside the measurements. Task 24 incomplete, Task 7 held, pending the findings. Spelling: new prose uses American spelling (this session’s additions corrected); older text and commit messages stay.
Reliability stages 1-2 (§18.112): in one ABBA cycle, 7d1d668 failed a
parallel-phase timing bound once and b107049 passed both runs; alone,
coverage-scale and large-source passed 4 of 4 and fn-linear-timing 3 of
4 (b107049 once, partialFirst 969 ms against 930). The author accepted
Task 24’s implementation and regression evidence with the status
“implementation complete; verification blocked”, Task 7 held, and asked
for the runner proposal before anything else, with no further runs or
implementation and no second cycle. Wording the author narrowed:
parallel contention is a plausible contributor that these measurements
do not show to be required; partialFirst has little headroom and
failed once alone on b107049, which does not show an isolated failure on
7d1d668. The proposal (docs/plans/2026-10-29-verify-timing-proposal.md)
treats parallel-phase interference and the partialFirst measurement
protocol separately, with costs and tests, and proposes no bound
change. The outstanding gate is not described as passed.
The author asked for revisions before authorizing either part. 1b’s
gate now names the clock APIs, aliases and helper imports it detects,
bans clock reads in parallel files outright (with an allowlist the
author decides), states its blind spots, and needs either a pinned
JavaScript parser through dependency intake or a weaker lexical scan.
1a compares test inventories as multisets of (suite path, test name,
marker) and preserves workloads, timing boundaries and bound values.
1c reports unavailable observations explicitly and stays portable. The
protocol keeps raw times primary and the partialFirst/value ratio
supporting, treats a slowdown that is not detected as inconclusive (not
equivalence), names the primary comparison (head against 95458e3), the
statistic (ratio of medians, 95% percentile bootstrap, fixed seed), the
balanced seeded order and the three pre-stated outcomes, uses no second
decision test, and claims only differences between commits under
today’s conditions. A bounded estimate for 1a-1c is requested. Task 24
verification-blocked, Task 7 held; no runs or implementation.
Standing rule (author, 2026-10-29): a pasted ChatGPT review that clearly responds to the latest report is the author’s ruling without the word “Ratified”, unless the author qualifies it; a re-pasted earlier message is flagged, not acted on.
The author authorized 1a-1c with a 0.43M cap (up to 0.03M for
dependency intake, then 0.40M for implementation, one review, one fix
round and a full verify), running ceiling 4.60M, using the parsed gate
if Acorn passes intake and stopping if it does not. Correction to
revision 2: r005b-quiet (test/regression-r005b-end.mjs) is a timing
bound, not a quiet wait; it is kept and recorded as running in the
regression phase. Exemptions approved: fx-shrink’s two deadline reads,
narrowly scoped and counted, with the load effect documented, and
go-timed’s cache-nonce read only (its performance.now() timing gets
none). Exemptions name exact uses, never whole files or importers. The
gate stays within its documented syntax and import scope. The protocol
stays held, corrected to resample whole blocks across commits. Stops:
an unapproved exemption, a workload that cannot move unchanged, a
required bound change, the cap; a further timing failure is reported,
not retried. Task 24 verification-blocked; Task 7 held.
The targeted review of 1a-1c (fffc055..988754e) found it NOT READY:
file-wide shadowing hid clock roots (shown on a real parallel file), a
stored new Date() was missed, and the conditions line named HEAD on a
dirty tree, with minors. The controller stopped the fix round before
it changed anything, since it would have exceeded the 4.60M cap. The
author approved 0.15M to complete (one fix round, focused confirmation
of the findings, one full verify), running ceiling 4.75M, separate from
Task 7’s allowance. Labeled amendment accepted: every zero-argument
new Date() is a clock read, stored values included; constructors with
arguments stay outside the rule. regression-task5’s existing bound is
documented beside r005b-quiet, unchanged, with no exemption. Bindings
are tracked by lexical scope; every exemption is validated against its
real file, reachable or not; the conditions line reports commit identity
and working-tree state, untracked files that could affect execution
included; diagnostic subprocesses get timeouts; the helper reference,
acorn import count and blind spots are corrected; scan floors stay.
Stops: broader analysis machinery, or the cap. A failed full verify is
preserved and reported, not retried. Task 24 verification-blocked;
Task 7 held.
The fix round (a557782) resolved the review’s findings; the controller
confirmed each Important finding against the reviewer’s failing cases
(scoped shadowing on the real fx008-syntax file, stored new Date(),
global., a stale out-of-scope exemption) and the real tree’s empty
result. Three existing assertions changed because the ruling required
it (two near-miss fixtures to new Date(0), one form string, one
unavailable count); no bound or workload changed. One full verify at
a557782 on a clean tree passed: 2941 parallel, 201 serial, 232
regression proofs, every gate, exit 0, with conditions logged before
each phase (AC power; load 5.54, 3.56, 3.76). Log: main checkout’s
.build/evidence/2026-10-29-runner-verify/. This is the first full
verify to pass since 7d1d668; it is one run, and the earlier failures
are not erased. Whether Task 24’s verification gate is now satisfied
is the author’s decision. Task 7 held. Spend about 4.64M against 4.75M.
The author closed Task 24: the clean-tree verify at a557782 satisfies its gate. The earlier timing failures stay as evidence; the pass does not establish timing reliability under every condition. Task 7 starts under its §18.107 allowance of 0.65M, running ceiling 5.29M, with §18.107’s scope, review and stops unchanged: Equal recording, O1 and O2, the planned tests and regression rows; the corpus check compares recorded obligations with their originating equalities; G0’s problem pin unchanged; stop for an unresolved reading of §4, a required change at a pinned boundary, or R031 work. R031 stays deferred. The partialFirst measurement protocol stays held; a future timing failure is investigated, not retried and not met by raising a bound. No milestone moves from closing Task 24.
Task 7’s first attempt stopped with no changes: the new Generate.Obligation module and the Gen/Out export changes need a trusted-surface re-pin, which the brief had listed as a stop, and the literal-node E1 would be reflexive because today’s literal has no node variable. The author authorized the trusted-surface re-pin for Generate.Obligation and the necessary Gen/Out export changes, its diff named in the same commit, without moving G0’s problem pin, weakening a gate or changing live compilation. Approved amendment (statements §4 and §2, plan Tasks 7 and 9): no E1 at the literal’s node in Task 7; no invented node variable or reflexive equation; Task 9 owns the literal’s connection to its image or use, named in its test and restored-defect proof; literal-E1 coverage is deferred, not satisfied or unnecessary. Origins: explicit tagged provenance, an atom-associated obligation referencing its unchanged AtomId and an effect-only site with a deterministic site-local identity; no negative indices or offsets; the identity and uniqueness rules documented before coding and reviewed; the corpus comparison requires the correct marked sides. No new budget: about 0.51M remains under 5.29M. R031 deferred.
Rulings recorded (author, 2026-10-29): the Effect.agree removal is
covered by the Task 7 re-pin ruling (it replaces the old equality
helper and the commit names it). Record.shape’s removal is deferred:
follow-up, an unused export whose removal needs a Record re-pin. The
corpus check (markedSides) accepts any eligible recorded type with
the same erasure under the path or in the signature; it does not
identify each side’s intended home, so a wrong candidate could pass.
What it supports: 191172 sides match an eligible recorded candidate,
marks included; 8414 have no candidate and are checked by erasure
only. The floor checked > 100000 stays as an explicitly chosen
minimum beside that observed count. The r0-amin-equal-sig3-marks row is
accepted as a targeted check that Sig3’s written marks survive; it
does not show the corpus check detects the defect.
Full verify at c77f5c3 (run once, not retried) failed: parallel 2946 of
2946 and serial 201 of 201 passed; regression proofs 234 of 235, the
failing row r0-amin-partial-reuses-stages (“mutation must have exactly
one target”). Its second needle ( , mintedStages\n , tagged\n )\n,
scripts/regression-r0-amin.mjs) no longer occurs: Task 7 removed
tagged from Call.purs’s import list. A Task 7 defect the focused runs
missed; not fixed (the fix round is used).
Sig3 reproduction (isolated copy, fresh output/, strict build
unchanged): the earlier mutant build failed with UnusedName
(Signature.purs:147, sig unused); with sig replaced by _ the
mutant built clean (0 warnings, 0 errors). The emitted
Features.Check.Generate.Signature JavaScript changed from
agreeEqual(...)(markedBody)(sig.result) to
agreeEqual(...)(markedBody)(markedBody). Healthy copy: 5 of 5 pass.
Mutant: 2 fail, “1675 problems”; every problem printed (the test prints
ten) is “sides differ”, the erasure comparison, not the marked-side
check (“marked side matches no recorded type”). The mutant’s right side
equals a recorded candidate (the body node’s type) exactly, so the
marked-side check would accept it. So this reproduction shows the
corpus test detects the Sig3 defect through erasure; it does not show
the marked-side check detects anything. An instrumented run to count
all 1675 by kind hung and was abandoned. Evidence: main checkout’s
.build/evidence/2026-10-29-task7-verify/. Task 7 acceptance open.
The author moved the remaining tranche work to one batch with one budget decision before dispatch and one acceptance report after: four lanes (A, Task 7’s remaining evidence; B, Task 8; C, Tasks 10-11; D, Tasks 12-13’s boundary and coverage accounting, unfinished rows explicit), a document-only Task 9 design, isolated worktrees with fresh implementers, one controller owning shared files, pins, integration and records; focused tests per lane and one full verify after integration and review, superseding the between-task verify rule for this batch; timing checks never beside agent builds; mechanical conflicts, stale needles (defect and expected failure unchanged) and listed re-pins within the controller’s authority; stops only for semantic ambiguity affecting acceptance or guarantees, unlisted boundary changes, weakened checks, denied commands, scope growth or the cap. Task 9’s implementation, A2’s algorithm and R031 stay outside. The proposal, with lane ownership, step 0 (Effect.purs at 247 lines is split before B and C), integration order, listed re-pins (trusted surface; census and window for Task 11’s FX032 rows) and a 1.60M all-in cap, is docs/plans/2026-10-30-tranche-1-parallel-batch.md. Earlier: the r0-amin-partial-reuses-stages needle was fixed (8f8eac8) and the row proves directly.
The author authorized the batch of §18.121 as proposed: lanes A-D, R9,
step 0, three targeted reviewers, a 0.20M fix allowance and one
acceptance verify; 1.60M more and a 6.82M running ceiling, both limits
binding. Clarifications: Task 7’s acceptance waits for the combined
review and full verify (lane A is reported ready for acceptance
meanwhile); step 0 is a mechanical extraction preserving the moved
declarations apart from module and import changes, checked before
dispatch; trusted-surface re-pins cover only the exports and
constructors these recorders and the extraction need (no Gen, Elab or
seal redesign, no new validation semantics), each named in its commit;
census and window re-pins cover only the predicted FX032 routing, each
moved declaration checked for its recorded unsupported operation and
expected EffectsUnchecked reason first, any other movement a stop;
coverage is evidence-based, Task 9’s implementation explicitly
unfinished; lane A’s proof preserves erasure and fails through the
marked-side check’s own diagnostic. A failed acceptance verify is
reported, not retried. Out of scope: Task 9’s implementation, Task 14
beyond the named fixture maintenance, A2’s algorithm, R031. No push.
Done (r0-t2-d1, 8e9ddf7..fc8a459): step 0; lanes A-D integrated in
order without merge commits; R9’s note saved
(docs/plans/2026-10-30-task-9-literal-design.md, Q1-Q7 open).
Controller fixes: f020475 (the literal mints ⟨p, clauses k⟩, with
mints Frame p; the merge had 521 named-unminted), 2720177 (Assemble
built effect lists by appending one item at a time, quadratic; Task 8
broke two census scale bounds through it; measured against base and
Task 8 alone, fixed, no bound touched), ade8206 (window re-pin: only
inline:fx032#g moved). Lane A’s mutant against the corpus test: 242
problems, all “marked side matches no recorded type” at Sig3, none
erasure. Coverage after D’s recheck: 31 rows, 18 fixture, 13
unfinished. All 249 regression proofs passed on the integrated tree
before D’s recheck. No acceptance verify ran.
Spend: about 1.55M of the 1.60M cap (R9 0.17, A 0.08, B 0.28, C 0.27, D 0.19, three reviewers 0.55), so the fix allowance is spent; the cap binds and the batch stops here. Also a stop on its own: reviewer 2’s P0 needs a §4 amendment.
Review findings, unfixed, for the author:
fail records no consumption. Statements §4’s E2 site list
omits fail, Task 8 followed it, and §13’s coverage repeats the gap;
live refuses run(fn(u: Unit) => fail(Oops)) into a with pure
callback (MustBePure) but nothing recorded requires Fail(Err) in
the lambda’s row. Needs a §4 ruling (add fail to E2’s sites).hushed to
Nothing, so FX032 is missed and g is Solved (observed for Nope
and Log + ...e), against §9. Fix in scope: record that a row was
written separately from its resolution.with whose handler’s marked type is not yet
MHandler records the body’s ambient row without f L (Ambient
framed); live accepts such programs. Blocked today by rule 1
(Outside HandlerType); must not reach Task 9. A Task 9 design
choice (Unsupported, or L through the image); unrecorded departure.main’s Entry and ambient rows keep the rigid
EffRigid 0 tail; the checked IR closes it, the live checker makes
it flexible. E8 over a rigid tail is unsatisfiable. A §4 E8 reading.MHandler ≡ MVar;
§13’s obligation column is never compared; Task 12’s comment says
only Equal is recorded, its “non-vacuous” assertion is implied by
Task 5’s, and its Step 3 proof was not rerun; a628bd5’s message
lists pin changes that are not in the pin and omits the equal-test
edit.SigRule, an
open AtDefer source, stale fx032 blind-spot text, SiteRole outside
every gate, Frame p minted only for MHandler): listed in the
reviewers’ reports, summarized in docs/next-session.md.
Accepted by the reviewers: step 0 verbatim; each pin named and in
scope; the window move; the needle updates; the test narrowings (equal
skip, AtDefer, ambient as naming) except as R1 P2 says; Assemble’s
order; live preservation (generation unreachable from Program.Main,
first-diagnostic passes); the minting fix; most lane rulings.
No milestone moved. Task 7 acceptance still open.The author authorized one completion pass of up to 0.35M (controller
and reviewer spend included), cumulative ceiling 7.17M, both binding:
repairs, a focused review of the changed semantics, regression proofs
and the one acceptance verify. Rulings: (1) fail joins E2’s sites:
its Fail(payload) label is consumed into the current ambient row,
beside E9; statements, coverage ledger and plan updated together; the
pure-callback separating example and a registered proof that dropping
the consumption is detected. This repairs a future certification gap
and establishes no effect-soundness claim. (2) main’s top-level
ambient tail is inferable, not universally rigid: written labels and
closed rows kept; where main has an open top-level tail, one minted
flexible effect variable shared by its ambient row and Entry; E8
judges the completed row against the Console allowance. Its relation
to the recorded signature and rigid accounting documented; not only
Entry’s tail, no other signature variable made flexible; the checked
IR’s closed tail unchanged and not E8’s specification. (3) The in-scope
findings fixed together: whether an operation row was written is kept
apart from resolving it (failure never erases FX032’s Unsupported);
the Sig3 row’s original precise label restored (the author’s blanket
“erasure only” ruling conflated the corpus mutation with the targeted
probe); uniqueness gated across all obligation kinds by tagged
provenance; the coverage over-claims and Task 12’s inaccuracies
corrected (recording a relevant token does not demonstrate validator
behavior); a durable correction record for a628bd5’s message, no
history rewrite. (4) R9’s direction approved: Q1 identity plus the
existing E1s, no literal-node E1, coverage satisfied only after the
proposed evidence passes; Q2 the corpus-wide let/local identity check
included; Q3 the statement and plan amendments, evidence qualifications
kept; Q4 distinct LiteralSite and InstallSite roles, in the
uniqueness gate; Q5 literal-owned Clauses k minting confirmed, once
per identity, shared with clause ambient rows; Q6 package-based
extraction of R through Install accepted in principle, which does not
solve the missing installed label in the body’s ambient row; Q7 the
scoped N5 note, no validator result. A with whose handler is not an
MHandler gets an explicit Unsupported restriction now, documented and
tested never Solved; symbolic framing stays Task 9 design. The rest of
Task 9’s implementation (its tests and regression rows) is not
authorized. Batch the repairs, review and verify once; stop for scope
growth, an unresolved semantic conflict or the cap. Task 7 acceptance
open; R031, A2 deferred.
All eight repairs of §18.124 are committed on branch batch/completion
(5c4b52b..7fe0113, worktree .claude/worktrees/batch-fix), not yet on
r0-t2-d1: fail consumes Fail(payload) (AtFail); main’s open tail
is one minted flexible variable (EntryTail, carried by the result
root to avoid a double mint) shared by ambient and Entry; FX032 keys
on written; UnframedInstall restricts a with over a non-MHandler;
the Sig3 label restored; uniqueness gated over all kinds (147483
obligations, 0 repeats); coverage 13 fixture, 18 unfinished; Task 12
corrected, its Step 3 proof run by hand (3 of 4 boundary tests fail).
Five new regression rows detect their defects. Focused review: no P0
or P1; P2: the code flexes any open rigid tail on main, a written
...r included (as the live checker’s mainRow does), while
Body.purs’s comment and the E8 amendment say the implicit variable
only, and no test covers ...r; P3s: a stale EntryTail comment,
unsupportedAt’s comment and role naming a with, Defer and
Unsupported missing from the uniqueness kind minimums, the
EffectNotAllowed also checking the source only. Open: the window
test fails (UnframedInstall adds a reason to 9 already-blocked rows;
the author chose to extend the class and re-pin, not done). Spend:
about 0.352M of 0.35M (implementer 0.232, reviewer 0.086, controller
about 0.034): the cap is reached, so the window re-pin, the P2/P3
fixes, integration and the verify wait for authorization. No verify
ran; Task 7 acceptance open.
The completion pass’s 0.002M overrun (0.352M of 0.35M) is actual
spend, not absorbed. The author authorized up to 0.06M more, ceiling
7.23M: the window classifier change and nine-row re-pin, each reason
and unchanged verdict checked; main’s explicit ...r (statement and
comments say any open top-level tail, as the approved wording and the
live checker; a test added; other signature occurrences stay rigid);
the P3 corrections (UnframedInstall’s own provenance role, Defer and
Unsupported in the uniqueness inventory, both sides of the coverage
row checked); focused checks, fast-forward into r0-t2-d1 and the one
acceptance verify alone under the lock. Pin updates for these named
corrections are covered; G0’s problem pin and timing bounds stay
protected. No reopened repair, no broad review; stop for a substantive
new finding, the cap or a failed verify. Task 7 awaits the result. No
push.
Done under §18.126: main’s written ...r (statement, comments, test),
SiteRole UnframedWith, Defer and Unsupported in the uniqueness
inventory, the fail coverage row’s target checked (c4547c2); window
re-pin of 20 rows and RT8 re-pin of the same nine compile-today rows,
each ruled by the author and listed in docs/findings.md (0fef9e4);
integrated into r0-t2-d1 by fast-forward. Focused tests 43 of 43, 12
affected regression rows, the window test 13 of 13.
One npm run verify at 0fef9e4, alone under the lock, clean tree
(conditions: AC power, load1 7.75), exit 1: the parallel phase ran
2973 tests, 2971 passed, 2 failed, so the serial phase and regression
proofs did not run. Log: .build/evidence/2026-10-30-batch-verify/
verify.log in this worktree. Both failures are stale pins the focused
runs missed:
Duplicate; Tasks 10 and §18.124’s edits moved that raise
to line 118.The author authorized both corrections of §18.127 and one new full
verify (a repair-backed rerun, not a blind one). The Duplicate cite
in test/r0-static-problem.test.mjs is now Resolve/Effect.purs:118,
confirmed as the same DuplicateEffect raise that 8e9ddf7 had at 105.
test/structure-surface.test.mjs’s inventory gains Generate.Ambient and
Generate.Consume and, by a further ruling once the test named it,
Generate.Perform: step 0’s module, which step 0 should have added
there. No other assertion changed. Both tests pass, 14 of 14.
One full verify at dde534a, alone under the lock, clean tree, exit 1
(log: .build/evidence/2026-10-30-batch-verify-2/verify.log). Parallel
2973 of 2973 (load1 7.86); serial 201 of 202 (load1 4.40 at its start);
regression proofs did not run. The failure: test/fn-linear-timing
.serial.test.mjs “partialFirst at 20000 parameters is linear through
Specialize”, 950.3 ms against its bound 930 ms (3 × 310 ms measured
2026-10-09), about 2% over: the test whose measurement protocol §18.118
keeps held. The batch changed nothing under src/Features/Specialize*,
src/Format, the top-level Features.Check modules, Program or Runtime;
generation is unreachable from the live path; the one live-path change
is Resolve’s two data-only OperationInfo fields. That is evidence
about where the batch could act, not a proof that it did not slow this
path. Not retried and no bound touched (§18.118, §18.128): the author
decides whether to investigate it (an alternating base-versus-head
timing of this form, as for the census bounds in 2720177) before any
further verify. Both stale-pin corrections held: the two tests passed
in the parallel phase. Spend this allowance: about 0.04M of 0.06M.
Task 7 acceptance open. Nothing pushed.
Authorized by the author (measurement only, no bound change, no full verify). Both failed acceptance runs are kept (.build/evidence/ 2026-10-30-batch-verify{,-2}/verify.log). Task 7: implementation complete; acceptance verification blocked.
Regression phase, run alone under the lock at the tip (35211c7, whose src, test and scripts equal dde534a’s): 255 of 255 proofs passed (.build/evidence/2026-10-30-batch-verify-2/regression.log). Reported separately; it does not substitute for a full verify.
partialFirst at 20000 parameters through Specialize, the test’s own
workload (throughSpecialize(forms.partialFirst(20000))), run count
fixed before starting at 6 per tree, interleaved ABBA ABBA ABBA, base
b71a472 (before the batch) against head dde534a, load1 6.40-7.05
(raw: .build/evidence/2026-10-30-batch-verify-2/
partialFirst-interleaved.txt). Base 979.4, 941.8, 991.2, 1102.4,
1476.6, 961.3 ms (median 985.3); head 1052.7, 1001.7, 988.0, 1052.0,
1178.4, 974.2 ms (median 1026.9). Every run of both trees exceeds the
930 ms bound. Per pair the head is slower in three, faster in two and
split in one; not consistently slower, so no profile. Reading: the
bound fails on the pre-batch tree under today’s conditions, so the
failure is not attributable to the batch on this evidence; a gap of a
few percent is within this noise and is not excluded.
Proposal for the timing gate (needs the author; no change made). The test claims linearity, but gates an absolute time: 3 × 310 ms measured on 2026-10-09. On this machine that now fails before the batch (load1 4-8 throughout the day from other processes). Proposed: gate the claim itself with a doubling experiment (Sedgewick and Wayne, Algorithms 4th ed., §1.4, the doubling hypothesis; a published method): time the same form at 10000 and 20000 parameters, interleaved, median of 3 each, in one process, and require t(20000)/t(10000) ≤ 3.0. Linear time gives about 2, quadratic about 4, so 3.0 separates them with margin, and the ratio cancels most of the machine’s speed and load. Keep the raw times as diagnostics. Keep an absolute ceiling only as a gross-regression guard, re-measured on a quiet machine under a written protocol (load1 below 2, no agent builds, median of 5) rather than raised to pass. Justification owed with it: a run showing the ratio near 2 on base and head, and a restored quadratic defect (e.g. FN001’s earlier quadratic partial-application path) failing the ratio gate. Until a decision, any full verify on this machine is expected to fail on this test.
The author asked for a revised verification proposal and one combined
estimate, not measurement or implementation: routine verify keeps
functional tests, gates, regression proofs, stack safety and generous
hang timeouts; absolute budgets move to a separate, reported command;
growth ratios only where demonstrated; no retries, adaptive thresholds
or hidden exclusions; quiet-machine conditions not required. The
proposal is docs/plans/2026-10-30-verification-contract-proposal.md:
the contract, a file-name mechanism (*.perf.test.mjs, npm run
perf), a first-pass inventory of 41 clock-reading files by category,
partialFirst’s split and its growth-check demonstration, the clock
gate’s revised policy and limits, completion criteria, one all-in
estimate (0.68M, cap 0.70M) and the gate and pin changes to authorize
together. Correction: §18.130 named an “FN001 quadratic
partial-application path” as the defect to restore without evidence;
no row or finding names it, so locating or constructing it is the
first step. Nothing implemented; Task 7 stays blocked.
The author approved §18.131’s contract and a 0.70M all-in cap,
cumulative ceiling 7.93M, both binding; the runner, clock-gate,
inventory, documentation and regression changes are authorized, with
no further proposal checkpoint. Clarifications: functional coverage is
preserved (before/after test inventories and assertions compared; a
split keeps its workload and outcome checks routine, its unchanged
budget runs under npm run perf); classification follows the actual
assertion, not the file name (poly-termination-timing resolved in the
inventory); a timeout can fail on a merely slow computation, and ten
times is a review guideline, not a guarantee or a calibration
prerequisite; legitimate functional clock uses stay as specific
inventoried exceptions, not whole-file exemptions; the schedule is two
warm-ups then exactly S L L S S L L S S L. The history check is brief;
failing a suitable historical defect, a clearly labeled,
semantics-preserving constructed quadratic mutant in the measured
compiler path is authorized: it builds cleanly, preserves the outcome
and fails the ratio assertion itself, which shows sensitivity to that
slowdown, not protection against a historical bug. The 3.0 threshold
is adopted only if the demonstration succeeds; otherwise the evidence
is reported and the threshold is not adjusted. Existing ratio checks
move to perf pending their own qualification. npm run perf runs all
its files, reports every failure, exits unsuccessfully on any and
retries nothing; routine verify prints the dynamically counted number
of excluded perf files and states that performance qualification was
not run. A targeted review, a bounded fix allowance and one routine
acceptance verify are included; no quiet-machine attempt. Prior
failures and the absolute budgets are preserved. Task 7 stays blocked
until this contract is implemented, reviewed and routine verify
passes. Protected compiler pins unchanged; no push.
Branch contract/verify (3570e52..43c0320). Absolute budgets moved
unchanged to 26 *.perf.test.mjs files run by npm run perf (all
files, every failure reported, exit 1, no retry, a 600 s per-file
termination safeguard, skipped tests a failure), plus one perf-side
regression proof, duplicate-scan-timing (author’s ruling: moved out of
the routine registry, kept executable). Routine verify skips perf files
by name and ends by stating that performance qualification was not run,
with the counted number. Coverage compared before and after
(.build/evidence/2026-10-30-contract/{before,after,diff}.txt, local):
every removed routine assertion is a time bound now in a perf file;
the review found 22 of 26 perf files byte-identical and the other four
faithful. r005b-quiet keeps its proof without its time check (its
defect is also caught functionally). poly-termination-timing is a
budget; only fx008-install has a real ratio check (the proposal’s five
was wrong); r005b-predicates’ missed budget moved too.
Growth check, protocol fixed first (two warm-ups, then S L L S S L L S
S L; median ratio): base b71a472 2.284, head 2.263, a constructed,
semantics-preserving quadratic mutant in Specialize/Body.purs
fillFunction 3.425, failing the ratio assertion itself; strict build
clean. No historical defect was found. Selection effect, disclosed: the
mutant’s form was chosen after two scratch trials (3.078, 3.444); its
margin is 14% over 3.0. The 3.0 threshold is adopted in routine verify
(fn-linear-growth.serial), its regression row run alone after the
pooled rows. It shows sensitivity to this constructed slowdown, not
protection against a historical bug; load was 6 to 8 throughout.
Clock gate: an inventory of specific uses
(test/fixtures/timing-inventory.json); the regression phase is now a
gated scope; growth-check reads only through test/growth.mjs; perf
count pinned at 26 and each perf file must reach a budget or ratio use;
more clock forms detected (Temporal.Now, process.uptime, cpuUsage,
resourceUsage, Date(), os.uptime); limits stated (syntax not intent,
timeout margins, child-reported durations, helper misuse, dynamic
imports, other time sources). Review (Opus): no P0; three P1s and the
P2s fixed in 43c0320; the evidence above is local and summarized here.
Spend about 0.58M of 0.70M. Next: integration and one routine verify.
One npm run verify at dac50f3, alone under the lock, clean tree, exit
0 (log: .build/evidence/2026-10-30-contract-verify/verify.log, local).
Parallel 2991 of 2991 (load1 6.75); serial 203 of 203 (load1 3.88),
the partialFirst growth check at ratio 2.178 (median S 426.0 ms, L
927.7 ms) against 3.0; regression proofs 255 of 255 (load1 4.25),
partialfirst-growth among them. Its last line: “Performance
qualification was not run: 26 files under npm run perf.” Functional
acceptance: passed. Performance qualification: not run; its 26 files
and the duplicate-scan-timing proof hold the unchanged absolute budgets,
which failed on the pre-batch tree under this machine’s shared load
(§18.130). The failed acceptance runs of §18.127 and §18.129 stand.
Correction to §18.133: the contract pass spent about 0.52M of 0.70M
(implementer 0.336, reviewer 0.151, controller about 0.03), not 0.58M.
Task 7: the conditions of §18.122 and §18.131-18.132 for acceptance
(implementation, the combined review, the contract implemented and
reviewed, a complete routine verify passing) are now met; acceptance
is the author’s. No milestone moved: tranche 1’s recording (Tasks 7,
8, 10-13) is in place, but no effect validator exists (A2 deferred),
Task 9’s implementation is unauthorized and Task 14 is open. Nothing
pushed.
The author accepted Task 7 (routine verify passed at dac50f3; performance qualification not run; the failed runs of §18.127 and §18.129 stand). The author then gave an overnight authorization, with no token ceiling for its work, to run after a context reset: Task 9’s implementation (primary), Task 14 (prepare, then finish after Task 9), an A2 decision packet (documents and source verification only) and a self-hosting dependency/API gap analysis (documents only), with its boundaries, stops, review, one routine acceptance verify and the 3 a.m. usage-reset checkpoint. Recorded verbatim in docs/plans/2026-10-30-overnight-authorization.md. Nothing dispatched before the reset.
Executing the authorization of §18.135 (docs/plans/2026-10-30-overnight-authorization.md, recorded verbatim there before any dispatch). docs/next-session.md’s RESUME section was rewritten first into a self-contained current state; the earlier text is kept below it, labeled historical. The run’s live record (lanes, agents, branches, worktrees, bases, reports, tests run, decisions made for review, stops) is docs/plans/2026-10-30-overnight-ledger.md. Four streams in parallel: Task 9’s implementation (primary), Task 14 (prepared now, finished after Task 9), the A2 decision packet (documents and source verification only) and the self-hosting dependency/API gap analysis (documents only). Base: r0-t2-d1 at the commit that records this entry.
Overnight run (§18.135, §18.136; ledger
docs/plans/2026-10-30-overnight-ledger.md, which keeps every lane’s
report). Task 9 (ff736de, bdd9f14): HandlerLit and its clause rows
consumed into R and C at each handler literal; Install with R into ρ
and the installed-C site at each with over an MHandler; a with
over any other type records Install and keeps UnframedInstall, no
consumption; no literal-node E1 (R9 Q1); roles LiteralSite,
InstallSite in the uniqueness gate. Re-pin: Generate.Literal (new),
Obligation’s Consumption, consumedAt, siteAt. Task 14 (efcc231,
7eb388e, 4dad5d0, f20d6ec): effect pin of 3071 declarations; 225 moved
after Task 9, exactly those recording HandlerLit or Install
(docs/plans/2026-10-31-effect-pin-moves.txt); census, window and RT8:
no row or aggregate moved, no fixture changed; coverage 18 fixture, 13
unfinished. Two fresh reviews: review 1’s P1 (the identity route
through block results unchecked; a forged mark there passed every
test) and review 2’s P0 (the settling-step coverage row stood on the
defer-site consumption) fixed with the in-scope P2s and P3s
(bdad600..d898691); identity is now checked corpus-wide with marks
through let and locals, a with’s handler, block results,
record-literal fields and lambda results. This records obligations: no
validator exists and no effect soundness is established.
Routine verify, run alone under the lock each time:
At mark, so the 20 withs over a
non-MHandler handler, whose Frame p only Install.frame names,
were “minted, unnamed”. Repaired in 5540ce0: the scan reads the two
site-fact homes of statements §2’s ownership table, HandlerLit.m
and Install.frame (additive; a position named nowhere still fails).
The lane briefs had not listed this serial test.Questions for the author raised by the run (none blocked it), with the
A2 packet’s Q1-Q12 and the self-hosting analysis’s seven questions:
whether defer’s consumption stands for settling’s deferred-row
consumption (the row was left unfinished); whether rows naming
validator-side parts count once the recorded part is shown; the
literal-images coverage ruling; siteAt’s export; the §2 amendment’s
identity list (block, record-field and lambda routes); the installed-C
record’s meaning beside E5’s “no consumption”; unstripped rows with
bare: true; R9’s A3 wording; Install recorded for a non-MHandler
with. Task 9 and Task 14 await the author’s acceptance, with Tasks 8
and 10-13. No milestone moved: the effect problem is recorded and
pinned, but no validator exists (A2 is the author’s choice). Nothing
pushed.
The author accepted Tasks 9 and 14, with Tasks 8 and 10-13: tranche 1’s planned recording work is accepted. The author checked the final log (3013 parallel, 204 serial, 264 regression proofs passed at 4ca1097) and inspected the two post-review repairs (5540ce0, 4ca1097); neither needs another acceptance run. Recorded: functional acceptance passed; performance qualification not run. Coverage stays 18 fixture rows and 13 unfinished. This does not establish exhaustive recording coverage, effect soundness or a completed milestone. The recording tranche closes; its open obligations stay visible as inputs to the validator work.
Rulings on §18.137’s questions:
defer-site consumption does
not demonstrate the distinct settling obligation.siteAt: the reviewed export stays.Consume record stands for the site’s count/pairing
and mark-edge conditions only, not argument equality, row extension
or another tail condition (stated beside E2 and E5).bare: true: arguments are ignored for that comparison, not erased
from the stored row; what determines keys, Fail heads included,
is kept.with records Install; UnframedInstall stays a
hard certification blocker (statements E5).
These documentation corrections are authorized without a further
verify; they are applied in the statements and the Task 9 design note.A2 is the next substantial decision. M-C with R-A stays the author’s preferred direction, but the ResultC binding-ownership conflict (the packet’s F1) and the package interface need one coherent resolution first: Q1-Q12 are to be consolidated into a corrected specification and one decision table, partial or inaccessible source verification kept plainly labeled. Self-hosting’s planning target is the stable R0 replacement once accepted, the shipped compiler kept as the compatibility reference and bootstrap seed; no full legacy port followed by another checker port. Not authorized: validator implementation, a compiler port, a push.
The author approved the specification’s main policy choices
(docs/plans/2026-10-31-a2-specification.md §12) with amendments; it is
not yet ready for implementation authorization. D1-D3: M-C, R-A, F14’s
interim policy. D4: one authoritative EffectPackage as A2’s
interface; its concrete, sort-correct representation still needs
design (the placeholder grammar is not an approved type). D5:
record-owned forcing; input packages exclude forced ResultC bindings
(supplying one is Malformed); the completed certified package includes
the derived bindings; the two domains stated separately. D6: the
independent test-only collector, which tests agreement on exercised
inputs and does not establish E12’s exhaustiveness universally. D7:
rejected; E9 stays after settling as the approved statements say;
the live checker is supporting evidence, not authority to change the
completed-package semantics; U4 (the hole default) stays open, not
resolved by an E9 exception. D8: deterministic first-failure
reporting, with ordering clarified. D9: extend the existing solved-form
definition, its trusted-surface change named in any future plan. D10:
the four refusal categories, RecordDefect as below. D11: UnframedInstall
stays blocked; no symbolic framing. D12: flags checked against the
site-kind table; inconsistency is a record defect. D13-D15:
fixture-only differential evidence for now; the fidelity, citation and
stale-interface corrections, every source-verification qualification
kept. Unused frame positions: a well-formed term is required for every
recorded position, the unread non-handler frame included (exact-domain
accounting); it conveys no evidence that the blocked installation is
valid.
Four inconsistencies to repair: (1) settled data flow: which settled projection G0 checks and which completed package forcing and the obligations read; (2) failure ordering: prerequisite failures defined apart, provenance kept on edges, where recorded-order selection applies stated exactly; (3) the effect-certification entry point never mints a successful certificate for an unsupported problem, independent of the caller’s routing; (4) a RecordDefect fails closed for that recorded problem and is reported separately as a generation defect, not repaired by another candidate; the blanket “every refusal advances to another strategy” amended. Authorized: one consistency pass applying these to the specification, the statements and the options note, then one focused adversarial review of the concrete package interface, the pipeline and the distinguishing cases. Not authorized: validator implementation, lifting UnframedInstall, any soundness claim.
One focused adversarial review (fresh Opus) of the specification after
the consistency pass (829ada5), as §18.139 authorized. Verdict: not
ready for implementation authorization; one S1, thirteen S2, eight S3;
none lets a forged package be certified through the pipeline as
written. Read-only probes over the 3071 corpus declarations (observed):
every recorded EffFresh and At is in flexEff and positions and
vice versa; the 17 forced tails are each their ResultC’s tail; Consume
flags match the site-kind table exactly; AtDeferredRow occurs 0
times; 52412 nullary MData t [] []; C1’s and C2’s recorded orders as
the specification assumed.
erase maps nullary data to App (DataHead t) [], but
generation and read-back give Base (DataBase t) (controller
confirmed at Generate/Elab/Recorded.purs:36-38), so honest packages
would fail G0, and the claim “erase gives today’s Substitution” is
false; hole numbering contradicts itself (§2.3 vs §2.4); type-image
solved form unchecked before the obligations (refusal-only by an
unwritten argument); E9’s “concrete” undefined, keyless Fail
labels unspecified; steps 5 and 6 can mask an earlier obligation’s
edge failure, and the within-obligation order is undefined; I3’s
order makes C1’s BindsForced prediction false; Decide’s reading of
the new refusals unspecified (they would raise spurious search
faults); RecordDefect reported only when a candidate reaches
certify; the old certify must stop minting and the module homes
respect the layer and token rules; whether an image’s handler type
may own a C; readsForced against §R7b’s “refused as unsupported”
and §7’s list; C4’s wrong pipeline mis-stated; no step catches a
record reference outside the domain.TermJ ∅ a second spelling of N; the
table’s section number.NotCertifiable (per §R7b) or
ObligationFailed with readsForced; A2 whether Certified must
carry the completed package; A3 whether an effect Valid may stand
beside NoWitness for unsolved type images; A4 a recorded
AtDeferredRow as a RecordDefect while settling’s rows are
unfinished; A5 step 0 beyond the flags (domain references); A6
Unsupported before I3.
Nothing fixed: the authorization covered one consistency pass and one
review; a fix pass waits for the author. Missing distinguishing cases
(eleven) and property tests (erase/settle commutation, erase of the
honest package against today’s read-back, complete/settle order) are
listed in docs/plans/2026-10-30-overnight-ledger.md.The author authorized one specification fix pass covering every S1-S3 finding of §18.140 and the missing distinguishing cases, then one scoped adversarial re-review of those repairs and their examples. Documents and isolated specification probes only; unexecuted property tests stay labeled owed; no full verify; no source-verification verdict or soundness claim upgraded; validator implementation unauthorized.
Rulings: A1, forcing refusals keep §R7b’s NotCertifiable; the forced-tail dependency is defined structurally, indirect references included, and described as a dependency, not proof that forcing caused the failure. A2, the certificate relationship is not deferred: the authoritative completed, forced package (or an opaque representation preserving it) is retained and the build witness derived from the same data; the completed package before defaults (keeping the holes the witness contract needs) is distinguished from its settled interpretation, which the obligations judge, with their relationship and shared hole identities specified; no duplicate mutable copies, public serialization or audit UI required. A3, unsolved type and record-row images are refused before obligations, as effect images are, by one solved-form definition; a successful effect judgment never hides that behind NoWitness. A4, a declared, well-formed site lacking demonstrated recording coverage (AtDeferredRow) is not a RecordDefect: its condition is evaluated when supported, otherwise an explicit NotCertifiable limitation; RecordDefect is reserved for a violated record invariant. A5, record references are validated before search, with their sorts and permitted domains, distinguishing declared rigids, package-owned variables and record-owned forced variables. A6, the record is validated first, then Unsupported checked, both independent of candidates and before I3, existing routing distinctions kept.
Technical repairs in the same pass: the statements’ obligation path
complete-then-settle, the G0 projection kept as separately specified,
with the order-separating fixture; nullary-data erasure to
Base (DataBase t) with a compatibility property, not a special case
alone; E9’s concrete-head predicate and the disposition of every
keyless Fail label after completion and settling; a total failure
order, earlier obligations’ edges and within-obligation order
included; named module homes, Decide mappings and the replacement of
the old certificate-minting path, with no path bypassing effect
validation; hole numbering and image-owned C resolved; the
distinguishing cases corrected rather than their predictions kept.
The fix pass of §18.141 is staged in .claude/worktrees/on-a2 (branch
a2/fix at d9bd6d7; the specification, the statements and the
options note), uncommitted: its commit was one bundled command (delete
the probe scripts, git status in r0-t2-d1, git commit in on-a2)
denied by the auto-mode classifier as “[Modify Shared Resources]” and
not retried. By the author’s direction the probe scripts
(scratchpad/a2-probes/census.mjs, failvar.mjs) are kept as evidence
and no broad permission rule is added.
Scoped re-review (the earlier reviewer, read-only, on the staged
diff): most of §18.140 fixed correctly, all eleven cases written. Four
S2 remain: N1 (new) certifiedCompilation ∷ Certified → Compilation
cannot run coverage, which needs the RecordedProblem
(Strategy/Witness.purs:69-70, controller confirmed), and a Domain
accessor cannot import Features; fix: compute the Compilation once
at mint time in Strategy.Substitution and store it beside the retained
package. N2 (new) C13 is mis-predicted (any non-MHandler with
records UnframedInstall, so it is refused before I3) and §2.2’s
“Install reads an image C” never applies today; an image C is read
only through Equal. N3 (new) the forced-tail dependency closes over
Equal and variables only and misses frame-mark positions (a rigid
forced C tail adds M ⊑ f, failing a later Defer), so “indirect
references included” is unmet and “over-approximates” is false. N4
(carried) statements §7 still routes Definition 4.2 and forcing
refusals to the CandidateRefused search-fault bullet, against
specification §6’s Declines (EffectLimit). S3: blocks read by the
differential stated as fact (only Decide imports it); the forced
variable placement rule vague (observed: only the clause-row tail of
copies of instances[p].result, in Install 11, AtInstalledC 11, Equal
6, nodes 17, instances 17); C6’s rigid variant impossible for k;
C7(b) gives NoWitness (HoleContract); refusal shape §5 vs §6; hole
renaming under completion unstated; old-certify callers
test/r0-g0-support.mjs and test/r0-online-support.mjs unnamed; an
unmatched keyless recorded Fail label undisposed; A3’s completeness
impact unmeasured (owed).
For the author: (1) N3, close the dependency over positions (more
NotCertifiable; C1’s A changes) or keep it narrow and state the blind
spot; (2) C6 is an acceptance widening U4 does not cover: with E9 after
settling a package can certify k, which today refuses
(FailNeedsConcrete); latent today (online offers no candidate where
today refuses); options (a) an intended widening, needing U4 to cover
Fail payload defaults and a language-doc change, (b) a labeled
compatibility-only rule kept apart from E9 (in substance D7), (c) a
shadow-only expected divergence recorded in the differential, decided
at replacement; (3) commit the staged pass now as an intermediate
record with this review, or after N1, N2, N4. Unread-frame test:
honest and acceptable while UnframedInstall blocks; supplying terms
for unread frames is untested by the corpus and a named precondition
for lifting the block. Over-claims found: “over-approximates” (N3);
the blocks sentence; §2.2’s image-C sentence. No source label
upgraded; owed tests labeled owed.
The author committed the staged pass by hand (a720cc0 on a2/fix) as
an intermediate record and authorized one document correction pass
for §18.142’s four S2s, with a targeted confirmation of those fixes
(not a whole-specification review); the result is staged for the
author’s own commit. N1: the proposed repair accepted: the
Compilation is computed in Strategy.Substitution, where the
RecordedProblem and coverage are available, and stored beside the
authoritative completed package; Domain accessors only return stored
data; how this avoids recompleting or renumbering holes is specified.
N2: C13 corrected to the Unsupported-first pipeline, two claims kept
apart: the program is blocked by UnframedInstall; an image-owned C can
be examined through Equal in an isolated obligation fixture, not
presented as end-to-end certification, and Install is not said to read
an image’s C. N3: the dependency is closed over positions too, with
explicit, documented dependency edges (the variable-to-frame-to-Defer
route and other mark dependencies); C1’s expected classification
updated; separating cases for direct dependency, dependency through a
frame, and an unrelated failure; NotCertifiable denotes dependency on
the provisional restriction, not proof that forcing caused the
failure. N4: statements §7 aligned with the decline/effect-limit
routing; these refusals are not search faults. C6: option (c), a
shadow-only expected divergence; E9 stays after settling; neither a
language widening nor a D7-like compatibility guard; the claim that U4
covers it removed; recorded as a replacement-compatibility decision to
resolve before the new checker is enabled live; the observed
old-checker refusal kept apart from the validator’s acceptance,
labeled predicted until a complete candidate passes every specified
check; kept visible in differential reporting. The unread-frame
requirement stays the named precondition. The “[Modify Shared
Resources]” denial stays unresolved: no agent retries the commit or
the cleanup; the probes are kept. Implementation unauthorized.
The §18.143 pass is staged in .claude/worktrees/on-a2 (branch
a2/fix, HEAD a720cc0; docs/plans/2026-10-31-a2-specification.md and
docs/plans/r0-amin-statements.md; the options note unchanged),
uncommitted for the author’s own commit. Targeted confirmation (the
same reviewer, read-only, with a probe left at
scratchpad/a2-confirm/dep.mjs): N1, N2, N3, N4 and C6 fixed as ruled,
specification and statements consistent on them; no S1 or S2 added;
the staged diff fit for the author’s commit. Observed by the probe:
use’s Defer (obligation 7) depends through Frame p; C1 A gives
NotCertifiable ForcedTail DeferRegistration, A′ ForcedTail
Install; C15’s Definition 4.2 reasoning holds and its order (Install
0, Defer 7) is observed; C16’s prediction holds. The forcing edge
v → t is correct and harmless; “shared holes relate nothing after
settling” is correct for the obligations. Five S3 left, optional:
C16’s order note is false (a with that is a block’s result records
Install, InstallR and AtInstalledC before the preceding defer’s
obligations); the dependency set is coarse where the ambient tail is
flexible (in main and lambda bodies every obligation sharing that
tail is ForcedTail; acceptable as a dependency, unstated); §4.1 keeps
the old vague forced-variable wording beside the new rule; C7(b)’s
no-witness result is the reviewer’s reasoning (label reasoned); C15’s
order can be labeled observed.
The author chose subagent execution and authorized Tasks 0-15 and 17 of docs/plans/2026-10-31-a2-validator-plan.md, with corrections; Task 16 (the minting switch) stays held. No new token cap; actual controller, implementer and reviewer spend recorded; durable usage-reset checkpoints. Answers: (1) the specification’s §2.2 representation is approved as the encoding (the four package maps, the PTy/PRow family, Term, an opaque Completed); sort correctness and canonical forms still rest on I3’s checks. (2) Task 16 held until tranche 2 supplies effect packages; the existing minter stays under F14, labeled joint-checker assurance; the new validator is not described as protecting current strategy acceptances before the switch; Task 17 closes this stage without Task 16 (the dependency diagram amended). (3) The record-defect pre-search block may land before Task 16, tested independently of whether any strategy offers a candidate; no census/window/RT8 movement expected, any movement needs explanation and a ruling before re-pinning. (4) A new test-side differential reporter; r0-results-diff.mjs keeps its existing results; the reporter separates fixture evidence from corpus observations and never classifies an arbitrary new widening as the accepted C6 divergence.
Repairs before the affected tasks: (a) Completed’s constructor
boundary: the facade and Effects.Complete are the importers of the
package Internal module, the rule and pin named in the commit;
conversion helpers get no constructor access for convenience. (b) A
non-minting runner exercising the actual sequence (record validation,
Unsupported, I3, G0, completion and forcing, settling, obligations,
witness construction), tested before the switch; Task 16 later wraps
it; until then its successes are validation results, not Certified
values. (c) Task 13: graph satisfiability does not show a package’s
terms satisfy the graph; the separating case “satisfiable graph, wrong
supplied assignment (p ⊑ N with p = M)” must be rejected; state
whether candidate terms are pinned into the graph or evaluated under
the bounded rigid-mark valuations; least-term construction a separate
property; test labels renamed to the bounded agreement actually
checked.
Included: the planned trusted-surface additions, the package Internal rule, the refusal and reading changes, regression registration and the module inventories. Protected: G0’s problem pin, the effect pin, live acceptance, first diagnostics, generated Go. Focused checks during tasks and the planned integration and acceptance verifies, no human approval per task; the final integrated change is reviewed before the final acceptance verify, and a tree changed by review is verified. Stops: a differential disagreement or a semantic ambiguity (neither implementation presumed correct). Not authorized: push, live switch, read-back implementation, a soundness claim.
The author accepted Task 13’s scoped review result with its recorded limits: no disagreement on the exercised packages; five E2 sites (AtCallback, AtStage, AtApply, AtPipe, AtDeferredRow) without accepted-package coverage; binding marks never mutated; completion and settling shared with the validator. None establishes general equivalence or closes those gaps. Directed: proceed with Task 15, integration, Task 17’s whole-branch review and the final routine acceptance verify. The final report distinguishes the validator implementation, the fixture-level differential evidence, the deferred corpus checks and current certification behavior; Task 16 stays held, so the existing minter still operates under F14. Any property failure or checker disagreement is reported before the stage counts as complete.
Plan docs/plans/2026-10-31-a2-validator-plan.md, Tasks 0-15 implemented
by subagents, each reviewed and re-reviewed, integrated on r0-t2-d1 by
cherry-pick (f09dd73..d36b54d) and pinned; Task 16 held, so the existing
substitution-only certify still mints under F14 (joint-checker
assurance) and the new validator protects no current strategy
acceptance. What exists: Substitution.validate, a non-minting runner
(record validation, Unsupported, I3, G0 on erase (settle P_in),
completion, settled obligations, witness and coverage) over Effects
modules for every obligation kind, and Decide readings with a
record-defect block before search. Evidence is fixture-level on
hand-built packages plus corpus-observed record and erasure checks; no
read-back yet produces effect packages, so the corpus differential and
the honest-package compatibility property stay owed (tranche 2). The
M-B differential compared the validator and the independent checker on
11 accepted packages and 10 mark refusals and found no disagreement;
other refusals were not compared; its further limits are §18.146’s.
Integration verify passed at 7842441 after two failed, repaired runs
(controller errors: pins committed in a lane worktree; a stale needle).
The acceptance verify follows the review fixes and is recorded below.
Whole-branch review (two fresh reviewers): no Critical; gates add coverage only; live compilation, G0’s problem pin, the effect pin, first diagnostics, census/window/RT8 fixtures unchanged. Open for the author (not fixed; the validator stays fail-closed on every probed path except as noted): (1) statements §7 puts arities in I3 (labels’ declared effect and argument count; data argument and row counts) but spec §5 dropped them; a probe validated a package binding an undeclared effect label and a wrong-arity label in an unconstrained row; add an I3 check (needs effect and data arities recorded) or amend statements §7 and spec §5. (2) Record validation does not check that an obligation’s companions were recorded (Install’s InstallR and AtInstalledC; a literal’s ClauseIntoR/C; Defer’s AtDefer); a probe validated a record with C15’s InstallR removed; add a step-0 check or record the reliance on generation (U6). (3) Ratify or not three fail-closed controller rulings not in the spec: any ResultClauses variable outside F is a RecordDefect; a C label with no partner fails Install; same-key labels with unequal argument counts are refused. (4) The C6-absent question (docs/findings.md). (5) The owed compatibility property needs “up to record field order” (14 corpus candidates; docs/findings.md).
The author decided §18.147’s open items; a scoped completion wave runs before the final acceptance verify (an acceptance verify started at 9f582a5 was stopped at the author’s direction; not a result; log kept as .build/evidence/2026-11-01-a2-verify-stopped). (1) Arity belongs in I3: record the declaration metadata needed to check effect-label arity and data type/row argument counts, built-ins included; check package images recursively, unused bindings included; invalid declaration metadata or a recorded application that contradicts it is a RecordDefect; an undeclared or wrong-arity application supplied by a package is Malformed. The metadata schema and an incremental estimate are written before coding; trusted-surface updates and effect-pin changes limited to this metadata are authorized; G0’s problem pin and live behavior stay protected. (2) Step 0 checks the required companions of Install, HandlerLit and Defer against one explicit table, identities, sources and targets included, with restored-defect cases deleting or miswiring companions; this is local record consistency, not proof that generation recorded every source site; U6 stays open. (3) The three controller rulings are ratified and go into the specification with the implemented failure ordering: a ResultClauses variable outside the record-derived F is a RecordDefect; a C label lacking its ambient partner fails Install; same-key labels with unequal argument counts are refused, never zipped over a common prefix (I3 may refuse malformed package arities earlier; the obligation-level check stays defensive). (4) C6’s prediction is corrected, G0’s projection unchanged: field binding absent, refused at G0; field bound to a suitable hole, settling may give Int, the demonstrated shadow divergence; separate tests; the completion-order example distinguishes obligation-reading stages without claiming end-to-end acceptance; only the demonstrated hole-bound acceptance is the expected divergence; the replacement-compatibility decision stays open. (5) “Up to record field order” is approved for the owed compatibility property, with one canonical comparison preserving field/value associations, tail information and hole identities, never effect-label multiplicity or same-key occurrence order. Then a scoped review and the final routine verify. Estimate recorded in the run ledger; actual spend recorded; no new cap. Task 16 held; performance qualification separate; no push; no soundness claim.
Incremental estimate (controller, before coding): two Opus implementers in parallel (arity: generation metadata, I3 check, metadata RecordDefect, defensive obligation check, tests, rows, pins and effect pin, about 0.5-0.8M with its review and fix round; companions, spec rulings, C6, canonical comparison, about 0.4-0.6M with review and fix round), one scoped Opus review of the wave (about 0.2M), integration and one routine verify (controller, about 0.1M): about 1.2-1.7M all in, 3-5 hours of wall clock.
§18.148’s wave is integrated on r0-t2-d1 by cherry-pick, no merge
commits: arity b6157b7 (schema, written before code) and 8e89b99; the
companion check, C6 and canonical comparison 222bf9b, 8dbbf15 and
fa5d9e3; review fixes 6c563e1 and ad3557b. Record checks are numbered
0 flags, 1 references, 2 placement, 3 Fail invariant, 4 companions,
5 arity. The trusted surface was re-pinned by script (the
RecordCompanions entry identical to the lane’s); the effect pin moved
only for the declarations field: re-encoding the integrated build with
that field dropped reproduces c9b2fbc’s pin byte for byte (3071
declarations, 998 programs). G0’s problem pin, first diagnostics and
generated Go, census, window and RT8 did not move.
One scoped Opus review of both waves: items (1)-(5) met, no Critical.
Fixed: the spec now states I3 check (k) after (a)-(j) (Undeclared,
WrongArity, Applied, the bare clause-row reading), the
InDeclarations entry after the tables and before coverage, and check
5 in full; the canonical comparison keeps record tails in order (the
lane had sorted them, a relaxation (5) did not approve; the one unit
assertion that encoded the multiset reading was changed with it); the
compatibility property’s own comparison no longer sorts tails and still
holds on the corpus (2820 candidates, 3642 derived runs, 0 not lifted);
malformed’s precondition stated; check-5 fixtures in instances,
annotations and signature and for a dropped declared type; C6’s
hole-bound case worded “observed on the fixture” throughout. Stated,
not fixed: a phantom user effect id in the metadata is not detected
(spec §4.1; a must-pass row pins that it is accepted); a duplicated
owner is not a check-4 defect; check 4 is quadratic per declaration
(performance is separate); the check-4 table is split across ownerOf
and companionSite; the canonical comparison keeps different-key label
order, stricter than (5) requires (for the author).
Routine npm run verify at ad3557b, alone under the lock, passed:
parallel 3218/3218, serial 209/209 (partialFirst growth 2.274 against
3), regression proofs 336/336; log
.build/evidence/2026-11-01-a2-completion-verify. Performance
qualification not run. Every registered needle matched once before the
run (386 in 336 rows).
What this establishes, kept apart. Validator implementation: record checks 0-5, I3 (a)-(k), G0, completion, settled obligations, witness and coverage, fail-closed on every probed path. Fixture-level differential evidence: §18.146-§18.147’s M-B comparison and the C6 fixtures; check (k) on honest packages rests on fixture packages. Deferred corpus checks: no read-back yet produces effect packages, so the corpus differential and the honest-package compatibility property stay owed (tranche 2); U6 stays open. Current certification: Task 16 held, the existing substitution-only minter still certifies under F14, and the new validator protects no strategy acceptance. No soundness claim.
Spend against §18.148’s 1.2-1.7M: subagents about 0.99M (arity 0.33M, companions 0.25M, scoped review 0.17M, fix wave 0.15M, re-review 0.10M), controller not metered, roughly 0.1-0.2M; about 1.1-1.2M in all.
The author accepted the A2 validator implementation stage through Tasks 0-15 and 17, on the routine verify at ad3557b (parallel 3218, serial 209, regression proofs 336; performance qualification not run). The evidence stays separated: the fixture-level validation and differential results are accepted; honest effect-package compatibility and the corpus differential remain owed.
Rulings. (1) Different-key label order: the current comparison stays for the erased-substitution compatibility property, which permits record-field reordering only (erasure drops effect rows); no generic helper is broadened to reorder arbitrary arrays. A future comparison of full effect packages uses R-A’s semantic row equality: distinct keys commute; same-key occurrence order, multiplicity, arguments, marks and tails stay significant. Documented in spec §11 and test/r0-a2-canonical.mjs; no acceptance run is needed for the wording. (2) The tail-order correction is ratified: changing the assertion and the comparison to preserve tails implements (5) of §18.148 rather than weakening a test. (3) Limitations stay explicit: the declaration metadata is trusted input from generation; accepting a fabricated declaration inside it does not let packages invent undeclared labels, and the correctness of the recorded declaration environment remains a generation obligation (spec §4.1 check 5). A duplicated owner is not thereby valid; its detection is a named record-invariant follow-up (BACKLOG R034 (10)). The quadratic companion scan is a performance qualification issue, with no performance claim (R034 (11)). (4) C6’s replacement-compatibility decision stays open and Task 16 stays held; the new validator protects no current strategy acceptance and F14 remains the operative assurance.
Next: one coherent tranche 2 read-back plan (producing effect packages, exercising I3 on honest corpus packages, running the deferred compatibility property and differential, and specifying the activation gate). This acceptance authorizes neither its implementation nor a push.
The author authorized Stage A of docs/plans/2026-11-01-tranche-2-
read-back-plan.md (Tasks 1-2: the corpus inventory, the design note,
the adversarial review); 0.7-1.0M is an estimate, not a cap. Stage B
and Task 16 stay held. Clarifications: (1) the inventory reports every
corpus declaration, then distinguishes live-checker refusal,
online-search failure, existing certification and successful mapping;
within the mapped cohort every required variable and position is
accounted for, record-owned forced tails apart from package-owned
inputs. (2) A matching location is not enough: each mapping
establishes identity and sharing (which occurrences share a value,
which stay distinct, how live rigid names map to recorded identities),
with distinguishing examples for nested handlers, annotations, partial
applications and entry tails. (3) Research implementations are
authorized: isolated scripts implementing the proposed least-term
calculation for oracle comparison; no production change, no
trusted-surface change, no re-pin. Directions: Q1, the live mark graph
(the recorded graph stays a separate check; shared machinery or
assumptions disclosed); Q2, NoCandidate initially, missing mappings
with reasons and counts, completion proposed separately if the evidence
warrants it, no invented bindings; Q3, a non-minting package result on
the certificate is acceptable in principle, its interface and
dependency placement settled in Stage A, Online not changed yet.
Scope correction before Stage B: the existing M-B differential checks
marks and is not automatically an independent oracle for row semantics;
mark comparisons are labelled so, and dropped labels, duplicated labels
and moved tails need separately justified checks before they support
broader differential claims. Stage A proceeds through its internal
reviews and corrections without checkpoints and returns once
(inventory, unresolved mappings, adversarial findings, revised Stage B
plan); it stops earlier for a required semantic amendment or a
production change. No push.
Task 1 of the tranche 2 plan ran (with Task 2’s research least-term
implementation), research/t2-read-back-inventory/ (7105f54), corpus-
observed at 56349c0. Of 3061 resolved corpus declarations, 238 are
refused by the live checker and 2823 give online candidates (2820 of
them certified today, 3 refused). For 1372 candidates every required
effect variable and position is located in the live checker (1087 have
none); 1451 are not mappable, because the checked IR keeps only a use’s
type slots and result type: a call’s instance rows (EffInst), the
opened tails of uses (OpenedRow), inert stage rows (Stage) and
instantiated marks have no value indexed by path. Outside the 9
UnframedInstall declarations, every recorded variable meets one live
value, and live mark metas respect the recorded classes (P2 observed on
the located positions only). The least-term implementation agrees with
the bounded mark oracle (0 disagreements on its families, term by term)
and with Mark.purs violation on the corpus; it shares the oracle’s
definition and today’s mark store, so this shows fidelity to the
definition, not independence.
Stopped (§18.151: a required semantic amendment or production change):
(1) In a local annotation the implicit ambient row is recorded as the
declaration’s rigid (Generate/Marked.purs effectVar) but read by the
live checker as the lambda’s own row (Check/Lambda.purs
annotationRow); 11 declarations differ, and an honest package would
likely fail E1 there (reasoned). Either generation records the
lambda’s row (a production change; the effect pin moves) or the
statements are amended. (2) Under NoCandidate first, 1451 of 2823
candidates get no package; mapping them needs either a production
change recording each use’s instantiated rows and mark metas by path,
or completion from the obligations (Q2). (3) Fail labels read
Unmarked today (107); the read-back writes N. Task 2 not started.
The author ruled on §18.152. The inventory justifies designing a trace
of live inference values, not another solver to reconstruct them.
(1) Generation’s treatment of local annotations is corrected, not the
statements weakened: the design follows Lambda.parameterType’s
substitution of the lambda’s ambient row for the implicit annotation
row, preserving explicitly written rows and each annotation’s own
clause row, with distinguishing tests for implicit versus explicit
rows, nested lambdas and sibling annotations. The predicted E1 refusal
stays reasoned pending a package test. (2) Live-value tracing is chosen
over obligation-based completion: Task 2 designs a non-minting trace of
instantiated rows, opened tails and mark identities keyed by stable
use-site identities, preferring checker state or a separate inference
result over expanding the checked IR unless a need is established;
identities are preserved through substitution and hole numbering;
collection adds no constraint and changes no inference decision.
(3) Missing provenance is kept apart from synthetic variables: unread
stage rows may be recording auxiliaries with no live allocation, which
no trace can recover; they are classified separately, NoCandidate
kept where necessary, and any reconstruction rule proposed explicitly,
never disguised as read-back. (4) Fail normalization to N stands
under the representation rule, payload and effect identity preserved,
the conversion tested. Reporting corrections for Task 2: a source
manifest reconciling the corpus loader’s and the effect pin’s source
sets, both denominators explicit, the inventory not described as
covering the whole pinned set; “located” kept apart from “located
consistently” (the nine UnframedInstall declarations stay
unsupported). The least-term results support bounded agreement with
the stated definition; with the disclosed shared label pairing they do
not independently establish correspondence between the recorded and
live graphs. Authorized: design and research probes, including the
generation correction and the production trace design. Production
edits and re-pinning stay held for Stage B. Task 2 finishes the design
and the adversarial review and returns one revised implementation
proposal; no checkpoint for ordinary research corrections.
Design note docs/plans/2026-11-01-tranche-2-read-back-design.md,
revision 3 (f7997bd, f03cd95, and the re-review conditions), probes
under research/t2-read-back-design/ and research/t2-read-back-review/;
no production edit, no re-pin. Source manifest: the corpus loader’s
set (2823 candidates of 3061 declarations) is a strict subset of the
effect pin’s (2832 of 3071; four inline programs added). With the
generation correction and the trace, 2814 candidates map consistently
on the corpus loader (2822 on the pin set); the 9 (10)
UnframedInstall declarations stay unsupported. The trace recovered
every unread role (0 not recovered); no synthetic stage row exists
(class (ii) 0), so no reconstruction rule is proposed. Non-interference
was observed through a research hook only: recheck identical for all
3061 declarations and first diagnostics with Go identical for 1138
entries; the production trace must show it again (Task 3d).
Adversarial review (one Opus reviewer, adversarial-procedure-review):
not ready at revision 1. C1: the correction minted the lambda’s
EffectOf twice (observed: r0-marked-corpus failed on 31
declarations; A2 record validation is blind to it through a Set);
fixed by recording the renamed annotation and minting the unrenamed
one (observed 4/4; the effect pin moves exactly 31 keys). I1: type
images need rows, marks and clause rows unsettled lacks (130
declarations); a positional readImage added, 4 auxiliary images in 2
declarations kept as read faults. I2: the type read-back’s θ binds 0
holes on the corpus (observed); effects are read under it anyway. I3:
the honest-package gate made able to fail (pinned lists both ways, a
minimum count, must-fail probes). I4: one routing, a read fault as
Left in Certificate.effects while G0 decides. Re-review: ready with
conditions, all met at revision 3 (record-row fields read live;
ImageApart described as an erasure-agreement guard only; an
unconstrained mark meta reads N by §5’s definition). Claims standing:
H1 with the fix and H4, H7, H11, H12 corpus-observed; H2 (the 11
annotation declarations validate after the correction) reasoned; P1
untested; least terms bounded agreement with the definition only.
Proposal for the author (design §I and “Points for the author”):
Stage B as Tasks 3a (generation correction, effect re-pin of exactly
31 keys), 3b-3d (hole numbering export, the trace, its gates), 4-6a
(rows, marks, type images, assembly), 7 (the certificate field), 8
(honest packages through I3 and the validator, pinned lists), 9
(compatibility checks), 10 (differential, marks only), 11-12 (the
activation gate specification, records, review, verify); about
4.4-6.0M plus the controller’s 0.5-0.8M. Open for the author: the
correction and its split; a repeated flexEff/positions entry in
A2 record validation (validator frozen); the invented components (span
matching with the site table and the (span, argument span) key, the
order of extension hole numbers); the trace’s placement; statements
§7’s “returns NoCandidate” against the one routing; the 2
UnreadImage declarations; Task 8’s first pinned lists; §D’s
refinements. Stage A spend about 1.1M (Task 1 0.31M, the design 0.43M
over three rounds, review 0.28M, controller about 0.1M) against
0.7-1.0M, an estimate not a cap. Stage B and Task 16 held; no push.
The author authorized Stage B of the tranche 2 read-back (design note
§I), 4.9-6.8M with coordination as an estimate, not a cap; Task 16,
replacement, F14’s retirement and pushing stay held. The research trace
supports production implementation; production non-interference and
honest-package validation still need their planned checks. Rulings:
(1) The generation correction is approved with the record-renamed,
mint-unrenamed split; the four generation modules’ trusted-surface
re-pin and the effect-pin change for exactly the 31 identified
declarations are authorized, their contents verified, not only their
count; the G0 problem pin stays unchanged. (2) Repeated declaration
entries are rejected: a narrow record-validation check for duplicate
entries in flexEff and positions, before either list becomes a set,
one explicit exception to the validator freeze; repeated references to
a variable in types and obligations stay valid; specification, direct
and restored-defect tests, the distinction tested; then the validator
is frozen again. (3) Span-plus-site matching, the (span, argument
span) key and the deterministic extension order are approved as
implementation identities, not semantic guarantees, fail-closed:
duplicate entries are kept until a clash can be detected, never
overwritten or chosen silently. §C.6’s recordApplied signature and
map key corrected to carry the argument span (done with this record).
Numbering tests cover shared identities, distinct identities, sort
separation and extension holes across the complete package. (4) The
opaque trace and the non-minting certificate field are approved; the
restriction on inference reading the trace stays, with production
non-interference checks; collection’s compile-time and memory costs are
reported apart from functional acceptance. (5) Interim routing
amendment: before Task 16, an effect read failure is Left ReadFault
in the certificate, legacy G0 certification unchanged under F14, never
shown as successful effect validation (statements §7, amended with
this record); routing after activation belongs to Task 16. (6) The two
UnreadImage declarations get no invented effects and stay named
compatibility gaps. (7) Initial refusal pins may be initialized from
the first production run only if they contain the identified
unsupported declarations, the two UnreadImage declarations and up to
the three RequirementUnjudged cases with the same G0 refusal
confirmed individually; floors derive from those lists and
denominators; no floor is lowered and no exception added for another
failure; any Malformed, new read failure or unexpected validator
refusal is a stop; a disappearance from an approved list is explained,
never silently re-pinned. (8) Applied and piped rows are approved as
consumed-row read-back; generation’s dropped-partial-stage
consumptions stay unchanged; their harmlessness is tested (the traced
unconstrained rows settle empty and the obligations pass), not
generalized. Stops: a semantic amendment beyond these rulings,
unexpected protected-pin movement, an unexplained compatibility
failure, a differential disagreement. The differential stays marks
only. Return with production evidence, both denominator reports, the
remaining restrictions and the proposed activation gate.
Stage B Tasks 3-12, 14 and 15 are implemented, reviewed, fixed and
integrated on r0-t2-d1 (head b166c6c), with Task 13’s gate tooling
(dadf29c); Task 13’s serial gate (d78874c, red on purpose) is not
integrated and its pin is unwritten. Task 16 (activation gate
specification, whole-branch reviews, acceptance verify) has not run.
Controller rulings during the run are in the git-ignored ledger
.superpowers/sdd/2026-11-01-tranche-2-read-back-plan/progress.md; the
ones that shaped production code: the trace also carries clause
entries, deferrals and installations (6b) and the declaration’s row
(Task 8), so every value is read from one renumbered source; one
live-type converter shared by rows and images, taking Mark → Maybe
Term; fail-closed read faults PositionApart, MarkClash,
ForcedRead; a mark position on a Console or Fail label whose term
is not N is a read fault, never forced; ambiguous same-key Fail
pairings take nothing.
The stop (§18.155 (7): an unexpected validator refusal). On honest
packages, validate refuses four declarations today’s certify
accepts, each NotCertifiable ForcedTail: editors/vscode/fixtures/
effect-namespaces.wxw#main, examples/services.wxw#main,
test/fx-services-programs.mjs:fake#1#main and
test/fx008-defer-programs.mjs:aroundBoth#1#around. In each the
installed handler is a value, not a literal; its C tail is the
validator’s forced ResultClauses tail (E4′, the provisional
restriction, §R7b). Observed values: in services and fake, the honest
R is [Console@N, User1@N, User0@N] (the live checker unified the
instance’s open tail with the outer labels), so the forced C carries
User1, whose ambient partner is M, while the inner frame is N; in
aroundBoth, C is [User0@M | rigid 0] and the frame J{k}. The
independent M-B checker also refuses all four (Task 15), so the
package and both checkers agree; the disagreement is between today’s
checker and the specified forcing restriction. Spec §6 routes
ForcedTail as a decline, so on activation these four would lose an
acceptance (A1). Neither side is presumed correct (§18.145).
Evidence otherwise (corpus-observed, 2026-11-02). Denominators: corpus loader 2823 candidates, effect pin’s sources 2832. Read-back: 2812 / 2820 packages; read faults exactly the approved list (9 / 10 Declined, the second including inline:fx032#g’s OperationWithRow; 2 UnreadImage). I3: 0 Malformed. validate: 2805 / 2813 validated; 3 RequirementUnjudged with the same G0 refusal, checked individually; the 4 ForcedTail. H2: all 11 annotation declarations validate (with the correction reverted, 9 fail at their Consumed InstallR consumption and 1 RigidExact, not at E1 as design §B.5 reasoned). Ruling (8): 317 dropped partial stages are traced unconstrained, settle empty and their consumptions pass (those stages only). Compatibility (spec §2.5, §4, §11): erase = today’s σ by the canonical comparison, erase∘settle = settled∘erase, G0 monotonicity (0 violations; force in 53 derived runs), effect-hole numerals (completion never reuses a hole; today’s bindingsOf would in 1112 derived runs, as §2.4 predicts): 0 counterexamples on both denominators. Differential, marks only: 0 disagreements; 2808 accepted honest packages, 284 forgeries both accept, 769 mark refusals, 34 not compared and all refused by M-B; gap sites AtCallback, AtStage, AtApply, AtPipe now exercised; AtDeferredRow is never generated. Pins: problem, first diagnostics with Go, census, window, RT8, shadow unchanged; the effect pin moved only for the 31 annotation declarations, contents verified; the trace inertness pin holds. Costs, apart from acceptance: collection +22% compile and +35% recheck CPU; the read-back on the online path about +80% CPU on the shadow test (noisy load). Found and fixed on the way: test-tree regression rows had been unloadable since Task 7’s probes (now gated by test/regression-probes-tree.test.mjs).
For the author: rule on the four (named compatibility gaps tied to the provisional forcing restriction, admitted to the pin with that reason; or E4′ revisited; or the recording of handler-value installations examined); confirm the re-pin reading that a floor falls only with an explanation and only when candidates fall. Then Task 13’s pin, Task 16 and the acceptance verify. No push; no soundness claim.
The author admitted exactly four ForcedTail refusals to the shadow evidence pin as known compatibility gaps: editors/vscode/fixtures/ effect-namespaces.wxw#main, examples/services.wxw#main, test/fx-services-programs.mjs:fake#1#main, test/fx008-defer-programs.mjs:aroundBoth#1#around. This does not approve losing those programs when the old checker is replaced. The validated-count floors are initialized at 2805 (corpus loader) and 2813 (effect-pin sources), with the reported read-fault lists, the three RequirementUnjudged refusals and these four refusals recorded separately.
Corrections to §18.156. (1) ForcedTail identifies dependency, not demonstrated causation: agreement with M-B supports the observed mark refusal under the completed package; it does not establish that the forcing rule alone caused it, nor exclude a recording or mapping error. §18.156’s sentence placing “the disagreement between today’s checker and the specified forcing restriction” is withdrawn in that form. Reconsidering E4′ is separate work. These are four newly observed losses under the restriction, linked to the earlier forcing-loss evidence (stand-in runs aroundBoth, k2f refused, plan Provenance V1a); neither list is exhaustive. (2) H2: all eleven annotation declarations validate after the correction; restoring the defect gives ten observed refusals at the reported checks (nine at their Consumed InstallR consumption, one RigidExact). The design’s prediction that all eleven fail at E1 (§B.5) is retired; the restored-defect proof is tied to the failures observed.
Not authorized: the proposed re-pin reading. An explanation, even with
a falling candidate count, does not authorize lowering a floor; every
later re-pin needs an explicit ruling. The pin script and its tests
are corrected so --explain cannot itself permit a lower floor or
candidate denominator: explanations document approved changes, they
do not approve them.
Performance: the trace’s reported 22% compile-time cost is material; recorded as a performance issue requiring qualification before activation, memory cost included. The noisy measurements establish neither a precise regression size nor acceptable performance; they do not block functional Stage B acceptance.
Authorized next: the pin, these corrections, both whole-branch reviews, ordinary review fixes and the routine verify, with no further checkpoint unless another stop condition occurs. This tranche’s Task 16 (records, activation-gate specification, reviews, acceptance) is authorized; A2’s Task 16 (the minting switch) stays held. C6, F14’s retirement and actual replacement losses stay undecided. No push.
Paused by the author (2026-11-02) to pace credit use; nothing running.
Resumed under §18.157 and run to completion without a checkpoint; no stop condition occurred. Integrated on r0-t2-d1 at 7e0492b. Nothing is pushed, nothing is activated, and there is no soundness claim.
Task 13 (abc0260, b0d20c1, d375ffc). The honest-package pin
(test/fixtures/r0/t2-honest.json), written from a fresh run, matched
the ruling exactly: corpus loader 2823 candidates, floor 2805, 11 read
faults; effect-pin sources 2832, 2813, 12. Each has three
RequirementUnjudged and the four ForcedTail listed by identity, in
separate lists. The re-pin rule refuses a lower floor or candidate
count, or a dropped denominator, whatever --explain says. A fast test
now fails a hand-lowered pin (35f9d1e), and the serial test checks
that each denominator’s figures add up. The “consumption unchecked”
mark is never reached on the corpus, because no refused package has a
dropped stage. It is shown on the inline fixture.
Records (7d9122c, 7ae7eef, e374e07). H2 is recorded as observed and §B.5’s E1 prediction is retired. ForcedTail is recorded as dependency, not causation, and linked to the stand-in evidence. BACKLOG R035 covers the performance qualification owed before activation. R036 files the tranche’s deferred items, with three to take before activation: the eager read-back in Online, two fallbacks that are not fail-closed, and a coarsened read fault. The A2 spec’s §11 now cites the owed checks that Tasks 13 and 14 ran.
Task 16 (850de13..0563207, b647706). The activation gate is
docs/plans/2026-11-03-a2-activation-gate.md, reported by
node scripts/r0-t2-activation-gate.mjs. Today it reads not met
(2, 3, 4, 5, 6, 7). Criterion 1 (the pin as ruled) is met. Criterion
2 measures A1 strictly: each gap list’s loss on replacement needs its
own ruling, because §18.157 and §18.155 (6) withhold approval of those
losses, so it is not met. A ruling counts only if numbered after
§18.157. The gate cannot read what such a ruling decides; this is
listed among its blind spots.
Whole-branch reviews (two, Opus). Both returned ready with fixes; neither found anything Critical. Semantics: the trust boundary holds, the validator is frozen apart from Task 4, and H3 holds by construction. One Important finding: a partial call whose result is an arrow paired the wrong live type and lost its package, failing closed; the corpus does not reach it. It is fixed in 66fb0d5, with fixtures and a restored-defect row. Gates: all 98 tranche 2 row needles are unique, and the 26 test-tree rows detect their defects. No protected pin moved other than the effect pin’s ruled 31. The fix wave (66fb0d5..12d5e00) also added shape checks for data owners and annotation keys, delimited ForcedTail classification, failure on a repeated declaration, and compat skips pinned by identity. A scoped re-review approved all ten items.
Verification. The routine verify at cb54ed5 failed: 3380 of 3385
parallel tests passed. The causes were four citations of source lines
that the trace commits moved unchanged (96a737c, d55253d) and one
older read-back test that handed Online a hand-built null state, which
the real checker never builds. Both were fixed in tests only
(b727b22, 16a7865) and reviewed. The log of the failed run is kept.
The routine verify at 7e0492b passed, alone under the lock:
parallel 3385/3385, serial 230/230, regression proofs 437/437, growth
ratio 2.140 against 3.0. Logs are in
.build/evidence/2026-11-03-t2-verify/ (git-ignored). Performance
qualification (npm run perf) was not run; the trace’s cost stays
R035.
For the author: whether to accept Stage B as functionally complete on this evidence. The gate’s open items (2-7) are the author’s rulings and later work. A2’s Task 16 (minting), C6, F14’s retirement, replacement losses and any push stay held.
The author accepted tranche 2 Stage B as functionally complete, having checked the saved verify log (3,385 parallel tests, 230 serial tests and 437 regression proofs at 7e0492b, exit 0). The failed run at cb54ed5 stays part of the record. Performance qualification has not been run. This accepts the read-back implementation and its scoped corpus evidence. Activation and replacement stay held.
Rulings on the activation gate’s criteria:
RequirementUnjudged declarations that today’s certify already
refuses are not new certification losses. Today’s verdict for each
unsupported or read-fault declaration is to be recorded before a
loss ruling is asked for. Listing a gap is not approval to lose it.npm run perf, with
every result preserved and no retries or bound changes; and paired
read-back/trace and validator measurements, peak memory included,
with the protocol fixed before running. Budgets are to be proposed
from those results; no budget is approved. Shared-machine conditions
are recorded, without requiring the author to stop using the
computer.The gate remains an evidence checklist: its citation checks cannot establish that a section approves something. The “after §18.157” restriction is acceptable for these currently open decisions; it is not a general rule invalidating earlier rulings.
Next, authorized: the comparison and the performance evidence; in parallel, one implementation proposal covering R034’s prerequisites and R036’s activation blockers, with review and verification included. Return with one consolidated activation packet. Held: the minting switch, F14’s retirement, live replacement, pushing.
The work §18.159 authorized is done and consolidated in docs/plans/2026-11-04-activation-packet.md. No stop condition occurred. Nothing is activated or pushed; no soundness claim.
npm run perf at 354ce6e, exit 1, 24 of 26 files
(fn-linear-timing 4 of 8 forms ×1.13-1.44 over bound; fn-scale one
phase over), preserved, no retry. Paired measurements under a
protocol fixed and reviewed before the run
(docs/plans/2026-11-04-performance-protocol.md;
test/fixtures/r0/t2-performance.json): trace ×1.12 compile, ×1.44
recheck CPU; the online read-back ×14.1 CPU (+58 s, +471 MiB); the
validator ×2.24 CPU over certify, no peak-memory increase. Budgets
proposed, none approved; recommended: reduce the read-back cost
before any budget for it.For the author: the decisions in the packet’s section 4. Held: the minting switch, F14’s retirement, live replacement, pushing.
The author authorized the prerequisites implementation (docs/plans/2026-11-04-activation-prerequisites-proposal.md), T6’s tooling fixes included, with the proposed parallel split, internal reviews and one final routine verify; the 1.8-3.0M estimate plus T6 and coordination is acceptable as an estimate. Activation stays held.
Two compatibility measures are kept, and neither establishes what users would lose when the live checker is replaced: sixteen declarations lose substitution-only certification; two move from Solved in the scratch comparison.
Rulings:
RequirementUnjudged stay
existing certification refusals. This authorization accepts no
replacement loss.UnreadImage
coarsening documented. The polymorphic traversal and injected
resolver are used; existing numbering is preserved.tailRec calls. Copied, fuelled loops test the
copies, so agreement checks connect them to production. A lazy
field could avoid unused work before activation but would not solve
termination when forced.Holes.purs fallback is investigated in this batch: whether
collection and renaming visit exactly the same metas. A reachable
collision is not inferred from the fallback’s presence. If the
invariant holds, its argument and detection tests are recorded; if
it fails, stop with the separating case and a proposed
lowering-boundary repair (a new diagnostic or changed compilation
behavior needs its own ruling). Other live-checker fallbacks are
filed separately.Performance: no numerical budget is approved. The third-quartile rule describes current cost; it does not establish acceptable cost. The ×14.1 read-back CPU and +471 MiB need investigation first. Whole-process peak RSS stays the primary memory measure; setup-adjusted figures are supporting evidence. The read-back is profiled and a cost-reduction proposal prepared alongside the prerequisites work, after determining whether repeated work, per-candidate evaluation or another mechanism dominates. After compile-path changes, the paired measurements are repeated under the recorded protocol. The two failed perf files stay failed qualification evidence; before activation their failures are attributed well enough to distinguish shared-load sensitivity from added compiler cost, without requiring an idle computer, retrying for green or changing bounds.
C6 stays a shadow-only expected divergence; criterion 3’s “met” records the ruling and does not approve live widening.
Return one packet with the fixes, reviews, verify, the updated scratch comparison, the numbering findings and the performance proposal. Held: the minting switch, F14’s retirement, live replacement, pushing.
The routine verify at f93ac49f was killed under memory pressure on 2026-11-05 and is incomplete evidence. The author authorized another attempt with less resource demand on the shared machine, scheduling changes only. WAXWING_VERIFY_TEST_CONCURRENCY was added at 96ba184f (validated before the build; every file, workload, assertion, threshold and regression row kept; the routine file list equal to the commit before it, 379 files; seven tests added to an existing file; four mutants caught in an isolated copy).
Routine verify at 96ba184f passed, run once under the lock, 2 test files at a time and regression jobs 1: parallel 3475/3475, serial 238/238, regression proofs 472/472, growth ratio 2.284 against 3.0. Free memory stayed at 28% or above. Performance qualification was not run. The log and memory samples are in .build/evidence/2026-11-08-verify/.
The prerequisites are implemented and reviewed, and that verify is their acceptance run. The gate still reads not met (2, 6).
The author’s direction on performance: investigate the repeated
Walk.nodeAt lookups before selecting laziness, since deferring a
computation and making it cheaper are different fixes, and compare on
the path that will require validation. Findings:
docs/plans/2026-11-08-readback-walk-investigation.md. Return packet, with
R037 and R038’s decisions: docs/plans/2026-11-08-return-packet.md.
Held: replacement losses, performance budgets, the minting switch, F14’s retirement, live replacement, pushing.
The author accepted the activation-prerequisites batch, having checked the saved verify log. The interrupted run stays incomplete evidence, and performance qualification stays outstanding. Rulings:
RequirementOpen where today also refuses is §3.2(a), pending
G-ValidR; agreement on rejection settles neither the requirement’s
meaning nor completeness. Separating fixtures for both; genuine
defects stay visible as defects.Validator cost: profiling and a proposal for reducing path-comparison cost are authorized, with the intended equality and ordering preserved. No validator optimization or further freeze exception is authorized.
Return: the complete verify, updated compatibility comparison, protocol measurements and validator-cost proposal. Estimates are planning figures, not caps. Held: replacement losses, numerical budgets, the minting switch, F14’s retirement, live replacement, pushing.
§18.163’s batch is implemented, reviewed and verified: routine verify at 2d68a85d passed (parallel 3481/3481, serial 238/238, regression proofs 478/478, growth ratio 2.302 against 3.0; performance qualification not run). The failed run at 808ebfe5 stands as a record: one regression row could no longer find its search text. Packet: docs/plans/2026-11-09-return-packet.md. Protocol at 2c5b9e30: online read-back ×2.32 CPU, ×1.06 peak RSS. The comparison moves the same 16 declarations. The gate reads not met (2, 6). Held as in §18.163.
The author authorized the monomorphic path comparison and ruled it a
narrow validator-freeze exception: changing a dependency’s ordering can
change map behavior throughout the validator, wherever the module sits.
Scope: the comparison’s implementation, its exact result preserved. Eq,
constructors, exports and path identities stay. No interning, identity
shortcut, memoization or validator-rule change.
Required: agreement with an independent reference retaining today’s
derived ordering (PathRoot order, every Named/Index pairing, prefixes,
empty paths, negative and boundary indices, string edge cases); consistency
with Eq, antisymmetry and transitivity; long shared prefixes and deep
paths; restored-defect rows for the distinguishing cases; identical
validator results, diagnostic selection and protected pins across the
corpus (equal counts are insufficient); independent review of the
implementation and substantive fixes; the complete routine verify at
concurrency 2 and regression jobs 1; then the performance protocol on the
final source, absolute costs beside ratios.
The same review inspects the preceding batch’s two Important fixes and their detection evidence. RT8’s read-fault fixtures remain rendering evidence only; the real constructor-to-classification path must be exercised before the minting switch is approved.
Return with a concrete performance-budget recommendation for the intended activation path, without starting another optimization cycle because profiling shows a new largest component. Estimate, a planning figure and not a cap: one Opus review, 150-250K tokens. Held: replacement losses, numerical budgets, the minting switch, F14’s retirement, live replacement, pushing.
§18.165’s option A was implemented and withdrawn. The proposal’s 7.1 s came from a compiled-output patch that also skipped identical step objects and read arrays directly. The author ruled out identity shortcuts, and Domain modules may not use Partial, Unsafe or foreign imports; that is a correction to §18.163’s proposal.
Validator loop CPU, three rotated runs (median seconds; shared machine; all pure rows pass the agreement tests over the stated grammar):
| Implementation | CPU (s) | Allowed? |
|---|---|---|
derived Ord (today) |
14.6 | yes |
case on two Array.index results, derived Step order |
13.7 | no: fails the structural maybe/either rule |
same, hand-written Step order (compiled patch) |
9.6 | no: same rule |
| direct array reads, no identity check (compiled patch) | 8.4 | no: needs unsafeIndex or a foreign import |
zipWith then fold |
17.2 | yes, slower |
nested maybe |
21.6 | yes, slower |
fromMaybe with a sentinel, top level |
24.4 | yes, slower |
Source is restored to the derived instance, equal to 2d68a85d’s src, so that verify and the 2c5b9e30 records stay current. Tests and evidence: .build/evidence/2026-11-09-path-order/. Decision for the author.
The independent review of the preceding batch’s two Important fixes found I1 closed as raised with a weaker caller pin than stated, and I2 not closed for one class. Fixed: the caller scan reads compiled imports, the trace’s public surface is pinned, rows plant a real second reader and restore the raw accessor, and the refused read-fault class has its separating row. Those fixes have not had a further independent review.
Routine verify at bdc38a6f passed; src equals 2d68a85d’s and the 2c5b9e30 records’. Recommendation: docs/plans/2026-11-09-budget-recommendation.md. Held as in §18.165.
Option A is withdrawn and its validator-freeze exception closed unused. The derived path ordering stays. The corrected experiments do not support the original claim (§18.166), and no further path-order optimization is authorized.
R035 budgets approved under the recorded protocol: read-back CPU ratio
2.75; read-back whole-process peak RSS ratio 1.15; validator CPU ratio
versus certify 2.60; validator whole-process peak RSS ratio 1.15. These
approve the measured corpus costs for this stage and are not universal
latency or memory guarantees. The absolute figures, per-declaration
outliers and the timing-free wrapping count stay beside them. The two CPU
ratios have different baselines and are not multiplied. The unchanged-source
protocol results support criterion 6, given the source identity check. The
earlier failed perf qualification stays visible: budget approval does not
turn those failures into passes.
The gate reports shadow minting and live replacement separately, so that
one citation cannot stand for both. Enabling stricter shadow certification
does not approve losing working programs in the live compiler. A real
EffectsUnread constructor-to-RT8/window test must run with the switch.
Held: the minting switch, F14’s retirement, live replacement, pushing.
Routine verify at 9f4069e3 passed; src equals 2d68a85d’s, so the 2c5b9e30 records stay current. Failed or stopped runs kept: 312ddd88 (one regression row followed a moved helper) and d3c8cd4b (stopped by the controller when a review superseded it). The findings on the caller scan, the separating rows and the gate were fixed; the last narrow review’s fixes (token case and wrapping, the constructor’s scope) have restored-defect rows and no further independent review. Packet: docs/plans/2026-11-09-shadow-minting-decision-packet.md.
The author accepted each enumerated read fault and ForcedTail loss within
shadow certification only, as listed in section 2 of
docs/plans/2026-11-09-shadow-minting-decision-packet.md, and authorized the
minting switch’s implementation with all five tests and comparison
requirements of that packet’s section 4, an independent review of the
latest gate changes and a complete npm run verify.
The import isolation supports this limited scope. This section rules nothing on the live checker: replacing it still needs measured user-visible losses and the resolution of R037 (2). F14’s retirement and pushing stay held.
The switch was implemented on the branch r0-minting-switch, which is not
integrated. The packet’s five requirements ran: each read fault reaches
RT8 and the window through the real EffectsUnread, a real corpus
declaration reaches them through the real Online and Decide, and the
comparison repeated on the real constructor equals the 2c5b9e30 comparison
line for line. The independent review closed the gate’s two open findings.
It stopped because a complete verify cannot pass as authorized: the switch fails 21 tests on purpose or by premise, and the packet said nothing is re-pinned. Four of those tests forge a substitution and expect the check to refuse it; under minting the forged substitution is not read, so the candidate reads Solved. Those need the author’s ruling before any test changes. The classification is in the RESUME section.
The author chose to re-pin and re-aim. Each of the four forged-witness
tests is traced individually with its intent kept: the valid Bool
replacement still compiles, the hole-contract case still prevents
compilation, and they are not all refusal tests. They forge the package
certifyPackage consumes, and the path through Online, Decide and
elaboration is checked to use exactly the evidence validated. Each
regression test is shown detecting its restored defect in an isolated
copy.
This narrowly relaxes “nothing re-pinned”: only the accepted 16 declaration movements are re-pinned, named in the commit. Counts, old-premise expectations and mechanical checks are updated with a reason for each. Any additional movement needs a separate decision. Independent review, a complete verify and the performance protocol come before integration.
Package certification still runs substitution validation on the package’s
settled erasure before judging obligations and constructing Certified.
Checking the separate unsettled field again would add another agreement
requirement; the essential protection is that validation and compilation
consume the same evidence. Live replacement, F14’s retirement, milestone
changes and pushing stay held.
The switch is integrated under §18.170 and §18.172. Shadow certification
mints through certifyPackage; a read fault declines as EffectsUnread.
The live compiler does not reach this path.
Evidence:
certify).certify 6.0 s, validate 13.3 s.Open for the author, not decided here:
Substitution.certify remains a G0-only minter. Plan Task 16’s guard
says it is removed in the same change; nothing calls it from src, and a
structure rule keeps Online off it. This may belong to F14’s
retirement, which stays held.Pending certifySound, which names
certify’s statement, not the package path’s. A new statement
reference would move every Solved verdict’s assurance, a movement
beyond the accepted 16.The gate: criteria 1-7 not met (2); shadow minting met; live replacement not met (2). Live replacement, F14’s retirement, milestone changes and pushing stay held.
The author ruled both §18.173 findings for a bounded follow-up before Entry:
Certified removed. Boundary checks are updated, and a
restored bypass is shown detected.certifyPackageSound, still
Pending, documenting its premises, existing evidence and unresolved
obligations, including the input-to-completed-package G0 obligation
the source notes. This names the argument relied on; it does not
establish soundness.The assurance label change is authorized beyond the accepted 16, as metadata only: outputs are compared with that field normalized, and no other verdict, witness, diagnostic or compilation change is allowed. Historical evidence keeps its original labels. The independent review covers the follow-up and the switch’s unreviewed fixes; then a complete verify on the final code. Shadow minting stays met; live replacement stays blocked on criterion 2; F14’s retirement, milestone changes and pushing stay held.
The review of §18.174’s follow-up (and of the switch’s earlier unreviewed
fixes, which it found sound) found the certify rename had missed four
callers (test/r0-u8-solved-form, test/r0-g0-atoms, the a2-props probe, row
r0-forged-valid-old-field), and that the minting scan could not see a
helper inside Domain.Verdict.Certified.Internal. Fixed: the callers use
the comparator; the old-field row restores its split inside the one minter;
the scan also pins the Internal module’s exports and its single
construction, with row r0-minting-internal-helper. The argument note now
records the Task 15 obligation as unproved but checked on fixtures and
observed on the corpus. These fixes had no further independent review.
Open for the author: G0’s tests mint Certified in JavaScript from the
comparator’s result (test/r0-g0-support.mjs), as test/r0-stubs.mjs already
does (BACKLOG R026). src cannot mint outside certifyPackage; whether
test-side minting from the comparator fits §18.174 (1) is the author’s
call.
Verified (2026-11-10): routine verify at 7af0c225 passed, at concurrency 2 and regression jobs 1: parallel 3485/3485, serial 242/242, regression proofs 509/509, growth ratio 2.321 against 3.0. Earlier runs kept in .build/evidence/2026-11-09-verify7/: 43f7e252 (a rows file over 250 lines) and 96261bc7 (the gate rightly read the earlier comparison and protocol as stale after §18.174’s src change; both repeated at 96261bc7, t2-minting-comparison5.json and t2-performance-5.json). Protocol, within budget: read-back CPU ×2.33, peak RSS ×1.04; validator CPU ×2.21, peak RSS ×1.02. The comparison’s moved report equals the pre-switch one.
The author allowed test/r0-g0-support.mjs to construct Certified in
JavaScript from the comparator’s result: §18.174 (1)’s restriction applies
to production minting, and its earlier wording was too broad. The harness
calls the real comparator, keeps its refusals, and wraps exactly the
returned validity and compilation for the Decide harness, as
test/r0-stubs.mjs does. Scope: those tests are evidence about G0 and
Decide, not about package certification or effect safety. No re-scoping.
Before Entry, an independent reviewer covers §18.175’s final caller repairs, the minting-helper detection and the re-aimed row; findings are fixed, with a verify after any code change. Then Entry’s R037 (2) investigation. Held: live replacement, F14’s retirement, milestone changes, pushing.
Review before Entry (2026-11-10): the minting-helper detection and the
re-aimed row r0-forged-valid-old-field closed; one caller was still missed,
research/t2-read-back-inventory/corpus.mjs, now on the comparator. The
Internal check reads every export block, and stale comments naming
certify as live are corrected. FFI construction stays covered by the
foreign-surface pin (scripts/forgery.mjs), not by the minting scan.
Verified (2026-11-10): routine verify at af830d41 passed (see .build/evidence/2026-11-10-verify/). The comparison and protocol were repeated on that src (t2-minting-comparison6.json, t2-performance-6.json): moved report unchanged; read-back CPU ×2.29, peak RSS ×1.04; validator CPU ×2.21, peak RSS ×1.03, within the budgets. Next: Entry’s R037 (2) investigation.
Evidence only, no src change: docs/plans/2026-11-10-r037-2-entry-fallback.md.
Entry.purs:43-46’s Row [] Nothing arm cannot run on today’s code: an
arrow-preservation argument through substitute, walk and resolve’s
arrow arm, which no type enforces. Planted in a scratch copy of compiled
output (research/r037-2-entry-fallback/plant.mjs), a resolve that
returns a non-arrow makes main performing Log or Fail compile and
emit exit 0. The program then panics at run time (“no handler for Log”,
E_TOOL) in place of E_EFFECT “Unhandled Log in main”. This supersedes the
packet’s reasoned prediction of silent acceptance. A second fail-open in
the same function: Array.zip truncation, also preserved by argument
only. Proposed repair, not implemented: row-level operations so the arm
cannot be written, and one walk pairing labels with occurrences. It is
predicted to change no acceptance or diagnostic, to be confirmed by
verify and the gate’s repeated records. Held as before.
The author authorized §18.177’s repair and its verification (a few
hours of machine time; routine verify at concurrency 2). Scope: row
conversion, Entry’s two wrapper removals, and pairing labels with
occurrences in one walk. Preserve label order, duplicates, substitution
behavior and diagnostic provenance; check the other flexibleRow
callers, since the helper is shared. Before landing: test row conversion
directly, covering repeated labels and tail-expanded occurrences;
demonstrate restored-defect detection for both the effect-check bypass
and label truncation on the new path (the old non-arrow plant alone does
not cover it); independent review; complete npm run verify; repeat the
comparison and performance protocol on the final source. If acceptance,
diagnostics or compilation behavior moves, stop and return the measured
differences before re-pinning anything. This does not close all of R037
(2) or criterion 2. Held: live replacement, F14’s retirement, milestone
changes, pushing.
Implemented as §18.178 authorized (98278e0d; evidence and review in
docs/plans/2026-11-10-r037-2-entry-fallback.md). Row conversion is
row-level (renameRow; Scheme’s flexibleRow, checkedRow), and Entry
has no TFun wrapper and no zip (finalEntries). An independent review
found no behavioral defect; its findings are fixed. Restored-defect
detection is shown on the new path for bypass, both truncations, lost
tail expansion, wrong pairing and merged duplicates. Nothing moved:
comparison 8’s dump is byte-identical to comparison 6’s, and performance
8 is within the budgets. Routine verify passed at 42461f06; an earlier
run at e432c053 failed at the structural gate and is kept. Not closed:
R037 (2)’s other sites and criterion 2. Held: live replacement, F14’s
retirement, milestone changes, pushing.
The author closed Entry’s portion of R037 (2) on §18.179’s evidence: the
repair preserves behavior, and the new tests cover two defects the
existing suites missed. The correction about scripts/structure.mjs
stands in the record: its earlier invocation supplied no verification
evidence; the direct checkStructure() call and the complete verify do.
Next, evidence only: inventory the remaining R037 (2) sites (Walked,
DeclarationUse, Function, Body, Desugar, Core), each with its fallback’s
reachability, the invariant it assumes and the consequence if that
invariant breaks, reusing existing evidence; then bring back a proposed
repair scope and cost before changing source. Shadow minting met; live
replacement blocked on criterion 2; holds continue.
Evidence only, no src change:
docs/plans/2026-11-10-r037-2-remaining-sites.md. Every site is
unreachable by the arrow-preservation argument (Core’s by the
construction its comments state). Each fallback forced in an isolated
copy (research/r037-2-sites/plants.mjs) and the corpus dump compared:
Walked’s walkedRow and DeclarationUse’s arrowRow fail open (30 and
48 programs refused today compile, including unhandled effects in
main, defer and signature refusals) and also refuse some valid ones;
Function’s current fails closed (925 programs refused, none
accepted); Body’s rowOf, Desugar’s freshRow and Core’s
stagesThrough arm move nothing in the corpus (Body’s row has no live
reader today; Core’s arm degrades safely in resolve). Proposed: repair
Walked, DeclarationUse, Function and Body by row-level operations, and
optionally Desugar’s Meta 0; leave Core’s arms and resolver’s
duplicated renames with their arguments. About 30 lines; one full
verification round of roughly 1.5 hours. Awaiting the author.
The author authorized §18.181’s items 1-5: Walked walkedRow,
DeclarationUse arrowRow (by atRow and mapRowMarks), Function
current and Body rowOf (by rigidRow), which remove the
arrow-wrapper fallbacks, and Desugar freshRow, which removes the
invented Meta 0 at small additional scope though no corpus effect was
measured. Kept: Body’s token review, equivalence properties,
restored-defect checks, the comparison and performance protocol on the
final source, and a full verify. Any behavioral movement is a stop.
Unchanged: Core’s arms and resolver. Separate and held: live
replacement, milestone changes, and the read-fault and ForcedTail
rulings.
Implemented as §18.182 authorized (final src 59e70fdb; evidence and
review in docs/plans/2026-11-10-r037-2-remaining-sites.md, “Repair”).
Walked, DeclarationUse (Scheme atRow, mapRowMarks), Function and
Body (Checked rigidRow) convert rows as rows, with no TFun wrapper
and no fallback arm; Desugar’s freshRow takes its first tail from
Array.uncons. Core’s arms and resolver are unchanged. Equivalence
against the old arrow forms is tested (test/r0-site-rows.test.mjs);
Body’s token review and an independent review found no behavioral
defect, and their findings are fixed. Restored-defect checks catch nine
of ten mutants on the new paths; the one missed (Desugar’s one-tail
guard removed) leaves the row unchanged but adds substitution
constraints no suite reaches, recorded as a test gap. Nothing moved:
comparison 10’s dump is byte-identical to comparison 8’s, and
performance 10 is within the budgets (read-back CPU x2.36, RSS x1.09;
validator CPU x2.22, RSS x1.01). Routine verify passed at 863a0992. Two
harness consequences, fixed: the trace-removal baseline needed
Function’s Maybe import back (77b08566), and an import’s layout failed
purs-tidy at c30a1e52, so records 9 went stale and were repeated. With
this, every R037 (2) site is repaired or left with its recorded argument
(Core). Criterion 2 is still not met: the read-fault and ForcedTail
losses are unruled. Held: live replacement, milestone changes, those
rulings, pushing.
The author closed R037 (2) on §18.183’s recorded evidence (inspected, not independently rerun). Retained as an explicit follow-up: Desugar’s one-tail guard has no test that fails without it (the missed mutant). No further fallback cleanup is needed.
Criterion 2: both loss lists (read fault, ForcedTail) stay unresolved for live replacement. Certification losses alone do not establish which working programs replacement would reject. Next, evidence only: measure replacement’s end-to-end outcome for each named read-fault and ForcedTail declaration, and for the three existing RequirementUnjudged refusals; separate valid programs lost from existing defects correctly refused; bring back a repair recommendation and cost. Held: live replacement, milestone changes, F14’s retirement, pushing.
Evidence only, as §18.184 directed: docs/plans/2026-11-12-replacement-
losses.md (script research/r0-replacement-losses/measure.mjs; output
.build/evidence/2026-11-12-replacement-losses/). Replacement’s rule is
the census’s: one declaration decide does not solve stops its program.
All 19 listed declarations are Unresolved. Of their 19 programs, 16
compile today and replacement rejects all of them: 15 valid programs
lost (pinned outputs or probe ok outcomes; including
examples/records.wxw and examples/services.wxw) and one existing defect
correctly refused (inline:fx032; FX032 is ruled a defect, G-erased item
5). The other 3 (rigid, f05-print-key, split-selection) are refused
today; f05’s declaration shape loses a valid program once its caller is
valid. The named fault is the only cause for 3 lost programs (c7 and
q7: UnreadImage; records: RequirementAtoms). The other 12 also carry
Outside HandlerType, and 6 have other blocking declarations, so no
UnframedInstall or ForcedTail repair alone rescues any program. The
pinned census counts 256 of 751 accepted programs rejected under
replacement; certification losses understate replacement. No design or
cost estimate exists for lifting any cause. Recommended: no isolated
UnframedInstall or ForcedTail repair; read criterion 2 at decide
level; if replacement is wanted soon, a statements-first handler-type
design first; optionally UnreadImage, and RequirementAtoms after the A7
show ruling. Awaiting the author. Held: live replacement, milestone
changes, F14’s retirement, pushing.
decide level; FX032 recorded a defect (2026-11-12)Directed by the author:
decide, using the
census and the named lists together, deduplicated by program.
Certification losses remain supporting evidence. Criterion 2 stays
unmet. The author recommends accepting none of the identified
valid-program losses for live replacement. FX032 is recorded
separately as a known defect correctly refused; existing refusals are
distinguished from lost programs.The gate status registers this record (criterion 2 reads it as a whole line):
Known defect, correctly refused: inline:fx032#g (FX032).
Implemented as §18.186 directed (52f85f7f, review fixes 0e8f7adf; spec
docs/plans/2026-11-03-a2-activation-gate.md, criterion 2). Criterion 2
reads test/fixtures/r0/t2-replacement-losses.json: every census-union
and gap-list program, deduplicated, plus any other program decide
would lose, each with its naming sources, today’s compile, its unsolved
declarations and a class derived from those facts. Omitted, repeated,
misnamed or misclassified programs are unmet. A known defect or an
accepted loss needs an exact record line in its cited ruling. The
certification check stays as supporting evidence and still counts.
Measured: 262 programs; 252 lost, none accepted; FX032 a known defect
correctly refused; 3 existing refusals; 6 census ErasedRow fixtures not
lost under decide. Criterion 2 stays unmet; the gate reads shadow
minting met, live replacement not met (2).
An independent review found one Important hole, fixed: an acceptance was read from any section naming the program and “live replacement”, so “Held: live replacement” (§18.185) accepted a loss. The six Minor findings are fixed or recorded (the gate trusts the file’s facts; the serial test keeps them current). Detection is shown by must-fail cases on synthetic and real data and by eleven new regression rows. BACKLOG FX032 now reads Defect, citing G-erased item 5; repair not authorized. Routine verify passed at 0e8f7adf: parallel 3511/3511, serial 245/245, regression proofs 520/520, growth 2.296 against 3.0 (.build/evidence/2026-11-12-verify-criterion2/). Existing pins and failed-run evidence unchanged. Held: live replacement, milestone changes, F14’s retirement, pushing; no cause lifted.
The author directed an evidence-only census analysis, with no lift implementation: exact blocker sets per lost program (DataApplication and overlapping causes included); programs rescued by each lift and by useful combinations, counting a rescue only when every blocker is removed; shipped examples and tested valid programs kept apart from known defects and unclassified cases; a reconciliation of the census’s 256 rejected programs with the 252 losses, the six solved ErasedRow fixtures included; and two or three candidate scopes with prerequisites, rulings, expected rescues and design costs, unknown costs labelled. Existing measurements first; rerun only where missing or stale; state the cost before expensive agent work. Return with a recommended first scope before starting its design. Criterion 2 stays unmet; all holds continue.
Evidence only, as §18.188 directed: docs/plans/2026-11-12-census-
analysis.md; script research/r0-census-analysis/analyze.mjs, per-
program blocker sets in research/r0-census-analysis/lost-programs.json.
The 252 losses have nine causes; per-cause program counts equal the
census categories (DataApplication 143, HandlerType 102, FailFamily 41,
Deferred 41, EffectArgument 31), plus UnframedInstall 8, ForcedTail 4,
UnreadImage 2, RequirementAtoms 1. Single lifts rescue DataApplication
121, HandlerType 32, FailFamily 13, Deferred 8; the five markers
together 237. Marker suppression in an isolated copy (measured, not a
soundness claim) rescues exactly the marker-only counts in every scope:
no hidden later blocker. Tiers: 5 shipped examples, 184 tested valid
(oracle 90, expected output 42, probes 52), 19 test programs accepted by
their tests, 23 fixtures pinned compiling, 1 editor fixture, 20
unclassified; no known defect among them. Reconciliation: census 256 =
250 lost + 6 ErasedRow-only fixtures decide solves (the G-erased
question stays open); 252 = 250 + c7 and q7 (UnreadImage). Candidate
scopes with prerequisites, rulings and labeled costs: A, the free-
constructor model for DataApplication (121); B, the effect markers (94;
106 with UnframedInstall and ForcedTail); C, both (237). No design or
cost estimate exists for any; costs are analogies, labeled. Recommended
first scope: A. Its design needs the author’s authorization (the plan
marks destination E’s design unauthorized); not started. Criterion 2
unmet; holds continue.
The author authorized Scope A’s statements-first design only. The 121 potential rescues justify examining A first. Disabling markers showed that no further blocker appeared in those runs; it does not establish soundness or authorize removing the marker. The design is to define the free-constructor model, its assumptions and its boundary with existing R0 semantics; separate published components from the ValidR draft’s unproved claims; state the obligations G-exempt needs, with distinguishing examples and counterexamples; explain generation, validation and read-back changes, including how unsupported cases stay blocked; identify which of the 121 programs fall within the proposed scope, with rescue counts conditional until implemented and verified; and return a costed proposal for proof and implementation with unresolved decisions explicit. The statement set and cost come back before proof work. Not authorized: implementation, marker removal, effect-marker work, expansion to Scope C. Criterion 2 unmet; all holds continue.
Design only, as §18.190 authorized:
docs/plans/2026-11-13-scope-a-free-constructor-design.md (scripts and
evidence in research/r0-scope-a/ and .build/evidence/2026-11-13-
scope-a/). The free-constructor model GA (nominal: constructors
injective, distinct heads unequal), ValidR_A as a family over the
unruled G-ValidR choices, and the boundary InScopeA (D6): declared
heads with no effect-row or record-row parameter and not in the holder
set, no arrow inside an app argument, no app in D, no other
marker, no open requirement atom. Statements S1 (published), S2-S4,
S5′, S6, S8 (derived, to prove), S5 (G0’s check sound over GA:
unresolved, it is P-G0), S5e and S7 (to check); refuted variants R1-R6
kept as the boundary’s reasons. An adversarial statement review found
two Critical and four Important issues, all fixed: S5 needs the
open-requirement condition (G0’s check accepts open atoms), and effect
rows hide inside function fields and arrow arguments, so those are
excluded. In scope, conditionally: 118 of the 121 (12 with no
requirement over app, 106 with), 3 excluded. Cost by analogy about
2.2-4.7M tokens without proving P-G0, whose cost is unknown. Decisions
U1-U8 for the author, U1 (whether Pending assurance suffices) first.
Awaiting statement approval; no proof work, no implementation, no
marker change. Criterion 2 unmet; holds continue.
The author approved investigating and proving the corrected statements of §18.191, not adopting them as established facts, and authorized the bounded proof-and-oracle portion, with 1.0-2.4M tokens as a planning range (not an estimate). Return before exceeding it or materially changing a statement. Decisions:
Pending genericSubstitutionSound assurance is the
basis for proceeding. S5/P-G0 stays unproved, and these proofs must
not be described as establishing full checker soundness. Any
exemption still needs the completed-dossier review.DataApplication name; document precisely what stays
blocked.checkSubstitution when
implementation is authorized, preserving existing out-of-scope
refusals.Two requirements: S5′ needs an exact formal statement of what it assumes about P-G0 (if that cannot be expressed and proved without undertaking P-G0, stop and report the dependency); the constructor-table and holder-set assumptions are explicit, and the reviewer’s counterexamples become reproducible fixtures. Implementation unauthorized. Criterion 2 and all holds unchanged.
As §18.192 authorized; results in docs/plans/2026-11-13-scope-a-free- constructor-design.md §15. The Lean module Composition/App sits beside the existing model, which is unchanged. Proved:
Scoped turned out unnecessary;PG0Clauses, P-G0’s two clauses on the
existing model: the “no app in D” hypothesis turned out
unnecessary;TableBases.S8 without TableBases is refuted and kept (not_s8NoBases); the
missing hypothesis was a formalization error in the interface, already
present in S6, with S8’s scope unchanged. The axioms gate passes: a
clean rebuild, no placeholders, 90 theorems, at most propext,
Quot.sound and Classical.choice (the last from the existing model’s
classical composition). Oracle O-A (amendment A1, recorded before the
run): 495 accepted problems, 13,083 assignments, 0 failures; the
negative control finds failures on all 7,524 refused candidates. R1-R6
are reproducible fixtures on the committed compiler. S5 (P-G0) stays
unproved, and these results do not establish checker soundness. Spent
about 0.9M tokens. Awaiting the author’s decision to use the results:
the completed-dossier review, and U6. Implementation unauthorized.
Criterion 2 unmet; holds continue.
The author directed the completed-dossier review and a concrete implementation proposal. Implementation is not authorized. In the author’s plain terms, the results support treating ordinary data types this way, but it still has to be checked that the compiler supplies the assumptions the proofs require. The author has inspected the written results and has not rebuilt the proofs.
TableBases) is approved
for review. The false form (S8NoBases) and its counterexample
(not_s8NoBases) stay recorded. This supersedes the wording of
§18.193 and design §15 that called the change a formalization error
with S8’s scope unchanged.TableBases, the holder-set correspondence and the other
hypotheses match real compiler inputs, and how implementation will
enforce or test each;PG0Clauses);Pending genericSubstitutionSound, not a claim
that the checker is proved sound.Scoped for S4, no app in D for S5′, and
TableWF for S6 and S8). D6 is unchanged.Criterion 2 and all existing holds are unchanged.
As §18.194 directed, bounded to its four items. The review is design §16; the proposal is docs/plans/2026-11-13-scope-a-implementation- proposal.md. One independent reviewer and one citation check; the controller checked the reviewer’s code claims, reran the axioms gate (e3bb6bf9: 90 theorems, unchanged report) and ran probes. No theorem was found false and no path to an unsound Solved was found. Findings:
TableBases and kind (dataB t) are supplied by the
compiler’s representation. The holder set matches Holder by case
analysis and five probes, but its only test is a fixed list and a
missed holder cannot fail closed. FT cannot express record-row
tails. GroundRule’s Holds is not linked to JHolds: requirementUnder
judges with no definedness check. D6.4 as written does not enforce
S8’s argument hypothesis (a nullary holder argument); none of the 118
has one.CheckA omits the
compiler’s canonical record sorting, so it covers a subset of the
compiler’s acceptances. PG0Clauses are lemma-level clauses that
P-G0 as stated does not imply. Erasure is sound in the direction used.The proposal puts a Stage 0 (two D6 conditions measured to cost none of
the 118, S5′’s relabel, a canonA lemma, oracle A2, a record-tail
measurement; 0.45-1.0M) before implementation (1.2-2.2M), with the
defensive refusal on substituted terms, a requirement definedness
refusal, mutant-proven assumption tests, an exact pin list and 118
conditional recoveries (losses 252 to 134; criterion 2 stays unmet).
Spent about 0.35M. U6 awaits the author. Implementation unauthorized;
all holds continue.
The author approved all of Stage 0 (proposal §1), including the
canonA lemma, the expanded oracle and the review. U6 stays pending. In
the author’s plain terms: before the restriction is removed, close the
gaps between what Lean proved and what the compiler actually checks.
Pending assurance is not to be used to dismiss the newly identified
gaps. Scope:
PG0Clauses, which are
neither proved for the compiler nor implied by P-G0 as currently
stated. The earlier overstatement is kept as a corrected finding.canonA’s evaluation-preservation lemma, connect the
revised check to it, and add the stronger examples and the refusal
control. A statement that fails comes back for a decision.Compiler changes, the defensive refusals and the marker narrowing included, wait for the later implementation approval. Stage 0 may change proof code, research scripts, fixtures and records. The planning range is 0.45-1.0M tokens: return before exceeding it or widening the scope. The return states what now connects to the real compiler, what remains assumed, and whether the 118-program prediction survives. No implementation, exemption, milestone change or activation is approved. All holds continue.
As §18.196 authorized; details in design §17. No compiler change.
canonA preserves evaluation) and S5′c (S5′ for the
canonicalizing check CheckAc) proved, relative to PG0Clauses
only; examples, including a problem CheckAc accepts and CheckA
refuses, and a refusal control. Gate: 106 theorems, additions only.CheckAc matches under only if canonical is
idempotent and under is substitute-then-canonicalize, is a
PureScript property test owed under implementation.
Spent about 0.72M of the 0.45-1.0M range. U6 awaits the author.
Implementation unauthorized; all holds continue.The author approved U6, the narrow exemption at the existing Pending
genericSubstitutionSound assurance, and authorized implementation once
the written plan is reconciled with the ruling’s contract. No further
proof tranche is required first. The author’s record is
docs/plans/2026-11-14-scope-a-implementation-ruling.md (copied into this
branch unchanged). Conditions:
under/canonical properties, generated
holder tests, boundary and definedness checks, restored-defect
demonstrations, comparison, performance, an independent review and a
full verify on the final source; failures and protected pins are
preserved.The narrowed marker, the admitted set (transitive, through nullary
types), the exposure check in checkSubstitution with rule 1 on the
solution, and the requirement-definedness refusal were written and
build. Before any test switch-over or re-pin, the full results dump was
compared with the baseline (research/r0-scope-a/impl1-movements.json;
evidence .build/evidence/2026-11-14-scope-a-impl/). 593 declarations
move:
categories field goes from ["DataApplication"]
to [], because generation no longer records that marker there.Inference NoCandidate;
h5-type-depth#deepest to Limit InferredTypeDepth@body, which needs
a new window class, “today refuses, R0 Limit” (§3.2(b) under ruling
R-b2).Outside DataApplication from a reason that
keeps its other kinds; 2 (fx008 rev9 set1, set1ctl) keep the same
kinds in a different order.scope-a-impl; r0-t2-d1 is
unchanged in src. No pin moved, no test ran.The author authorized the exact 42 declaration movements in
research/r0-scope-a/impl1-movements.json, including the 11 additional
Solved declarations: a semantic boundary decides eligibility, and the
corpus prediction does not become a per-program restriction. The
116-program recovery allowlist stays separate, and no program-specific
exception is added. The two protected fixtures’ census categories may
become []; their other protected fields are preserved. The proposed
“today refuses, R0 Limit” window class is to be checked against ruling
R-b2 before it is adopted. Tests and review continue within the existing
budget (1.2-2.2M). Acceptance of the revised U3 (detection in
checkSubstitution, blocking in decide, in place of a candidate
refusal) stays conditional on an independent review of every
consumer of Valid and Certified, and on restored-defect tests showing
that an exposed out-of-scope application cannot reach Solved by any
path. The author’s ruling record (updated, copied unchanged) notes that
certifyPackage can still build a Certified carrying such a Valid.
Proof qualifications and all holds stay; no live replacement, milestone
movement, merge or push is authorized.
Branch scope-a-impl; the final source is at 4372ce35 and the verified
tree at 62ec785d. Verify passed at 62ec785d: parallel 3521/3521,
serial 245/245, regression proofs 541/541, growth ratio 2.235. The
failed runs are kept in .build/evidence/2026-11-14-scope-a-verify/:
exposure not
yet pinned);What landed.
Valid carries the
exposed kinds; rule 1 and rule 2’s gating in Decide.purs read them.Movement. research/r0-scope-a/movement-check.mjs passes against both allowlists: 551 declarations of the 116 programs Solved, the 42 listed movements exact, nothing else. Losses go from 252 to 136. The dumps before and after the review fix are byte-identical. Records 12: test/fixtures/r0/t2-minting-comparison12.json (16 minting moves unchanged, 593 Scope A moves, none in both) and t2-performance-12.json (read-back CPU ×2.39, RSS ×1.03; validator CPU ×2.07, RSS ×1.04). The activation gate reads shadow minting met, live replacement not met (2).
Independent consumer review (one reviewer; findings checked by the controller):
Judged or
elaboration.substitutionOnly; per-branch restored-defect rows added; the switch
and shadow-decides rows repaired for Valid’s payload; Exposed and
Admitted added to the trusted lists, with a test that every marked
module is listed; the movement and digest checks hardened.unplain head test has no row: it is a structural equivalent mutant,
argued in the rows file.Found in the serial suite. 105 recovered declarations, in 70 programs, rest on a bound hole (research/r0-scope-a/ bound-hole-recoveries.json). The window falls to 578 rows. Three programs change in problems.json with no result movement (research/r0-scope-a/problem-only.json).
Pushed once by the author’s leave on 2026-11-14: scope-a-impl at
62ec785d and r0-t2-d1 at 03b8671f, as new remote branches.
The author ruled:
> 500 floor is approved only as the residual window’s sanity
floor; the exact 578-row pin and the full corpus inventory stay.All remaining holds continue. No further push is authorized.
main (2026-11-24)The author ruled: land everything on main now, research and compiler
together, in one fast-forward of integrate/scope-a. This lifts the
hold on merging and integrating into main and authorizes the push of
main. It withdraws the plan of 2026-10-21 to send research up on its
own branch. Every research hold in §18.202 continues: live replacement,
milestone changes, F14’s retirement, effect-marker lifts, Scopes B and
C, and the ambiguity hold on the 105 bound-hole declarations.
The integration merged main (FX033’s repair, Int arithmetic Tasks
1-2, the charter) and research/effect-kinds into scope-a-impl, and
brought Scope A onto main’s Arith node (257f0bee). Records 13 at
257f0bee reproduce records 12 but for the commit (fe58eb0b); trace-inert
was re-pinned (e4c4abba). The final verify and the author’s acceptance
of partialfirst-growth are in docs/progress.md.
n4-multiplication.wxw admitted; the honest pin re-pinned (2026-11-28)The author ruled on 2026-11-27 (waxwing-3, D001 Int arithmetic Task 4)
that the admission of the one pinned corpus program using *,
docs/plans/2026-10-21-c001-explicit/baseline/n4-multiplication.wxw
(fn main(): Int = 2 * 3;), is expected once * lexes, and that the
pins it moves are re-pinned in a separate commit, each predicted before
the run and checked against n4’s own contribution, anything else going
back to the author. The figures this section names, for criterion 1 of
the activation gate (the pin departs from §18.157 by n4 alone):
Run on a corpus of n4 alone, n4 is one candidate whose package reads, passes I3, validates and certifies, which is the whole difference from §18.157’s 2823/2805 and 2832/2813. No ForcedTail entry changed. The other moved pins and the n4-alone checks are in docs/progress.md (D001 Task 4, the n4 re-pins). Every hold in §18.202 and §18.203 continues; Task 6’s acceptance comparison stays held.