Skip to content

Commit c7bb793

Browse files
grunwegthorimurpre-commit-ci-lite[bot]
committed
feat: custom elaborators for differential geometry (#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 #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 d9328bf commit c7bb793

4 files changed

Lines changed: 1509 additions & 2 deletions

File tree

Mathlib.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,6 +3936,7 @@ import Mathlib.Geometry.Manifold.MFDeriv.SpecificFunctions
39363936
import Mathlib.Geometry.Manifold.MFDeriv.Tangent
39373937
import Mathlib.Geometry.Manifold.MFDeriv.UniqueDifferential
39383938
import Mathlib.Geometry.Manifold.Metrizable
3939+
import Mathlib.Geometry.Manifold.Notation
39393940
import Mathlib.Geometry.Manifold.PartitionOfUnity
39403941
import Mathlib.Geometry.Manifold.PoincareConjecture
39413942
import Mathlib.Geometry.Manifold.Riemannian.Basic

0 commit comments

Comments
 (0)