Repository navigation
v0.57.0
The Lean importer reaches order theory. The round-trip suite gains
Mathlib.Order.Basic: 193 theorems imported, self-checked, and each
kernel-verified through the generated Lean (0.56.0 imported 33 of them).
Mathlib.Logic.Function.Basic rises to 154 (128 before). In all, the
suite covers 602 theorems across five modules.
- The front end:
- The prelude's classes at any universe.
Preorder,LinearOrder,
Monoid, … are(α: Type(u)) → Type(u), as Mathlib's are, theiru
flexible at each use, like any used constant's;Type → Typebefore,
soLinearOrder(β)atβ: Type(u)was a type mismatch. - Implicit and instance arguments after the explicit ones are
filled, as Lean fills them (an implicit by unification, an instance by
Lean's instance search):DecidableLE(α), whose[LE α]followsα,
is a type.
- The prelude's classes at any universe.
- The importer:
- η-expansion binders are named apart from the variables in scope
(λ x' ↦ …under a theorem's ownx, which it shadowed). - Refused, with the reason, three cases where the printed ProofLang
would mean something else in Lean although its hash matched (the
self-check compares hashes, which do not record instances):- an extern with a premise that has implicit binders (
le : ∀ ⦃x y⦄, …), as a theorem's has been since 0.52.0; - an operator two instances in scope may provide (
[Preorder α] [PartialOrder α]for≤; a topology, finiteness or decidable
equality provides none): ProofLang's operators take their instance by
search, so which one≤uses is not stated; - an operator (
≤,+,-x,|x|,↑n,∈, a numeral) at an
instance built from the declaration's arguments ((lift f inj).toLT, or an explicit(x : LE α)as inLE.ext), which
instance search does not find. A type family (β : ι → Type) and an
instance binder applied to indices (inst i) are not such
arguments.
- an extern with a premise that has implicit binders (
- η-expansion binders are named apart from the variables in scope
- Not done from the plan: structure projections on structures with
parents, non-concreteimaxlevels, and quoted Lean names. None of them
blockedMathlib.Order.Basic; its remaining refusals are mostly
instance parameters of classes ProofLang cannot name (StrongLT's).