Lean 语言参考手册

错误说明🔗

本节说明 Lean 处理源文件时可能生成的错误和警告。下面列出的所有错误名称都带有 lean 包前缀。

名称

摘要

严重性

版本

ctor­Resulting­Type­Mismatch

Resulting type of constructor was not the inductive type being declared.

错误

4.22.0

depends­On­Noncomputable

Declaration depends on noncomputable definitions but is not marked as noncomputable

错误

4.22.0

induction­With­No­Alts

Induction pattern with nontactic in natural-number-game-style `with` clause.

错误

4.26.0

inductive­Param­Mismatch

Invalid parameter in an occurrence of an inductive type in one of its constructors.

错误

4.22.0

inductive­Param­Missing

Parameter not present in an occurrence of an inductive type in one of its constructors.

错误

4.22.0

infer­Binder­Type­Failed

The type of a binder could not be inferred.

错误

4.23.0

infer­Def­Type­Failed

The type of a definition could not be inferred.

错误

4.23.0

invalid­Dotted­Ident

Dotted identifier notation used with invalid or non-inferrable expected type.

错误

4.22.0

invalid­Field

Generalized field notation used in a potentially ambiguous way.

错误

4.22.0

proj­Non­Prop­From­Prop

Tried to project data from a proof.

错误

4.23.0

prop­Rec­Large­Elim

Attempted to eliminate a proof into a higher type universe.

错误

4.23.0

redundant­Match­Alt

Match alternative will never be reached.

错误

4.22.0

synth­Instance­Failed

Failed to synthesize instance of type class.

错误

4.26.0

unknown­Identifier

Failed to resolve identifier to variable or constant.

错误

4.23.0