section \<open>Some algebraic identities derived from group axioms -- theory context version\<close>
theory Group_Context imports Main begin
text\<open>hypothetical group axiomatization\<close>
context fixes prod :: "'a \ 'a \ 'a" (infixl \\\ 70) and one :: "'a" and inverse :: "'a \ 'a" assumes assoc: "(x \ y) \ z = x \ (y \ z)" and left_one: "one \ x = x" and left_inverse: "inverse x \ x = one" begin
text\<open>some consequences\<close>
lemma right_inverse: "x \ inverse x = one" proof - have"x \ inverse x = one \ (x \ inverse x)" by (simp only: left_one) alsohave"\ = one \ x \ inverse x" by (simp only: assoc) alsohave"\ = inverse (inverse x) \ inverse x \ x \ inverse x" by (simp only: left_inverse) alsohave"\ = inverse (inverse x) \ (inverse x \ x) \ inverse x" by (simp only: assoc) alsohave"\ = inverse (inverse x) \ one \ inverse x" by (simp only: left_inverse) alsohave"\ = inverse (inverse x) \ (one \ inverse x)" by (simp only: assoc) alsohave"\ = inverse (inverse x) \ inverse x" by (simp only: left_one) alsohave"\ = one" by (simp only: left_inverse) finallyshow ?thesis . qed
lemma right_one: "x \ one = x" proof - have"x \ one = x \ (inverse x \ x)" by (simp only: left_inverse) alsohave"\ = x \ inverse x \ x" by (simp only: assoc) alsohave"\ = one \ x" by (simp only: right_inverse) alsohave"\ = x" by (simp only: left_one) finallyshow ?thesis . qed
lemma one_equality: assumes eq: "e \ x = x" shows"one = e" proof - have"one = x \ inverse x" by (simp only: right_inverse) alsohave"\ = (e \ x) \ inverse x" by (simp only: eq) alsohave"\ = e \ (x \ inverse x)" by (simp only: assoc) alsohave"\ = e \ one" by (simp only: right_inverse) alsohave"\ = e" by (simp only: right_one) finallyshow ?thesis . qed
lemma inverse_equality: assumes eq: "x' \ x = one" shows"inverse x = x'" proof - have"inverse x = one \ inverse x" by (simp only: left_one) alsohave"\ = (x' \ x) \ inverse x" by (simp only: eq) alsohave"\ = x' \ (x \ inverse x)" by (simp only: assoc) alsohave"\ = x' \ one" by (simp only: right_inverse) alsohave"\ = x'" by (simp only: right_one) finallyshow ?thesis . qed
end
end
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.