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 / V11. Fields and Galois theory

Mathlib.FieldTheory.RatFunc.Degree

13 declarations. Mathlib docs · Source

The degree of rational functions

Main definitions

We define the degree of a rational function, with values in ℤ:

  • intDegree is the degree of a rational function, defined as the difference between the natDegree of its numerator and the natDegree of its denominator. In particular, intDegree 0 = 0.

def RatFunc.intDegree E3 #

{K : Type u} → [inst : Field K] → RatFunc K → ℤ

intDegree x is the degree of the rational function x, defined as the difference between the natDegree of its numerator and the natDegree of its denominator. In particular, intDegree 0 = 0.

theorem RatFunc.intDegree_zero E0 #

∀ {K : Type u} [inst : Field K], RatFunc.intDegree 0 = 0

theorem RatFunc.intDegree_one E0 #

∀ {K : Type u} [inst : Field K], RatFunc.intDegree 1 = 0

theorem RatFunc.intDegree_C E0 #

∀ {K : Type u} [inst : Field K] (k : K), (RatFunc.C k).intDegree = 0

theorem RatFunc.intDegree_X E0 #

∀ {K : Type u} [inst : Field K], RatFunc.X.intDegree = 1

theorem RatFunc.intDegree_polynomial E0 #

∀ {K : Type u} [inst : Field K] {p : Polynomial K}, ((algebraMap (Polynomial K) (RatFunc K)) p).intDegree = ↑p.natDegree

theorem RatFunc.intDegree_mul E1 #

∀ {K : Type u} [inst : Field K] {x y : RatFunc K}, x ≠ 0 → y ≠ 0 → (x * y).intDegree = x.intDegree + y.intDegree

theorem RatFunc.intDegree_inv E0 #

∀ {K : Type u} [inst : Field K] (x : RatFunc K), x⁻¹.intDegree = -x.intDegree

theorem RatFunc.intDegree_div E1 #

∀ {K : Type u} [inst : Field K] {x y : RatFunc K}, x ≠ 0 → y ≠ 0 → (x / y).intDegree = x.intDegree - y.intDegree

theorem RatFunc.intDegree_neg E0 #

∀ {K : Type u} [inst : Field K] (x : RatFunc K), (-x).intDegree = x.intDegree

theorem RatFunc.intDegree_add E1 #

∀ {K : Type u} [inst : Field K] {x y : RatFunc K},
  x + y ≠ 0 → (x + y).intDegree = ↑(x.num * y.denom + x.denom * y.num).natDegree - ↑(x.denom * y.denom).natDegree

theorem RatFunc.natDegree_num_mul_right_sub_natDegree_denom_mul_left_eq_intDegree E1 #

∀ {K : Type u} [inst : Field K] {x : RatFunc K},
  x ≠ 0 → ∀ {s : Polynomial K}, s ≠ 0 → ↑(x.num * s).natDegree - ↑(s * x.denom).natDegree = x.intDegree

theorem RatFunc.intDegree_add_le E1 #

∀ {K : Type u} [inst : Field K] {x y : RatFunc K}, x + y ≠ 0 → (x + y).intDegree ≤ max x.intDegree y.intDegree