From 2d131e90b950bed47cb315288d8f6e90969f3918 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Sat, 18 Aug 2018 23:39:52 +0200 Subject: Update Test.thy --- tests/Test.thy | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/Test.thy b/tests/Test.thy index c0dc0dd..b0eb87a 100644 --- a/tests/Test.thy +++ b/tests/Test.thy @@ -31,37 +31,37 @@ text " Declaring \Prod_intro\ with the \intro\ attribute (in HoTT.thy) enables \standard\ to prove the following. " -proposition assumes "A : U(i)" shows "\<^bold>\x. x: A \ A" by (simple lems: assms) +proposition assumes "A : U(i)" shows "\<^bold>\x. x: A \ A" by (routine lems: assms) proposition assumes "A : U(i)" and "A \ B" shows "\<^bold>\x. x : B \ A" proof - have "A \ A \ B \ A" using assms by simp - moreover have "\<^bold>\x. x : A \ A" by (simple lems: assms) + moreover have "\<^bold>\x. x : A \ A" by (routine lems: assms) ultimately show "\<^bold>\x. x : B \ A" by simp qed proposition assumes "A : U(i)" and "B : U(i)" shows "\<^bold>\x y. x : A \ B \ A" -by (simple lems: assms) +by (routine lems: assms) subsection \Function application\ -proposition assumes "a : A" shows "(\<^bold>\x. x)`a \ a" by (simple lems: assms) +proposition assumes "a : A" shows "(\<^bold>\x. x)`a \ a" by (derive lems: assms) text "Currying:" lemma assumes "a : A" and "\x. x: A \ B(x): U(i)" shows "(\<^bold>\x y. y)`a \ \<^bold>\y. y" -proof - show "\x. x : A \ \<^bold>\y. y : B(x) \ B(x)" by (simple lems: assms) +proof compute + show "\x. x : A \ \<^bold>\y. y : B(x) \ B(x)" by (routine lems: assms) qed fact -lemma "\A: U(i); B: U(i); a : A; b : B\ \ (\<^bold>\x y. y)`a`b \ b" by (compute, simple) +lemma "\A: U(i); B: U(i); a : A; b : B\ \ (\<^bold>\x y. y)`a`b \ b" by derive lemma "\A: U(i); a : A \ \ (\<^bold>\x y. f x y)`a \ \<^bold>\y. f a y" proof compute @@ -82,7 +82,7 @@ proposition curried_function_formation: "B: A \ U(i)" and "\x. C(x): B(x) \ U(i)" shows "\x:A. \y:B(x). C x y : U(i)" - by (simple lems: assms) + by (routine lems: assms) proposition higher_order_currying_formation: @@ -92,13 +92,13 @@ proposition higher_order_currying_formation: "\x y. y: B(x) \ C(x)(y): U(i)" and "\x y z. z : C(x)(y) \ D(x)(y)(z): U(i)" shows "\x:A. \y:B(x). \z:C(x)(y). D(x)(y)(z): U(i)" - by (simple lems: assms) + by (routine lems: assms) lemma curried_type_judgment: assumes "A: U(i)" "B: A \ U(i)" "\x y. \x : A; y : B(x)\ \ f x y : C x y" shows "\<^bold>\x y. f x y : \x:A. \y:B(x). C x y" - by (simple lems: assms) + by (routine lems: assms) text " @@ -109,13 +109,13 @@ text " definition Id :: "Term" where "Id \ \<^bold>\x. x" lemma "\x: A\ \ Id`x \ x" -unfolding Id_def by (compute, simple) +unfolding Id_def by (compute, routine) section \Natural numbers\ text "Automatic proof methods recognize natural numbers." -proposition "succ(succ(succ 0)): Nat" by simple +proposition "succ(succ(succ 0)): Nat" by routine end -- cgit v1.2.3