From 9b17aac85aa650a7a9d6463d3d01f1eb228d4572 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Tue, 11 Sep 2018 08:59:16 +0200 Subject: Go back to higher-order application notation --- Sum.thy | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Sum.thy') diff --git a/Sum.thy b/Sum.thy index 8d0b0e6..6de20fd 100644 --- a/Sum.thy +++ b/Sum.thy @@ -33,30 +33,30 @@ abbreviation Pair :: "[Term, Term] \ Term" (infixr "\" 50) section \Type rules\ axiomatization where - Sum_form: "\A: U(i); B: A \ U(i)\ \ \x:A. B(x): U(i)" + Sum_form: "\A: U i; B: A \ U i\ \ \x:A. B x: U i" and - Sum_intro: "\B: A \ U(i); a: A; b: B(a)\ \ : \x:A. B(x)" + Sum_intro: "\B: A \ U i; a: A; b: B a\ \ : \x:A. B x" and Sum_elim: "\ - p: \x:A. B(x); - \x y. \x: A; y: B(x)\ \ f(x)(y): C(); - C: \x:A. B(x) \ U(i) - \ \ ind\<^sub>\(f)(p): C(p)" (* What does writing \x y. f(x, y) change? *) + p: \x:A. B x; + \x y. \x: A; y: B x\ \ f x y: C ; + C: \x:A. B x \ U i + \ \ ind\<^sub>\ f p: C p" (* What does writing \x y. f(x, y) change? *) and Sum_comp: "\ a: A; - b: B(a); - \x y. \x: A; y: B(x)\ \ f(x)(y): C(); + b: B a; + \x y. \x: A; y: B(x)\ \ f x y: C ; B: A \ U(i); - C: \x:A. B(x) \ U(i) - \ \ ind\<^sub>\(f)() \ f(a)(b)" + C: \x:A. B x \ U i + \ \ ind\<^sub>\ f \ f a b" text "Admissible inference rules for sum formation:" axiomatization where - Sum_wellform1: "(\x:A. B(x): U(i)) \ A: U(i)" + Sum_wellform1: "(\x:A. B x: U i) \ A: U i" and - Sum_wellform2: "(\x:A. B(x): U(i)) \ B: A \ U(i)" + Sum_wellform2: "(\x:A. B x: U i) \ B: A \ U i" text "Rule attribute declarations:" -- cgit v1.2.3