Skip to content

refactor(Analysis/Calculus/TangentCone): generalize some lemmas to TVS - #29836

Closed
Komyyy wants to merge 3 commits into
leanprover-community:masterfrom
Komyyy:tangent_cone
Closed

Komyyy wants to merge 3 commits into
leanprover-community:masterfrom
Komyyy:tangent_cone

Conversation

@Komyyy

@Komyyy Komyyy commented Sep 20, 2025 •

Copy link
Copy Markdown
Contributor

We can avoid using the norm structure in the proof of tangentConeAt.lim_zero, so it and the lemmas based on it can be generalized to TVSs.


Open in Gitpod

We can avoid using the norm structure in the proof of `tangentConeAt.lim_zero`, so it and the lemmas based on it can be generalized to TVSs.
@github-actions github-actions Bot added the t-analysis Analysis (normed *, calculus) label Sep 20, 2025
@github-actions

github-actions Bot commented Sep 20, 2025 •

Copy link
Copy Markdown

PR summary 432a037a7f

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
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/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).

@Komyyy Komyyy changed the title refactor(Analysis/Calculus/TangengCone): generalize some lemmas to TVS refactor(Analysis/Calculus/TangentCone): generalize some lemmas to TVS Sep 20, 2025
Komyyy added a commit to Komyyy/mathlib4 that referenced this pull request Sep 20, 2025
…n't splitted correctly

In leanprover-community#29836, there are no declaration diffs, but CI shows declarations diff, because the scripts can't split `protected alias ⟨d1, d2⟩ := d` correctly.
This can be fixed by swapping scripts.
@Komyyy

Komyyy commented Sep 20, 2025 •

Copy link
Copy Markdown
Contributor Author

CI shows declarations diff (+ UniqueDiffWithinAt.closure) but there are no diffs. This bug is fixed in #29838.

Komyyy added a commit to Komyyy/mathlib4 that referenced this pull request Sep 20, 2025
…n't splitted correctly

In leanprover-community#29836, there are no declaration diffs, but CI shows declarations diff, because the scripts can't split `protected alias ⟨d1, d2⟩ := d` correctly.
This can be fixed by swapping scripts.
@eric-wieser

eric-wieser commented Sep 21, 2025 •

Copy link
Copy Markdown
Member

How does this compare to #29842 and #21065?

@eric-wieser

Copy link
Copy Markdown
Member

Comparing to #29842, this PR is almost identical, and that one seems to be very slightly more general in one or two places.

@Komyyy

Komyyy commented Sep 21, 2025

Copy link
Copy Markdown
Contributor Author

Probably #29842 will be merged earlier so I suggested generalizing the UniqueDiffWithinAt.closure at #29842.

mathlib-bors Bot pushed a commit that referenced this pull request Sep 21, 2025
…n't splitted correctly (#29838)

In #29836, there are no declaration diffs, but CI shows declarations diff, because the scripts can't split `protected alias ⟨d1, d2⟩ := d` correctly.
This can be fixed by swapping scripts.

Co-authored-by: Komyyy <[email protected]>
@adomani

adomani commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Would you mind testing that #29838 achieved the result of correctly interpreting the declaration diff? It should be enough to simply update in any way the PR, for instance merging master, although I think that any action that triggers the PR_summary bot would work, since it should be using the code on current master anyway.

@j-loreaux

Copy link
Copy Markdown
Contributor

The declarations diff issue is resolved, and the other PR has been sent to bors, so this PR is being closed.

@j-loreaux j-loreaux closed this Sep 30, 2025
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Oct 2, 2025
…n't splitted correctly (leanprover-community#29838)

In leanprover-community#29836, there are no declaration diffs, but CI shows declarations diff, because the scripts can't split `protected alias ⟨d1, d2⟩ := d` correctly.
This can be fixed by swapping scripts.

Co-authored-by: Komyyy <[email protected]>
zhuyizheng pushed a commit to zhuyizheng/mathlib4 that referenced this pull request Oct 2, 2025
…n't splitted correctly (leanprover-community#29838)

In leanprover-community#29836, there are no declaration diffs, but CI shows declarations diff, because the scripts can't split `protected alias ⟨d1, d2⟩ := d` correctly.
This can be fixed by swapping scripts.

Co-authored-by: Komyyy <[email protected]>
@Komyyy
Komyyy deleted the tangent_cone branch January 26, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants