Decidable membership and hashing for Int64Array #
Decidable membership, slice hashing and the lawful BEq and Hashable
instances on slices. Left out of the float types, which have no DecidableEq.
@[implemented_by _private.ScalarArray.Int64.Decidable.0.ScalarArray.Int64Array.decMemImpl]
Decides membership with contains. Logically it decides membership in a.toList, so that decide
can evaluate it.
Equations
- ScalarArray.Int64Array.decMem x a = decidable_of_iff (x ∈ a.toList) ⋯
Instances For
@[instance_reducible]
Equations
@[simp]
@[implemented_by _private.ScalarArray.Int64.Decidable.0.ScalarArray.Int64Array.Slice.decMemImpl]
Decides membership with contains. Logically it decides membership in s.copy.toList, so that
decide can evaluate it.
Equations
- ScalarArray.Int64Array.Slice.decMem x s = decidable_of_iff (x ∈ s.copy.toList) ⋯
Instances For
@[instance_reducible]
@[implemented_by _private.ScalarArray.Int64.Decidable.0.ScalarArray.Int64Array.Slice.hashImpl]
The same hash as s.copy, so slices with the same elements have the same hash.
Instances For
@[instance_reducible]