#[global]
Hint Resolve Qeq_refl Qeq_trans : qarith.
(** In a word, [Qeq] is a setoid equality. *)
#[global]
Instance Q_Setoid : Equivalence Qeq.

Lemma Qeq_bool_trans x y z: Qeq_bool x y = true -> Qeq_bool y z = true -> Qeq_bool x z = true.
#[global]
Hint Resolve Qnot_eq_sym : qarith.