TODO.md
author wneuper <Walther.Neuper@jku.at>
Fri, 05 Aug 2022 11:38:10 +0200
changeset 60517 e1ca211459d1
parent 60516 795d1352493a
child 60519 70b30d910fd5
permissions -rw-r--r--
improve error-msg of Problem.from_store, MethodC.from_store
wenzelm@60216
     1
* MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
wenzelm@60216
     2
wenzelm@60216
     3
    diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
wenzelm@60216
     4
    11a12
wenzelm@60216
     5
    >   src/Tools/isac/BridgeJEdit/isac.scala
wenzelm@60216
     6
wenzelm@60216
     7
    diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
wenzelm@60216
     8
    76a77
wenzelm@60216
     9
    >       "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
wenzelm@60225
    10
Walther@60512
    11
Walther@60512
    12
***** some items for discussion
Walther@60512
    13
Walther@60512
    14
* What is the idea behind KEStore_Elems.add_thes? How to do it properly in current Isabelle?
Walther@60512
    15
    https://static.miraheze.org/isacwiki/0/04/Isac-docu.pdf distinguishes 
Walther@60512
    16
    several kinds of ISAC users, in particular "math author (Mathematik-Autor)" and
Walther@60512
    17
    "course designer (Kurs-Designer)". The latter just adds examples which re-use existing
Walther@60512
    18
    knowledge designed by the former. KEStore_Elems.add_thes is an interface for the latter.
Walther@60512
    19
  KEStore_Elems.get_thes and KEStore_Elems.add_thes are ONLY required for the Lucas-Interpreter
Walther@60512
    20
  retrieving Thm and Rls from string-identifiers (which do NOT indicate the theory of) --
Walther@60512
    21
  -- get_thes and add_thes are the main reason for (b)
Walther@60512
    22
  So: How can KEStore_Elems.get_thes and KEStore_Elems.add_thes be replaced in current Isabelle?
wenzelm@60316
    23
wenzelm@60295
    24
* Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
walther@60369
    25
    ??
wenzelm@60295
    26
Walther@60512
    27
* "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
Walther@60512
    28
    takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
Walther@60512
    29
    ? are there better approximations to old output of (*1*) than with (*2*)
Walther@60512
    30
    (*1*)val _ = tracing ("hd_ord (f, g)      = " ^ ((pr_ord o hd_ord) (f, g)) );
Walther@60512
    31
    (*2*)val _ = @{print tracing}{a = "hd_ord (f, g)      = ", z = hd_ord (f, g)}(**)
Walther@60512
    32
wenzelm@60316
    33
* KEStore_Elems: Should we eliminate union_overwrite and use standard namespace merge?
wenzelm@60316
    34
  (Exception: rlss with its special cross-theory merge.)
walther@60376
    35
    ? how adapt the different signatures ?
walther@60376
    36
    union_overwrite: ('a * 'a -> bool) -> 'a list -> 'a list -> 'a list
walther@60376
    37
    merge          : ('a * 'a -> bool) -> 'a list * 'a list -> 'a list
wenzelm@60285
    38
wenzelm@60281
    39
Walther@60512
    40
***** for the few items below WN asks MW for help
wenzelm@60281
    41
Walther@60512
    42
* MW: make Outer_Syntax.command \<^command_keyword>\<open>problem\<close> a model for ..\<open>Example\<close>
Walther@60512
    43
  The model should demonstrate, how an ML syntax error is indicated in place 
Walther@60512
    44
  (in the string after \<^keyword>\<open>Given\<close> etc) and not on the definition as a whole. 
Walther@60512
    45
    - in MathEngBasic/problem "Outer_Syntax.command \<^command_keyword>\<open>problem\<close>" there are writeln
Walther@60512
    46
      and comments with testdata from "problem pbl_bieg : "Biegelinien"" in Biegelinie.thy
Walther@60512
    47
    - in MathEngBasic/problem there is guesswork ("TODO") how to reorganise "fun prep_input_PIDE"
Walther@60512
    48
      such that errors in "Given" etc are indicated WITHIN the term.
