blob: 370ce2bc4ea75f9e065a45262d1cc376ce13b9d9 [file]
/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Różowski
-/
module
prelude
public import Std.Data.DHashMap.DecidableEquiv
public import Std.Data.HashMap.Basic
public section
/-!
# Decidable equivalence for `HashMap`
-/
namespace Std.HashMap
instance {α : Type u} {β : Type v} [BEq α] [LawfulBEq α] [Hashable α] [BEq β] [LawfulBEq β] (m₁ m₂ : HashMap α β) : Decidable (m₁ ~m m₂) :=
decidable_of_iff _ ⟨fun h => ⟨h⟩, fun h => h.1⟩
end Std.HashMap