TODO.md
author wneuper <walther.neuper@jku.at>
Sat, 14 Aug 2021 18:49:36 +0200
changeset 60375 50ca2b90cae0
parent 60374 c152abe930ae
child 60376 d9b53c240c5f
permissions -rw-r--r--
question on @{make_string}, @{print}, @{print tracing}
     1 * MW: check uses of Unsynchronized.ref vs. Synchronized.var;
     2 
     3 * MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
     4 
     5     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
     6     11a12
     7     >   src/Tools/isac/BridgeJEdit/isac.scala
     8 
     9     diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
    10     76a77
    11     >       "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
    12 
    13 
    14 * Eliminate Thy_Info.get_theory eventually: should take theory from ancestory
    15   within current context.
    16     cf. e587c45cae0f note in Build_Thydata.thy
    17 
    18 * Clarify symmetric rule: Thm.apply_attribute Calculation.symmetric thm context (!?);
    19     ??
    20 
    21 * KEStore_Elems: Should we eliminate union_overwrite and use standard namespace merge?
    22   (Exception: rlss with its special cross-theory merge.)
    23 
    24 * What is the purpose of "#numeral" instead of plain numeral?
    25     ??
    26 
    27 * Check/clarify Context.theory_name vs. Context.theory_long_name.
    28     present ISAC assumes 2 sessions in the MathEngine, Specify and Interpret, 
    29     and all Isac_Knowledge is in session Isac.
    30     So Context.theory_name suffices
    31 
    32 * Eliminate mutable Rewrite_Ord.rew_ord' (!?);
    33     shall be done in connection with cf. e587c45cae0f note in Build_Thydata.thy
    34 
    35 * What is the idea behind KEStore_Elems.add_thes? How to do it properly in current Isabelle?
    36     https://static.miraheze.org/isacwiki/0/04/Isac-docu.pdf distinguishes 
    37     several kinds of ISAC users, in particular "math author (Mathematik-Autor)" and
    38     "course designer (Kurs-Designer)". The latter just adds examples which re-use existing
    39     knowledge designed by the former. KEStore_Elems.add_thes is an interface for the latter.   
    40 
    41 * WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
    42   e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
    43 
    44 * WN: Avoid Thm.get_name_hintand use Global_Theory.get_thm instead, get theory from References.T
    45     and push theory through as argument of respective functions.
    46 
    47 * WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
    48     - quite often "axiomatization ..." can be turned into "lemma ... by auto"
    49       without further ado;
    50     - sometimes this requires to use more specific types / type classes;
    51     - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
    52     - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
    53 
    54 * WN: eliminate ThmC.numerals_to_Free, done except 1 error:
    55   + exception TYPE raised by Skip_Proof.make_thm, several inherited errors in tests marked TOODOO.1
    56   + ? how do algebraic operations on numerals ? Presburger ? simplifier ? hack see
    57     https://hg.risc.uni-linz.ac.at/wneuper/isa/file/a14022b99b92/src/Tools/isac/ProgLang/evaluate.sml#l210
    58 
    59 * WN: "fun pr_ord" is not required if used with @{make_string}, @{print}, @{print tracing};
    60     takes only static arguments ----------------^^^^^^^^^^^^^^, not value of "hd_ord (f, g)"
    61     ? are there better approximations to old output of (*1*) than with (*2*)
    62     (*1*)val _ = tracing ("hd_ord (f, g)      = " ^ ((pr_ord o hd_ord) (f, g)) );
    63     (*2*)val _ = @{print tracing}{a = "hd_ord (f, g)      = ", z = hd_ord (f, g)}(**)
    64 
    65 * WN: reduce the number of TermC.parse*;
    66   + 0d22a6bf1fc6 was too much for 1 changeset
    67   + first parse with ctxt in Specify (O_Model.init shall return a context,..) etc