1-- The order of a finite group against its elements: the order of an2-- element divides the order of the group and is at most it, and the order3-- of the group annihilates every element4-- Part of Cumulus, the Grace17 mathematics library.5-- Copyright (c) 2026 Grant Passmore.6-- Released under the Apache License 2.0. See LICENSE in the repository root.7-- Authors: Grant Passmore89module Grace.Cumulus.Algebra.Group.GroupOrder10import ElementOrder1112section GroupOrder13variable (G : Set)14hypothesis group : Group(G)1516theorem elementOrder.divides_order (g : G)17requires finite : Finite(G)18shows elementOrder(G, g) ∣ order(G)19proof20rw order.value21exact elementOrder.dvd_card with*2223theorem elementOrder.le_order (g : G)24requires finite : Finite(G)25shows elementOrder(G, g) ≤ order(G)26proof27rw order.value28exact elementOrder.le_card with*2930theorem pow_order_eq_one (g : G)31requires finite : Finite(G)32shows g ^ order(G) = G.one33proof34rw order.value35exact Group.pow_card with*3637end GroupOrder38