Skip to content

v2 resolve/infer: payload-binder facts and untyped lambda arguments (re-derives N7) - #13698

Merged
gunbai-bot[bot] merged 2 commits into
mainfrom
session/royal-wren-535
Oct 11, 2026
Merged

gunbai-bot[bot] merged 2 commits into
mainfrom
session/royal-wren-535

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Re-derives N7 on current main (not a rebase of #13558 / #13623, which are history only), plus rule A' and the empty-fold check.

What changed (src/v2/compiler)

  • 03_resolve: a payload binder whose variant field is typed by the declaring type's formal is recorded as owed (LexicalBinderStanding: Declared / Valued / OwedFormal / Untyped); the resolve-time refusal resolve_reason_pattern_payload_formal_uninstantiated is gone.
  • 04_infer: the owed binder is paid at arm entry from the scrutinee's instantiated arguments, read through transparent aliases (List<T> = FreeMonoid<T>), instantiating the field type itself.
  • Three defects found on the chain, each fixed at its own boundary: the caller-admission wall judged a generic type instantiation as a call (callee_unreadable, also on main); match arms were compared without alias normalization; coproduct reading did not unfold the scrutinee alias.

Decisions (recorded in recurring_failure_mode/payload_binder_refused_at_resolve_instead_of_owed_to_infer)

Receipts (claim_batch on a seed built from this head): infer_payload_binder_test 11/11, variant_field_infer_probe 13/13, parameter_reference 14/14, binder_admission pair 2+9, infer_fold_member_instance 6/6, caller_admission_native_wall 9/9. Instruments run in my container (srv1 ssh denied; no systemd-run there either, container cap is 24 GiB): gunbc test //gunbc/instruments:self-host exit 0, //gunbc/instruments:v2-native-cli exit 0.

🤖 Generated with Claude Code

Brian Searls and others added 2 commits October 10, 2026 20:04
…rm entry; wall no longer judges type instantiations; arms compared alias-normalized (re-derives N7: #13558, #13623; rule A' #13265, empty fold #13475)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gunbai-bot
gunbai-bot Bot merged commit a9be5ef into main Oct 11, 2026
1 check passed
@gunbai-bot
gunbai-bot Bot deleted the session/royal-wren-535 branch October 11, 2026 00:02
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.

0 participants