isabelle-prover / proving-contest-backends

"proving-contest"-backends for several theorem provers
MIT License
12 stars 5 forks source link

[Isabelle] "test" as an identifier leads to surprising errors #30

Open wimmers opened 4 years ago

wimmers commented 4 years ago

Problem description: If "test" is used in Submission.thy we get surprising errors.

Example (Submission.thy):

...

lemma test: True
 by simp

...

Output:

...
Draft.Submission | Outer syntax error\<^here>: proposition expected, but end-of-input\<^here> was found
-- | --
Draft.Submission | Outer syntax error\<^here>: term expected, but keyword :\<^here> was found
Draft.Submission | Bad context for command "apply"\<^here> -- using reset state
...

Expected behavior: The system should accept the submission.

Analysis: In OK_Test.thy, we define the command test and thus reserve it as a keyword.

Solution proposals: