Documentation
Lean
.
Compiler
.
IR
.
CompilerM
Search
return to top
source
Imports
Lean.Compiler.ExportAttr
Lean.Compiler.InitAttr
Lean.Compiler.IR.Format
Lean.Compiler.LCNF.PhaseExt
Imported by
Lean
.
IR
.
LogEntry
Lean
.
IR
.
LogEntry
.
fmt
Lean
.
IR
.
LogEntry
.
instToFormat
Lean
.
IR
.
Log
Lean
.
IR
.
Log
.
format
Lean
.
IR
.
Log
.
toString
Lean
.
IR
.
CompilerM
Lean
.
IR
.
log
Lean
.
IR
.
tracePrefixOptionName
Lean
.
IR
.
logDecls
Lean
.
IR
.
logMessageIf
Lean
.
IR
.
logMessage
Lean
.
IR
.
DeclMap
Lean
.
IR
.
declMapExt
Lean
.
IR
.
findEnvDecl
Lean
.
IR
.
ExplicitBoxing
.
mkBoxedName
Lean
.
IR
.
ExplicitBoxing
.
isBoxedName
Lean
.
IR
.
findDecl
Lean
.
IR
.
containsDecl
Lean
.
IR
.
getDecl
Lean
.
IR
.
findLocalDecl
Lean
.
IR
.
getDecls
Lean
.
IR
.
addDecl
Lean
.
IR
.
addDecls
Lean
.
IR
.
findEnvDecl'
Lean
.
IR
.
findDecl'
Lean
.
IR
.
containsDecl'
Lean
.
IR
.
getDecl'
Lean
.
IR
.
getSorryDep
source
inductive
Lean
.
IR
.
LogEntry
:
Type
step
(
cls
:
Name
)
(
decls
:
Array
Decl
)
:
LogEntry
message
(
msg
:
Format
)
:
LogEntry
Instances For
source
def
Lean
.
IR
.
LogEntry
.
fmt
:
LogEntry
→
Format
Equations
Instances For
source
instance
Lean
.
IR
.
LogEntry
.
instToFormat
:
ToFormat
LogEntry
Equations
source
@[reducible, inline]
abbrev
Lean
.
IR
.
Log
:
Type
Equations
Instances For
source
def
Lean
.
IR
.
Log
.
format
(
log
:
Log
)
:
Format
Equations
Instances For
source
def
Lean
.
IR
.
Log
.
toString
(
log
:
Log
)
:
String
Equations
Instances For
source
@[reducible, inline]
abbrev
Lean
.
IR
.
CompilerM
(
α
:
Type
)
:
Type
Equations
Instances For
source
def
Lean
.
IR
.
log
(
entry
:
LogEntry
)
:
CompilerM
Unit
Equations
Instances For
source
def
Lean
.
IR
.
tracePrefixOptionName
:
Name
Equations
Instances For
source
@[inline]
def
Lean
.
IR
.
logDecls
(
cls
:
Name
)
(
decl
:
Array
Decl
)
:
CompilerM
Unit
Equations
Instances For
source
@[inline]
def
Lean
.
IR
.
logMessageIf
{
α
:
Type
}
[
ToFormat
α
]
(
cls
:
Name
)
(
a
:
α
)
:
CompilerM
Unit
Equations
Instances For
source
@[inline]
def
Lean
.
IR
.
logMessage
{
α
:
Type
}
[
ToFormat
α
]
(
a
:
α
)
:
CompilerM
Unit
Equations
Instances For
source
@[reducible, inline]
abbrev
Lean
.
IR
.
DeclMap
:
Type
Equations
Instances For
source
opaque
Lean
.
IR
.
declMapExt
:
SimplePersistentEnvExtension
Decl
DeclMap
source
def
Lean
.
IR
.
findEnvDecl
(
env
:
Environment
)
(
declName
:
Name
)
(
includeServer
:
Bool
:=
false
)
:
Option
Decl
Equations
Instances For
source
def
Lean
.
IR
.
ExplicitBoxing
.
mkBoxedName
(
n
:
Name
)
:
Name
Equations
Instances For
source
def
Lean
.
IR
.
ExplicitBoxing
.
isBoxedName
(
name
:
Name
)
:
Bool
Equations
Instances For
source
def
Lean
.
IR
.
findDecl
(
n
:
Name
)
:
CompilerM
(
Option
Decl
)
Equations
Instances For
source
def
Lean
.
IR
.
containsDecl
(
n
:
Name
)
:
CompilerM
Bool
Equations
Instances For
source
def
Lean
.
IR
.
getDecl
(
n
:
Name
)
:
CompilerM
Decl
Equations
Instances For
source
def
Lean
.
IR
.
findLocalDecl
(
n
:
Name
)
:
CompilerM
(
Option
Decl
)
Equations
Instances For
source
def
Lean
.
IR
.
getDecls
(
env
:
Environment
)
:
List
Decl
Returns the list of IR declarations in declaration order.
Equations
Instances For
source
def
Lean
.
IR
.
addDecl
(
decl
:
Decl
)
:
CompilerM
Unit
Equations
Instances For
source
def
Lean
.
IR
.
addDecls
(
decls
:
Array
Decl
)
:
CompilerM
Unit
Equations
Instances For
source
def
Lean
.
IR
.
findEnvDecl'
(
env
:
Environment
)
(
n
:
Name
)
(
decls
:
Array
Decl
)
:
Option
Decl
Equations
Instances For
source
def
Lean
.
IR
.
findDecl'
(
n
:
Name
)
(
decls
:
Array
Decl
)
:
CompilerM
(
Option
Decl
)
Equations
Instances For
source
def
Lean
.
IR
.
containsDecl'
(
n
:
Name
)
(
decls
:
Array
Decl
)
:
CompilerM
Bool
Equations
Instances For
source
def
Lean
.
IR
.
getDecl'
(
n
:
Name
)
(
decls
:
Array
Decl
)
:
CompilerM
Decl
Equations
Instances For
source
@[export lean_decl_get_sorry_dep]
def
Lean
.
IR
.
getSorryDep
(
env
:
Environment
)
(
declName
:
Name
)
:
Option
Name
Equations
Instances For