snu-sf-class / pl201602

SNU 2016 Fall 4190.310 Programming Language
22 stars 10 forks source link

I get compile error on server when I use another file's theorem. #11

Closed minsuu closed 8 years ago

minsuu commented 8 years ago

When I was working on P03.v of assignment 2, I used the previously proven theorem in P01.v. It worked well when I ran make on local environment, however, I got compile error on server like following:

STDERR:
File "./P03.v", line 15, characters 22-37:
Error: The reference P01.*** was not found in the current
environment.
make[1]: *** [P03.vo] Error 1
make: *** [P03.vo] Error 2

I tried many different ways to use the theorem in P01.v, finally I redefined it in P03.v and got it right. What is the problem here? My submission number is 104-106.

jeehoonkang commented 8 years ago

Hi! The behavior of the evaluation server is intended. This is to reject such a case:

// P01.v
Lemma f: False. Proof. FILL_IN_HERE. Qed.

// P03.v
Lemma lemma: L. Proof. exfals. appply f. Qed.
jeehoonkang commented 8 years ago

If you need the same definition several times, please just copy-and-paste it over P??.v files wherever needed. Sorry for the inconvenience.

minsuu commented 8 years ago

Thanks for the reply!