Skip to content

Commit 1c83e3f

Browse files
committed
feat(GroupTheory/OrderOfElement): add iff version of IsOfFinOrder.prod_mk (#38717)
This PR combines the existing API for finite order elements of a product into an `iff` lemma. Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
1 parent ff96409 commit 1c83e3f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Mathlib/GroupTheory/OrderOfElement.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,10 @@ theorem IsOfFinOrder.snd (hx : IsOfFinOrder x) : IsOfFinOrder x.2 :=
13751375
theorem IsOfFinOrder.prod_mk : IsOfFinOrder a → IsOfFinOrder b → IsOfFinOrder (a, b) := by
13761376
simpa only [← orderOf_pos_iff, Prod.orderOf] using Nat.lcm_pos
13771377

1378+
@[to_additive IsOfFinAddOrder.prod_iff]
1379+
theorem IsOfFinOrder.prod_iff : IsOfFinOrder x ↔ IsOfFinOrder x.1 ∧ IsOfFinOrder x.2 :=
1380+
fun h ↦ ⟨h.fst, h.snd⟩, fun h ↦ .prod_mk h.1 h.2
1381+
13781382
@[to_additive]
13791383
lemma Prod.orderOf_mk : orderOf (a, b) = Nat.lcm (orderOf a) (orderOf b) :=
13801384
(a, b).orderOf

0 commit comments

Comments
 (0)