Skip to content

Commit

Permalink
refactor(algebra/periodic): weaken another antiperiodic typeclass a…
Browse files Browse the repository at this point in the history
…ssumption (#15961)

Followup to #15941 and #15782, weakening the typeclass assumption on
the codomain of the antiperiodic function in `antiperiodic.const_sub`
(added by #15782) in the same way as done for other lemmas in #15941.
  • Loading branch information
jsm28 committed Aug 9, 2022
1 parent 5e0a5bc commit 59eef0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/algebra/periodic.lean
Expand Up @@ -456,7 +456,8 @@ lemma antiperiodic.add_const [add_comm_semigroup α] [has_neg β] (h : antiperio
antiperiodic (λ x, f (x + a)) c :=
λ x, by simpa [add_assoc x c a, add_comm c, ←add_assoc x a c] using h (x + a)

lemma antiperiodic.const_sub [add_comm_group α] [add_group β] (h : antiperiodic f c) (a : α) :
lemma antiperiodic.const_sub [add_comm_group α] [has_involutive_neg β] (h : antiperiodic f c)
(a : α) :
antiperiodic (λ x, f (a - x)) c :=
begin
rw [←neg_neg c],
Expand Down

0 comments on commit 59eef0a

Please sign in to comment.