Derive `Bwd` hints
Available from
bluerock.auto.elpi.derive.bwd.
This command does not yet support usages inside Sections.
Usage: #[only(DIR)] derive Lem. where Lem is an equivalence
forall ..., LHS ... -|- RHS ... or an entailment forall ..., LHS ... |-- RHS ... registers an exported Bwd hint based on
Lem:
-
if
DIRisbwdorbwd(r2l): replace RHS by LHS (corresponds to[BWD<-]) -
if
DIR = bwd(l2r): replace LHS by RHS (corresponds to[BWD->], ONLY forLembeing an equivalence)
For example, with
Lemma lemPQ : P |-- Q.
Proof. (* proof of the hint *) Qed.
#[only(bwd)] derive lemPQ.
is similar to
Definition lemPQ_B (* : Bwd P *) := [BWD] lemPQ.