Skip to content

fix: add grind annotations and a lemma#435

Open
Shreyas4991 wants to merge 4 commits intoleanprover:mainfrom
Shreyas4991:freem-improvements
Open

fix: add grind annotations and a lemma#435
Shreyas4991 wants to merge 4 commits intoleanprover:mainfrom
Shreyas4991:freem-improvements

Conversation

@Shreyas4991
Copy link
Contributor

@Shreyas4991 Shreyas4991 commented Mar 17, 2026

This PR adds some useful grind annotations and a lemma for FreeM.lift. The contents come from the review of and improvements to #372 but are of independent utility by Eric Wieser

@Shreyas4991 Shreyas4991 marked this pull request as ready for review March 17, 2026 17:29
@Shreyas4991 Shreyas4991 changed the title fix: add grind annotations and coe instance fix: add grind annotations and a lemma Mar 17, 2026
Comment on lines +160 to +162
@[simp, grind =]
lemma pure_bind' {α β} (a : α) (f : α → FreeM F β) : (.pure a : FreeM F α) >>= f = f a :=
pure_bind a f
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe @kim-em can comment on why the simpNF linter does not reject this due to bind_eq_bind simplifying the LHS?

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.

2 participants