TODO.md
author wneuper <Walther.Neuper@jku.at>
Wed, 11 Jan 2023 11:38:01 +0100
changeset 60650 06ec8abfd3bc
parent 60626 2cc1f3121ba3
child 60652 75003e8f96ab
permissions -rw-r--r--
eliminate use of Thy_Info 12: TermC partially
wenzelm@60616
     1
* MW: implement ML toplevel spans in official Isabelle, e.g.
wenzelm@60616
     2
  with separator \<^medskip> and some tool support for automated
wenzelm@60616
     3
  update (in "isabelle update" and/or PIDE);
wenzelm@60616
     4
Walther@60626
     5
* MW?: rename *.sml to *.ML, potentially with tool support;
Walther@60605
     6
wenzelm@60216
     7
* MW: clarify/eliminate Isabelle/Scala add-ons (presently unused)
wenzelm@60216
     8
wenzelm@60216
     9
    diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/build-jars ./src/Pure/build-jars
wenzelm@60216
    10
    11a12
wenzelm@60216
    11
    >   src/Tools/isac/BridgeJEdit/isac.scala
wenzelm@60216
    12
wenzelm@60216
    13
    diff -r /home/makarius/isabelle/repos-Isabelle2021/src/Pure/Tools/scala_project.scala ./src/Pure/Tools/scala_project.scala
wenzelm@60216
    14
    76a77
wenzelm@60216
    15
    >       "src/Tools/isac/etc" -> Path.explode("isabelle.isac"),
wenzelm@60225
    16
Walther@60519
    17
* MW: Skip_Proof.make_thm: theory -> term -> thm        ? could now change signature to
Walther@60519
    18
                         : Proof.context -> term -> thm
Walther@60626
    19
* MW: Make $ISABELLE_ISAC_TEST work without sessions (please synchronise with WN)
Walther@60519
    20
Walther@60512
    21
Walther@60512
    22
***** some items for discussion
Walther@60512
    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@60281
    33
Walther@60512
    34
***** for the few items below WN asks MW for help
wenzelm@60281
    35
Walther@60582
    36
* postpone: ?How accomplish two user-requirements by Outer_Syntax.command \<^command_keyword>\<open>Example\<close>
Walther@60533
    37
   (1) start a Calculation with a CAS_Cmd
Walther@60533
    38
   (2) start an Example from scratch, i.e. with (Formalize.empty, References.empty)
Walther@60533
    39
   Proposals for a solution are in test/../Test_VSCode_Example.thy
Walther@60626
    40
   in subsubsection ‹Start Example with a CAS_Cmd›
Walther@60533
    41
wenzelm@60304
    42
Walther@60512
    43
***** priority of WN items is top down, most urgent/simple on top
wenzelm@60234
    44
Walther@60592
    45
* WN: eliminate multiple get_ctxt in Solve_Step, Ctree
Walther@60596
    46
* WN: shift code from libraryC.sml to designated destination (ThyC, etc)
Walther@60588
    47
* WN: Know_Store.get_thes, add_thes still required for Error_Patterns, we want to eliminate thes:
Walther@60582
    48
    (1) Error_Pattern.T are already stored by MethodC -- place them in respective thys
Walther@60582
    49
    (2) Error_Pattern.fill_in stored with thm (in thes): instead introduce new Thy_Data for them.
Walther@60588
    50
        adapt Know_Store.insert_fillpats for that purpose.
Walther@60626
    51
    cf. e587c45cae0f note in Build_Thydata.thy
Walther@60596
    52
* WN: rename type Rule.rule -> Rule.T
Walther@60568
    53
* WN: Sub_Problem.tac_from_prog: use ctxt from pt
Walther@60576
    54
* WN: in subst_adapt_to_type should ''bdv''(string) handled by Varialbe.declare_constraints
Walther@60576
    55
      ?why is "x" not already typed correctly (by reading strings from Formalise)?)
Walther@60578
    56
* WN: replace tools derived from get_thes/add_thes by tools derived from current ctxt
Walther@60556
    57
* WN: improve naming in refine.sml, m-match.sml
Walther@60576
    58
* WN: all UnparseC with Proof.context, cleanup unparseC.sml and calls
Walther@60578
    59
* WN: all Subst with Proof.context, cleanup unparseC.sml and calls
Walther@60567
    60
* WN: review Prog_Tac:
Walther@60567
    61
      (*+isa==isa2*)@{term "Substitution []"};               (*Free ("Subproblem",.. ALSO Subproblem, ?!*)
Walther@60567
    62
      (*+isa==isa2*)@{term "Rewrite_Set ''norm_Rational''"}; (*Const ("Prog_Tac.Rewrite_Set",..*)
Walther@60500
    63
Walther@60554
    64
* WN: Specify/formalise.sml is in BaseDefinitions/ AND Specify/  DELETE ONE VERSION
Walther@60559
    65
* WN: Step_Specify.initialise: remove hdl in return-value, replace Step_Specify.nxt_specify_init_calc
Walther@60559
    66
      ? which uses initialise !?
Walther@60547
    67
* WN: ? unify "no_met" with "empty_meth_id" from References.empty ?
Walther@60547
    68
Walther@60512
    69
* WN: proper ML antiquotations for "Tactical.Try" etc. --- be careful about unclear situations,
Walther@60512
    70
  e.g. "Tactical.Try" vs. "Lucas_Interpreter.Try";
Walther@60512
    71
Walther@60500
    72
* WN: ? Rational.Cancel_p; extend use of \<^theory> to \<^theory_context>
Walther@60500
    73
Walther@60512
    74
* WN: Check/clarify Context.theory_name vs. Context.theory_long_name.
Walther@60582
    75
    Context.theory_name seems to suffice after elimination of sessions.
Walther@60512
    76
Walther@60512
    77
* WN: more direct logical foundations wrt. Isabelle/HOL, eliminate many axiomatizations
Walther@60512
    78
    - quite often "axiomatization ..." can be turned into "lemma ... by auto"
Walther@60512
    79
      without further ado;
Walther@60512
    80
    - sometimes this requires to use more specific types / type classes;
Walther@60512
    81
    - sometimes this requires to use proper definitional mechanisms (e.g. 'primrec', 'fun');
Walther@60512
    82
    - a few "hard" cases will remain, to be reconsidered eventually (e.g. differentiation);
Walther@60512
    83
Walther@60520
    84
* WN: rename Pos.* -- Pos.ints, Pos.spec, Pos.empty, Pos.ints_empty
Walther@60520
    85
Walther@60466
    86
* WN: redesign transition from Specification to Solution: how relate 
Walther@60466
    87
    - Formalise.model with variants (e.g. VSCode_Example)
Walther@60466
    88
      reconsider separation of variants F_I, F_II, see MAWEN paper
Walther@60466
    89
    - !?! I_Model of MethodC          (fairly free sequence, dependent on Formalise.model)
Walther@60466
    90
    - !?! formal arguments of program (fixed sequence)
wenzelm@60622
    91
wenzelm@60622
    92
* WN: avoid too many uses of "structure Data = Theory_Data", instead use approx. 1 data slot
wenzelm@60622
    93
  per ML module, with type T = ... record or tuple (e.g. see @{apply} ML antiquotation)
wenzelm@60622
    94
wenzelm@60622
    95
* WN: rename *.sml to *.ML, potentially with tool support by MW;
wenzelm@60622
    96
* WN: rename src/Tools/isac/ to main/ (or something else);