Skip to content

[Merged by Bors] - chore: fix uses of notation3 - #45041

Closed
YaelDillies wants to merge 1 commit into
leanprover-community:masterfrom
YaelDillies:fix_notation3_uses
Closed

YaelDillies wants to merge 1 commit into
leanprover-community:masterfrom
YaelDillies:fix_notation3_uses

Conversation

@YaelDillies

Copy link
Copy Markdown
Contributor

notation3 currently has a (prettyPrint := false) flag when a delaborator cannot/shouldn't be generated. Only three notations in mathlib use this flag, namely average notation ⨍⁻ x in s, f, lexicographic pi type notation Πₗ (i : ℕ), β i, and cycle notation c[...]. The first two couldn't have a delaborator generated due to errors in the provided expansion. I have fixed them and removed the flag. The last one cannot have a a delaborator generated due to the use of by decide in the expansion. I am not touching this one as notation3 could reasonably be fixed to generate a delaborator in this case too.


`notation3` currently has a `(prettyPrint := false)` flag when a delaborator cannot/shouldn't be generated. Only three notations in mathlib use this flag, namely average notation `⨍⁻ x in s, f`, lexicographic pi type notation `Πₗ (i : ℕ), β i`, and cycle notation `c[...]`. The first two couldn't have a delaborator generated due to errors in the provided expansion. I have fixed them and removed the flag. The last one cannot have a a delaborator generated due to the use of `by decide` in the expansion. I am not touching this one as `notation3` could reasonably be fixed to generate a delaborator in this case too.
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

PR summary bfa5ba00bd

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit bfa5ba0).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit bfa5ba00bd
Reference commit bdece672cb

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@YaelDillies
YaelDillies requested a review from grunweg October 19, 2026 14:04
@YaelDillies YaelDillies added the easy < 20s of review time. See the lifecycle page for guidelines. label Oct 19, 2026
@grunweg

grunweg commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!
maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 19, 2026
@ocfnash

ocfnash commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Oct 19, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 19, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 19, 2026
`notation3` currently has a `(prettyPrint := false)` flag when a delaborator cannot/shouldn't be generated. Only three notations in mathlib use this flag, namely average notation `⨍⁻ x in s, f`, lexicographic pi type notation `Πₗ (i : ℕ), β i`, and cycle notation `c[...]`. The first two couldn't have a delaborator generated due to errors in the provided expansion. I have fixed them and removed the flag. The last one cannot have a a delaborator generated due to the use of `by decide` in the expansion. I am not touching this one as `notation3` could reasonably be fixed to generate a delaborator in this case too.
@mathlib-bors mathlib-bors Bot added bors-staging This PR is currently being built by bors on the staging branch. awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Oct 19, 2026
@mathlib-bors

mathlib-bors Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Build failed:

Fix if necessary, and then someone with permission can run bors r+ or bors retry.

@mathlib-bors mathlib-bors Bot removed ready-to-merge This PR has been sent to bors. bors-staging This PR is currently being built by bors on the staging branch. labels Oct 19, 2026
@bryangingechen

Copy link
Copy Markdown
Contributor

bors r+

@mathlib-bors mathlib-bors Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Oct 20, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 20, 2026
`notation3` currently has a `(prettyPrint := false)` flag when a delaborator cannot/shouldn't be generated. Only three notations in mathlib use this flag, namely average notation `⨍⁻ x in s, f`, lexicographic pi type notation `Πₗ (i : ℕ), β i`, and cycle notation `c[...]`. The first two couldn't have a delaborator generated due to errors in the provided expansion. I have fixed them and removed the flag. The last one cannot have a a delaborator generated due to the use of `by decide` in the expansion. I am not touching this one as `notation3` could reasonably be fixed to generate a delaborator in this case too.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Oct 20, 2026
@mathlib-bors

mathlib-bors Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore: fix uses of notation3 [Merged by Bors] - chore: fix uses of notation3 Oct 20, 2026
@mathlib-bors mathlib-bors Bot closed this Oct 20, 2026
@YaelDillies
YaelDillies deleted the fix_notation3_uses branch October 20, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants