History log of /seL4-l4v-10.1.1/HOL4/src/1/ThmSetData.sml
Revision Date Author Comments
# b72e391c 20-Mar-2018 Michael Norrish <Michael.Norrish@nicta.com.au>

Move smpp to Portable - get everything up to arithmeticScript working


# 09c5dc00 14-Mar-2018 Michael Norrish <Michael.Norrish@nicta.com.au>

Up to and boolTheory and slightly beyond


# 36dc75d1 18-Sep-2016 Michael Norrish <Michael.Norrish@nicta.com.au>

Give Theory Data writers access to term-writing

Just as readers get an additional parameter of type string -> term,
writers will get a parameter of type term -> string.


# ef9ff047 17-Sep-2016 Michael Norrish <Michael.Norrish@nicta.com.au>

Make theory data types provide terms function

This function takes a value of the theory-data type and returns a list
of terms that are contained inside this value. The machinery will use
that to prime the theory's sharing tables to allow for efficient
recording of terms in data.


# 9fa81883 17-Sep-2016 Michael Norrish <Michael.Norrish@nicta.com.au>

Give ThyData access to a term-reader function

No useful way to exploit this just yet, but the code compiles and I
think the refactoring is right.


# 2c29276d 04-Nov-2015 Michael Norrish <Michael.Norrish@nicta.com.au>

ThmSetData passes thms *and* names to consumers

The names were always available, but the API now changes so that
consumers get names as well as theorem values. They can ignore the
names of course. (In this context, consumers are things like the
stateful rewriter, the monotonicity rule database, the TFL congruence
rule database etc.)

This will be helpful in allowing the stateful simpset to know what its
theorems are called, which is progress with Github issue #313 (to allow
easy removal of rewrites from a call to the simplifier).


# 8f621d74 28-Apr-2014 Michael Norrish <michael.norrish@nicta.com.au>

Bug fix (w/test case) for ThmSetData's new way to add theorems

Problem was that the callback function attached to the set didn't get
called, even though the theorem was successfully exported. This meant
that a set like "simp" (which feeds into srw_ss()) didn't prompt any
change to the stateful simpset. Being successfully exported did at
least mean that the theorem would get into the simpset in descendent
theories.


# fc7e14b1 25-Apr-2014 Michael Norrish <Michael.Norrish@nicta.com.au>

Test for ThmSetData bug fixed in 8ffc5dc0b; prettify adjoined SML output


# 8ffc5dc0 25-Apr-2014 Michael Norrish <Michael.Norrish@nicta.com.au>

Fix bug in SML emitted/adjoined by new_storage_attribute.


# d212bd38 23-Apr-2014 Michael Norrish <michael.norrish@nicta.com.au>

Implement new scheme to allow simple addition of theorems to theorem "sets".

When saving or storing theorems, simply add [name1,name2] strings to the
end of the binding, and the theorem being saved will be added to the
theorem set with that name.


# 6204c3bf 17-Oct-2013 Michael Norrish <michael.norrish@nicta.com.au>

Make ThmSetData handle empty/null data as input.

Closes #130


# 00207182 17-Oct-2013 Michael Norrish <michael.norrish@nicta.com.au>

Get better diagnostic messages out of ThmSetData warnings.


# 63671324 06-Aug-2012 Michael Norrish <michael.norrish@nicta.com.au>

Use hook for binding-deletion to make ThmSetData more robust.

Test-case also uses WARNINGs_as_ERRs to check that nothing untoward
gets warned about in the second theory (the one that imports the
theory which has had lots of delete_{const,binding} events).


# 1bb5dd5f 02-Aug-2012 Michael Norrish <michael.norrish@nicta.com.au>

Adjust (and reduce) interface to ThmSetData.

The change is to add an extra string parameter to the callback
function that the client provides. This is the name of the theory
which has stored the theorems. This change prompted the changes to
computeLib, IndDefLib and DefnBase.

The reduction was to remove the ThmSetData's new function, forcing
BasicProvers to use new_exporter. This was possible because of the
extra information provided to its call-back.

I also wrote some test-cases mimicking the original problem that
Magnus and Ramana had, and prettied the warning output.

This closes #73.


# 85526c7c 02-Aug-2012 Michael Norrish <Michael.Norrish@nicta.com.au>

Get stored ThmSets to notice deletion of relevant consts.

This is progress with #73.


# f6cae76a 01-Aug-2012 Michael Norrish <michael.norrish@nicta.com.au>

Provide lookup functionality across all stored theorem sets.


# bb9eb667 31-Jul-2012 Michael Norrish <michael.norrish@nicta.com.au>

Rework various Theory hooks into one general framework.

The basis for the framework is the TheoryDelta type. Client code can
ask to be notified of theory changes, and will have their provided
call-back function called at appropriate times.

This commit hasn't adjusted the theory functions for
{add,del}{const/typeOp} yet; it has just unified the existing
functionality (register_onload, after_new_theory and
register_onexport).


# ccba08b7 30-Jul-2012 Michael Norrish <michael.norrish@nicta.com.au>

Make theorem-set loading more robust in face of bad thm-names.

Most attempts to mess with the data will be caught at specification
time, but use of delete_const and friends can cause theorems to not
get exported even if they were present when the call to export_X was
made.


# a9cba522 30-Jul-2012 Michael Norrish <michael.norrish@nicta.com.au>

Delete some unused code in ThmSetData.sml


# 1bc9f344 13-Jan-2011 Michael Norrish <Michael.Norrish@nicta.com.au>

Change src/bool to src/1 as a prelude to experimentation!