From fc19fe90e7cb13acc03deaf061b2b6cf3df2d165 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 7 Jun 2018 19:35:32 +0200 Subject: Nondependent function arrow should bind tighter than the Pi former, but looser than equality. --- HoTT_Theorems.thy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'HoTT_Theorems.thy') diff --git a/HoTT_Theorems.thy b/HoTT_Theorems.thy index 52e1b32..5578bf8 100644 --- a/HoTT_Theorems.thy +++ b/HoTT_Theorems.thy @@ -57,11 +57,11 @@ proposition wellformed_currying: "B: A \ U" and "\x::Term. C(x): B(x) \ U" shows "\x:A. \y:B(x). C x y : U" -proof (rule Prod_formation) +proof fix x::Term assume *: "x : A" show "\y:B(x). C x y : U" - proof (rule Prod_formation) + proof show "B(x) : U" using * by (rule assms) qed (rule assms) qed (rule assms) @@ -78,15 +78,15 @@ proposition triply_curried: "\x y::Term. y : B(x) \ C(x)(y) : U" and "\x y z::Term. z : C(x)(y) \ D(x)(y)(z) : U" shows "\x:A. \y:B(x). \z:C(x)(y). D(x)(y)(z) : U" -proof (rule Prod_formation) +proof fix x::Term assume 1: "x : A" show "\y:B(x). \z:C(x)(y). D(x)(y)(z) : U" - proof (rule Prod_formation) + proof show "B(x) : U" using 1 by (rule assms) fix y::Term assume 2: "y : B(x)" show "\z:C(x)(y). D(x)(y)(z) : U" - proof (rule Prod_formation) + proof show "C x y : U" using 2 by (rule assms) show "\z::Term. z : C(x)(y) \ D(x)(y)(z) : U" by (rule assms) qed -- cgit v1.2.3