TODO.md
author wneuper <Walther.Neuper@jku.at>
Mon, 11 Dec 2023 09:24:02 +0100
changeset 60778 41abd196342a
parent 60777 df8636ffd6f8
child 60781 344eee0d80f7
permissions -rw-r--r--
prepare 1: delete old code with I_Model.T (without Position.T)
     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);
     4 
     5 * MW?: rename *.sml to *.ML, potentially with tool support;
     6 
     7 * MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
     8 
     9     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
    10     11a12
    11     >   src/Tools/isac/BridgeJEdit/isac.scala
    12 
    13     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
    14     76a77
    15     >       "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
    16 
    17 * MW: Skip_Proof.make_thm: theory -> term -> thm        ? could now change signature to
    18                          : Proof.context -> term -> thm
    19 * MW: Make $ISABELLE_ISAC_POS 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
    23 
    24 ***** some items for discussion
    25 
    26 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
    27     ??
    28 
    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)}(**)
    34 
    35 
    36 ***** for the few items below WN asks MW for help
    37 
    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›
    43 
    44 
    45 ***** priority of WN items is top down, most urgent/simple on top
    46 
    47 * WN: 
    48 * WN: clarify handling "#undef" -> type m_field  +++  bool in i_single
    49 * WN: replace I_Model.feedb_values -> val get_values = Pre_Conds.get_values
    50 * WN: replace I_Model.descriptor with fun descr_exists: descriptor -> feedback -> bool
    51 * WN: review Model_Def.is_list_descr, replace by Term.is_list. Exception: make_values
    52     (values determine handling_lists by [[..], [..], ..])
    53 * WN: review Specify.select_inc_lists .. should not be necessary
    54 * WN: intro-fn into M_Match
    55 * WN: after--^^^ replace I_Model.descriptor_POS with Model_Def.get_descr, ELIMI_Model.descriptor
    56 * WN: thy --> ctxt in by_Add_, ? I_Model.T_POS ?
    57       try to do the same in as many functions as possible
    58 * WN: rename type Rule.rule -> Rule.T
    59 * WN: use fn in add_single and further funs in i-model.sml
    60 * WN: reconsider design max_variants/_POS               
    61 * WN: simplify "" in O_Model.to_string "(3, [\"1\", \"2\", \"3\"], #Find, AdditionalValues, [\"[u]\", \"[v]\"])"
    62 * WN: review PblObj {meth, ...}
    63   * fill early (Model_Problem?) with Inc []  presents input-templates
    64   * try to minimise user's contact with Method: 
    65   * M_Model.by_i_models can probably be replaced by i_Model.s_make_complete and Pre_Conds.check(?_*)
    66 * WN: undetected ERROR in autoCalculate --- due to Post_Conds.check? (_OLD .. dispels ?)
    67 * WN: DEL get_simplifier: is only used in test/*
    68 * WN: replace take in LibraryC with take from Library
    69 * WN: Syntax.read_term @{context} --> Syntax.read_term\<^context> , see I_Model "UnIqE_tErM"
    70 * WN: renaming in References
    71 * WN: shift code from libraryC.sml to designated destination (ThyC, etc)
    72 * WN: review ?code ERROR? in Rewrite.eval_true, see WN230329
    73 
    74 * WN: unify get_ctxt in Solve_Step, Ctree (*DEPRECATED*)
    75 * WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.initialise' xxx'
    76       ? which uses initialise !?
    77 * WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
    78 
    79 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
    80   e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
    81 
    82 * WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
    83 
    84 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
    85     Context.theory_name seems to suffice after elimination of sessions.
    86 
    87 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
    88     - quite often "axiomatization ..." can be turned into "lemma ... by auto"
    89       without further ado;
    90     - sometimes this requires to use more specific types / type classes;
    91     - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
    92     - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
    93 
    94 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
    95 
    96 * WN: redesign transition from Specification to Solution: how relate 
    97     - Formalise.model with variants (e.g. VSCode_Example)
    98       reconsider separation of variants F_I, F_II, see MAWEN paper
    99     - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
   100     - !?! formal arguments of program (fixed sequence)
   101 
   102 * WN: avoid too many uses of "structure Data = Theory_Data", instead use approx. 1 data slot
   103   per ML module, with type T = ... record or tuple (e.g. see @{apply} ML antiquotation)
   104 
   105 * WN: rename *.sml to *.ML, potentially with tool support by MW;
   106 * WN: rename src/Tools/isac/ to main/ (or something else);
   107         rename  src/Tools/isac/BridgeJEdit and test/Tools/isac/BridgeJEdit to */Tools/isac/BridgePIDE