Skip to content

Commit

Permalink
feat(data/pi): bit[01]_apply simp lemmas (#11086)
Browse files Browse the repository at this point in the history
  • Loading branch information
pechersky committed Dec 28, 2021
1 parent 94bb466 commit f452b38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/pi.lean
Expand Up @@ -55,6 +55,10 @@ instance has_mul [∀ i, has_mul $ f i] :
@[to_additive] lemma mul_comp [has_mul γ] (x y : β → γ) (z : α → β) :
(x * y) ∘ z = x ∘ z * y ∘ z := rfl

@[simp] lemma bit0_apply [Π i, has_add $ f i] : (bit0 x) i = bit0 (x i) := rfl

@[simp] lemma bit1_apply [Π i, has_add $ f i] [Π i, has_one $ f i] : (bit1 x) i = bit1 (x i) := rfl

@[to_additive] instance has_inv [∀ i, has_inv $ f i] :
has_inv (Π i : I, f i) :=
⟨λ f i, (f i)⁻¹⟩
Expand Down

0 comments on commit f452b38

Please sign in to comment.