Documentation
Lean
.
Compiler
.
AtMostOnce
Search
return to top
source
Imports
Lean.Environment
Imported by
Lean
.
Compiler
.
atMostOnce
.
AtMostOnceData
Lean
.
Compiler
.
atMostOnce
.
Visitor
Lean
.
Compiler
.
atMostOnce
.
seq
Lean
.
Compiler
.
atMostOnce
.
instAndThenVisitor
Lean
.
Compiler
.
atMostOnce
.
skip
Lean
.
Compiler
.
atMostOnce
.
visitFVar
Lean
.
Compiler
.
atMostOnce
.
visit
Lean
.
Compiler
.
atMostOnce
source
structure
Lean
.
Compiler
.
atMostOnce
.
AtMostOnceData
:
Type
found :
Bool
result :
Bool
Instances For
source
def
Lean
.
Compiler
.
atMostOnce
.
Visitor
:
Type
Equations
Instances For
source
@[inline]
def
Lean
.
Compiler
.
atMostOnce
.
seq
(
f
g
:
Visitor
)
:
Visitor
Equations
Instances For
source
instance
Lean
.
Compiler
.
atMostOnce
.
instAndThenVisitor
:
AndThen
Visitor
Equations
source
@[inline]
def
Lean
.
Compiler
.
atMostOnce
.
skip
:
Visitor
Equations
Instances For
source
@[inline]
def
Lean
.
Compiler
.
atMostOnce
.
visitFVar
(
x
y
:
FVarId
)
:
Visitor
Equations
Instances For
source
def
Lean
.
Compiler
.
atMostOnce
.
visit
(
x
:
FVarId
)
:
Expr
→
Visitor
Equations
Instances For
source
@[export lean_at_most_once]
def
Lean
.
Compiler
.
atMostOnce
(
e
:
Expr
)
(
x
:
FVarId
)
:
Bool
Return true iff the free variable with id
x
occurs at most once in
e
Equations
Instances For