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.Field.IsField

14 declarations. Mathlib docs · Source

structure IsField E3 #

(R : Type u) → [Semiring R] → Prop

A predicate to express that a (semi)ring is a (semi)field.

This is mainly useful because such a predicate does not contain data, and can therefore be easily transported along ring isomorphisms. Additionally, this is useful when trying to prove that a particular ring structure extends to a (semi)field.

ctor IsField.mk E0 #

∀ {R : Type u} [inst : Semiring R],
  (∃ x y, x ≠ y) → (∀ (x y : R), x * y = y * x) → (∀ {a : R}, a ≠ 0 → ∃ b, a * b = 1) → IsField R

theorem IsField.exists_pair_ne E1 #

∀ {R : Type u} [inst : Semiring R], IsField R → ∃ x y, x ≠ y

For a semiring to be a field, it must have two distinct elements.

theorem IsField.mul_comm E1 #

∀ {R : Type u} [inst : Semiring R], IsField R → ∀ (x y : R), x * y = y * x

Fields are commutative.

theorem IsField.mul_inv_cancel E1 #

∀ {R : Type u} [inst : Semiring R], IsField R → ∀ {a : R}, a ≠ 0 → ∃ b, a * b = 1

Nonzero elements have multiplicative inverses.

theorem Semifield.toIsField E1 #

∀ (R : Type u) [inst : Semifield R], IsField R

Transferring from Semifield to IsField.

theorem Field.toIsField E1 #

∀ (R : Type u) [inst : Field R], IsField R

Transferring from Field to IsField.

theorem IsField.nontrivial E0 #

∀ {R : Type u} [inst : Semiring R], IsField R → Nontrivial R

theorem IsField.isDomain E1 #

∀ {R : Type u} [inst : Semiring R], IsField R → IsDomain R

instance instIsDomain E0 #

∀ {R : Type u} [inst : Semifield R], IsDomain R

theorem not_isField_of_subsingleton E0 #

∀ (R : Type u) [inst : Semiring R] [Subsingleton R], ¬IsField R

def IsField.toSemifield E1 #

{R : Type u} → [inst : Semiring R] → IsField R → Semifield R

Transferring from IsField to Semifield.

def IsField.toField E1 #

{R : Type u} → [inst : Ring R] → IsField R → Field R

Transferring from IsField to Field.

theorem uniq_inv_of_isField E1 #

∀ (R : Type u) [inst : Ring R], IsField R → ∀ (x : R), x ≠ 0 → ∃! y, x * y = 1

For each field, and for each nonzero element of said field, there is a unique inverse. Since IsField doesn't remember the data of an inv function and as such, a lemma that there is a unique inverse could be useful.