Commit Graph

85 Commits

Author SHA1 Message Date
Gerwin Klein 0f943ec13c clib: 2015 update 2015-05-17 22:24:25 +10:00
Gerwin Klein a09c92bdce lib/Focus: 2015 update 2015-05-16 21:47:45 +10:00
Gerwin Klein f2cfeb2a0c lib: fewer warnings in crunch and wps 2015-05-16 21:46:45 +10:00
Gerwin Klein 12fa86863a fewer warnings 2015-05-16 19:52:49 +10:00
Gerwin Klein 7072c8e4a9 lib/sep_algebra: 2015 update 2015-05-14 11:40:55 +02:00
Gerwin Klein eccc345f67 make unused-wp-warning a config option; false by default 2015-05-11 09:05:17 +02:00
Gerwin Klein 60c0573cf0 remove warnings 2015-05-11 09:04:59 +02:00
Gerwin Klein be52a7c684 lib: more 2015 update 2015-05-09 13:03:30 +02:00
Gerwin Klein 17826f9b49 more Isabelle2015 update; AInvs up to (excluding) Syscall_AI
also includes some global replacements
2015-04-18 21:51:26 +01:00
Gerwin Klein 9c17bd32a4 some more lib updates for Isabelle2015 2015-04-17 22:06:38 +01:00
Gerwin Klein 190e7c38d6 start work on Isabelle 2015 update 2015-04-17 16:19:32 +01:00
Matthew Fernandez eca7cbe5e7 lib: Instantiate WPC for validNF. 2015-03-11 16:40:21 +11:00
Matthew Fernandez 02c2f749b8 lib: Add a hoare_assume_pre variant for validNF. 2015-02-24 10:11:59 +11:00
Daniel Matichuk a221a52350 Added new proofcount tool to "tools" and removed old one from "lib".
Removed reference to old proof_counting from proof/ROOT and spec/ROOT
2015-02-11 17:46:34 +11:00
Matthew Fernandez 1c2034d3c7 lib: Remove malformed comment.
This comment looks like a typo, in that it doesn't add to comprehension of this
theory, and it trips up LaTeX when generating a document.
2014-12-19 13:07:31 +11:00
Matthew Fernandez bfb121594c lib: Add some word helpers. 2014-12-17 11:58:15 +11:00
Matthew Fernandez d6a211c86a lib: Add a couple of WP lemmas for dealing with conjunts in postconditions. 2014-12-05 14:55:54 +11:00
David Greenaway 536a72bdad lib: set: Add "filter" function for sets.
Can be more efficient than "Symset.dest x |> filter |> Symset.make"
because we know that the ordering is unmodified by filter.
2014-12-03 14:49:12 +11:00
Daniel Matichuk 7340fd048d Renamed "focus" to "subgoal". Used correct keyword tag (prf_goal) to fix batch processing. 2014-12-02 13:56:43 +11:00
David Greenaway b22a384931 lib: Add "solves" tactic.
Essentially does a "find_theorems solves" and automatically applies the
result.

The author makes no guarantees about the maintainability of proofs using
such a tactic.
2014-12-01 11:08:34 +11:00
Gerwin Klein e4d8fb5dba GHC 7.8 update (bitSize -> finiteBitSize) 2014-11-28 08:58:57 +11:00
Matthew Fernandez 6026d54cd7 lib: Misc helper lemmas. 2014-11-21 19:23:33 +11:00
Matthew Fernandez 687df6dc51 lib: misc masking lemma. 2014-11-20 14:58:11 +11:00
Thomas Sewell e924e0758c lib: Add 'word_bitwise_signed' tactic.
Works like 'word_bitwise' but on signed words.
2014-11-20 14:48:36 +11:00
Matthew Fernandez 9e3d5febf4 lib: More 64-bit jigsaw lemmas. 2014-11-19 16:53:24 +11:00
David Greenaway 474666b710 lib: Remove redundant shift-left/shift-right/div0 word lemmas.
Matt is always one step ahead of me.
2014-11-19 13:40:16 +11:00
Matthew Fernandez fad90782c8 lib: Fix: Remove call to 'smt'.
Surprisingly tedious.
2014-11-19 12:26:27 +11:00
David Greenaway 01490fd1f2 lib: Random word lemmas about shift-left / shift-right / divide-by-zero.
Existing lemmas are (all?) conditional on the word size. These lemmas
are unconditional, albeit only work in the special case of "x >> 1" and
"x << 1".
2014-11-19 12:26:06 +11:00
Matthew Fernandez b5e8695737 Merge branch 'master' of ssh://github.inside.nicta.com.au/seL4/l4v
Conflicts:
	lib/WordLemmaBucket.thy
