section \<open>A lemma for Lagrange's theorem\<close>
theory Lagrange imports Main begin
text\<open>This theory only contains a single theorem, which is a lemma in Lagrange's proof that every natural number is the sum of 4 squares.
Its sole purpose isto demonstrate ordered rewriting for commutative
rings.
The enterprising reader might consider proving all of Lagrange's theorem.\<close>
definition sq :: "'a::times => 'a"where"sq x == x*x"
text\<open>The following lemma essentially shows that every natural
number is the sum of four squares, provided all prime numbers are.
However, this is an abstract theorem about commutative rings. It has,
a priori, nothing to do with nat.\<close>
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.