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

refactor: dependent fold for Fin #1074

Merged
merged 1 commit into from
Dec 12, 2024
Merged

refactor: dependent fold for Fin #1074

merged 1 commit into from
Dec 12, 2024

Conversation

fgdorais
Copy link
Collaborator

@fgdorais fgdorais commented Dec 6, 2024

Define dfoldl and dfoldr from their monadic versions to avoid code duplication. The cost is that they now require Type _ instead of Sort _. However, induction principles are already available to deal with Prop so there is no overall loss.

@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Dec 6, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 6, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@fgdorais fgdorais added the will-merge-soon PR will be merged soon. Any concerns should be raised quickly. label Dec 7, 2024
@quangvdao
Copy link
Contributor

Sorry for the wait! Looks good to me.

@fgdorais fgdorais added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 9e583ef Dec 12, 2024
4 checks passed
@github-actions github-actions bot removed the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib will-merge-soon PR will be merged soon. Any concerns should be raised quickly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants