Skip to content

chore: make trivial definitions unfold#525

Merged
chenson2018 merged 2 commits into
leanprover:mainfrom
eric-wieser:effects-abbrev
Apr 30, 2026
Merged

chore: make trivial definitions unfold#525
chenson2018 merged 2 commits into
leanprover:mainfrom
eric-wieser:effects-abbrev

Conversation

@eric-wieser
Copy link
Copy Markdown
Collaborator

@eric-wieser eric-wieser commented Apr 27, 2026

This changes function like toStateM to be abbrevs since they are only a shorthand for liftM stateInterp. It also marks stateInterp and similar as @[simp], since we want these to reduce when applied to a concrete query.

This also fixes contInterp to include the missing cast functions, so that the simp equation lemma is not ill-formed.

Split from #417, to minimize distractions from the actual change in that PR.

This changes function like `toStateM` to be `abbrev`s since they are only a shorthand for `liftM stateInterp`.
It also marks `stateInterp` and similar as `@[simp]`, since we want these to reduce when applied to a concrete query.
@chenson2018 chenson2018 added this pull request to the merge queue Apr 30, 2026
Merged via the queue into leanprover:main with commit fd066e6 Apr 30, 2026
3 checks passed
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