Skip to main content
GET
Get a lemma

Authorizations

Authorization
string
header
required

A Spec Hub API token (tfe_…). The CLI reads it from THEFORMALERA_TOKEN or from theformalera login.

Path Parameters

lid
string
required

Lemma id, e.g. L-d07f2c.

Response

OK

id
string
required

Lemma id: a hash of the canonical statement.

Example:

"L-d07f2c"

statement
string
required

Canonical statement in Lean 4 (Mathlib identifiers only).

Example:

"∀ (a0 a1 : ℝ), a0 * a1 * (1 / 2 : ℝ) + a0 * a1 * Real.tanh (a0 * (1 / 2 : ℝ)) * (1 / 2 : ℝ) = a0 * a1 * ((1 : ℝ) + Real.exp (-a0))⁻¹"

proof
string
required

Name of the closing tactic script (tfe_replay argument).

Example:

"tanh_eq_exp; exp_neg; field_simp; ring_nf"

scope
enum<string>
required

How widely the lemma applies.

Available options:
general,
operator,
model
schema
string

Record schema.

Example:

"theformalera.lemma/v1"

pretty
string

Unicode rendering of the statement.

ops
string[]

Op Specs the lemma was first proved for (prefetch index).

nodes
string[]

Spec nodes (<model>:<node path>) the lemma was proved for.

source
enum<string>

Where the lemma came from.

Available options:
builtin,
online,
generalized
visibility
enum<string>

Library the lemma lives in.

Available options:
public,
org,
local
org
string | null

Owning organisation (org library only; never recorded for public lemmas).

first_solve_ms
integer

Solver time of the first proof; used to estimate time saved by a hit.

lean_toolchain
string

Lean toolchain the proof was checked with.

Example:

"leanprover/lean4:v4.35.0"

mathlib
string

Mathlib revision.

Example:

"v4.35.0"

created
string

Admission time (ISO 8601).

hits
integer

Total hits (Hub-side usage statistics).

projects
integer

Number of distinct projects referencing the lemma.

status
enum<string>

Lifecycle state.

Available options:
active,
pending-migration,
rejected
axioms
string[]

Axioms of the compiled theorem (allowlist: propext, Classical.choice, Quot.sound).