Skip to content

Guard restored nested recursor field counts (upstream nanoda_lib #63) - #120

Draft
heathsanchez wants to merge 4 commits into
flashfrom
research/flash-nested-field-count-20261104
Draft

heathsanchez wants to merge 4 commits into
flashfrom
research/flash-nested-field-count-20261104

Conversation

@heathsanchez

Copy link
Copy Markdown
Collaborator

Bounded soundness repair (draft; qualification pending)

The current published Flash kernel checks the reconstructed nested recursor's rule expression but does not compare the exported ctor_telescope_size_wo_params with the independently reconstructed count. That count determines which constructor arguments iota-reduction consumes.

This branch adds the precise invariant already fixed in upstream ammkrn/nanoda_lib PR #63, with attribution in source. It targets the Arena's bugs/nested-rec-rule-nfields incorrect acceptance. No broader soundness/completeness result is claimed.

The included Actions test builds the exact published Flash commit 78c7502bac8a5ba000057b3f083bc0595ac65750 and the patched candidate under matched Rust flags; runs the downloadable official Arena small-case suite; requires before ACCEPT → after REJECT for the target and unchanged exit codes for all other tested, non-performance cases. It preserves the input archive SHA, binary SHAs, and a case-by-case artifact even when a control fails. Full Mathlib and heavy performance tests are outside this gate and must be qualified separately.

Please keep this PR draft until its paired regression and subsequent performance/completeness checks are reviewed.

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