/-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
module
public import Mathlib.Algebra.Ring.Equiv
public import Mathlib.Data.Fin.Tuple.Basic
/-!
# Rings and `Fin`
This file collects some basic results involving rings and the `Fin` type
## Main results
* `RingEquiv.piFinTwo`: The product over `Fin 2` of some rings is the Cartesian product
-/
@[expose] public section
/-- The product over `Fin 2` of some rings is just the Cartesian product of these rings. -/
@[simps]
def RingEquiv.piFinTwo (R : Fin 2 → Type*) [∀ i, Semiring (R i)] :
(∀ i : Fin 2, R i) ≃+* R 0 × R 1 :=
{ piFinTwoEquiv R with
toFun := piFinTwoEquiv R
map_add' := fun _ _ => rfl
map_mul' := fun _ _ => rfl }
¤ Dauer der Verarbeitung: 0.8 Sekunden
¤
*© Formatika GbR, Deutschland