From bd6fd85d8c102f006c89ec471f7f8cc701a0dd4d Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Mon, 14 May 2018 10:42:22 +0200 Subject: Added precedences. Need to figure out how to organize metatypes. --- test.thy | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 test.thy (limited to 'test.thy') diff --git a/test.thy b/test.thy deleted file mode 100644 index d22e710..0000000 --- a/test.thy +++ /dev/null @@ -1,42 +0,0 @@ -theory test -imports HoTT -begin - -text \Check trivial stuff:\ -lemma "Null : U" - by (rule Null_form) - -text \ -Do functions behave like we expect them to? -(Or, is my implementation at least somewhat correct?... -\ - -lemma "A \ B \ (\<^bold>\x. x) : B\A" -proof - - have "A \ B \ B \ A" by (rule DefEq_symmetry) - then have "\x. A \ B \ x : B \ x : A" by (rule equal_types) - thus "A \ B \ (\<^bold>\x. x) : B\A" by (rule Function_intro) -qed - -lemma "\<^bold>\x. \<^bold>\y. x : A\B\A" -proof - - have "\x. x : A \ \<^bold>\y. x : B \ A" by (rule Function_intro) - thus "\<^bold>\x. \<^bold>\y. x : A\B\A" by (rule Function_intro) -qed - -text \Here's a dumb proof that 2 is a natural number:\ -lemma "succ(succ 0) : Nat" -proof - - have "0 : Nat" by (rule Nat_intro1) - from this have "(succ 0) : Nat" by (rule Nat_intro2) - thus "succ(succ 0) : Nat" by (rule Nat_intro2) -qed - -text \ -We can of course iterate the above for as many applications of \succ\ as we like. -The next thing to do is to implement some kind of induction tactic to automate such proofs. - -When we get more stuff working, I'd like to aim for formalizing the encode-decode method. -\ - -end \ No newline at end of file -- cgit v1.2.3