Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- Lean.Expr.ReplaceImpl.Cache.keyIdx c key = ptrAddrUnsafe key % c.size
Instances For
@[inline]
unsafe def
Lean.Expr.ReplaceImpl.Cache.resultIdx
(c : Lean.Expr.ReplaceImpl.Cache)
(key : Lean.Expr)
:
Equations
- Lean.Expr.ReplaceImpl.Cache.resultIdx c key = Lean.Expr.ReplaceImpl.Cache.keyIdx c key + c.size
Instances For
@[inline]
unsafe def
Lean.Expr.ReplaceImpl.Cache.hasResultFor
(c : Lean.Expr.ReplaceImpl.Cache)
(key : Lean.Expr)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
unsafe def
Lean.Expr.ReplaceImpl.Cache.getResultFor
(c : Lean.Expr.ReplaceImpl.Cache)
(key : Lean.Expr)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
unsafe def
Lean.Expr.ReplaceImpl.Cache.store
(c : Lean.Expr.ReplaceImpl.Cache)
(key : Lean.Expr)
(result : Lean.Expr)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline, reducible]
Instances For
@[inline]
Equations
- Lean.Expr.ReplaceImpl.cache key result = do modify fun (x : Lean.Expr.ReplaceImpl.Cache) => Lean.Expr.ReplaceImpl.Cache.store x key result pure result
Instances For
@[specialize #[]]
unsafe def
Lean.Expr.ReplaceImpl.replaceUnsafeM
(f? : Lean.Expr → Option Lean.Expr)
(e : Lean.Expr)
:
Equations
Instances For
@[specialize #[]]
unsafe def
Lean.Expr.ReplaceImpl.replaceUnsafeM.visit
(f? : Lean.Expr → Option Lean.Expr)
(e : Lean.Expr)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
unsafe def
Lean.Expr.ReplaceImpl.replaceUnsafe
(f? : Lean.Expr → Option Lean.Expr)
(e : Lean.Expr)
:
Equations
Instances For
@[specialize #[]]
Equations
- One or more equations did not get rendered due to their size.
- Lean.Expr.replaceNoCache f? e = match f? e with | some eNew => eNew | none => e
Instances For
@[implemented_by Lean.Expr.ReplaceImpl.replaceUnsafe]
Equations
- Lean.Expr.replace f? e = Lean.Expr.replaceNoCache f? e