# HG changeset patch # User wenzelm # Date 974483349 -3600 # Node ID 1f7c944443fc372e6d12bfcb64035e217bb13fa7 # Parent eb93ace45a6e6e5e3aaeaa644965fbb3063c94f4 tuned; diff -r eb93ace45a6e -r 1f7c944443fc src/HOL/Library/Ring_and_Field.thy --- a/src/HOL/Library/Ring_and_Field.thy Fri Nov 17 18:48:50 2000 +0100 +++ b/src/HOL/Library/Ring_and_Field.thy Fri Nov 17 18:49:09 2000 +0100 @@ -4,19 +4,23 @@ *) header {* - \title{Rings and Fields} + \title{Ring and field structures} \author{Gertrud Bauer} *} theory Ring_and_Field = Main: +text {* + The class @{text ring} models commutative ring structures with $1$. +*} -axclass ring < plus, minus, times, number +axclass ring < zero, plus, minus, times, number add_assoc: "(a + b) + c = a + (b + c)" add_commute: "a + b = b + a" - left_zero: "#0 + a = a" - left_neg: "(- a) + a = #0" - minus_uminus: "a - b = a + (- b)" + left_zero: "0 + a = a" + left_minus: "(- a) + a = 0" + diff_minus: "a - b = a + (- b)" + zero_number: "0 = #0" mult_assoc: "(a * b) * c = a * (b * c)" mult_commute: "a * b = b * a" @@ -26,7 +30,7 @@ axclass field < ring, inverse - left_inverse: "a \ #0 \ inverse a * a = #1" - divides_inverse: "a / b = a * inverse b" + left_inverse: "a \ 0 ==> inverse a * a = #1" + divides_inverse: "b \ 0 ==> a / b = a * inverse b" -end \ No newline at end of file +end