Questions tagged [coqide]

Graphical interface (IDE) for Coq. It is written in OCaml.

103 questions
0
votes
0 answers

Starting a GTK application through X11

I would like to start a snap-packaged CoqIDE remotely through X11. It does not work. I access my remote Debian 11.4 machine through ssh -X from my office Windows. I tried this from a home CentOS box as well, that is far from any firewall. At first…
Gergely
  • 6,879
  • 6
  • 25
  • 35
0
votes
1 answer

Warning : “Set this option from the IDE menu instead” in coq

I'm studying the Chapter "Imp" of Software foundation. I runned the command Unset Printing Coercions. in Coq Ide, the coq Message warned me that "Set this option from the IDE menu instead" and obviously the command doesn't work. I guess maybe this…
Echo_Zero
  • 15
  • 3
0
votes
1 answer

Concatenation of 2 lists in lambda-calculus

I have defined the type of a polymorphic list and its constructors, and now trying to write a fonction that concatenate 2 lists but my function concat does not work Definition listA A :Set := forall T :Set, T -> (A -> T -> T) -> T. …
t1kumi
  • 23
  • 3
0
votes
1 answer

How to activate the Coq messages in vscode/vscoq like in the CoqIde/jscoq?

I am expecting something in my messages bar but I don't see it Example script: Fixpoint add_left (n m : nat) : nat := match n with | O => m | S p => S (add_left p m) end. Lemma demo_1 : forall (n : nat), add_left n O = n. Proof. …
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
0
votes
2 answers

How to Import Coq library HoTT in CoqIde

I want to use HoTT library in my CoqIde. My environment is Coq_Platform_2021.09.0.8.13-installer-windows-x86_64-signed and I have tried a lot of methods. I tried to write Require Import HoTT. in CoqIde and get the error Unable to locate library…
0
votes
1 answer

can't launch CoqIde

Everything is fine until I changed the preferences -> Externals -> coqtop in CoqIde and then I found myself in trouble launching CoqIde as the picture shows. It seems that I wrote the wrong path in the coqtop. I have tried to reinstall the…
Huan Sun
  • 147
  • 6
0
votes
1 answer

Coqide does not see global clipboard in wsl

Ubuntu 21.10 under wsl2 in windows 10 successfully shares global clipboard content (for example, in nano or emacs) but coqide (8.12.0, installed through apt) does not. I could not find any mention of clipboard in the configuration, nor in my local…
0
votes
1 answer

How to prove this DeMorgan law without using automation tactics in Coq?

This is the law I'm trying to prove here: Goal forall (X : Type) (p : X -> Prop), (exists x, ~ p x) <-> ~ (forall x, p x). Here's my code up to a point where I don't know in which direction to head: Proof. intros. split. - intros. destruct H…
0
votes
0 answers

VSCoq ProofView not printing

When using Visual Studio Code with enabled VSCoq and coq extensions, stepping through the proof works well but the ProofView window shows blank (no content). What could be the issue and solutions to fix this?
Fusen
  • 311
  • 2
  • 3
  • 10
0
votes
1 answer

An assumption in the goal is completely the same with a function I defined beforehand. How can I tell Coq they are indeed the same?

My current goal is like this: 1 subgoal fun1 : forall W : Type, list W -> list W -> list W H_fun1 : S_fun fun1 V : Type h : V t : list V ______________________________________(1/1) fun2 V (fun3 fun2 V t) (h :: nil) = …
Serene M
  • 17
  • 1
0
votes
2 answers

Coq: Cannot guess decreasing argument of fix

I am trying to write a function that executes boolean operations in a stack program. So far I have got the code bellow but, for some reason, executeBool doesn't work. Coq shows the error "Cannot guess decreasing argument of fix" but I'm not quite…
0
votes
0 answers

Dealing with and sign in goal

I have a goal in my coq and there is "&" sign in it. How can I deal with it? I appreciate any help. Regards
0
votes
1 answer

Coq: Prove Inductive relation (vs Fixpoint)

Is it possible to "convert" a Fixpoint definition for the count function: Fixpoint count (z: Z) (l: list Z) {struct l} : nat := match l with | nil => 0%nat | (z' :: l') => if (Z.eq_dec z z') then S (count z l') …
0
votes
1 answer

Solving a mergesort split proof in Coq

I am currently working on the volume 3 of the Software Foundations' textbook Verified Functional Algorithm and I am stuck on the proof of one exercise. You can find the chapter about Mergesort which I am dealing with at the moment here:…
TalionZz
  • 1
  • 2
0
votes
2 answers

What tactic should I use to avoid stucking in endless loop, in Coq?

I cannot solve a Coq Theorem where I should use denotational semantics. If I go forward from this point I am always stucking in an endless loop. What tactic should be used in this case? Where did I go wrong with this one? Should I start…
steve01
  • 1
  • 1