Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
287c2e2d01 chore: grind attributes for Prod 2025-11-05 04:30:05 +01:00
2 changed files with 4 additions and 0 deletions

View File

@@ -1468,6 +1468,8 @@ def Prod.map {α₁ : Type u₁} {α₂ : Type u₂} {β₁ : Type v₁} {β₂
@[simp] theorem Prod.map_apply (f : α β) (g : γ δ) (x) (y) :
Prod.map f g (x, y) = (f x, g y) := rfl
-- We add `@[grind =]` to these in `Init.Data.Prod`.
@[simp] theorem Prod.map_fst (f : α β) (g : γ δ) (x) : (Prod.map f g x).1 = f x.1 := rfl
@[simp] theorem Prod.map_snd (f : α β) (g : γ δ) (x) : (Prod.map f g x).2 = g x.2 := rfl

View File

@@ -12,6 +12,8 @@ public section
namespace Prod
attribute [grind =] Prod.map_fst Prod.map_snd
instance [BEq α] [BEq β] [ReflBEq α] [ReflBEq β] : ReflBEq (α × β) where
rfl {a} := by cases a; simp [BEq.beq]