TODO.md
author wneuper <Walther.Neuper@jku.at>
Sun, 23 Oct 2022 16:08:27 +0200
changeset 60576 11dd56e2a6b8
parent 60573 7ab2b7aff287
child 60578 baf06b1b2aaa
permissions -rw-r--r--
follow up 6a: eliminate Thy_Inof.get_thoery for Minisubplb/100-init-rootpbl.sml independent -- src only, rollback
     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 * How does declare [[LI_trace = true]] and declare [[rewrite_trace = true]] work in ISABELLE_ISAC_TEST ?
    14 
    15 
    16 
    17 ***** some items for discussion
    18 
    19 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
    20     ??
    21 
    22 * "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
    23     takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
    24     ? are there better approximations to old output of (*1*) than with (*2*)
    25     (*1*)val _ = tracing ("hd_ord (f, g)      = " ^ ((pr_ord o hd_ord) (f, g)) );
    26     (*2*)val _ = @{print tracing}{a = "hd_ord (f, g)      = ", z = hd_ord (f, g)}(**)
    27 
    28 
    29 ***** for the few items below WN asks MW for help
    30 
    31 * MW: make Outer_Syntax.command..‹problem› a model for ..\<open>Example\<close>
    32   The model should demonstrate, how an ML syntax error is indicated in place 
    33   (in the string after \<^keyword>\<open>Given\<close> etc) and not on the definition as a whole. 
    34     - in MathEngBasic/problem "Outer_Syntax.command \<^command_keyword>\<open>problem\<close>" there are writeln
    35       and comments with testdata from "problem pbl_bieg : "Biegelinien"" in Biegelinie.thy
    36     - in MathEngBasic/problem there is guesswork ("TODO") how to reorganise "fun prep_input"
    37       such that errors in "Given" etc are indicated WITHIN the term.
    38 
    39 * MW: In Outer_Syntax.command..‹Example› help: is there a quick fix
    40   for successfully replacing hacked Problem.parse_cas by parse_references_input?
    41     (a) In addition to replacing Problem.parse_cas: How implement the optional parser:
    42       - Example "Diff_App/No.123 a" + NONE
    43       - Example "Diff_App/No.123 a" + SOME (probl_id, model_input, refs_input)
    44         i.e. we expect ISAC to present an empty template "Problem..Solution", but as a whole, to the user;
    45         see VSCode_Example.thy subsubsection \<open>Specification step by step\<close>
    46     How get Token.src for testing purposes?
    47     How can Scan.* be traced?
    48     (Tracing should help understanding Problem.parse_cas, Problem.parse_model_input which involve Scan.* )
    49 
    50 * ?How represent items, which have not yet been input?
    51    Note: For the purpose of user-guidance the format of requested input should be indicated!
    52     - proposal for how to indicate requested input: in VSCode_Example.thy subsubsection \<open>Empty Specification>
    53     - the trial with <fun is_empty> in Calculation.thy makes the question more precise: 
    54       better hack parsers or better work on ML_Syntax?
    55 
    56 * ?How accomplish two user-requirements by Outer_Syntax.command \<^command_keyword>\<open>Example\<close>
    57    (1) start a Calculation with a CAS_Cmd
    58    (2) start an Example from scratch, i.e. with (Formalize.empty, References.empty)
    59    Proposals for a solution are in test/../Test_VSCode_Example.thy
    60    subsubsection ‹Start Example with a CAS_Cmd›
    61 
    62 
    63 ***** priority of WN items is top down, most urgent/simple on top
    64 
    65 * WN: follow up 6: eliminate use of Thy_Info.get_theory
    66       follow up 7: ANSWER: represent items, which have not yet been input IN VSCode_Example.thy WITH "__"
    67 
    68 * WN: cleanup Problem/MethodC..prep_input
    69 * WN: Sub_Problem.tac_from_prog: use ctxt from pt
    70 * WN: in subst_adapt_to_type should ''bdv''(string) handled by Varialbe.declare_constraints
    71       ?why is "x" not already typed correctly (by reading strings from Formalise)?)
    72 * WN: improve naming in refine.sml, m-match.sml
    73 * WN: rename ‹ML_structure KEStore_Elems› to ‹ML_structure Know_Store›
    74 * WN: all UnparseC with Proof.context, cleanup unparseC.sml and calls
    75 * WN: review Prog_Tac:
    76       (*+isa==isa2*)@{term "Substitution []"};               (*Free ("Subproblem",.. ALSO Subproblem, ?!*)
    77       (*+isa==isa2*)@{term "Rewrite_Set ''norm_Rational''"}; (*Const ("Prog_Tac.Rewrite_Set",..*)
    78 * WN: KEStore_Elems.get_thes, add_thes still required for Error_Patterns, we want to eliminate thes:
    79     (1) Error_Pattern.T are already stored by MethodC -- place them in respective thys
    80     (2) Error_Pattern.fill_in stored with thm (in thes): instead introduce new Thy_Data for them.
    81         adapt KEStore_Elems.insert_fillpats for that purpose.
    82 
    83 * WN: Specify/formalise.sml is in BaseDefinitions/ AND Specify/  DELETE ONE VERSION
    84 * WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.nxt_specify_init_calc
    85       ? which uses initialise !?
    86 * WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
    87 
    88 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
    89   e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
    90 
    91 * WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
    92 
    93 * WN: Avoid Thm.get_name_hint and use Global_Theory.get_thm instead, get theory from References.T
    94     and push theory through as argument of respective functions.
    95 
    96 * WN: Eliminate Thy_Info.get_theory eventually: should take theory from ancestory
    97   within current context.
    98     cf. e587c45cae0f note in Build_Thydata.thy
    99 
   100 * WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
   101     present ISAC assumes 2 sessions in the MathEngine, Specify and Interpret, 
   102     and all Isac_Knowledge is in session Isac.
   103     So Context.theory_name suffices
   104 
   105 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
   106     - quite often "axiomatization ..." can be turned into "lemma ... by auto"
   107       without further ado;
   108     - sometimes this requires to use more specific types / type classes;
   109     - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
   110     - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
   111 
   112 * WN: eliminate argument theory from Interpret/*, e.g. (LI_Tool.tac_from_prog + see TODO.thy)
   113 * WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
   114 
   115 * WN: redesign transition from Specification to Solution: how relate 
   116     - Formalise.model with variants (e.g. VSCode_Example)
   117       reconsider separation of variants F_I, F_II, see MAWEN paper
   118     - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
   119     - !?! formal arguments of program (fixed sequence)