Skip to content

Commit

Permalink
fix: add DecidableEq to two lemmas (#11376)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpvandoorn committed Mar 14, 2024
1 parent 415f214 commit 0c4d96e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Mathlib/Analysis/Calculus/ContDiff/Basic.lean
Expand Up @@ -1230,7 +1230,8 @@ theorem contDiff_pi : ContDiff π•œ n Ξ¦ ↔ βˆ€ i, ContDiff π•œ n fun x => Ξ¦
simp only [← contDiffOn_univ, contDiffOn_pi]
#align cont_diff_pi contDiff_pi

theorem contDiff_update (k : β„•βˆž) (x : βˆ€ i, F' i) (i : ΞΉ) : ContDiff π•œ k (update x i) := by
theorem contDiff_update [DecidableEq ΞΉ] (k : β„•βˆž) (x : βˆ€ i, F' i) (i : ΞΉ) :
ContDiff π•œ k (update x i) := by
rw [contDiff_pi]
intro j
dsimp [Function.update]
Expand All @@ -1240,7 +1241,8 @@ theorem contDiff_update (k : β„•βˆž) (x : βˆ€ i, F' i) (i : ΞΉ) : ContDiff π•œ
Β· exact contDiff_const

variable (F') in
theorem contDiff_single (k : β„•βˆž) (i : ΞΉ) : ContDiff π•œ k (Pi.single i : F' i β†’ βˆ€ i, F' i) :=
theorem contDiff_single [DecidableEq ΞΉ] (k : β„•βˆž) (i : ΞΉ) :
ContDiff π•œ k (Pi.single i : F' i β†’ βˆ€ i, F' i) :=
contDiff_update k 0 i

variable (π•œ E)
Expand Down

0 comments on commit 0c4d96e

Please sign in to comment.