LF 系列的评分脚本如何用于手动评分练习?
How does the grading script of the LF series work for manually graded exercises?
我想弄清楚当 运行 来自终端时 LF 测试脚本如何输出手动评分的作业。
例如,如果您查看 Induction.v
有一个名为 plus_comm_informal
的练习,我正在尝试获取测试脚本,InductionTest.v
以获取我写的评论或内容。
所以我做了以下尝试来进行猴子调试。
(** **** Exercise: 2 stars, advanced, especially useful (plus_comm_informal)
Translate your solution for [plus_comm] into an informal proof:
Theorem: Addition is commutative.
Proof: (* Let's see how this works! 1*)
Let's see how this works! 2
*)
(** Let's see how this works! 3 *)
(* Let's see how this works! 4 *)
(* Do not modify the following line: *)
Definition manual_grade_for_plus_comm_informal : option (nat*string) := None.
(** [] *)
我保存了文件。然后我用 coqc -Q . LF .\Induction.v
编译文件,然后 运行 用 coqc -Q . LF .\InductionTest.v
编译测试文件
它的输出没有给我在手动评分练习中传递的任何评论。
终端输出的相关部分如下
------------------- plus_comm_informal --------------------
#> Manually graded: plus_comm_informal
Advanced
Possible points: 2
Score: Ungraded
Comment: None
我错过了什么?
这没什么可做的,因为这些练习必须手动评分。如果您将此作为家庭作业,则必须 double-check 您自己完成了所有手动练习。如果您是自学,您可以通过将 None.
更改为 Some (1, ""%string).
来给自己一个虚拟分数
我想弄清楚当 运行 来自终端时 LF 测试脚本如何输出手动评分的作业。
例如,如果您查看 Induction.v
有一个名为 plus_comm_informal
的练习,我正在尝试获取测试脚本,InductionTest.v
以获取我写的评论或内容。
所以我做了以下尝试来进行猴子调试。
(** **** Exercise: 2 stars, advanced, especially useful (plus_comm_informal)
Translate your solution for [plus_comm] into an informal proof:
Theorem: Addition is commutative.
Proof: (* Let's see how this works! 1*)
Let's see how this works! 2
*)
(** Let's see how this works! 3 *)
(* Let's see how this works! 4 *)
(* Do not modify the following line: *)
Definition manual_grade_for_plus_comm_informal : option (nat*string) := None.
(** [] *)
我保存了文件。然后我用 coqc -Q . LF .\Induction.v
编译文件,然后 运行 用 coqc -Q . LF .\InductionTest.v
它的输出没有给我在手动评分练习中传递的任何评论。 终端输出的相关部分如下
------------------- plus_comm_informal --------------------
#> Manually graded: plus_comm_informal
Advanced
Possible points: 2
Score: Ungraded
Comment: None
我错过了什么?
这没什么可做的,因为这些练习必须手动评分。如果您将此作为家庭作业,则必须 double-check 您自己完成了所有手动练习。如果您是自学,您可以通过将 None.
更改为 Some (1, ""%string).