Skip to content

chore(Geometry/Manifold): remove some @[expose] public section#39886

Open
grunweg wants to merge 5 commits into
leanprover-community:masterfrom
grunweg:diffgeo-expose-less
Open

chore(Geometry/Manifold): remove some @[expose] public section#39886
grunweg wants to merge 5 commits into
leanprover-community:masterfrom
grunweg:diffgeo-expose-less

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented May 26, 2026

Go through a few files and audit the exposed definitions there. Best reviewed commit by commit.


I'm happy to give more details on any file where desired.

Open in Gitpod

The two results of note are the final two theorems: everything else is auxiliary towards that.
We make the lemmas private, and hence do not need to expose the only (now-private) definition either.
@grunweg grunweg added t-differential-geometry Manifolds etc tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip labels May 26, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

PR summary 7cfa70637f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

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.


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

grunweg added 4 commits May 27, 2026 12:48
All definitions in this file are constructions of singular n-manifolds.
These really need their M field exposed (so we expose the entire definition).

This is analogous to category theory, where definitional equalities at the object
level are valuable.
There are just two definitions in this file; both have plenty of API. There does not seem to be a good reason to expose them
@grunweg grunweg force-pushed the diffgeo-expose-less branch from 7f2d3c0 to 7cfa706 Compare May 27, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-differential-geometry Manifolds etc tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants