Skip to content

v0.57.0

Choose a tag to compare

@gmpassos gmpassos released this 02 Dec 05:38
· 6 commits to main since this release
06e59cc

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, their u
      flexible at each use, like any used constant's; Type → Type before,
      so LinearOrder(β) 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 importer:
    • η-expansion binders are named apart from the variables in scope
      (λ x' ↦ … under a theorem's own x, 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 in LE.ext), which
        instance search does not find. A type family (β : ι → Type) and an
        instance binder applied to indices (inst i) are not such
        arguments.
  • Not done from the plan: structure projections on structures with
    parents, non-concrete imax levels, and quoted Lean names. None of them
    blocked Mathlib.Order.Basic; its remaining refusals are mostly
    instance parameters of classes ProofLang cannot name (StrongLT's).