Skip to content

Commit 61cb5fd

Browse files
grunwegmitchell-horner
authored andcommitted
feat: add ContMDiff.congr (leanprover-community#28527)
I wanted this lemma both while working on an early version of leanprover-community#28056 and while working on leanprover-community#23040: time to add it. Besides, it fills a natural API gap.
1 parent e11b572 commit 61cb5fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Mathlib/Geometry/Manifold/ContMDiff/Defs.lean

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,16 @@ theorem ContMDiffOn.congr_mono (hf : ContMDiffOn I I' n f s) (h₁ : ∀ y ∈ s
855855
(hs : s₁ ⊆ s) : ContMDiffOn I I' n f₁ s₁ :=
856856
(hf.mono hs).congr h₁
857857

858+
theorem ContMDiff.congr (h : ContMDiff I I' n f) (h₁ : ∀ y, f₁ y = f y) :
859+
ContMDiff I I' n f₁ := by
860+
rw [← contMDiffOn_univ] at h ⊢
861+
exact (contMDiffOn_congr fun y _ ↦ h₁ y).mpr h
862+
863+
theorem contMDiff_congr (h₁ : ∀ y, f₁ y = f y) :
864+
ContMDiff I I' n f₁ ↔ ContMDiff I I' n f := by
865+
simp_rw [← contMDiffOn_univ]
866+
exact contMDiffOn_congr fun y _ ↦ h₁ y
867+
858868
/-! ### Locality -/
859869

860870

0 commit comments

Comments
 (0)