5.Β Terms
Planned Content
This chapter will describe Lean's term language, including the following features:
-
Name resolution, including variable occurrences,
open
declarations and terms -
fun
, with and without pattern matching -
Literals (some via cross-references to the appropriate types, e.g.
String
)
Tracked at issue #66
Terms are the principal means of writing mathematics and programs in Lean. The elaborator translates them to Lean's minimal core language, which is then checked by the kernel and compiled for execution. The syntax of terms is arbitrarily extensible; this chapter documents the term syntax that Lean provides out-of-the-box.