Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
LeanLink
Tutorials
Checking Mathlib with TypeTheory
Exploring Mathlib with LeanLink
An Import Graph for Mathlib
Getting Started with LeanLink
Guides
Lean 4 from the Wolfram Language
Symbols
ImportDOT
LeanApp
LeanBuild
LeanBVar
LeanCallGraph
LeanCompile
LeanConstantInfo
LeanConstant
LeanConst
LeanEnvironment
LeanEvaluate
LeanExport
LeanExportString
LeanExprGraph
LeanExpr
LeanForall
LeanFreeEnvironment
LeanFVar
LeanGoal
LeanImport
LeanImportString
LeanLam
LeanLet
LeanLevelIMax
LeanLevelMax
LeanLevelMVar
LeanLevelParam
LeanLevelSucc
LeanLevelZero
LeanListConstants
LeanListTheorems
LeanLitNat
LeanLitStr
LeanLoadEnvironment
LeanMVar
LeanNoValue
LeanProj
LeanSort
LeanState
LeanTactic
LeanTerm
LeanToFunction
LeanToTypeTheory
LeanTruncated
LeanValue
ProofToLean
TypeTheoryToLean
Wolfram`LeanLink`
L
e
a
n
I
m
p
o
r
t
L
e
a
n
I
m
p
o
r
t
[
m
o
d
u
l
e
]
i
m
p
o
r
t
s
t
h
e
c
o
n
s
t
a
n
t
s
o
f
a
c
o
m
p
i
l
e
d
L
e
a
n
m
o
d
u
l
e
a
n
d
r
e
t
u
r
n
s
a
L
e
a
n
E
n
v
i
r
o
n
m
e
n
t
.
L
e
a
n
I
m
p
o
r
t
[
f
i
l
e
]
i
m
p
o
r
t
s
f
r
o
m
a
.
l
e
a
n
s
o
u
r
c
e
f
i
l
e
p
a
t
h
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
▪
The result is a
L
e
a
n
E
n
v
i
r
o
n
m
e
n
t
- a typed wrapper over
A
s
s
o
c
i
a
t
i
o
n
[
n
a
m
e
L
e
a
n
T
e
r
m
,
.
.
.
]
. Index it by constant name, or query it with
K
e
y
s
,
L
e
n
g
t
h
, and
I
n
f
o
r
m
a
t
i
o
n
.
▪
A
module
argument (
"
M
a
t
h
l
i
b
.
A
l
g
e
b
r
a
.
G
r
o
u
p
.
B
a
s
i
c
"
) is resolved inside a Lean project; a
file
argument is a path to a
.
l
e
a
n
source file (such as the bundled
E
x
a
m
p
l
e
s
.
l
e
a
n
).
▪
The following options are accepted:
O
p
t
i
o
n
D
e
f
a
u
l
t
D
e
s
c
r
i
p
t
i
o
n
"
P
r
o
j
e
c
t
D
i
r
"
A
u
t
o
m
a
t
i
c
t
h
e
L
a
k
e
p
r
o
j
e
c
t
t
h
e
m
o
d
u
l
e
i
s
r
e
s
o
l
v
e
d
i
n
,
w
i
t
h
i
t
s
p
a
c
k
a
g
e
s
a
n
d
p
a
t
h
d
e
p
e
n
d
e
n
c
i
e
s
"
I
m
p
o
r
t
s
"
{
}
e
x
t
r
a
m
o
d
u
l
e
s
t
o
l
o
a
d
a
l
o
n
g
s
i
d
e
t
h
e
t
a
r
g
e
t
"
F
i
l
t
e
r
"
"
"
k
e
e
p
o
n
l
y
c
o
n
s
t
a
n
t
s
w
h
o
s
e
n
a
m
e
c
o
n
t
a
i
n
s
t
h
i
s
s
u
b
s
t
r
i
n
g
"
I
n
c
l
u
d
e
I
n
t
e
r
n
a
l
"
F
a
l
s
e
i
n
c
l
u
d
e
c
o
m
p
i
l
e
r
-
i
n
t
e
r
n
a
l
/
p
r
i
v
a
t
e
d
e
c
l
a
r
a
t
i
o
n
s
▪
Importing a module requires that project to be
built
(
l
a
k
e
b
u
i
l
d
). A module with no compiled
.
o
l
e
a
n
file in the project's search path fails:
L
e
a
n
I
m
p
o
r
t
returns
$
F
a
i
l
e
d
with a message that names it.
▪
A
file
can
i
m
p
o
r
t
other
.
l
e
a
n
files of its folder, or of the Lake project around it: they are compiled first, in import order, so
i
m
p
o
r
t
B
finds
B
.
l
e
a
n
next to the file and
i
m
p
o
r
t
S
u
b
.
C
finds
S
u
b
/
C
.
l
e
a
n
. A GitHub URL import does the same with the files it downloads.
Examples
(
4
)
Basic Examples
(
1
)
Import the bundled example environment from its file path:
I
n
[
1
]
:
=
e
n
v
=
L
e
a
n
I
m
p
o
r
t
[
P
a
c
l
e
t
O
b
j
e
c
t
[
"
W
o
l
f
r
a
m
/
L
e
a
n
L
i
n
k
"
]
[
"
A
s
s
e
t
L
o
c
a
t
i
o
n
"
,
"
E
x
a
m
p
l
e
s
"
]
]
O
u
t
[
1
]
=
L
e
a
n
E
n
v
i
r
o
n
m
e
n
t
C
o
n
s
t
a
n
t
s
:
3
2
K
i
n
d
s
:
1
8
t
h
e
o
r
e
m
1
1
d
e
f
2
c
o
n
s
t
r
u
c
t
o
r
1
i
n
d
u
c
t
i
v
e
How many constants it holds:
I
n
[
2
]
:
=
L
e
n
g
t
h
[
e
n
v
]
O
u
t
[
2
]
=
3
2
The constant names:
I
n
[
3
]
:
=
K
e
y
s
[
e
n
v
]
O
u
t
[
3
]
=
{
i
d
_
p
r
o
o
f
,
V
e
c
.
h
e
a
d
,
b
a
n
d
_
t
r
u
e
,
a
d
d
_
a
s
s
o
c
_
p
r
o
o
f
,
c
o
m
p
_
p
r
o
o
f
,
e
v
e
n
_
t
w
o
,
V
e
c
.
c
t
o
r
E
l
i
m
T
y
p
e
,
b
o
r
_
f
a
l
s
e
,
z
e
r
o
_
a
d
d
_
p
r
o
o
f
,
b
n
o
t
_
b
n
o
t
,
V
e
c
.
c
o
n
s
,
V
e
c
,
e
q
_
t
r
a
n
s
p
o
r
t
,
a
d
d
_
c
o
m
m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