pub struct MissingProof {
pub kind: String,
pub label: Option<String>,
pub label_type: String,
pub proof_kind: Option<String>,
}Expand description
The warning that is reported when a theorem has no proof although its kind
expects one (id flm.theorems.missing-proof).
A theorem kind expects a proof when its
expects_proof setting is true. In
the default configuration, these kinds are theorem, proposition,
lemma and corollary. A theorem has a proof when the title of a proof
is a back-reference to a label of the theorem, as in
\begin{proof}[*thm:main] or \begin{proof}[**thm:main]. The warning is
not reported for a theorem that carries the field \noproofref, as in
\begin{theorem}\label{thm:main}\noproofref.
Reported by the check stage CHECK_PROOFS at the
theorem, under every workflow (see check). The output of
the document is not affected. The warning is not reported when the registry
does not contain the references feature, which resolves back-references.
The message suggests three fixes: writing a proof whose title refers to the
theorem, adding \noproofref to the theorem, or setting expects_proof to
false for the kind of the theorem.
Fields§
§kind: StringThe kind of the theorem, which is also the name of its environment,
e.g. lemma.
label: Option<String>The first label of the theorem whose type the kind accepts, written as
type:label. The labels are taken in the order in which they are
written. None when the theorem has no such label. A label of another
type does not define anything, so a proof cannot refer to the theorem
through it.
label_type: StringThe label type that the message suggests when the theorem has no label
(label is None): the first label type that the kind accepts, which
is the first entry of
TheoremsConfig::label_types,
e.g. thm.
proof_kind: Option<String>The theorem kind that the message suggests for writing the proof, e.g.
proof. It is the first kind, in the alphabetical order of the kind
names, whose class reads back-references
(relation_ref). None when no
class reads back-references; the message then does not suggest writing
a proof.
Implementations§
Trait Implementations§
Source§impl Clone for MissingProof
impl Clone for MissingProof
Source§impl Debug for MissingProof
impl Debug for MissingProof
Source§impl DiagnosticInfo for MissingProof
impl DiagnosticInfo for MissingProof
Source§const IDENTIFIER: &'static str = "flm.theorems.missing-proof"
const IDENTIFIER: &'static str = "flm.theorems.missing-proof"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for MissingProof
Writes the message of the warning. The first suggested fix depends on
whether the theorem has a label and whether a kind for proofs exists, so
the message has four forms.
impl Display for MissingProof
Writes the message of the warning. The first suggested fix depends on whether the theorem has a label and whether a kind for proofs exists, so the message has four forms.
impl Eq for MissingProof
Source§impl PartialEq for MissingProof
impl PartialEq for MissingProof
impl StructuralPartialEq for MissingProof
Auto Trait Implementations§
impl Forget for MissingProof
impl Freeze for MissingProof
impl Move for MissingProof
impl RefUnwindSafe for MissingProof
impl Send for MissingProof
impl Sync for MissingProof
impl Unpin for MissingProof
impl UnsafeUnpin for MissingProof
impl UnwindSafe for MissingProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more