Commit Graph

11 Commits

Author SHA1 Message Date
Edward Pierzchalski e7fa23ab2c lib: fix up Levity dependency tracking
Uses proof body terms to disambiguate the names encoutered in
dependency extraction, rather than using (for example)
Thm.full_prop_of.

The result is that this catches a few more missing dependencies,
enough to correctly identify unused lemmas large sessions
like CRefine.
2018-11-16 15:15:55 +11: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
Gerwin Klein 1ae3a8d65b Isabelle2018: Lib update 2018-08-20 09:06:36 +10:00
Gerwin Klein 6b9d9d24dd Isabelle2018: new "op x" syntax; now is "(x)"
(result of "isabelle update_op -m <dir>")
2018-08-20 09:06:35 +10:00
Japheth Lim 00cab83c23 lib: fix AutoLevity JSON string encoding 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 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 cd21f597c1 autolevity: make output more JSON compliant 2016-06-23 14:02:40 +10:00
Daniel Matichuk 7553a4e72c autolevity: make output JSON 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