Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method 'genSizedList' to class Foldy #4827

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

TimSheard
Copy link
Contributor

@TimSheard TimSheard commented Jan 9, 2025

Extends the Foldy class with a new method genSized list.
Removed many redundant constraints in Constrained.Base.hs
This allows one to solve constraints like

sum3 = constrained $ \ [var|xs|] -> [sum_ xs ==. lit 6 + lit 9 + lit 5, sizeOf_ xs ==. 5]  

Where a list that is being summed, can also have its size constrained.

Checklist

  • Commits in meaningful sequence and with useful messages
  • Tests added or updated when needed
  • CHANGELOG.md files updated for packages with externally visible changes

    New section is never added with the code changes. (See RELEASING.md)
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary

    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Code formatted (use scripts/fourmolize.sh)
  • Cabal files formatted (use scripts/cabal-format.sh)
  • hie.yaml updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@TimSheard TimSheard force-pushed the ts-genSizedList branch 2 times, most recently from dfa7443 to f5cd1a4 Compare January 10, 2025 16:21
Defined pickAll the basis of sums with fixed length.
Added getSizedList as a method of the Foldy class
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