Skip to content

Commit a83fa87

Browse files
committed
feat: add ContMDiff.congr
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 218e764 commit a83fa87

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Mathlib/Geometry/Manifold/ContMDiff/Defs.lean

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

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

861871

0 commit comments

Comments
 (0)