Equations
- Lean.instHashablePtr = { hash := fun (a : Lean.Ptr α) => hash64 (ptrAddrUnsafe a).toUInt64 }
Equations
- Lean.instBEqPtr = { beq := fun (a b : Lean.Ptr α) => ptrAddrUnsafe a == ptrAddrUnsafe b }
Set of pointers. It is a low-level auxiliary datastructure used for traversing DAGs.
Equations
- Lean.PtrSet α = Std.HashSet (Lean.Ptr α)
Instances For
Equations
- Lean.mkPtrSet capacity = Std.HashSet.empty capacity
Instances For
Map of pointers. It is a low-level auxiliary datastructure used for traversing DAGs.
Equations
- Lean.PtrMap α β = Std.HashMap (Lean.Ptr α) β
Instances For
Equations
- Lean.mkPtrMap capacity = Std.HashMap.empty capacity
Instances For
@[reducible, inline]
unsafe abbrev
Lean.PtrMap.insert
{α β : Type}
(s : Lean.PtrMap α β)
(a : α)
(b : β)
:
Lean.PtrMap α β
Equations
- s.insert a b = Std.HashMap.insert s { value := a } b