author | wenzelm |
Sun, 23 Sep 2018 20:33:35 +0200 | |
changeset 69043 | 57a76e4728ed |
parent 67443 | 3abf6a722518 |
permissions | -rw-r--r-- |
48589
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
1 |
theory Ex imports Pure |
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
2 |
begin |
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
3 |
|
63167 | 4 |
ML \<open> |
48589
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
5 |
val rc = Isabelle_System.bash |
69043
57a76e4728ed
more robust: logic image might be absent in PIDE session;
wenzelm
parents:
67443
diff
changeset
|
6 |
"cd \"$ISABELLE_HOME/src/HOL/Analysis\"; if isabelle build -n \"$MIRABELLE_LOGIC\"; then isabelle mirabelle arith Inner_Product.thy; fi"; |
48589
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
7 |
if rc <> 0 then error ("Mirabelle example failed: " ^ string_of_int rc) |
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
8 |
else (); |
67443
3abf6a722518
standardized towards new-style formal comments: isabelle update_comments;
wenzelm
parents:
63971
diff
changeset
|
9 |
\<close> \<comment> \<open>some arbitrary small test case\<close> |
48589
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
10 |
|
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
11 |
end |
fb446a780d50
separate session HOL-Mirabelle-ex -- cannot run isolated shell scripts within build tool;
wenzelm
parents:
diff
changeset
|
12 |