From 6ff59c83de9ce7d5715fae19f50d94b0b973414a Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 28 May 2020 14:07:52 +0200 Subject: case distinction --- spartan/core/Spartan.thy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spartan/core/Spartan.thy') diff --git a/spartan/core/Spartan.thy b/spartan/core/Spartan.thy index 4e53a45..b0fec5a 100644 --- a/spartan/core/Spartan.thy +++ b/spartan/core/Spartan.thy @@ -162,7 +162,8 @@ ML_file \lib/congruence.ML\ section \Methods\ -ML_file \lib/elimination.ML\ \ \declares the [elims] attribute\ +ML_file \lib/elimination.ML\ \ \elimination rules\ +ML_file \lib/cases.ML\ \ \case reasoning rules\ named_theorems intros and comps lemmas @@ -194,6 +195,9 @@ method_setup elim = method elims = elim+ +method_setup cases = + \Args.term >> (fn tm => fn ctxt => SIMPLE_METHOD' (cases_tac tm ctxt))\ + (*This could possibly use additional simplification hints via a simp: modifier*) method_setup typechk = \Scan.succeed (fn ctxt => SIMPLE_METHOD' ( -- cgit v1.2.3