Graphical interface (IDE) for Coq. It is written in OCaml.
Questions tagged [coqide]
103 questions
3
votes
1 answer
why does `make` using _CoqProject in coqide differ from `coqc` on the commandline?
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…

Barry Jay
- 73
- 4
3
votes
2 answers
How to install Coq
I have been installing Coq using the download links from the https://coq.inria.fr/ for both Windows and Mac. However, when I try coqc or coqtop on terminal or command prompt I get error messages saying that the command is not found. Although with…

Zhangsheng
- 85
- 2
- 11
2
votes
3 answers
How to write intermediate proof statements inside Coq - similar to how in Isar one has `have Statement using Lemma1, Lemma2 by auto` but in Coq?
I wanted to write intermediate lemmas inside Coq proof scripts, e.g., inside SCRIPT in Proof. SCRIPT Qed. itself - similar to how one would do in Isar. How does one do this in Coq? e.g.:
have Lemma using Lemma1, Lemma2 by auto.
I am aware of the…

Charlie Parker
- 5,884
- 57
- 198
- 323
2
votes
1 answer
Coq datatype - pair of pair with bracket
I am formalizing a system that support pair of tuple and nat as input for function. However, I have some problem with the pair type in Coq.
From what I have learnt about Coq, pair is defined to be left-associative. i.e. (1, 2, 3)and ((1, 2), 3) have…

KingsAlpaca
- 57
- 3
2
votes
1 answer
Coq: Proof of list pair
I have wrote this Inductive predicate and part of the proof for its (strong) specification:
Inductive SumPairs : (nat*nat) -> list (nat*nat) -> Prop :=
| sp_base : SumPairs (0,0) nil
| sp_step : forall (l0:list (nat*nat)) (n0 n1: nat) (y:(nat*nat)),…

Cris Teller
- 99
- 5
2
votes
1 answer
How to prove the same subgoals
I have two equal subgoals like this:
prove_me (x::xs) = true
prove_me (x::xs) = true
Proofs will be equals. How I can solve the second goal using the first one?

he11boy
- 71
- 3
2
votes
1 answer
Have problem with unable to use destruct tatic in a Definition
I am working with a definition in coq which need to yield something from a Theorem, but cannot destruct in the definition.
Theorem sp : forall (X : Type) (T : X -> Prop)..... , exists (a : X), T a.
Definition yield_sp : (X : Type) (T : X -> Prop) (H…

shrubbroom
- 45
- 4
2
votes
1 answer
Learning coq, not sure what the error means NNPP
So i've just started to learn coq (and it is way over my head so far) and I'm trying to do a basic proof and I'm pretty lost, found some help so far but what I think I'm supposed to do coq throws an error. So in my editor part I have:
Section…

Zach Lyness SonicEX
- 21
- 2
2
votes
0 answers
How can one compile Coq code reliably using `coqc` command?
I was going the the software foundations course and for some reason I could NOT get the coqc command to compile my libraries.
I did:
coqc Maps.v
but get the error:
Error: The file /Users/pinocchio/coq/software_foundations_vol1/Maps.vo
contains…

Charlie Parker
- 5,884
- 57
- 198
- 323
2
votes
1 answer
How to partition Coq code to feed Coq ideslave (XML protocol)?
I thought the "Add" call of Coq ideslave (also known as Coq XML protocol) takes one chunk of code at a time, partitioned by periods (.). I still believe this to be true in most cases. For example,
Inductive or (A B:Prop) : Prop :=
| or_introl : A…

Jian Wang
- 103
- 5
2
votes
0 answers
CoqIDE Make on Windows
I have GnuWin32 Make and GnuWin32 Coreutils, installed and on my PATH. This works:
coq_makefile -f _CoqProject -o Makefile.coq
make -f Makefile.coq Frap.vo
But if I open Frap.v in CoqIDE, and do Compile > Make, the only output I see is…

Carl Patenaude Poulin
- 6,238
- 5
- 24
- 46
2
votes
1 answer
How to prove why3 generated script in coq?
I use frama-C WP and want to debug my ACSL annotations (to understand why provers say me "don't know").
I have some green or orange results. I open why3 IDE and see the generated scripts. Then I select a theory/goal from the list and able to start…

SeregASM
- 75
- 12
2
votes
1 answer
CoqIDE configuration in Linux
I have a fresh install of Coq 8.6 in Ubuntu 17.04. When I try to compile my project using make, it works fine until I get the first error message. Then, I try to use CoqIDE to locate and correct the error, but I get new error messages, such as:
"The…

Marcus
- 437
- 2
- 11
2
votes
2 answers
Coqide 8.5: No syntax highlighting on Linux
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):…

jaam
- 900
- 4
- 23
2
votes
1 answer
OS X `rlwrap coqtop` not working
rlwrap is a good program handling arrow keys in REPL loop. In most cases it works. For example rlwrap sbcl, rlwrap sml, and so on. But when it comes to rlwrap coqtop, it fails. The error information is below.
rlwrap: error: Couldn't read…

eccstartup
- 501
- 8
- 24