Commit 90acbc2
feat: custom elaborators for differential geometry (leanprover-community#27021)
Add two sets of custom elaborators for differential geometry, to
- infer the model with corners in `MDifferentiable{WithinAt,At,On}` or `ContMDiff{WithinAt,At,On}` expressions from the local context, and provide shorter notation in that setting
- do the same for mfderiv: `mfderiv% f` is shorthand for `mfderiv I J f`; `mfderiv[s] f x` is short for `mfderivWithin I J f s`
- convert a fibre bundle section from a dependent section to a function into the total space, making working with differentiability of sections of fibre bundles less cumbersome
This was [discussed on zulip](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Differential.20geometry.20elaborators.20experiment/with/528035295), to overall broad consensus.
This code has substantial tests (which have caught bugs in the past). It has also been tested in the branch in leanprover-community#26221 (uncovering minor issues, but not substantial ones
Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>
Co-authored-by: thorimur <thomasmurrills@gmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>1 parent c45e77d commit 90acbc2
4 files changed
Lines changed: 1509 additions & 2 deletions
File tree
- MathlibTest/DifferentialGeometry
- Mathlib/Geometry/Manifold
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3936 | 3936 | | |
3937 | 3937 | | |
3938 | 3938 | | |
| 3939 | + | |
3939 | 3940 | | |
3940 | 3941 | | |
3941 | 3942 | | |
| |||
0 commit comments