Skip to content

Conversation

@jrr6
Copy link
Contributor

@jrr6 jrr6 commented Jun 6, 2025

This PR adds the pre-stage0-update infrastructure for error explanations. It adds the environment-extension machinery for registering and accessing explanations, and it provides a cursory parser that validates that the high-level structure of error explanations matches the prescribed format.

@jrr6 jrr6 requested a review from nomeata June 6, 2025 02:49
@jrr6 jrr6 added the changelog-no Do not include this PR in the release changelog label Jun 6, 2025
@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 Jun 6, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jun 6, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 6, 2025
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Jun 6, 2025

Mathlib CI status (docs):

  • ✅ Mathlib branch lean-pr-testing-8651 has successfully built against this PR. (2025-06-06 04:03:24) View Log
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase d50292d31b4c79e6d67d70a8872a1198423afde4 --onto 9b9dd8546a123d746580649b239f26c26d370d20. You can force Mathlib CI using the force-mathlib-ci label. (2025-06-06 21:34:03)

@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Jun 6, 2025
@jrr6 jrr6 added this pull request to the merge queue Jun 11, 2025
Merged via the queue into leanprover:master with commit 7bd82b1 Jun 11, 2025
14 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jun 18, 2025
This PR adds support for throwing named errors with associated error
explanations. In particular, it adds elaborators for the syntax defined
in #8649, which use the error-explanation infrastructure added in #8651.
This includes completions, hovers, and jump-to-definition for error
names.

Note that another stage0 rebuild will be required to define explanations
using `register_error_explanation`.

---------

Co-authored-by: Joachim Breitner <[email protected]>
Co-authored-by: Marc Huisinga <[email protected]>
algebraic-dev pushed a commit to algebraic-dev/lean4 that referenced this pull request Jun 18, 2025
This PR adds the pre-stage0-update infrastructure for error
explanations. It adds the environment-extension machinery for
registering and accessing explanations, and it provides a cursory parser
that validates that the high-level structure of error explanations
matches the prescribed format.

---------

Co-authored-by: Joachim Breitner <[email protected]>
algebraic-dev pushed a commit to algebraic-dev/lean4 that referenced this pull request Jun 18, 2025
…prover#8730)

This PR adds support for throwing named errors with associated error
explanations. In particular, it adds elaborators for the syntax defined
in leanprover#8649, which use the error-explanation infrastructure added in leanprover#8651.
This includes completions, hovers, and jump-to-definition for error
names.

Note that another stage0 rebuild will be required to define explanations
using `register_error_explanation`.

---------

Co-authored-by: Joachim Breitner <[email protected]>
Co-authored-by: Marc Huisinga <[email protected]>
wkrozowski pushed a commit to wkrozowski/lean4 that referenced this pull request Jun 24, 2025
This PR adds the pre-stage0-update infrastructure for error
explanations. It adds the environment-extension machinery for
registering and accessing explanations, and it provides a cursory parser
that validates that the high-level structure of error explanations
matches the prescribed format.

---------

Co-authored-by: Joachim Breitner <[email protected]>
wkrozowski pushed a commit to wkrozowski/lean4 that referenced this pull request Jun 24, 2025
…prover#8730)

This PR adds support for throwing named errors with associated error
explanations. In particular, it adds elaborators for the syntax defined
in leanprover#8649, which use the error-explanation infrastructure added in leanprover#8651.
This includes completions, hovers, and jump-to-definition for error
names.

Note that another stage0 rebuild will be required to define explanations
using `register_error_explanation`.

---------

Co-authored-by: Joachim Breitner <[email protected]>
Co-authored-by: Marc Huisinga <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-no Do not include this PR in the release changelog 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.

3 participants