coqide

why does `make` using _CoqProject in coqide differ from `coqc` on the commandline?

喜你入骨 提交于 2021-02-09 11:12:21
问题 I have two short files: cc_test is given by Lemma cc: 4 = 4. Proof. auto. Qed. and libtest is given by Require Import cc_test. Check cc. When I execute coqc -R . ClosureLib -top ClosureLib cc_test in directory "/home/barry/svn/Coq/Closure_Calculus" and coqc -R "/home/barry/svn/Coq/Closure_Calculus" ClosureLib libtest in its directory, I get the expected output cc: 4 = 4 However, when the arguments to coqc above (from -R to the end) are placed in _CoqProject files, and I call Make makefile and

why does `make` using _CoqProject in coqide differ from `coqc` on the commandline?

给你一囗甜甜゛ 提交于 2021-02-09 11:12:21
问题 I have two short files: cc_test is given by Lemma cc: 4 = 4. Proof. auto. Qed. and libtest is given by Require Import cc_test. Check cc. When I execute coqc -R . ClosureLib -top ClosureLib cc_test in directory "/home/barry/svn/Coq/Closure_Calculus" and coqc -R "/home/barry/svn/Coq/Closure_Calculus" ClosureLib libtest in its directory, I get the expected output cc: 4 = 4 However, when the arguments to coqc above (from -R to the end) are placed in _CoqProject files, and I call Make makefile and

How to import theorems from Coq.Numbers.NatInt.NZDiv?

…衆ロ難τιáo~ 提交于 2021-01-29 11:34:29
问题 In this doc link there are useful theorems about division. I tried importing it using Require Import in CoqIDE 8.9.0, however while the import succeeds, the following code fails with The reference div_lt_upper_bound was not found in the current environment. Require Import Coq.Numbers.NatInt.NZDiv. Check div_lt_upper_bound. I tried downloading the source code for the file and manually importing it via Load , but then I get the following message with no further explanation (the first line is in

Coq makefile “Top.” Prefix

一个人想着一个人 提交于 2020-01-14 12:38:44
问题 I am using the automatic Coq 8.5 makefile generator. This makefile prefixes all modules by "Top." . Now let's say you run a lot of files by make and then want to change/debug some file in the IDE. Then the annoying fact is that Coq complains it cannot find the compiled other files, because in the IDE it assumes the names without the "Top" prefix. I tried to tweak the makefile to get rid of this prefix. But I always ended in some error message of the make. Can someone show me either how to

Coqide 8.5: No syntax highlighting on Linux

蓝咒 提交于 2019-12-30 07:30:09
问题 I installed Coqide 8.5 w/ nix . Unfortunately, the text is blakc in all panels; there's no syntax highlighting of any kind (otherwise, 8.5 seems a big improvement over 8.4, which I've installed as well). I also get the following: (coqide:17272): GtkSourceView-WARNING **: Unknown parent scheme 'classic' in scheme 'coq_style' (coqide:17272): GtkSourceView-WARNING **: Failed to load '/nix/store/2sxcqfc4q3ls4g2q13n1zwfhnydvgq-coq-8.5pl1/share/coq/coq.lang': could not find the RelaxNG schema file

The reference “X” was not found in the current environment

人盡茶涼 提交于 2019-12-01 04:22:44
I'm using CoqIDE to complete the exercises in the Software Foundations book about Coq. I can successfully compile Basics.v, resulting in Basics.vo and Basics.glob in my directory. When I try to run Induction.v, it works. When I try to compile it, it complains about tons of missing references, such as evenb and negb_involutive . If I copy Basics.v contents into Induction.v it compiles, but obviously this is not the way to go. This is not a duplicate of question Coq error: The reference evenb was not found in the current environment , as I have already done those things: Compile Basics.v. Check

The reference “X” was not found in the current environment

二次信任 提交于 2019-12-01 02:02:20
问题 I'm using CoqIDE to complete the exercises in the Software Foundations book about Coq. I can successfully compile Basics.v, resulting in Basics.vo and Basics.glob in my directory. When I try to run Induction.v, it works. When I try to compile it, it complains about tons of missing references, such as evenb and negb_involutive . If I copy Basics.v contents into Induction.v it compiles, but obviously this is not the way to go. This is not a duplicate of question Coq error: The reference evenb

Coqide 8.5: No syntax highlighting on Linux

廉价感情. 提交于 2019-12-01 00:33:07
I installed Coqide 8.5 w/ nix . Unfortunately, the text is blakc in all panels; there's no syntax highlighting of any kind (otherwise, 8.5 seems a big improvement over 8.4, which I've installed as well). I also get the following: (coqide:17272): GtkSourceView-WARNING **: Unknown parent scheme 'classic' in scheme 'coq_style' (coqide:17272): GtkSourceView-WARNING **: Failed to load '/nix/store/2sxcqfc4q3ls4g2q13n1zwfhnydvgq-coq-8.5pl1/share/coq/coq.lang': could not find the RelaxNG schema file The output of cat ~/.nix-profile/share/coq/coq_style.xml : <?xml version="1.0" encoding="UTF-8"?>