Documentation
Lean
.
Compiler
.
ClosedTermCache
Search
return to top
source
Imports
Lean.Environment
Imported by
Lean
.
ClosedTermCache
Lean
.
instInhabitedClosedTermCache
Lean
.
closedTermCacheExt
Lean
.
cacheClosedTermName
Lean
.
getClosedTermName?
Lean
.
isClosedTermName
source
structure
Lean
.
ClosedTermCache
:
Type
map :
PHashMap
Expr
Name
constNames :
NameSet
revExprs :
List
Expr
Instances For
source
instance
Lean
.
instInhabitedClosedTermCache
:
Inhabited
ClosedTermCache
Equations
source
opaque
Lean
.
closedTermCacheExt
:
EnvExtension
ClosedTermCache
source
@[export lean_cache_closed_term_name]
def
Lean
.
cacheClosedTermName
(
env
:
Environment
)
(
e
:
Expr
)
(
n
:
Name
)
:
Environment
Equations
Instances For
source
@[export lean_get_closed_term_name]
def
Lean
.
getClosedTermName?
(
env
:
Environment
)
(
e
:
Expr
)
:
Option
Name
Equations
Instances For
source
def
Lean
.
isClosedTermName
(
env
:
Environment
)
(
n
:
Name
)
:
Bool
Equations
Instances For