]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/ng_TPTP/RNG008-3.ma
Preparing for 0.5.9 release.
[helm.git] / helm / software / matita / contribs / ng_TPTP / RNG008-3.ma
1 include "logic/equality.ma".
2
3 (* Inclusion of: RNG008-3.p *)
4
5 (* -------------------------------------------------------------------------- *)
6
7 (*  File     : RNG008-3 : TPTP v3.7.0. Released v1.0.0. *)
8
9 (*  Domain   : Ring Theory *)
10
11 (*  Problem  : Boolean rings are commutative *)
12
13 (*  Version  : [PS81] (equality) axioms : Augmented. *)
14
15 (*             Theorem formulation : Equality. *)
16
17 (*  English  : Given a ring in which for all x, x * x = x, prove that for  *)
18
19 (*             all x and y, x * y = y * x. *)
20
21 (*  Refs     : [MOW76] McCharen et al. (1976), Problems and Experiments for a *)
22
23 (*           : [PS81]  Peterson & Stickel (1981), Complete Sets of Reductions *)
24
25 (*  Source   : [ANL] *)
26
27 (*  Names    : commute.ver2.in [ANL] *)
28
29 (*  Status   : Unsatisfiable *)
30
31 (*  Rating   : 0.00 v3.3.0, 0.07 v3.1.0, 0.11 v2.7.0, 0.00 v2.2.1, 0.22 v2.2.0, 0.29 v2.1.0, 0.25 v2.0.0 *)
32
33 (*  Syntax   : Number of clauses     :   19 (   0 non-Horn;  19 unit;   3 RR) *)
34
35 (*             Number of atoms       :   19 (  19 equality) *)
36
37 (*             Maximal clause size   :    1 (   1 average) *)
38
39 (*             Number of predicates  :    1 (   0 propositional; 2-2 arity) *)
40
41 (*             Number of functors    :    7 (   4 constant; 0-2 arity) *)
42
43 (*             Number of variables   :   28 (   2 singleton) *)
44
45 (*             Maximal term depth    :    3 (   2 average) *)
46
47 (*  Comments :  *)
48
49 (* -------------------------------------------------------------------------- *)
50
51 (* ----Include ring theory axioms  *)
52
53 (* Inclusion of: Axioms/RNG002-0.ax *)
54
55 (* -------------------------------------------------------------------------- *)
56
57 (*  File     : RNG002-0 : TPTP v3.7.0. Released v1.0.0. *)
58
59 (*  Domain   : Ring Theory *)
60
61 (*  Axioms   : Ring theory (equality) axioms *)
62
63 (*  Version  : [PS81] (equality) axioms : *)
64
65 (*             Reduced & Augmented > Complete. *)
66
67 (*  English  :  *)
68
69 (*  Refs     : [PS81]  Peterson & Stickel (1981), Complete Sets of Reductions *)
70
71 (*  Source   : [ANL] *)
72
73 (*  Names    :  *)
74
75 (*  Status   :  *)
76
77 (*  Syntax   : Number of clauses    :   14 (   0 non-Horn;  14 unit;   1 RR) *)
78
79 (*             Number of atoms      :   14 (  14 equality) *)
80
81 (*             Maximal clause size  :    1 (   1 average) *)
82
83 (*             Number of predicates :    1 (   0 propositional; 2-2 arity) *)
84
85 (*             Number of functors   :    4 (   1 constant; 0-2 arity) *)
86
87 (*             Number of variables  :   25 (   2 singleton) *)
88
89 (*             Maximal term depth   :    3 (   2 average) *)
90
91 (*  Comments : Not sure if these are complete. I don't know if the reductions *)
92
93 (*             given in [PS81] are suitable for ATP. *)
94
95 (* -------------------------------------------------------------------------- *)
96
97 (* ----Existence of left identity for addition  *)
98
99 (* ----Existence of left additive additive_inverse  *)
100
101 (* ----Distributive property of product over sum  *)
102
103 (* ----Inverse of identity is identity, stupid  *)
104
105 (* ----Inverse of additive_inverse of X is X  *)
106
107 (* ----Behavior of 0 and the multiplication operation  *)
108
109 (* ----Inverse of (x + y) is additive_inverse(x) + additive_inverse(y)  *)
110
111 (* ----x * additive_inverse(y) = additive_inverse (x * y)  *)
112
113 (* ----Associativity of addition  *)
114
115 (* ----Commutativity of addition  *)
116
117 (* ----Associativity of product  *)
118
119 (* -------------------------------------------------------------------------- *)
120
121 (* -------------------------------------------------------------------------- *)
122
123 (* ----Right identity and inverse are dependent lemmas  *)
124 ntheorem prove_commutativity:
125  (∀Univ:Type.∀X:Univ.∀Y:Univ.∀Z:Univ.
126 ∀a:Univ.
127 ∀add:∀_:Univ.∀_:Univ.Univ.
128 ∀additive_identity:Univ.
129 ∀additive_inverse:∀_:Univ.Univ.
130 ∀b:Univ.
131 ∀c:Univ.
132 ∀multiply:∀_:Univ.∀_:Univ.Univ.
133 ∀H0:eq Univ (multiply a b) c.
134 ∀H1:∀X:Univ.eq Univ (multiply X X) X.
135 ∀H2:∀X:Univ.eq Univ (add X (additive_inverse X)) additive_identity.
136 ∀H3:∀X:Univ.eq Univ (add X additive_identity) X.
137 ∀H4:∀X:Univ.∀Y:Univ.∀Z:Univ.eq Univ (multiply (multiply X Y) Z) (multiply X (multiply Y Z)).
138 ∀H5:∀X:Univ.∀Y:Univ.eq Univ (add X Y) (add Y X).
139 ∀H6:∀X:Univ.∀Y:Univ.∀Z:Univ.eq Univ (add (add X Y) Z) (add X (add Y Z)).
140 ∀H7:∀X:Univ.∀Y:Univ.eq Univ (multiply (additive_inverse X) Y) (additive_inverse (multiply X Y)).
141 ∀H8:∀X:Univ.∀Y:Univ.eq Univ (multiply X (additive_inverse Y)) (additive_inverse (multiply X Y)).
142 ∀H9:∀X:Univ.∀Y:Univ.eq Univ (additive_inverse (add X Y)) (add (additive_inverse X) (additive_inverse Y)).
143 ∀H10:∀X:Univ.eq Univ (multiply additive_identity X) additive_identity.
144 ∀H11:∀X:Univ.eq Univ (multiply X additive_identity) additive_identity.
145 ∀H12:∀X:Univ.eq Univ (additive_inverse (additive_inverse X)) X.
146 ∀H13:eq Univ (additive_inverse additive_identity) additive_identity.
147 ∀H14:∀X:Univ.∀Y:Univ.∀Z:Univ.eq Univ (multiply (add X Y) Z) (add (multiply X Z) (multiply Y Z)).
148 ∀H15:∀X:Univ.∀Y:Univ.∀Z:Univ.eq Univ (multiply X (add Y Z)) (add (multiply X Y) (multiply X Z)).
149 ∀H16:∀X:Univ.eq Univ (add (additive_inverse X) X) additive_identity.
150 ∀H17:∀X:Univ.eq Univ (add additive_identity X) X.eq Univ (multiply b a) c)
151 .
152 #Univ ##.
153 #X ##.
154 #Y ##.
155 #Z ##.
156 #a ##.
157 #add ##.
158 #additive_identity ##.
159 #additive_inverse ##.
160 #b ##.
161 #c ##.
162 #multiply ##.
163 #H0 ##.
164 #H1 ##.
165 #H2 ##.
166 #H3 ##.
167 #H4 ##.
168 #H5 ##.
169 #H6 ##.
170 #H7 ##.
171 #H8 ##.
172 #H9 ##.
173 #H10 ##.
174 #H11 ##.
175 #H12 ##.
176 #H13 ##.
177 #H14 ##.
178 #H15 ##.
179 #H16 ##.
180 #H17 ##.
181 nauto by H0,H1,H2,H3,H4,H5,H6,H7,H8,H9,H10,H11,H12,H13,H14,H15,H16,H17 ##;
182 ntry (nassumption) ##;
183 nqed.
184
185 (* -------------------------------------------------------------------------- *)