TODO.md
author wneuper <Walther.Neuper@jku.at>
Tue, 13 Sep 2022 10:28:04 +0200
changeset 60552 6c48066071e2
parent 60547 99328169539a
child 60553 eb89f586b0b2
permissions -rw-r--r--
adaptation to mail
     1 * MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
     2 
     3     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
     4     11a12
     5     >   src/Tools/isac/BridgeJEdit/isac.scala
     6 
     7     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
     8     76a77
     9     >       "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
    10 
    11 * MW: Skip_Proof.make_thm: theory -> term -> thm        ? could now change signature to
    12                          : Proof.context -> term -> thm
    13 
    14 
    15 ***** some items for discussion
    16 
    17 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
    18     ??
    19 
    20 * "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
    21     takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
    22     ? are there better approximations to old output of (*1*) than with (*2*)
    23     (*1*)val _ = tracing ("hd_ord (f, g)      = " ^ ((pr_ord o hd_ord) (f, g)) );
    24     (*2*)val _ = @{print tracing}{a = "hd_ord (f, g)      = ", z = hd_ord (f, g)}(**)
    25 
    26 
    27 ***** for the few items below WN asks MW for help
    28 
    29 * MW: make Outer_Syntax.command..‹problem› a model for ..\<open>Example\<close>
    30   The model should demonstrate, how an ML syntax error is indicated in place 
    31   (in the string after \<^keyword>\<open>Given\<close> etc) and not on the definition as a whole. 
    32     - in MathEngBasic/problem "Outer_Syntax.command \<^command_keyword>\<open>problem\<close>" there are writeln
    33       and comments with testdata from "problem pbl_bieg : "Biegelinien"" in Biegelinie.thy
    34     - in MathEngBasic/problem there is guesswork ("TODO") how to reorganise "fun prep_input_PIDE"
    35       such that errors in "Given" etc are indicated WITHIN the term.
    36 
    37 * MW: In Outer_Syntax.command..‹Example› help: is there a quick fix
    38   for successfully replacing hacked Problem.parse_cas by parse_references_input?
    39     (a) In addition to replacing Problem.parse_cas: How implement the optional parser:
    40       - Example "Diff_App/No.123 a" + NONE
    41       - Example "Diff_App/No.123 a" + SOME (probl_id, model_input, refs_input)
    42         i.e. we expect ISAC to present an empty template "Problem..Solution", but as a whole, to the user;
    43         see VSCode_Example.thy subsubsection \<open>Specification step by step\<close>
    44     How get Token.src for testing purposes?
    45     How can Scan.* be traced?
    46     (Tracing should help understanding Problem.parse_cas, Problem.parse_model_input which involve Scan.* )
    47 
    48 * ?How represent items, which have not yet been input?
    49    Note: For the purpose of user-guidance the format of requested input should be indicated!
    50     - proposal for how to indicate requested input: in VSCode_Example.thy subsubsection \<open>Empty Specification>
    51     - the trial with <fun is_empty> in Calculation.thy makes the question more precise: 
    52       better hack parsers or better work on ML_Syntax?
    53 
    54 * ?How accomplish two user-requirements by Outer_Syntax.command \<^command_keyword>\<open>Example\<close>
    55    (1) start a Calculation with a CAS_Cmd
    56    (2) start an Example from scratch, i.e. with (Formalize.empty, References.empty)
    57    Proposals for a solution are in test/../Test_VSCode_Example.thy
    58    subsubsection ‹Start Example with a CAS_Cmd›
    59 
    60 
    61 ***** priority of WN items is top down, most urgent/simple on top
    62 
    63 * What is the idea behind KEStore_Elems.add_thes? How to do it properly in current Isabelle?
    64   See notes in Build_Thydata.thy.
    65     https://static.miraheze.org/isacwiki/0/04/Isac-docu.pdf distinguishes 
    66     several kinds of ISAC users, in particular "math author (Mathematik-Autor)" and
    67     "course designer (Kurs-Designer)". The latter just adds examples which re-use existing
    68     knowledge designed by the former. KEStore_Elems.add_thes is an interface for the latter.
    69   KEStore_Elems.get_thes and KEStore_Elems.add_thes are ONLY required for the Lucas-Interpreter
    70   retrieving Thm and Rls from string-identifiers (which do NOT indicate the theory of) --
    71   -- get_thes and add_thes are the main reason for (b)
    72   So: How can KEStore_Elems.get_thes and KEStore_Elems.add_thes be replaced in current Isabelle?
    73 
    74 * WN: rename structure KEStore_Elems --> Know_Store
    75 * WN: Step_Specify.initialisePIDE: remove hdl in return-value, replace Step_Specify.nxt_specify_init_calc
    76       ? which uses initialisePIDE !?
    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: Avoid Thm.get_name_hint and use Global_Theory.get_thm instead, get theory from References.T
    85     and push theory through as argument of respective functions.
    86 
    87 * WN: Eliminate Thy_Info.get_theory eventually: should take theory from ancestory
    88   within current context.
    89     cf. e587c45cae0f note in Build_Thydata.thy
    90 
    91 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
    92     present ISAC assumes 2 sessions in the MathEngine, Specify and Interpret, 
    93     and all Isac_Knowledge is in session Isac.
    94     So Context.theory_name suffices
    95 
    96 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
    97     - quite often "axiomatization ..." can be turned into "lemma ... by auto"
    98       without further ado;
    99     - sometimes this requires to use more specific types / type classes;
   100     - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
   101     - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
   102 
   103 * WN: eliminate argument theory from Interpret/*, e.g. (LI_Tool.tac_from_prog + see TODO.thy)
   104 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
   105 
   106 * WN: redesign transition from Specification to Solution: how relate 
   107     - Formalise.model with variants (e.g. VSCode_Example)
   108       reconsider separation of variants F_I, F_II, see MAWEN paper
   109     - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
   110     - !?! formal arguments of program (fixed sequence)