如何像在 CoqIde/jscoq 中一样激活 vscode/vscoq 中的 Coq 消息?

发布于 2025-01-12 01:39:14 字数 1574 浏览 6 评论 0原文

我期待消息栏中出现一些内容,但没有看到它

示例脚本:

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.
  intros.                                     (* goal : add_left n O = n *)  
  let add_left_red := eval red in add_left in (* reduce add_left, but leave goal alone *)
  idtac add_left_red.                         (* print the result *)
  (* Print eval. gives error *) 
  Print red.
  Print add_left_red.
  admit.
Abort.

在 JScoq 中我看到 (https ://coq.vercel.app/scratchpad.html):

(fix add_left (n m : nat) {struct n} : nat :=
  match n with
| 0 => m
| S p => S (add_left p m)
end)

在 vscode 中我什么也没看到。

查看图片以确保清晰度 输入图片此处描述

在此处输入图像描述

交叉:

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.
  intros.                                     (* goal : add_left n O = n *)  
  let add_left_red := eval red in add_left in (* reduce add_left, but leave goal alone *)
  idtac add_left_red.                         (* print the result *)
  (* Print eval. gives error *) 
  Print red.
  Print add_left_red.
  admit.
Abort.

in JScoq I see (https://coq.vercel.app/scratchpad.html):

(fix add_left (n m : nat) {struct n} : nat :=
  match n with
| 0 => m
| S p => S (add_left p m)
end)

in vscode I see nothing.

See pics for clarity
enter image description here

enter image description here

cross:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若水般的淡然安静女子 2025-01-19 01:39:14

似乎打印在:

It's not a bug, it's not printed in "Notices" but in "Info".

Seems it's printed in:

It's not a bug, it's not printed in "Notices" but in "Info".
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文