Documentation

Lean.Meta.AppBuilder

Return id e

Equations

Given e s.t. inferType e is definitionally equal to expectedType, return term @id expectedType e.

Equations
Equations
Equations

If a and b have definitionally equal types, return Eq a b, otherwise return HEq a b.

Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations
Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.

Return the application constName xs. It tries to fill the implicit arguments before the last element in xs.

Remark: mkAppM `arbitrary #[α] returns @arbitrary.{u} α without synthesizing the implicit argument occurring after α. Given a x : (([Decidable p] → Bool) × Nat, mkAppM `Prod.fst #[x] returns @Prod.fst ([Decidable p] → Bool) Nat x

Equations
  • One or more equations did not get rendered due to their size.

Similar to mkAppM, but takes an Expr instead of a constant name.

Equations
  • One or more equations did not get rendered due to their size.

Similar to mkAppM, but it allows us to specify which arguments are provided explicitly using Option type. Example: Given Pure.pure {m : Type u → Type v} [Pure m] {α : Type u} (a : α) : m α,

mkAppOptM `Pure.pure #[m, none, none, a]

returns a Pure.pure application if the instance Pure m can be synthesized, and the universe match. Note that,

mkAppM `Pure.pure #[a]

fails because the only explicit argument (a : α) is not sufficient for inferring the remaining arguments, we would need the expected type.

Equations
  • One or more equations did not get rendered due to their size.

Similar to mkAppOptM, but takes an Expr instead of a constant name

Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations

mkProjection s fieldName return an expression for accessing field fieldName of the structure s. Remark: fieldName may be a subfield of s.

Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations

Return a proof for p : Prop using decide p

Equations
  • One or more equations did not get rendered due to their size.

Return a < b

Equations

Return a <= b

Equations

Return @Classical.ofNonempty α _

Equations

Return sorryAx type

Equations

Return let_congr h₁ h₂

Equations

Return eq_false h h must have type definitionally equal to ¬ p in the current reducibility setting.

Equations

Return eq_false' h h must have type definitionally equal to p → False in the current reducibility setting.

Equations
Equations
Equations
Equations

Return instance for [Monad m] if there is one

Equations
  • One or more equations did not get rendered due to their size.

Return (n : type), a numeric literal of type type. The method fails if we don't have an instance OfNat type n

Equations
  • One or more equations did not get rendered due to their size.

Return a + b using a heterogeneous +. This method assumes a and b have the same type.

Equations

Return a - b using a heterogeneous -. This method assumes a and b have the same type.

Equations

Return a * b using a heterogeneous *. This method assumes a and b have the same type.

Equations

Return a ≤ b. This method assumes a and b have the same type.

Equations

Return a < b. This method assumes a and b have the same type.

Equations