Skip to content

refactor: generalize setInlineAttribute from MetaM to CoreM#13328

Open
MavenRain wants to merge 1 commit intoleanprover:masterfrom
MavenRain:refactor/setInlineAttribute-CoreM
Open

refactor: generalize setInlineAttribute from MetaM to CoreM#13328
MavenRain wants to merge 1 commit intoleanprover:masterfrom
MavenRain:refactor/setInlineAttribute-CoreM

Conversation

@MavenRain
Copy link
Copy Markdown

This PR changes the type of Lean.Meta.setInlineAttribute from MetaM Unit to CoreM Unit. The function body only uses getEnv, setEnv, and throwError, all of which are available in CoreM. All existing call sites are in MetaM or monads lifting from it, so no call-site changes are needed.

Closes #4965

  This PR changes the type of `Lean.Meta.setInlineAttribute` from
  `MetaM Unit` to `CoreM Unit`. The function body only uses `getEnv`,
  `setEnv`, and `throwError`, all of which are available in `CoreM`.
  All existing call sites are in `MetaM` or monads lifting from it,
  so no call-site changes are needed.

  Closes leanprover#4965
@MavenRain MavenRain changed the title refactor: generalize setInlineAttribute from MetaM to CoreM refactor: generalize setInlineAttribute from MetaM to CoreM Apr 8, 2026
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Apr 8, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e44351add937efe4d286669ccd4c33023ca2e60e --onto 4f6bcc5adac8d6234a9e3def3675402cb89823c6. You can force Mathlib CI using the force-mathlib-ci label. (2026-04-08 13:47:02)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase e44351add937efe4d286669ccd4c33023ca2e60e --onto 861bc19e0c1c45b5766cc5c9ef0488568368b236. You can force reference manual CI using the force-manual-ci label. (2026-04-08 13:47:04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: make Lean.Meta.setInlineAttribute a CoreM Unit

2 participants