Skip to content

Law 2 has an order: a demand binds the signature's unknowns first, conversions bind nothing, operands before the outer demand (D106) - #2241

Merged
ehartford merged 1 commit into
mainfrom
law2-order
Oct 7, 2026
Merged

ehartford merged 1 commit into
mainfrom
law2-order

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's ruling (2026-10-06) on the law-2 tension: mission.md law 2 states the two phases and the order; §4.9a carries the sentence beside D103; D106 records the tension and the inner-first ruling; test/behavior/behav_law2_demand_order.w pins let x: Option[i32] = ident(3) as Some(ident(3)) at T := i32 (the compiler already does this, measured on main). Draft until its battery is green (the fixture is a battery input).

…nversions bind nothing, operands before the outer demand (D106)

mission.md law 2 now states the two phases and the order; §4.9a carries
the same sentence beside the value→Option conversion; D106 records the
tension (law 2's "never solves a type variable" against #2212's generic
result parameter and D103's "never in inference") and the inner-first
ruling for `let x: Option[i32] = ident(3)` — `Some(ident(3))` at
`T := i32`, never `ident(Some(3))`. The compiler already does this
(measured on main); the fixture pins it with `ident` printing the size of
the `T` it was instantiated at.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on ccba469 (seed-driven): gate, uat, battery-checks rc=0 (457s).

@ehartford
ehartford marked this pull request as ready for review October 7, 2026 04:44
@ehartford
ehartford merged commit 2166323 into main Oct 7, 2026
@ehartford
ehartford deleted the law2-order branch October 7, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant