Skip to content

Commit

Permalink
chore: set notation for Lean.HashSet (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Dec 14, 2023
1 parent 3bb8c37 commit 6b4cf96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Std/Lean/HashSet.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ Authors: Jannis Limperg
-/

import Lean.Data.HashSet
import Std.Classes.SetNotation

namespace Lean.HashSet

variable [BEq α] [Hashable α]

instance : Singleton α (HashSet α) := ⟨fun x => HashSet.empty.insert x⟩
instance : Insert α (HashSet α) := ⟨fun a s => s.insert a⟩

/--
`O(n)`. Returns `true` if `f` returns `true` for any element of the set.
-/
Expand Down

0 comments on commit 6b4cf96

Please sign in to comment.