Skip to content

Commit 33f160f

Browse files
committed
refactor(Analysis): golf Mathlib/Analysis/Analytic/IteratedFDeriv (#38435)
- simplifies the surjectivity step in `ContinuousMultilinearMap.iteratedFDeriv_comp_diagonal` by using `σ.equivOfFiniteSelfEmbedding.surjective` - shortens the concluding `simp` step by folding `g` into the final simplification call Extracted from #37968 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 33bc784 commit 33f160f

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

Mathlib/Analysis/Analytic/IteratedFDeriv.lean

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,8 @@ lemma ContinuousMultilinearMap.iteratedFDeriv_comp_diagonal
127127
rw [← sum_comp (Equiv.embeddingEquivOfFinite (Fin n))]
128128
congr with σ
129129
congr with i
130-
have A : ∃ y, σ y = i := by
131-
have : Function.Bijective σ := (Fintype.bijective_iff_injective_and_card _).2 ⟨σ.injective, rfl⟩
132-
exact this.surjective i
133-
rcases A with ⟨y, rfl⟩
134-
simp only [EmbeddingLike.apply_eq_iff_eq, exists_eq, ↓reduceDIte,
135-
Function.Embedding.toEquivRange_symm_apply_self, ContinuousLinearMap.coe_pi',
136-
ContinuousLinearMap.coe_id', id_eq, g]
137-
congr 1
138-
symm
139-
simp [inv_apply, Perm.inv_def,
140-
ofBijective_symm_apply_apply, Function.Embedding.equivOfFiniteSelfEmbedding]
130+
obtain ⟨y, rfl⟩ := σ.equivOfFiniteSelfEmbedding.surjective i
131+
simp [Function.Embedding.equivOfFiniteSelfEmbedding, g]
141132

142133
private lemma HasFPowerSeriesWithinOnBall.iteratedFDerivWithin_eq_sum_of_subset
143134
(h : HasFPowerSeriesWithinOnBall f p s x r) (h' : AnalyticOn 𝕜 f s)

0 commit comments

Comments
 (0)