1 * MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
3 diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
5 > src/Tools/isac/BridgeJEdit/isac.scala
7 diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
9 > "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
11 * MW: Skip_Proof.make_thm: theory -> term -> thm ? could now change signature to
12 : Proof.context -> term -> thm
13 * MW: Make $ISABELLE_ISAC_TEST work without sessions
16 ***** some items for discussion
18 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
21 * "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
22 takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
23 ? are there better approximations to old output of (*1*) than with (*2*)
24 (*1*)val _ = tracing ("hd_ord (f, g) = " ^ ((pr_ord o hd_ord) (f, g)) );
25 (*2*)val _ = @{print tracing}{a = "hd_ord (f, g) = ", z = hd_ord (f, g)}(**)
28 ***** for the few items below WN asks MW for help
30 * MW: In Outer_Syntax.command..‹Example› help: is there a quick fix
31 for successfully replacing hacked Problem.parse_cas by parse_references_input?
32 (a) In addition to replacing Problem.parse_cas: How implement the optional parser:
33 - Example "Diff_App/No.123 a" + NONE
34 - Example "Diff_App/No.123 a" + SOME (probl_id, model_input, refs_input)
35 i.e. we expect ISAC to present an empty template "Problem..Solution", but as a whole, to the user;
36 see VSCode_Example.thy subsubsection \<open>Specification step by step\<close>
37 How get Token.src for testing purposes?
38 How can Scan.* be traced?
39 (Tracing should help understanding Problem.parse_cas, Problem.parse_model_input which involve Scan.* )
41 * WN ? Problem/MethodC.prep_input: model_input UNDERGOES Parse.term in parse_tagged_terms
42 AND AGAIN UNDERGOES Syntax.read_term_global IN prep_input
44 * postpone: ?How accomplish two user-requirements by Outer_Syntax.command \<^command_keyword>\<open>Example\<close>
45 (1) start a Calculation with a CAS_Cmd
46 (2) start an Example from scratch, i.e. with (Formalize.empty, References.empty)
47 Proposals for a solution are in test/../Test_VSCode_Example.thy
48 subsubsection ‹Start Example with a CAS_Cmd›
51 ***** priority of WN items is top down, most urgent/simple on top
53 * WN?: improve Problem/MethodC..prep_input after meeting MW: parse twice?
54 * WN: rename fields in Problem_def.T
55 * WN: rename ‹ML_structure KEStore_Elems› to ‹ML_structure Know_Store›
56 * WN: KEStore_Elems.get_thes, add_thes still required for Error_Patterns, we want to eliminate thes:
57 (1) Error_Pattern.T are already stored by MethodC -- place them in respective thys
58 (2) Error_Pattern.fill_in stored with thm (in thes): instead introduce new Thy_Data for them.
59 adapt KEStore_Elems.insert_fillpats for that purpose.
60 * WN: Sub_Problem.tac_from_prog: use ctxt from pt
61 * WN: in subst_adapt_to_type should ''bdv''(string) handled by Varialbe.declare_constraints
62 ?why is "x" not already typed correctly (by reading strings from Formalise)?)
63 * WN: replace tools derived from get_thes/add_thes by tools derived from current ctxt
64 * WN: eliminate use of Thy_Info.get_theory after * MW: Make $ISABELLE_ISAC_TEST work without sessions
65 cf. e587c45cae0f note in Build_Thydata.thy
66 * WN: improve naming in refine.sml, m-match.sml
67 * WN: all UnparseC with Proof.context, cleanup unparseC.sml and calls
68 * WN: all Subst with Proof.context, cleanup unparseC.sml and calls
69 * WN: review Prog_Tac:
70 (*+isa==isa2*)@{term "Substitution []"}; (*Free ("Subproblem",.. ALSO Subproblem, ?!*)
71 (*+isa==isa2*)@{term "Rewrite_Set ''norm_Rational''"}; (*Const ("Prog_Tac.Rewrite_Set",..*)
73 * WN: Specify/formalise.sml is in BaseDefinitions/ AND Specify/ DELETE ONE VERSION
74 * WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.nxt_specify_init_calc
75 ? which uses initialise !?
76 * WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
78 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
79 e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
81 * WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
83 * WN: Avoid Thm.get_name_hint and use Global_Theory.get_thm instead, get theory from References.T
84 and push theory through as argument of respective functions.
86 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
87 Context.theory_name seems to suffice after elimination of sessions.
89 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
90 - quite often "axiomatization ..." can be turned into "lemma ... by auto"
92 - sometimes this requires to use more specific types / type classes;
93 - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
94 - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
96 * WN: replace arguments theory from Interpret/* by ctxt, e.g. (LI_Tool.tac_from_prog + see TODO.thy)
97 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
99 * WN: redesign transition from Specification to Solution: how relate
100 - Formalise.model with variants (e.g. VSCode_Example)
101 reconsider separation of variants F_I, F_II, see MAWEN paper
102 - !?! I_Model of MethodC (fairly free sequence, dependent on Formalise.model)
103 - !?! formal arguments of program (fixed sequence)