Skip to content

feat: custom elaborators for TangentSpace and tangentMap(Within)#36155

Open
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:tangentspace-elaborators
Open

feat: custom elaborators for TangentSpace and tangentMap(Within)#36155
grunweg wants to merge 4 commits intoleanprover-community:masterfrom
grunweg:tangentspace-elaborators

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Mar 4, 2026


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

PR summary f3179c596d

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/pr_summary/declarations_diff.sh <optional_commit>

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

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


No changes to technical debt.

You can run this locally as

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

@github-actions github-actions bot added the t-differential-geometry Manifolds etc label Mar 4, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 6, 2026
@mathlib-merge-conflicts
Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@grunweg grunweg force-pushed the tangentspace-elaborators branch from 7e6190d to ca1ba65 Compare March 7, 2026 12:46
@grunweg grunweg removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 7, 2026
@grunweg grunweg changed the title feat: custom elaborators for TangentSpace, tangentMap and tangentMapW… feat: custom elaborators for TangentSpace and tangentMap(Within) Mar 7, 2026
@sgouezel sgouezel removed their assignment Mar 31, 2026
Copy link
Copy Markdown
Contributor

@ocfnash ocfnash left a comment

Choose a reason for hiding this comment

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

Modulo ~15 lines of meta code and a question about tests this is all fine.

We'll need to find another reviewer for the meta code though.

let (srcI, tgtI) ← findModels ef none
mkAppM ``tangentMap #[srcI, tgtI, ef]

-- TODO: add tests for the three elaborators above!
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.

A comment of the form "TODO add tests" sets off alarm bells for me but maybe this is OK. Do we have tests for other elaborators?

Copy link
Copy Markdown
Contributor Author

@grunweg grunweg Apr 1, 2026

Choose a reason for hiding this comment

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

All the other elaborators (and the underlying mechanism) are very well-tested, so I'm not worried about correctness here. I'm happy to add tests also. I guess Thomas or Patrick might be suitable reviewers for the meta-code. (The implementation is very analogous to the other elaborators.)

@ocfnash ocfnash removed their assignment Apr 1, 2026
@ocfnash ocfnash added the t-meta Tactics, attributes or user commands label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-differential-geometry Manifolds etc t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants