Skip to content

[Merged by Bors] - chore: remove @[expose] from meta definitions - #42318

Closed
JovanGerb wants to merge 4 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-meta-no_expose
Closed

JovanGerb wants to merge 4 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-meta-no_expose

Conversation

@JovanGerb

Copy link
Copy Markdown
Contributor

This PR removes @[expose] from sections where all definitions are meta definitions. (They might not be tagged meta explicitly, but they are meant only for execution and not for proving).


Open in Gitpod

@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

PR summary 4973801766

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 4973801).

  • +0 new declarations
  • −9 removed declarations
-CoreM.withImportModules.unsafe_impl_5
-Lean.Elab.InfoTree.findSomeM?.go
-Lean.Elab.collectTryThisSuggestions.go
-Lean.Meta.RefinedDiscrTree.format.go
-Lean.Meta.RefinedDiscrTree.keysAsPattern.go
-Lean.Meta.RefinedDiscrTree.keysAsPattern.mkApp
-Lean.Meta.RefinedDiscrTree.keysAsPattern.next
-Lean.Meta.RefinedDiscrTree.keysAsPattern.parenthesize
-Lean.Meta.kabstractPositions.visit

No changes to strong technical debt.

Decrease in weak tech debt: (relative, absolute) = (17.00, 0.00)
Current number Change Type (weak)
5033 -17 exposed public sections

Current commit 4973801766
Reference commit b9c78720b2

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.sh 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).

@grunweg grunweg added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Aug 4, 2026
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Aug 11, 2026

@joneugster joneugster left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, thanks

maintainer merge

@joneugster joneugster Sep 19, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to highlight for the maintainer that these two files stick out in the sense that they are not located in Mathlib.[Lean|Tactic]. Instead they have a block with a few meta def surrounded by other stuff (including actual API/theorems).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this one too)

@github-actions

Copy link
Copy Markdown

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

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

@bryangingechen bryangingechen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 19, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 19, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 19, 2026
This PR removes `@[expose]` from sections where all definitions are meta definitions. (They might not be tagged `meta` explicitly, but they are meant only for execution and not for proving).
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 19, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore: remove @[expose] from meta definitions [Merged by Bors] - chore: remove @[expose] from meta definitions Sep 19, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 19, 2026
ocfnash added a commit to ocfnash/mathlib4 that referenced this pull request Dec 2, 2026
- Regenerate `VecNotation.lean` as a pure move from `master`'s `Notation.lean`, restoring
  upstream changes that had been reverted (leanprover-community#44933, leanprover-community#43918, leanprover-community#44513, leanprover-community#43408, leanprover-community#42318); in
  particular `cons_transpose`, `head_transpose` and `tail_transpose` are no longer simp.
- Fix the `!![...]` delaborator for literals with more than 32 entries, whose list literals
  contain `let`s and are too deep to delaborate as `#[...]`: delaborate entries one at a
  time. Move `listLitElems?` to `Notation/Basic.lean` and reuse it in the tactic parser.
  Add a 6x6 delaborator test.
- Remove `@[simp]` from `transposeArray_size` and `submatrixArray_size` (simpNF).
- Drop `@[expose]` from `Notation.lean` and `Notation/Basic.lean`.
- Add the new modules to `Mathlib.lean`.
- Nits: avoid shadowing in `List.tendsto_getD`, split tactic one-liners, merge `simp` calls
  in `CanonicalEmbedding/Basic.lean`, simplify the `Modular.lean` literal products, and
  replace `simp? says` with `simp` in `MathlibTest/matrix.lean`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. ready-to-merge This PR has been sent to bors. tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants