Skip to content

Commit 5bea431

Browse files
grunweggaetanserre
authored andcommitted
chore: mark coordinateChange_apply_snd simp (leanprover-community#37536)
1 parent c8d788b commit 5bea431

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

Mathlib/Geometry/Manifold/VectorBundle/Basic.lean

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,9 @@ theorem ContMDiffWithinAt.change_section_trivialization {f : M → TotalSpace F
405405
(he : f x ∈ e.source) (he' : f x ∈ e'.source) :
406406
ContMDiffWithinAt IM 𝓘(𝕜, F) n (fun y ↦ (e' (f y)).2) s x := by
407407
rw [Trivialization.mem_source] at he he'
408-
refine (hp.coordChange hf he he').congr_of_eventuallyEq ?_ ?_
409-
· filter_upwards [hp.continuousWithinAt (e.open_baseSet.mem_nhds he)] with y hy
410-
rw [Function.comp_apply, e.coordChange_apply_snd _ hy]
411-
· rw [Function.comp_apply, e.coordChange_apply_snd _ he]
408+
refine (hp.coordChange hf he he').congr_of_eventuallyEq ?_ (by simp [he])
409+
filter_upwards [hp.continuousWithinAt (e.open_baseSet.mem_nhds he)] with y hy
410+
simp_all
412411

413412
theorem Bundle.Trivialization.contMDiffWithinAt_snd_comp_iff₂ {f : M → TotalSpace F E}
414413
(hp : ContMDiffWithinAt IM IB n (π F E ∘ f) s x)

Mathlib/Geometry/Manifold/VectorBundle/MDifferentiable.lean

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,9 @@ lemma MDifferentiableWithinAt.change_section_trivialization
212212
(he : f x₀ ∈ e.source) (he' : f x₀ ∈ e'.source) :
213213
MDiffAt[s] (fun x ↦ (e' (f x)).2) x₀ := by
214214
rw [Trivialization.mem_source] at he he'
215-
refine (hf.coordChange he'f he he').congr_of_eventuallyEq ?_ ?_
216-
· filter_upwards [hf.continuousWithinAt (e.open_baseSet.mem_nhds he)] with y hy
217-
rw [Function.comp_apply, e.coordChange_apply_snd e' hy]
218-
· rw [Function.comp_apply, e.coordChange_apply_snd _ he]
215+
refine (hf.coordChange he'f he he').congr_of_eventuallyEq ?_ (by simp [he])
216+
filter_upwards [hf.continuousWithinAt (e.open_baseSet.mem_nhds he)] with y hy
217+
simp_all
219218

220219
namespace Bundle.Trivialization
221220

Mathlib/Topology/FiberBundle/Trivialization.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ theorem mk_coordChange (e₁ e₂ : Trivialization F proj) {b : B} (h₁ : b ∈
748748
· rwa [e₁.proj_symm_apply' h₁]
749749
· rwa [e₁.proj_symm_apply' h₁]
750750

751+
@[simp]
751752
theorem coordChange_apply_snd (e₁ e₂ : Trivialization F proj) {p : Z} (h : proj p ∈ e₁.baseSet) :
752753
e₁.coordChange e₂ (proj p) (e₁ p).snd = (e₂ p).snd := by
753754
rw [coordChange, e₁.symm_apply_mk_proj (e₁.mem_source.2 h)]
@@ -911,7 +912,7 @@ noncomputable def piecewiseLe [LinearOrder B] [OrderTopology B] (e e' : Triviali
911912
rintro p rfl
912913
ext1
913914
· simp [*]
914-
· simp [coordChange_apply_snd, *]
915+
· simp [*]
915916

916917
open Classical in
917918
/-- Given two bundle trivializations `e`, `e'` over disjoint sets, `e.disjoint_union e' H` is the

0 commit comments

Comments
 (0)