/-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
module
public import Mathlib.Algebra.Group.PUnit
public import Mathlib.Algebra.Ring.Defs
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# `PUnit` is a commutative ring
This file collects facts about algebraic structures on the one-element type, e.g. that it is a
commutative ring.
-/
public section
assert_not_exists Field
namespace PUnit
instance commRing : CommRing PUnit where
__ := PUnit.commGroup
__ := PUnit.addCommGroup
left_distrib := by intros; rfl
right_distrib := by intros; rfl
zero_mul := by intros; rfl
mul_zero := by intros; rfl
natCast _ := unit
instance : IsCancelMulZero PUnit where
mul_left_cancel_of_ne_zero := by simp
mul_right_cancel_of_ne_zero := by simp
end PUnit
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland