你可以通過顯示它生成的證明術語來找出任何策略已經完成了。
Require Import Omega.
Definition how : forall (a : Z), (a > 1)%Z -> (a = 1)%Z -> False.
intros.
omega.
Qed.
Print how.
(* Here are the library functions "how" uses on my machine: *)
Check fast_Zplus_assoc_reverse.
Check fast_Zred_factor0.
Check fast_OMEGA15.
Check fast_Zred_factor5.
Check OMEGA6.
Check Zegal_left.
Check Zgt_left.
您也可以證明這一點你自己,沒有任何花哨的機器:
Locate "_ > _".
Print Z.gt.
Locate "_ ?= _".
Print Z.compare.
Definition this : forall (a : Z), (a > 1)%Z -> (a = 1)%Z -> False.
Proof with (subst; simpl in *; auto).
intros...
unfold Z.gt in * ...
unfold Pos.compare in * ...
inversion H.
Qed.
Print this.