]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/lib/share.ml
Additional contribs.
[helm.git] / helm / software / lambda-delta / lib / share.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 let sh a b =
13    if a == b then a else b
14
15 let sh1 a1 a2 b1 b2 =
16    if a1 == a2 then b1 else b2 (sh a1 a2)
17
18 let sh2 a1 a2 b1 b2 c1 c2 =
19    if a1 == a2 && b1 == b2 then c1 else c2 (sh a1 a2) (sh b1 b2)
20
21 let eq a b = (a == b) || (a = b)