TODO.md
author wneuper <Walther.Neuper@jku.at>
Fri, 01 Dec 2023 06:08:22 +0100
changeset 60771 1b072aab8f4e
parent 60770 365758b39d90
child 60772 ac0317936138
permissions -rw-r--r--
PIDE turn 13: rename ALL(?) code already handling Position.T from *_TEST to *_POS

Note: after switching all src to Position.T *_POS shall be cut of identifiers.
     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: replace I_Model.descriptor with fun descr_exists: descriptor -> feedback -> bool
    49 * WN: review Model_Def.is_list_descr, replace by Term.is_list. Exception: make_values
    50     (values determine handling_lists by [[..], [..], ..])
    51 * WN: review Specify.select_inc_lists .. should not be necessary
    52 * WN: intro-fn into M_Match
    53 * WN: after--^^^ replace I_Model.descriptor_POS with Model_Def.get_descr, ELIMI_Model.descriptor
    54 * WN: thy --> ctxt in by_Add_, ? I_Model.T_POS ?
    55       try to do the same in as many functions as possible
    56 * WN: rename type Rule.rule -> Rule.T
    57 * WN: use fn in add_single and further funs in i-model.sml
    58 * WN: reconsider design max_variants/_POS               
    59 * WN: simplify "" in O_Model.to_string "(3, [\"1\", \"2\", \"3\"], #Find, AdditionalValues, [\"[u]\", \"[v]\"])"
    60 * WN: review PblObj {meth, ...}
    61   * fill early (Model_Problem?) with Inc []  presents input-templates
    62   * try to minimise user's contact with Method: 
    63   * M_Model.by_i_models can probably be replaced by i_Model.s_make_complete and Pre_Conds.check(?_*)
    64 * WN: undetected ERROR in autoCalculate --- due to Post_Conds.check? (_OLD .. dispels ?)
    65 * WN: DEL get_simplifier: is only used in test/*
    66 * WN: replace take in LibraryC with take from Library
    67 * WN: Syntax.read_term @{context} --> Syntax.read_term\<^context> , see I_Model "UnIqE_tErM"
    68 * WN: renaming in References
    69 * WN: shift code from libraryC.sml to designated destination (ThyC, etc)
    70 * WN: review ?code ERROR? in Rewrite.eval_true, see WN230329
    71 
    72 * WN: unify get_ctxt in Solve_Step, Ctree (*DEPRECATED*)
    73 * WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.initialise' xxx'
    74       ? which uses initialise !?
    75 * WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
    76 
    77 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
    78   e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
    79 
    80 * WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
    81 
    82 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
    83     Context.theory_name seems to suffice after elimination of sessions.
    84 
    85 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
    86     - quite often "axiomatization ..." can be turned into "lemma ... by auto"
    87       without further ado;
    88     - sometimes this requires to use more specific types / type classes;
    89     - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
    90     - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
    91 
    92 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
    93 
    94 * WN: redesign transition from Specification to Solution: how relate 
    95     - Formalise.model with variants (e.g. VSCode_Example)
    96       reconsider separation of variants F_I, F_II, see MAWEN paper
    97     - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
    98     - !?! formal arguments of program (fixed sequence)
    99 
   100 * WN: avoid too many uses of "structure Data = Theory_Data", instead use approx. 1 data slot
   101   per ML module, with type T = ... record or tuple (e.g. see @{apply} ML antiquotation)
   102 
   103 * WN: rename *.sml to *.ML, potentially with tool support by MW;
   104 * WN: rename src/Tools/isac/ to main/ (or something else);
   105         rename  src/Tools/isac/BridgeJEdit and test/Tools/isac/BridgeJEdit to */Tools/isac/BridgePIDE