From ee83e268c87c75161da0e216d87e806effca7bb4 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 3 Feb 2010 22:03:37 +0000 Subject: [PATCH] Curryfication of binary morphisms. --- helm/software/matita/nlibrary/sets/sets.ma | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/helm/software/matita/nlibrary/sets/sets.ma b/helm/software/matita/nlibrary/sets/sets.ma index c66b51e2d..780dc2b4c 100644 --- a/helm/software/matita/nlibrary/sets/sets.ma +++ b/helm/software/matita/nlibrary/sets/sets.ma @@ -171,36 +171,36 @@ nqed. alias symbol "hint_decl" = "hint_decl_Type1". unification hint 0 ≔ A : Type[0], B,C : Ω^A; - R ≟ (mk_binary_morphism1 … - (λS,S'.S ∩ S') - (prop21 … (intersect_is_morph A))) + R ≟ (mk_unary_morphism1 … + (λS. mk_unary_morphism1 … (λS'.S ∩ S') (prop11 … (intersect_is_morph A S))) + (prop11 … (intersect_is_morph A))) ⊢ - fun21 (powerclass_setoid A) (powerclass_setoid A) (powerclass_setoid A) R B C - ≡ intersect ? B C. + R B C ≡ intersect ? B C. -interpretation "prop21 ext" 'prop2 l r = (prop21 (ext_powerclass_setoid ?) (ext_powerclass_setoid ?) ? ? ???? l r). +interpretation "prop21 ext" 'prop2 l r = + (prop11 (ext_powerclass_setoid ?) + (unary_morphism1_setoid1 (ext_powerclass_setoid ?) ?) ? ?? l ?? r). nlemma intersect_is_ext_morph: - ∀A. binary_morphism1 (ext_powerclass_setoid A) (ext_powerclass_setoid A) (ext_powerclass_setoid A). - #A; @ (intersect_is_ext …); nlapply (prop21 … (intersect_is_morph A)); -#H; #a; #a'; #b; #b'; #H1; #H2; napply H; nassumption; + ∀A. unary_morphism1 (ext_powerclass_setoid A) + (unary_morphism1_setoid1 (ext_powerclass_setoid A) (ext_powerclass_setoid A)). + #A; napply (mk_binary_morphism1 … (intersect_is_ext …)); + #a; #a'; #b; #b'; #Ha; #Hb; napply (prop11 … (intersect_is_morph A)); nassumption. nqed. unification hint 1 ≔ A:setoid, B,C : 𝛀^A; - R ≟ (mk_binary_morphism1 (ext_powerclass_setoid A) (ext_powerclass_setoid A) (ext_powerclass_setoid A) - (λS,S':carr1 (ext_powerclass_setoid A). - mk_ext_powerclass A (S∩S') (ext_prop A (intersect_is_ext ? S S'))) - (prop21 … (intersect_is_ext_morph A))) , + R ≟ (mk_unary_morphism1 … + (λS:ext_powerclass_setoid A. + mk_unary_morphism1 ?? + (λS':ext_powerclass_setoid A. + mk_ext_powerclass A (S∩S') (ext_prop A (intersect_is_ext ? S S'))) + (prop11 … (intersect_is_ext_morph A S))) + (prop11 … (intersect_is_ext_morph A))) , BB ≟ (ext_carr ? B), CC ≟ (ext_carr ? C) (* ------------------------------------------------------*) ⊢ - ext_carr A - (fun21 - (ext_powerclass_setoid A) - (ext_powerclass_setoid A) - (ext_powerclass_setoid A) R B C) ≡ - intersect (carr A) BB CC. + ext_carr A (R B C) ≡ intersect (carr A) BB CC. (* alias symbol "hint_decl" = "hint_decl_Type2". @@ -362,4 +362,4 @@ ncheck (λA:?. ; }. -*) +*) \ No newline at end of file -- 2.39.2