Skip to content

Commit ea5ca4e

Browse files
Merge main into nightly-testing
2 parents c0ace9d + 3875bc9 commit ea5ca4e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Cslib/Foundations/Data/FinFun.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ theorem fromFun_comm [Zero β] [DecidableEq α]
133133
(f ↾₀ support1) ↾₀ support2 = (f ↾₀ support2) ↾₀ support1 := by
134134
grind only [= coe_eq_fn, = fromFun_fn, ←= ext]
135135

136+
/-- Decidable equality -/
137+
instance instDecidableEq [Zero β] [DecidableEq α] [DecidableEq β] : DecidableEq (α →₀ β) :=
138+
fun f g =>
139+
if h : ∀ a ∈ f.support ∪ g.support, f a = g a then
140+
isTrue <| ext fun a => by grind
141+
else
142+
isFalse <| by grind
143+
136144
end FinFun
137145

138146
end Cslib

0 commit comments

Comments
 (0)