Commit Graph

13 Commits

Author SHA1 Message Date
Gerwin Klein a424d55e3e licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
Michael McInerney 6ff1a38f65 lib: update for Isabelle 2019 2019-06-13 16:22:33 +10:00
Edward Pierzchalski ecc84ffc6e lib: fix up Levity JSON output
- Previously printed `~` for negative numbers, which is invalid
  JSON. Now prints `-`.

- Previously the outpout would unconditionally trim
  'underscore-number' suffixes. Now uses theory context to determine
  if it's likely to be an index into a theory list or an existing
  fact name.

- Changed JSON structure to avoid using dynamic names for keys, i.e.
  from this:

    {
      "my_theory_name": {...}
    }

  to this:

    {
      "theory": "my_theory_name",
      "content": {...}
    }

  This should make processing the output slightly nicer by matching
  what other tools expect.

- Changed JSON structure to consolidate dependencies. Lemmas are no
  longer special-cased.
2018-11-02 15:40:30 +11:00
Japheth Lim 46ccc2ba60 lib: change where temp file for AutoLevity tracing is created
We need to create the temp file on the same file system as the output
file in order for atomic renaming to work properly.
2018-07-04 19:24:36 +10:00
Japheth Lim a4b0287e9a lib: log exceptions from AutoLevity trace writer 2018-07-04 19:24:36 +10:00
Japheth Lim da86625580 lib: fail gracefully if AutoLevity can't install hooks in unpatched Isabelle 2018-07-04 19:24:36 +10:00
Japheth Lim 791f6ea3c6 lib: write autolevity traces on session shutdown
This commit depends on patching Isabelle to add a session shutdown hook.
2018-07-04 19:24:36 +10:00
Alejandro Gomez-Londono 796887d9b1 Removes all trailing whitespaces 2017-07-12 15:13:51 +10:00
Daniel Matichuk ceca9325e4 added missing license headers 2016-06-23 14:02:41 +10:00
Daniel Matichuk eed586f4d8 autolevity: allow proof tracing level to be set with AUTOLEVITY environment variable
AUTOLEVITY=1 -- trace lemma dependencies, proof start/end
AUTOLEVITY=2 -- as above, also trace all dependent theorems per apply statement
2016-06-23 14:02:40 +10:00
Daniel Matichuk 92139db60e autolevity: refine tracing apply everywhere to work via Proof module hooks
This avoids doing redundant tactic operations at the top-level and lets
us trace "by" statements easily.
2016-06-23 14:02:40 +10:00
Daniel Matichuk 4c89bcf2f8 autolevity: add support for per-apply lemma dependency tracking
Also remove at-end theory hook due to unfinished proofs causing issues. Autolevity must be run from a completed session (see lib/AutoLevity_Run).

Per-apply dependency tracking requires a small isabelle patch.
2016-06-23 14:02:40 +10:00
Daniel Matichuk df8e65fbb9 autolevity: initial commit with test run on AInvs 2016-06-23 14:02:40 +10:00