src/HOL/Mirabelle/ex/Ex.thy
author wenzelm
Sun, 23 Sep 2018 20:33:35 +0200
changeset 69043 57a76e4728ed
parent 67443 3abf6a722518
permissions -rw-r--r--
more robust: logic image might be absent in PIDE session;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0909deb8059b isabelle update_cartouches -c -t;
wenzelm
parents: 62589
diff changeset
     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