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

feat: @[app_delab] #4976

Merged
merged 1 commit into from
Aug 10, 2024
Merged

feat: @[app_delab] #4976

merged 1 commit into from
Aug 10, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Aug 9, 2024

Adds @[app_delab ident] as a macro for @[delab app.ident]. Resolves the identifier when expanding the macro, saving needing to use the fully qualified identifiers that @[delab] requires. Also, unlike @[delab], throws an error if the identifier cannot be resolved.

Closes #4899

Adds `@[app_delab ident]` as a macro for `@[delab app.ident]`. Resolves the identifier when expanding the macro, saving needing to use fully qualified identifiers with `@[delab]`. Also, unlike `@[delab]`, throws an error if the identifier cannot be resolved.

Closes leanprover#4899
@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 Aug 9, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 30a52b794a39256361050c52fe0e41bbff91bc8d --onto dd6ed124baef64a26ef5860f49597fdcef371239. (2024-08-09 18:09:12)

@kmill kmill added this pull request to the merge queue Aug 10, 2024
Merged via the queue into leanprover:master with commit 5f31e93 Aug 10, 2024
12 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Aug 12, 2024
#4976 moved resolution of a promise to an earlier point, but that led to
object being marked MT earlier, so we need to move the code that
minimizes those objects earlier too to revert the performance
regression.
github-merge-queue bot pushed a commit that referenced this pull request Aug 14, 2024
In #4976, I forgot that we do need info trees eventually on the cmdline
for .ilean generation. Unfortunately, not reporting them incrementally
would require an API change, so let's see what the impact of incremental
reporting is
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 28, 2024
This has the same behavior as `delab app.`, but protects against typos.

The feature appeared in leanprover/lean4#4976, though won't be documented until leanprover/lean4#6450.
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 the delab attribute resolve the name
2 participants