Skip to content

dissolve: inline fold algebra scaffolding after #4736 generic instantiation - #4739

Merged
briansrls merged 2 commits into
mainfrom
session/silent-ant-90
Jun 12, 2026
Merged

briansrls merged 2 commits into
mainfrom
session/silent-ant-90

Conversation

@briansrls

@briansrls briansrls commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dissolves two 🟡 bootstrap-limitation marks whose dissolve-on (node://adhoc-f581ce40-042, landed via #4736) has fired. Inline named algebra step fns back into struct literals and delete the scaffolding (−28 net LOC).

  • 03_name_resolve.dag: named_exports_topdown_{init,child_context,step} inlined into named_exports_topdown_algebra() NodeFoldTopDown literal.
  • bounded_lattice_completeness.dag: infer_partial_bounded_lattice_instances_fold_{init,step} inlined into partial_bounded_lattice_instances_in_tree NodeFold literal. Dissolve-on condition (b) verified: List<Node> from [] / [n0] in anonymous init body type-checks inline. Step uses fold_list_right (substrate equivalent to builtin fold+list_snoc_item; builtin fold is not in scope inside nested struct-literal lambdas).

Mechanical refactor only — no behavior change.

Test plan

  • cargo test -p v2-compiler-tests generic_instantiation — 5 passed (incl. v4_name_resolve_compiles_with_fold_list_dissolution, v4_nodefold_topdown_inline_algebra_compiles_and_runs)
  • Local ci_floor_emit probe (v4-m1-rust-emit-probe.sh) — 474 files emitted, 0 diagnostics
  • CI green on PR (incl. ci_floor_emit, v4_lens_gate, v4_lens_ci)

@briansrls
briansrls marked this pull request as ready for review June 12, 2026 15:38
@briansrls briansrls changed the title Dissolve 🟡 bootstrap-limitation scaffolding citing node://adhoc-f581ce40-042 (landed via gunbc#4736): inline named algebra fns back into struct literals in 03_name_resolve.dag:370 + bounded_lattice_completeness.dag:220 — verify each mark's dissolve-on condition actually holds first dissolve: inline fold algebra scaffolding after #4736 generic instantiation Jun 12, 2026
@briansrls
briansrls merged commit 7a5daec into main Jun 12, 2026
24 checks passed
@briansrls
briansrls deleted the session/silent-ant-90 branch June 12, 2026 16:08
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