1 * MW: implement ML toplevel spans in official Isabelle, e.g.
2 with separator \<^medskip> and some tool support for automated
3 update (in "isabelle update" and/or PIDE);
5 * MW?: rename *.sml to *.ML, potentially with tool support;
7 * MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
9 diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
11 > src/Tools/isac/BridgeJEdit/isac.scala
13 diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
15 > "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
17 * MW: Skip_Proof.make_thm: theory -> term -> thm ? could now change signature to
18 : Proof.context -> term -> thm
19 * MW: Make $ISABELLE_ISAC_TEST work without sessions (please synchronise with WN)
20 * MW: ? implement a template, inserted in a proof in the line of metis;
21 hints are given in src/../BridgeJEdit/template.sml
22 and in test/../BridgeJEdit/template.sml
24 ***** some items for discussion
26 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
29 * "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
30 takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
31 ? are there better approximations to old output of (*1*) than with (*2*)
32 (*1*)val _ = tracing ("hd_ord (f, g) = " ^ ((pr_ord o hd_ord) (f, g)) );
33 (*2*)val _ = @{print tracing}{a = "hd_ord (f, g) = ", z = hd_ord (f, g)}(**)
36 ***** for the few items below WN asks MW for help
38 * postpone: ?How accomplish two user-requirements by Outer_Syntax.command \<^command_keyword>\<open>Example\<close>
39 (1) start a Calculation with a CAS_Cmd
40 (2) start an Example from scratch, i.e. with (Formalize.empty, References.empty)
41 Proposals for a solution are in test/../Test_VSCode_Example.thy
42 in subsubsection ‹Start Example with a CAS_Cmd›
44 * WN: cut out Calc.state_pre, Calc.state_post; only Ctree.state shall remain
45 ?or could that be reasonable also together with Isabelle/PIDE?
46 * How can "./bin/isabelle build -v -b Specify_Phase" be done within Test_Isac?
49 ***** priority of WN items is top down, most urgent/simple on top
52 * WN: cut out Ctree_Basic.ets: a step will never return several internal steps in the future
53 * WN: rm Ctree_Basic.envp
54 * WN: I_Model: review/rename seek_ppc, overwrite_ppc
55 * WN: replace I_Model.feedb_values -> val get_values = Pre_Conds.get_values
56 * WN: replace I_Model.descriptor with fun descr_exists: descriptor -> feedback -> bool
57 * WN: review Model_Def.is_list_descr, replace by Term.is_list. Exception: make_values
58 (values determine handling_lists by [[..], [..], ..])
59 * WN: review Specify.select_inc_lists .. should not be necessary
60 * WN: intro-fn into M_Match
61 * WN: after--^^^ replace I_Model.descriptor with Model_Def.get_descr, ELIMI_Model.descriptor
62 * WN: thy --> ctxt in by_Add_, ? I_Model.T ?
63 try to do the same in as many functions as possible
64 * WN: rename type Rule.rule -> Rule.T
65 * WN: clarify handling "#undef" -> type m_field +++ bool in i_single
66 * WN: simplify "" in O_Model.to_string "(3, [\"1\", \"2\", \"3\"], #Find, AdditionalValues, [\"[u]\", \"[v]\"])"
67 * WN: review PblObj {meth, ...}
68 * fill early (Model_Problem?) with Inc [] presents input-templates
69 * try to minimise user's contact with Method:
70 * M_Model.by_i_models can probably be replaced by i_Model.s_make_complete and Pre_Conds.check(?_*)
71 * WN: undetected ERROR in autoCalculate --- due to Post_Conds.check? (_OLD .. dispels ?)
72 * WN: DEL get_simplifier: is only used in test/*
73 * WN: replace take in LibraryC with take from Library
74 * WN: Syntax.read_term @{context} --> Syntax.read_term\<^context> , see I_Model "UnIqE_tErM"
75 * WN: renaming in References
76 * WN: shift code from libraryC.sml to designated destination (ThyC, etc)
77 * WN: review ?code ERROR? in Rewrite.eval_true, see WN230329
79 * WN: unify get_ctxt in Solve_Step, Ctree (*DEPRECATED*)
80 * WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.initialise' xxx'
81 ? which uses initialise !?
82 * WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
84 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
85 e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
87 * WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
89 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
90 Context.theory_name seems to suffice after elimination of sessions.
92 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
93 - quite often "axiomatization ..." can be turned into "lemma ... by auto"
95 - sometimes this requires to use more specific types / type classes;
96 - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
97 - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
99 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
101 * WN: redesign transition from Specification to Solution: how relate
102 - Formalise.model with variants (e.g. VSCode_Example)
103 reconsider separation of variants F_I, F_II, see MAWEN paper
104 - !?! I_Model of MethodC (fairly free sequence, dependent on Formalise.model)
105 - !?! formal arguments of program (fixed sequence)
107 * WN: avoid too many uses of "structure Data = Theory_Data", instead use approx. 1 data slot
108 per ML module, with type T = ... record or tuple (e.g. see @{apply} ML antiquotation)
110 * WN: rename *.sml to *.ML, potentially with tool support by MW;
111 * WN: rename src/Tools/isac/ to main/ (or something else);
112 rename src/Tools/isac/BridgeJEdit and test/Tools/isac/BridgeJEdit to */Tools/isac/BridgePIDE