我需要使用名爲Coq.Arith.PeanoNat(https://coq.inria.fr/library/Coq.Arith.PeanoNat.html)的標準庫的一部分。如何導入Coq庫中的Coq.Arith.PeanoNat?
我試過要麼導入整個Arith庫或只是這個模塊,但我不能使用它的任何一種方式。
我試過的每個其他庫都能正常工作。當我做Require Import Bool.
我編譯,我可以正確使用它。在Print Bool.
我可以看看所有的功能裏面,在未來的格式:
Module
Bool
:= Struct
Definition...
.
.
.
End
當我這樣做要麼Require Import Arith.PeanoNat.
或Require Import Arith.
我得到這樣的即時輸出:
[Loading ML file z_syntax_plugin.cmxs ... done]
[Loading ML file quote_plugin.cmxs ... done]
[Loading ML file newring_plugin.cmxs ... done]
<W> Grammar extension: in [tactic:simple_tactic], some rule has been masked
<W> Grammar extension: in [tactic:simple_tactic], some rule has been masked
<W> Grammar extension: in [tactic:simple_tactic], some rule has been masked
<W> Grammar extension: in [tactic:simple_tactic], some rule has been masked
<W> Grammar extension: in [tactic:simple_tactic], some rule has been masked
當我問勒柯克Print Arith.PeanoNat
它輸出:Module Arith := Struct End
,它似乎是空的。當我嘗試使用庫中的任何東西時,例如在布爾比較下的le_le
,我得到標準Error: leb_le not a defined object.
我已經更新了Coq和庫,並且我不知道這裏會發生什麼。我會很感激你在解決這個庫問題上的投入。
您是否在可能導致衝突的同一時間導入任何其他模塊? – ichistmeinname
@ichistmeinname,我只導入Bool和Arith。出於測試目的,我導入了其他文件,並在我看到它們工作得很好時從文件中刪除它們。 – Sara