From 9723fc3ffc55b22a2a8ec09cbba80f14c40d7991 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Wed, 11 Jul 2018 19:37:07 +0200 Subject: Universes implemented. Type rules modified accordingly. No more automatic derivation of "A:U" from "a:A". --- Sum.thy | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'Sum.thy') diff --git a/Sum.thy b/Sum.thy index 46bb022..b608e75 100644 --- a/Sum.thy +++ b/Sum.thy @@ -30,22 +30,22 @@ translations section \Type rules\ axiomatization where - Sum_form: "\A B. \A : U; B: A \ U\ \ \x:A. B x : U" + Sum_form: "\i A B. \A : U(i); B: A \ U(i)\ \ \x:A. B x : U(i)" and - Sum_form_cond1: "\A B. (\x:A. B x : U) \ A : U" + Sum_form_cond1: "\i A B. (\x:A. B x : U(i)) \ A : U(i)" and - Sum_form_cond2: "\A B. (\x:A. B x : U) \ B: A \ U" + Sum_form_cond2: "\i A B. (\x:A. B x : U(i)) \ B: A \ U(i)" and - Sum_intro: "\A B a b. \B: A \ U; a : A; b : B a\ \ (a,b) : \x:A. B x" + Sum_intro: "\i A B a b. \B: A \ U(i); a : A; b : B a\ \ (a,b) : \x:A. B x" and - Sum_elim: "\A B C f p. \ - C: \x:A. B x \ U; + Sum_elim: "\i A B C f p. \ + C: \x:A. B x \ U(i); \x y. \x : A; y : B x\ \ f x y : C (x,y); p : \x:A. B x \ \ indSum[A,B] C f p : C p" and - Sum_comp: "\A B C f a b. \ - C: \x:A. B x \ U; + Sum_comp: "\i A B C f a b. \ + C: \x:A. B x \ U(i); \x y. \x : A; y : B x\ \ f x y : C (x,y); a : A; b : B a @@ -59,13 +59,5 @@ text "Nondependent pair." abbreviation Pair :: "[Term, Term] \ Term" (infixr "\" 50) where "A \ B \ \_:A. B" -text "The nondependent pair needs its own separate introduction rule." - -lemma Pair_intro [intro]: "\A B a b. \a : A; b : B\ \ (a,b) : A \ B" -proof - fix b B assume "b : B" - then show "B : U" .. -qed - end \ No newline at end of file -- cgit v1.2.3