The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Field.Basic
63 declarations. Mathlib docs · Source
Lemmas about division (semi)rings and (semi)fields
Order dual
Lexicographic order
theorem add_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] (a b c : K), (a + b) / c = a / c + b / c
theorem same_add_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, b ≠ 0 → (b + a) / b = 1 + a / b
theorem div_add_same E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, b ≠ 0 → (a + b) / b = a / b + 1
theorem one_add_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, b ≠ 0 → 1 + a / b = (b + a) / b
theorem div_add_one E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, b ≠ 0 → a / b + 1 = (a + b) / b
theorem inv_add_inv' E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, a ≠ 0 → b ≠ 0 → a⁻¹ + b⁻¹ = a⁻¹ * (a + b) * b⁻¹
See inv_add_inv for the more convenient version when K is commutative.
theorem one_div_mul_add_mul_one_div_eq_one_div_add_one_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, a ≠ 0 → b ≠ 0 → 1 / a * (a + b) * (1 / b) = 1 / a + 1 / b
theorem add_div_eq_mul_add_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {c : K} (a b : K), c ≠ 0 → a + b / c = (a * c + b) / c
theorem add_div' E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] (a b c : K), c ≠ 0 → b + a / c = (b * c + a) / c
theorem div_add' E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] (a b c : K), c ≠ 0 → a / c + b = (a + b * c) / c
theorem Commute.div_add_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b c d : K},
Commute b c → Commute b d → b ≠ 0 → d ≠ 0 → a / b + c / d = (a * d + b * c) / (b * d)
theorem Commute.one_div_add_one_div E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, Commute a b → a ≠ 0 → b ≠ 0 → 1 / a + 1 / b = (a + b) / (a * b)
theorem Commute.inv_add_inv E1 #
∀ {K : Type u_1} [inst : DivisionSemiring K] {a b : K}, Commute a b → a ≠ 0 → b ≠ 0 → a⁻¹ + b⁻¹ = (a + b) / (a * b)
theorem add_self_div_two E0 #
∀ {K : Type u_1} [inst : DivisionSemiring K] [NeZero 2] (a : K), (a + a) / 2 = a
theorem add_halves E0 #
∀ {K : Type u_1} [inst : DivisionSemiring K] [NeZero 2] (a : K), a / 2 + a / 2 = a
theorem div_neg_self E0 #
∀ {K : Type u_1} [inst : DivisionRing K] {a : K}, a ≠ 0 → a / -a = -1
theorem neg_div_self E0 #
∀ {K : Type u_1} [inst : DivisionRing K] {a : K}, a ≠ 0 → -a / a = -1
theorem div_sub_div_same E1 #
∀ {K : Type u_1} [inst : DivisionRing K] (a b c : K), a / c - b / c = (a - b) / c
theorem same_sub_div E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, b ≠ 0 → (b - a) / b = 1 - a / b
theorem one_sub_div E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, b ≠ 0 → 1 - a / b = (b - a) / b
theorem div_sub_same E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, b ≠ 0 → (a - b) / b = a / b - 1
theorem div_sub_one E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, b ≠ 0 → a / b - 1 = (a - b) / b
theorem sub_div E1 #
∀ {K : Type u_1} [inst : DivisionRing K] (a b c : K), (a - b) / c = a / c - b / c
theorem inv_sub_inv' E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, a ≠ 0 → b ≠ 0 → a⁻¹ - b⁻¹ = a⁻¹ * (b - a) * b⁻¹
See inv_sub_inv for the more convenient version when K is commutative.
theorem one_div_mul_sub_mul_one_div_eq_one_div_add_one_div E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, a ≠ 0 → b ≠ 0 → 1 / a * (b - a) * (1 / b) = 1 / a - 1 / b
theorem inv_eq_self₀ E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a : K}, a⁻¹ = a ↔ a = -1 ∨ a = 0 ∨ a = 1
theorem self_eq_inv₀ E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a : K}, a = a⁻¹ ↔ a = -1 ∨ a = 0 ∨ a = 1
theorem isSelfInv_iff_eq_neg_one_or_eq_zero_or_eq_one E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a : K}, IsSelfInv a ↔ a = -1 ∨ a = 0 ∨ a = 1
instance DivisionRing.isDomain E0 #
∀ {K : Type u_1} [inst : DivisionRing K], IsDomain K
theorem Commute.div_sub_div E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b c d : K},
Commute b c → Commute b d → b ≠ 0 → d ≠ 0 → a / b - c / d = (a * d - b * c) / (b * d)
theorem Commute.inv_sub_inv E1 #
∀ {K : Type u_1} [inst : DivisionRing K] {a b : K}, Commute a b → a ≠ 0 → b ≠ 0 → a⁻¹ - b⁻¹ = (b - a) / (a * b)
theorem sub_half E1 #
∀ {K : Type u_1} [inst : DivisionRing K] [NeZero 2] (a : K), a - a / 2 = a / 2
theorem half_sub E1 #
∀ {K : Type u_1} [inst : DivisionRing K] [NeZero 2] (a : K), a / 2 - a = -(a / 2)
theorem div_add_div E1 #
∀ {K : Type u_1} [inst : Semifield K] {b d : K} (a c : K), b ≠ 0 → d ≠ 0 → a / b + c / d = (a * d + b * c) / (b * d)
theorem one_div_add_one_div E1 #
∀ {K : Type u_1} [inst : Semifield K] {a b : K}, a ≠ 0 → b ≠ 0 → 1 / a + 1 / b = (a + b) / (a * b)
theorem inv_add_inv E1 #
∀ {K : Type u_1} [inst : Semifield K] {a b : K}, a ≠ 0 → b ≠ 0 → a⁻¹ + b⁻¹ = (a + b) / (a * b)
instance Field.toGrindField E0 #
{K : Type u_1} → [Field K] → Lean.Grind.Field K
theorem div_sub_div E1 #
∀ {K : Type u_1} [inst : Field K] (a : K) {b : K} (c : K) {d : K},
b ≠ 0 → d ≠ 0 → a / b - c / d = (a * d - b * c) / (b * d)
theorem inv_sub_inv E1 #
∀ {K : Type u_1} [inst : Field K] {a b : K}, a ≠ 0 → b ≠ 0 → a⁻¹ - b⁻¹ = (b - a) / (a * b)
theorem sub_div' E1 #
∀ {K : Type u_1} [inst : Field K] {a b c : K}, c ≠ 0 → b - a / c = (b * c - a) / c
theorem div_sub' E1 #
∀ {K : Type u_1} [inst : Field K] {a b c : K}, c ≠ 0 → a / c - b = (a - c * b) / c
instance Field.isDomain E0 #
∀ {K : Type u_1} [inst : Field K], IsDomain K
abbrev DivisionRing.ofIsUnitOrEqZero E1 #
{R : Type u_3} → [Nontrivial R] → [inst : Ring R] → (∀ (a : R), IsUnit a ∨ a = 0) → DivisionRing R
Constructs a DivisionRing structure on a Ring consisting only of units and 0.
abbrev Field.ofIsUnitOrEqZero E1 #
{R : Type u_3} → [Nontrivial R] → [inst : CommRing R] → (∀ (a : R), IsUnit a ∨ a = 0) → Field R
Constructs a Field structure on a CommRing consisting only of units and 0.
abbrev Function.Injective.divisionSemiring E1 #
{K : Type u_1} →
{L : Type u_2} →
[inst : Zero K] →
[inst_1 : Add K] →
[inst_2 : One K] →
[inst_3 : Mul K] →
[inst_4 : Inv K] →
[inst_5 : Div K] →
[inst_6 : SMul ℕ K] →
[inst_7 : SMul ℚ≥0 K] →
[inst_8 : Pow K ℕ] →
[inst_9 : Pow K ℤ] →
[inst_10 : NatCast K] →
[inst_11 : NNRatCast K] →
(f : K → L) →
Function.Injective f →
[inst_12 : DivisionSemiring L] →
f 0 = 0 →
f 1 = 1 →
(∀ (x y : K), f (x + y) = f x + f y) →
(∀ (x y : K), f (x * y) = f x * f y) →
(∀ (x : K), f x⁻¹ = (f x)⁻¹) →
(∀ (x y : K), f (x / y) = f x / f y) →
(∀ (n : ℕ) (x : K), f (n • x) = n • f x) →
(∀ (q : ℚ≥0) (x : K), f (q • x) = q • f x) →
(∀ (x : K) (n : ℕ), f (x ^ n) = f x ^ n) →
(∀ (x : K) (n : ℤ), f (x ^ n) = f x ^ n) →
(∀ (n : ℕ), f ↑n = ↑n) →
(∀ (q : ℚ≥0), f ↑q = ↑q) → DivisionSemiring K
Pullback a DivisionSemiring along an injective function.
abbrev Function.Injective.divisionRing E1 #
{K : Type u_1} →
{L : Type u_2} →
[inst : Zero K] →
[inst_1 : Add K] →
[inst_2 : Neg K] →
[inst_3 : Sub K] →
[inst_4 : One K] →
[inst_5 : Mul K] →
[inst_6 : Inv K] →
[inst_7 : Div K] →
[inst_8 : SMul ℕ K] →
[inst_9 : SMul ℤ K] →
[inst_10 : SMul ℚ≥0 K] →
[inst_11 : SMul ℚ K] →
[inst_12 : Pow K ℕ] →
[inst_13 : Pow K ℤ] →
[inst_14 : NatCast K] →
[inst_15 : IntCast K] →
[inst_16 : NNRatCast K] →
[inst_17 : RatCast K] →
(f : K → L) →
Function.Injective f →
[inst_18 : DivisionRing L] →
f 0 = 0 →
f 1 = 1 →
(∀ (x y : K), f (x + y) = f x + f y) →
(∀ (x y : K), f (x * y) = f x * f y) →
(∀ (x : K), f (-x) = -f x) →
(∀ (x y : K), f (x - y) = f x - f y) →
(∀ (x : K), f x⁻¹ = (f x)⁻¹) →
(∀ (x y : K), f (x / y) = f x / f y) →
(∀ (n : ℕ) (x : K), f (n • x) = n • f x) →
(∀ (n : ℤ) (x : K), f (n • x) = n • f x) →
(∀ (q : ℚ≥0) (x : K), f (q • x) = q • f x) →
(∀ (q : ℚ) (x : K), f (q • x) = q • f x) →
(∀ (x : K) (n : ℕ), f (x ^ n) = f x ^ n) →
(∀ (x : K) (n : ℤ), f (x ^ n) = f x ^ n) →
(∀ (n : ℕ), f ↑n = ↑n) →
(∀ (n : ℤ), f ↑n = ↑n) →
(∀ (q : ℚ≥0), f ↑q = ↑q) →
(∀ (q : ℚ), f ↑q = ↑q) → DivisionRing K
Pullback a DivisionSemiring along an injective function.
abbrev Function.Injective.semifield E1 #
{K : Type u_1} →
{L : Type u_2} →
[inst : Zero K] →
[inst_1 : Add K] →
[inst_2 : One K] →
[inst_3 : Mul K] →
[inst_4 : Inv K] →
[inst_5 : Div K] →
[inst_6 : SMul ℕ K] →
[inst_7 : SMul ℚ≥0 K] →
[inst_8 : Pow K ℕ] →
[inst_9 : Pow K ℤ] →
[inst_10 : NatCast K] →
[inst_11 : NNRatCast K] →
(f : K → L) →
Function.Injective f →
[inst_12 : Semifield L] →
f 0 = 0 →
f 1 = 1 →
(∀ (x y : K), f (x + y) = f x + f y) →
(∀ (x y : K), f (x * y) = f x * f y) →
(∀ (x : K), f x⁻¹ = (f x)⁻¹) →
(∀ (x y : K), f (x / y) = f x / f y) →
(∀ (n : ℕ) (x : K), f (n • x) = n • f x) →
(∀ (q : ℚ≥0) (x : K), f (q • x) = q • f x) →
(∀ (x : K) (n : ℕ), f (x ^ n) = f x ^ n) →
(∀ (x : K) (n : ℤ), f (x ^ n) = f x ^ n) →
(∀ (n : ℕ), f ↑n = ↑n) → (∀ (q : ℚ≥0), f ↑q = ↑q) → Semifield K
Pullback a Field along an injective function.
abbrev Function.Injective.field E1 #
{K : Type u_1} →
{L : Type u_2} →
[inst : Zero K] →
[inst_1 : Add K] →
[inst_2 : Neg K] →
[inst_3 : Sub K] →
[inst_4 : One K] →
[inst_5 : Mul K] →
[inst_6 : Inv K] →
[inst_7 : Div K] →
[inst_8 : SMul ℕ K] →
[inst_9 : SMul ℤ K] →
[inst_10 : SMul ℚ≥0 K] →
[inst_11 : SMul ℚ K] →
[inst_12 : Pow K ℕ] →
[inst_13 : Pow K ℤ] →
[inst_14 : NatCast K] →
[inst_15 : IntCast K] →
[inst_16 : NNRatCast K] →
[inst_17 : RatCast K] →
(f : K → L) →
Function.Injective f →
[inst_18 : Field L] →
f 0 = 0 →
f 1 = 1 →
(∀ (x y : K), f (x + y) = f x + f y) →
(∀ (x y : K), f (x * y) = f x * f y) →
(∀ (x : K), f (-x) = -f x) →
(∀ (x y : K), f (x - y) = f x - f y) →
(∀ (x : K), f x⁻¹ = (f x)⁻¹) →
(∀ (x y : K), f (x / y) = f x / f y) →
(∀ (n : ℕ) (x : K), f (n • x) = n • f x) →
(∀ (n : ℤ) (x : K), f (n • x) = n • f x) →
(∀ (q : ℚ≥0) (x : K), f (q • x) = q • f x) →
(∀ (q : ℚ) (x : K), f (q • x) = q • f x) →
(∀ (x : K) (n : ℕ), f (x ^ n) = f x ^ n) →
(∀ (x : K) (n : ℤ), f (x ^ n) = f x ^ n) →
(∀ (n : ℕ), f ↑n = ↑n) →
(∀ (n : ℤ), f ↑n = ↑n) →
(∀ (q : ℚ≥0), f ↑q = ↑q) →
(∀ (q : ℚ), f ↑q = ↑q) → Field K
Pullback a Field along an injective function.
instance OrderDual.instRatCast E0 #
{K : Type u_1} → [RatCast K] → RatCast Kᵒᵈ
instance OrderDual.instNNRatCast E0 #
{K : Type u_1} → [NNRatCast K] → NNRatCast Kᵒᵈ
instance OrderDual.instDivisionSemiring E0 #
{K : Type u_1} → [DivisionSemiring K] → DivisionSemiring Kᵒᵈ
instance OrderDual.instDivisionRing E0 #
{K : Type u_1} → [DivisionRing K] → DivisionRing Kᵒᵈ
instance OrderDual.instSemifield E0 #
{K : Type u_1} → [Semifield K] → Semifield Kᵒᵈ
instance OrderDual.instField E0 #
{K : Type u_1} → [Field K] → Field Kᵒᵈ
theorem toDual_ratCast E0 #
∀ {K : Type u_1} [inst : RatCast K] (n : ℚ), OrderDual.toDual ↑n = ↑n
theorem ofDual_ratCast E0 #
∀ {K : Type u_1} [inst : RatCast K] (n : ℚ), OrderDual.ofDual ↑n = ↑n
instance Lex.instRatCast E0 #
{K : Type u_1} → [RatCast K] → RatCast (Lex K)
instance Lex.instDivisionSemiring E0 #
{K : Type u_1} → [DivisionSemiring K] → DivisionSemiring (Lex K)
instance Lex.instDivisionRing E0 #
{K : Type u_1} → [DivisionRing K] → DivisionRing (Lex K)
instance Lex.instSemifield E0 #
{K : Type u_1} → [Semifield K] → Semifield (Lex K)
instance Lex.instField E0 #
{K : Type u_1} → [Field K] → Field (Lex K)
theorem toLex_ratCast E0 #
∀ {K : Type u_1} [inst : RatCast K] (n : ℚ), toLex ↑n = ↑n
theorem ofLex_ratCast E0 #
∀ {K : Type u_1} [inst : RatCast K] (n : ℚ), ofLex ↑n = ↑n