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 α = Lean.HashSet (Lean.Ptr α)
Instances For
Equations
- Lean.mkPtrSet capacity = Lean.mkHashSet capacity
Instances For
Map of pointers. It is a low-level auxiliary datastructure used for traversing DAGs.
Equations
- Lean.PtrMap α β = Lean.HashMap (Lean.Ptr α) β
Instances For
Equations
- Lean.mkPtrMap capacity = Lean.mkHashMap capacity
Instances For
@[reducible, inline]
unsafe abbrev
Lean.PtrMap.insert
{α : Type}
{β : Type}
(s : Lean.PtrMap α β)
(a : α)
(b : β)
:
Lean.PtrMap α β
Equations
- s.insert a b = Lean.HashMap.insert s { value := a } b