ML ‹ (*Extract the (name, term) pairs of formulas having roles belonging to a
user-supplied set*) fun extract_terms roles : TPTP_Interpret.tptp_formula_meaning list ->
(string * term) list = let fun role_predicate (_, role, _, _) =
fold (fn r1 => fn b => role = r1 orelse b) roles false in filter role_predicate #> map (fn (n, _, t, _) => (n, t)) end ›
ML ‹ (*Use a given tactic on a goal*) fun prove_conjectures tactic ctxt an_fmlas = let
val assumptions =
extract_terms
[TPTP_Syntax.Role_Definition, TPTP_Syntax.Role_Axiom]
an_fmlas
|> map snd
val goals = extract_terms [TPTP_Syntax.Role_Conjecture] an_fmlas fun driver (n, goal) =
(n, Goal.prove ctxt [] assumptions goal (fn _ => tactic ctxt)) in map driver goals end
val auto_prove = prove_conjectures auto_tac
val sh_prove = prove_conjectures (fn ctxt =>
Sledgehammer_Tactics.sledgehammer_with_metis_tac ctxt [] (*FIXME use relevance_override*)
{add = [], del = [], only = false} 1) ›
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.