2014-11-19 07:39:46 +11:00
Matthew Fernandez b053ce7647 lib: Helper lemmas for simplifying writes via char pointers. 2014-11-18 23:32:52 +11:00
Matthew Fernandez 7850af557b lib: Rephrase popcount into def with to_bl. 2014-11-15 15:04:11 +11:00
Matthew Fernandez 46f96f5501 lib: more word helper lemmas. 2014-11-15 14:52:28 +11:00
Matthew Fernandez 43645bc0a0 lib: Add a function for talking about word popcounts. 2014-11-15 11:11:03 +11:00
Matthew Fernandez 2141c8cb50 lib: Add collection of misc word helpers. 2014-11-15 11:10:39 +11:00
Matthew Fernandez 7b7538b0a0 lib: Generalise word_div_mult to operate on all words. 2014-11-15 11:04:10 +11:00
Matthew Fernandez 2990ede08c lib: Prove we can chop a word in half and put it back together. 2014-11-14 17:59:43 +11:00
David Greenaway 14581617f0 nicta-tools: Add "solved" tactic.
Ensures that all subgoals have been solved. If not, the tactic will fail
(causing backtracking).

Useful for creating proofs of the form:

    apply ((make_lots_of_subgoals, auto, solved)[1])

where you can be sure that the current subgoal will either be entirely
discharged or left untouched.
2014-11-14 17:24:49 +11:00
Matthew Fernandez 64dd0b8f63 lib: Generalise fst_enumerate, snd_enumerate; add some more helpers. 2014-11-12 18:47:11 +11:00
Matthew Fernandez 281cbebe00 lib: Helper for message register offsets. 2014-11-12 17:02:16 +11:00
Matthew Fernandez 93e8a15d53 lib: misc lemmas. 2014-11-12 11:05:00 +11:00
Matthew Fernandez fb56249d2c lib: trivial helper for dealing with ∀ and pairs.
Comes in handy when juggling validNF_make_schematic_post in combination with a
Hoare triple with multiple bound variables.
2014-11-07 15:17:53 +11:00
Matthew Fernandez 28c30a9cc0 lib: yet more helper lemmas. 2014-11-07 12:53:21 +11:00
Matthew Fernandez 93cba84f09 lib: add some more bit manipulation helper lemmas. 2014-11-07 11:54:17 +11:00
David Greenaway a58bdf0576 Trace_Attribs: Remove hooks in "Corres_UL" to allow "lib/" to build once more. 2014-11-05 18:16:23 +11:00
David Greenaway 3c01f08242 NICTACompat: Disable "Trace_Attrib".
Loading "Trace_Attrib" causes strange, unexplained lock-ups in
Isabelle/jEdit (and possibly Isabelle build). In particular, at random
times shortly after Trace_Attrib is loaded, everything will stop
processing with the CPU at 0%.

The root cause of this is currently unknown. This patch disables it
until the problem can be tracked down further.
2014-11-04 15:30:12 +11:00
Matthew Fernandez ba83e00e7a lib: Another bitfield helper lemma. 2014-11-04 11:53:30 +11:00
Matthew Fernandez 63346b52ed lib: Add various word helper lemmas for bitfield proofs. 2014-11-04 09:11:35 +11:00
Matthew Fernandez 9d90bcf82c lib: Fix some names from previous commit; couple more helpers. 2014-10-30 15:00:55 +11:00
Matthew Fernandez 36a0be9f26 lib: Add some misc helper lemmas. 2014-10-30 10:32:18 +11:00
David Greenaway b737c6ba2a focus: Get "Focus.thy" working on Isabelle 2014.
Was investigating if Focus could help solve a particular problem
(involving "apply subst" not being able to work with bound variables).
Didn't solve the particular problem I was facing, but committing the fix
to Focus none-the-less.
2014-10-20 15:04:33 +11:00