Instances For
Return true if variable, parameter and join point ids are unique
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
@[inline]
def
Lean.IR.NormalizeIds.withVar
{α : Type}
(x : Lean.IR.VarId)
(k : Lean.IR.VarId → Lean.IR.NormalizeIds.N α)
:
Instances For
@[inline]
def
Lean.IR.NormalizeIds.withJP
{α : Type}
(x : Lean.IR.JoinPointId)
(k : Lean.IR.JoinPointId → Lean.IR.NormalizeIds.N α)
:
Instances For
@[inline]
def
Lean.IR.NormalizeIds.withParams
{α : Type}
(ps : Array Lean.IR.Param)
(k : Array Lean.IR.Param → Lean.IR.NormalizeIds.N α)
:
Instances For
Instances For
Create a declaration equivalent to d
s.t. d.normalizeIds.uniqueIds == true
Instances For
Apply a function f : VarId → VarId
to variable occurrences.
The following functions assume the IR code does not have variable shadowing.
@[inline]
Instances For
Instances For
Instances For
@[inline]
Instances For
Replace x
with y
in b
. This function assumes b
does not shadow x