Skip to content

Dreamcoder lilo fixed - #374

Open
kavigupta wants to merge 4 commits into
dreamcoder-lilofrom
dreamcoder-lilo-fixed
Open

Dreamcoder lilo fixed#374
kavigupta wants to merge 4 commits into
dreamcoder-lilofrom
dreamcoder-lilo-fixed

Conversation

@kavigupta

Copy link
Copy Markdown
Owner

No description provided.

kavigupta and others added 4 commits July 22, 2026 14:53
Replace the hand-rolled abstraction parser in dreamcoder/enumeration.py with
neurosym.compression.process_abstraction.abstraction_production_from_dreamcoder,
which uses stitch_core's canonical conversion (correct de Bruijn remapping of
#-parameters vs inner-lambda vars), maps inner lambdas to the DSL's single-arg
lambda production, and types the body via compute_type_abs. Unrepresentable
abstractions (higher-order parameter application, unknown primitive, failed
unification) return None and are skipped.

Also pass no_curried_metavars/no_curried_bodies to stitch so higher-order
abstractions NeuroSym cannot represent are never generated, and add
repro_enum_abstraction.py, a fast harness that replays the per-task abstraction
conversion without running enumeration/recognition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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