The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Ring.MinimalAxioms

2 declarations. Mathlib docs · Source

Minimal Axioms for a Ring

This file defines constructors to define a Ring or CommRing structure on a Type, while proving a minimum number of equalities.

Main Definitions

  • Ring.ofMinimalAxioms: Define a Ring structure on a Type by proving a minimized set of axioms
  • CommRing.ofMinimalAxioms: Define a CommRing structure on a Type by proving a minimized set of axioms

abbrev Ring.ofMinimalAxioms E3 #

{R : Type u} →
  [inst : Add R] →
    [inst_1 : Mul R] →
      [inst_2 : Neg R] →
        [inst_3 : Zero R] →
          [inst_4 : One R] →
            (∀ (a b c : R), a + b + c = a + (b + c)) →
              (∀ (a : R), 0 + a = a) →
                (∀ (a : R), -a + a = 0) →
                  (∀ (a b c : R), a * b * c = a * (b * c)) →
                    (∀ (a : R), 1 * a = a) →
                      (∀ (a : R), a * 1 = a) →
                        (∀ (a b c : R), a * (b + c) = a * b + a * c) →
                          (∀ (a b c : R), (a + b) * c = a * c + b * c) → Ring R

Define a Ring structure on a Type by proving a minimized set of axioms. Note that this uses the default definitions for npow, nsmul, zsmul and sub See note [reducible non-instances].

abbrev CommRing.ofMinimalAxioms E3 #

{R : Type u} →
  [inst : Add R] →
    [inst_1 : Mul R] →
      [inst_2 : Neg R] →
        [inst_3 : Zero R] →
          [inst_4 : One R] →
            (∀ (a b c : R), a + b + c = a + (b + c)) →
              (∀ (a : R), 0 + a = a) →
                (∀ (a : R), -a + a = 0) →
                  (∀ (a b c : R), a * b * c = a * (b * c)) →
                    (∀ (a b : R), a * b = b * a) →
                      (∀ (a : R), 1 * a = a) → (∀ (a b c : R), a * (b + c) = a * b + a * c) → CommRing R

Define a CommRing structure on a Type by proving a minimized set of axioms. Note that this uses the default definitions for npow, nsmul, zsmul and sub See note [reducible non-instances].