简体   繁体   中英

How does the grading script of the LF series work for manually graded exercises?

I am trying to figure out how the LF test scripts output the manually graded assignments when run from the terminal. For instance, if you look at Induction.v there is an exercise called plus_comm_informal I am trying to get the test script, InductionTest.v to pick up the comments or content that I write. So I made the following attempts to monkey debug.

(** **** 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.
(** [] *)

I saved the file. Then I compile the file with coqc -Q . LF .\\Induction.v coqc -Q . LF .\\Induction.v and then run the test file with coqc -Q . LF .\\InductionTest.v coqc -Q . LF .\\InductionTest.v

The output of that doesn't give me any of the comments I passed in the manually graded exercises. The relevant section of the terminal output is as follows.

-------------------  plus_comm_informal  --------------------

#> Manually graded: plus_comm_informal
Advanced
Possible points: 2
Score: Ungraded
Comment: None

What am I missing?

There isn't much to do about this because those exercises have to be graded manually. If you're turning this in for homework, you'll have to double-check that you did all the manual exercises yourself. If you are teaching yourself, you can give yourself a dummy grade by changing the None. to Some (1, ""%string).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM