Questions tagged [jscoq]

3 questions
2
votes
1 answer

Why is my local coq no acting the same as standard coq e.g. as JsCoq?

I was going through the trivial example in this question How can I rewrite "+ 1" (plus one) to "S" (succ) in Coq? but the proof does not work in my local computer despite it working on jscoq. This is where my proof gets stuck: Lemma s_is_plus_one: …
Charlie Parker
  • 5,884
  • 57
  • 198
  • 323
0
votes
1 answer

How to prove Theorem euclid_gcd : forall a b z, euclid a b z -> gcd a b z. using coq?

I am trying to prove euclid_gcd Theorem but Im getting stuck at the second case of the induction. most of the time I'm getting unify errors. I will be glad for some help please. Require Import Arith.Arith. Import Nat. Inductive gcd : nat -> nat ->…
lam_gam
  • 31
  • 1
  • 5
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