From e94784953a751b0720689b686e607c95ba0f0592 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Wed, 15 Aug 2018 00:00:09 +0200 Subject: Function composition, rename path composition to differentiate the two. --- Prod.thy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Prod.thy') diff --git a/Prod.thy b/Prod.thy index 76b66dd..496bf3e 100644 --- a/Prod.thy +++ b/Prod.thy @@ -68,6 +68,22 @@ lemmas Prod_rules [intro] = Prod_form Prod_intro Prod_elim Prod_comp Prod_uniq lemmas Prod_wellform [wellform] = Prod_form_cond1 Prod_form_cond2 lemmas Prod_comps [comp] = Prod_comp Prod_uniq +subsection \Composition\ + +axiomatization fncompose :: "[Term, Term] \ Term" (infixr "\" 70) where + fncompose_type: "\ + g: \x:B. C(x); + f: A \ B; + (\x:B. C(x)): U(i); + A \ B: U(i) + \ \ g \ f: \x:A. C(f`x)" +and + fncompose_comp: "\ + A: U(i); + \x. x: A \ b(x): B; + \x. x: A \ c(x): C(x) + \ \ (\<^bold>\x. c(x)) \ (\<^bold>\x. b(x)) \ \<^bold>\x. c(b(x))" + section \Unit type\ -- cgit v1.2.3