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