wenzelm@60292
    49
Walther@60512
    50
* MW: In Outer_Syntax.command \<^command_keyword>\<open>Example\<close> is there a quick fix
Walther@60512
    51
  for successfully replacing hacked Problem.parse_cas by parse_references_input?
Walther@60512
    52
    (a) In addition to replacing Problem.parse_cas: How implement the optional parser:
Walther@60512
    53
      - Example "Diff_App/No.123 a" + NONE
Walther@60512
    54
      - Example "Diff_App/No.123 a" + SOME (probl_id, model_input, refs_input)
Walther@60512
    55
        i.e. we expect ISAC to present an empty template "Problem..Solution", but as a whole, to the user;
Walther@60512
    56
        see VSCode_Example.thy subsubsection \<open>Specification step by step\<close>
Walther@60512
    57
    How get Token.src for testing purposes?
Walther@60512
    58
    How can Scan.* be traced?
Walther@60512
    59
    (Tracing should help understanding Problem.parse_cas, Problem.parse_model_input which involve Scan.* )
wenzelm@60315
    60
Walther@60512
    61
* ?How represent items, which have not yet been input?
Walther@60512
    62
   Note: For the purpose of user-guidance the format of requested input should be indicated!
Walther@60512
    63
    - proposal for how to indicate requested input: in VSCode_Example.thy subsubsection \<open>Empty Specification>
Walther@60512
    64
    - the trial with <fun is_empty> in Calculation.thy makes the question more precise: 
Walther@60512
    65
      better hack parsers or better work on ML_Syntax?
wenzelm@60311
    66
wenzelm@60304
    67
Walther@60512
    68
***** priority of WN items is top down, most urgent/simple on top
wenzelm@60234
    69
Walther@60500
    70
* WN: rewriting with ctxt not complete (cause errors hard to indentify later)
Walther@60500
    71
    - Prconditions.eval
Walther@60500
    72
    - Solve_Step.check ..Rewrite_Inst, Substitute, ..
Walther@60500
    73
    - Error_Pattern.check_for', fill_form
Walther@60500
    74
    - Derive.steps
Walther@60500
    75
    - Fetch_Tacs.specific_from_prog ?
Walther@60504
    76
    - Eval.adhoc_thm, adhoc_thm1_
Walther@60500
    77
    - ? LIST IS NOT COMPLETE
Walther@60500
    78
Walther@60512
    79
* WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
Walther@60512
    80
  e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
Walther@60512
    81
Walther@60500
    82
* WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
Walther@60500
    83
Walther@60512
    84
* WN: Avoid Thm.get_name_hint and use Global_Theory.get_thm instead, get theory from References.T
Walther@60512
    85
    and push theory through as argument of respective functions.
Walther@60512
    86
Walther@60512
    87
* WN: Eliminate Thy_Info.get_theory eventually: should take theory from ancestory
Walther@60512
    88
  within current context.
Walther@60512
    89
    cf. e587c45cae0f note in Build_Thydata.thy
Walther@60512
    90
Walther@60512
    91
* WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
Walther@60512
    92
    present ISAC assumes 2 sessions in the MathEngine, Specify and Interpret, 
Walther@60512
    93
    and all Isac_Knowledge is in session Isac.
Walther@60512
    94
    So Context.theory_name suffices
Walther@60512
    95
Walther@60512
    96
* WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
Walther@60512
    97
    - quite often "axiomatization ..." can be turned into "lemma ... by auto"
Walther@60512
    98
      without further ado;
Walther@60512
    99
    - sometimes this requires to use more specific types / type classes;
Walther@60512
   100
    - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
Walther@60512
   101
    - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
Walther@60512
   102
Walther@60466
   103
* WN: redesign transition from Specification to Solution: how relate 
Walther@60466
   104
    - Formalise.model with variants (e.g. VSCode_Example)
Walther@60466
   105
      reconsider separation of variants F_I, F_II, see MAWEN paper
Walther@60466
   106
    - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
Walther@60466
   107
    - !?! formal arguments of program (fixed sequence)