Documentation
Lean
.
Compiler
.
CSimpAttr
Search
Google site search
Lean
.
Compiler
.
CSimpAttr
source
Imports
Init
Lean.ScopedEnvExtension
Lean.Util.Recognizers
Lean.Util.ReplaceExpr
Imported by
Lean
.
Compiler
.
CSimp
.
Entry
Lean
.
Compiler
.
CSimp
.
instInhabitedEntry
Lean
.
Compiler
.
CSimp
.
State
Lean
.
Compiler
.
CSimp
.
instInhabitedState
Lean
.
Compiler
.
CSimp
.
State
.
switch
Lean
.
Compiler
.
CSimp
.
ext
Lean
.
Compiler
.
CSimp
.
add
Lean
.
Compiler
.
CSimp
.
replaceConstants
Lean
.
Compiler
.
hasCSimpAttribute
source
structure
Lean
.
Compiler
.
CSimp
.
Entry
:
Type
fromDeclName :
Lake.Name
toDeclName :
Lake.Name
thmName :
Lake.Name
Instances For
source
instance
Lean
.
Compiler
.
CSimp
.
instInhabitedEntry
:
Inhabited
Lean.Compiler.CSimp.Entry
source
structure
Lean
.
Compiler
.
CSimp
.
State
:
Type
map :
Lean.SMap
Lake.Name
Lake.Name
thmNames :
Lean.SSet
Lake.Name
Instances For
source
instance
Lean
.
Compiler
.
CSimp
.
instInhabitedState
:
Inhabited
Lean.Compiler.CSimp.State
source
def
Lean
.
Compiler
.
CSimp
.
State
.
switch
:
Lean.Compiler.CSimp.State
→
Lean.Compiler.CSimp.State
Instances For
source
opaque
Lean
.
Compiler
.
CSimp
.
ext
:
Lean.SimpleScopedEnvExtension
Lean.Compiler.CSimp.Entry
Lean.Compiler.CSimp.State
source
def
Lean
.
Compiler
.
CSimp
.
add
(declName :
Lake.Name
)
(kind :
Lean.AttributeKind
)
:
Lean.CoreM
Unit
Instances For
source
@[export lean_csimp_replace_constants]
def
Lean
.
Compiler
.
CSimp
.
replaceConstants
(env :
Lean.Environment
)
(e :
Lean.Expr
)
:
Lean.Expr
Instances For
source
def
Lean
.
Compiler
.
hasCSimpAttribute
(env :
Lean.Environment
)
(declName :
Lake.Name
)
:
Bool
Instances For