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: add pp.fieldNotation.generalized for generalized field notation, add @[pp_nodot] attribute #3737

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Mar 22, 2024

Refactors app delaborator, merging in the projection delaborator, to support pretty printing with generalized field notation.

Renames option pp.structureProjections to pp.fieldNotation and adds sub-option pp.fieldNotation.generalized to enable/disable generalized field notation. Adds @[pp_nodot] attribute to permanently disable using field notation for a given declaration.

For now, the default value of pp.fieldNotation.generalized is false since we need a stage0 update to add @[pp_nodot] to some core definitions (such as List.toArray) before updating the tests.

Zulip discussion

…` attribute

Refactors app delaborator and merges in the projection delaborator to
support pretty printing with generalized field notation.

Renames option `pp.structureProjections` to `pp.fieldNotation` and
adds sub-option `pp.fieldNotation.generalized` to enable/disable generalized
field notation.
Sets the default value of `pp.fieldNotation.generalized` to false for now since we need a stage0 update first.

Adds `@[pp_nodot]` attribute to permanently disable using field
notation for a given declaration.
@kmill kmill requested a review from kim-em as a code owner March 22, 2024 08:29
@kmill kmill changed the title feat: pretty print using generalized field notation, add @[pp_nodot] attribute feat: add pp.fieldNotation.generalized for generalized field notation, add @[pp_nodot] attribute Mar 22, 2024
@kmill kmill enabled auto-merge March 22, 2024 08:47
@kmill kmill added this pull request to the merge queue Mar 22, 2024
@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 Mar 22, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std CI can not be attempted yet, as the nightly-testing-2024-03-22 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Std CI should run now. (2024-03-22 08:56:56)

Merged via the queue into leanprover:master with commit 1f4dea8 Mar 22, 2024
12 checks passed
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.

2 participants