The Lean core library is contained in the following files and directories:
Lean's default logical framework is a version of the Calculus of Constructions with:
Prop of propositionsType 0, Type 1, ... above PropMost of the core library does not rely on any axioms beyond this framework, and is hence fully constructive.
The following additional axioms are defined in init:
quot)classical)Function extensionality is derived from the quotient construction, and excluded middle is derived from Hilbert choice. For Hilbert choice and excluded middle, use open classical. The additional axioms are used sparingly. For example:
You can use #print axioms foo to see which axioms foo depends on.