Documentation
Lean
.
Util
.
CollectMVars
Search
Google site search
return to top
source
Imports
Lean.Expr
Imported by
Lean
.
CollectMVars
.
State
Lean
.
CollectMVars
.
instInhabitedState
Lean
.
CollectMVars
.
Visitor
Lean
.
CollectMVars
.
visit
Lean
.
CollectMVars
.
main
Lean
.
Expr
.
collectMVars
source
structure
Lean
.
CollectMVars
.
State
:
Type
visitedExpr :
Lean.ExprSet
result :
Array
Lean.MVarId
Instances For
source
instance
Lean
.
CollectMVars
.
instInhabitedState
:
Inhabited
Lean.CollectMVars.State
Equations
Lean.CollectMVars.instInhabitedState
=
{
default
:=
{
visitedExpr
:=
∅
,
result
:=
#[]
}
}
source
@[reducible, inline]
abbrev
Lean
.
CollectMVars
.
Visitor
:
Type
Equations
Lean.CollectMVars.Visitor
=
(
Lean.CollectMVars.State
→
Lean.CollectMVars.State
)
Instances For
source
partial def
Lean
.
CollectMVars
.
visit
(e :
Lean.Expr
)
:
Lean.CollectMVars.Visitor
source
partial def
Lean
.
CollectMVars
.
main
:
Lean.Expr
→
Lean.CollectMVars.Visitor
source
def
Lean
.
Expr
.
collectMVars
(s :
Lean.CollectMVars.State
)
(e :
Lean.Expr
)
:
Lean.CollectMVars.State
Equations
Lean.Expr.collectMVars
s
e
=
Lean.CollectMVars.visit
e
s
Instances For