From ff5454812f9e2720bd90c3a5437505644f63b487 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Fri, 31 Jul 2020 14:56:24 +0200 Subject: (FEAT) Term elaboration of assumption and goal statements. . spartan/core/goals.ML . spartan/core/elaboration.ML . spartan/core/elaborated_statement.ML (FEAT) More context tacticals and search tacticals. . spartan/core/context_tactical.ML (FEAT) Improved subgoal focus. Moves fully elaborated assumptions into the context (MINOR INCOMPATIBILITY). . spartan/core/focus.ML (FIX) Normalize facts in order to be able to resolve properly. . spartan/core/typechecking.ML (MAIN) New definitions. (MAIN) Renamed theories and theorems. (MAIN) Refactor theories to fit new features. --- hott/More_Nat.thy | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 hott/More_Nat.thy (limited to 'hott/More_Nat.thy') diff --git a/hott/More_Nat.thy b/hott/More_Nat.thy deleted file mode 100644 index 59c8d54..0000000 --- a/hott/More_Nat.thy +++ /dev/null @@ -1,43 +0,0 @@ -theory More_Nat -imports Nat Spartan.More_Types - -begin - -section \Equality on Nat\ - -text \Via the encode-decode method.\ - -context begin - -Lemma (derive) eq: shows "Nat \ Nat \ U O" - apply intro focus vars m apply elim - \ \m \ 0\ - apply intro focus vars n apply elim - \ by (rule TopF) \ \n \ 0\ - \ by (rule BotF) \ \n \ suc _\ - \ by (rule Ui_in_USi) - done - \ \m \ suc k\ - apply intro focus vars k k_eq n apply (elim n) - \ by (rule BotF) \ \n \ 0\ - \ prems vars l proof - show "k_eq l: U O" by typechk qed - \ by (rule Ui_in_USi) - done - by (rule Ui_in_USi) - done - -text \ -\<^term>\eq\ is defined by - eq 0 0 \ \ - eq 0 (suc k) \ \ - eq (suc k) 0 \ \ - eq (suc k) (suc l) \ eq k l -\ - - - - -end - - -end -- cgit v1.2.3