We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0ace9d + 3875bc9 commit ea5ca4eCopy full SHA for ea5ca4e
1 file changed
Cslib/Foundations/Data/FinFun.lean
@@ -133,6 +133,14 @@ theorem fromFun_comm [Zero β] [DecidableEq α]
133
(f ↾₀ support1) ↾₀ support2 = (f ↾₀ support2) ↾₀ support1 := by
134
grind only [= coe_eq_fn, = fromFun_fn, ←= ext]
135
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
+
144
end FinFun
145
146
end Cslib
0 commit comments