case empty
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
f : R[X]
hg : ∀ (i : ι), i ∈ ∅ → Monic (g i)
hcop : Set.Pairwise ↑∅ fun i j => IsCoprime (g i) (g j)
⊢ ∃ q r, (∀ (i : ι), i ∈ ∅ → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in ∅, ↑(g i) = ↑q + ∑ i in ∅, ↑(r i) / ↑(g i)

case insert
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg : ∀ (i : ι), i ∈ s → Monic (g i)
hcop : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
⊢ ∃ q r, (∀ (i : ι), i ∈ s → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in s, ↑(g i) = ↑q + ∑ i in s, ↑(r i) / ↑(g i)
induction' s using Finset.induction_on with a b hab Hind f generalizing f
case insert.intro.intro.intro.intro.intro
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
case insert
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
obtain ⟨q₀, r₁, r₂, hdeg₁, _, hf : (↑f : K) / _ = _⟩ :=
  div_eq_quo_add_rem_div_add_rem_div R K f
    (hg a (b.mem_insert_self a) : Monic (g a))
    (monic_prod_of_monic _ _ fun i hi => hg i (Finset.mem_insert_of_mem hi) :
      Monic (∏ i : ι in b, g i))
    (IsCoprime.prod_right fun i hi =>
      hcop (Finset.mem_coe.2 (b.mem_insert_self a))
        (Finset.mem_coe.2 (Finset.mem_insert_of_mem hi)) (by rintro rfl; exact hab hi))
case empty
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
f : R[X]
hg : ∀ (i : ι), i ∈ ∅ → Monic (g i)
hcop : Set.Pairwise ↑∅ fun i j => IsCoprime (g i) (g j)
i : ι
⊢ i ∈ ∅ → degree ((fun x => 0) i) < degree (g i)
case empty
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
f : R[X]
hg : ∀ (i : ι), i ∈ ∅ → Monic (g i)
hcop : Set.Pairwise ↑∅ fun i j => IsCoprime (g i) (g j)
⊢ ∃ q r, (∀ (i : ι), i ∈ ∅ → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in ∅, ↑(g i) = ↑q + ∑ i in ∅, ↑(r i) / ↑(g i)
refine' ⟨f, fun _ : ι => (0 : R[X]), fun i => _, by simp⟩
no goals
case empty
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
f : R[X]
hg : ∀ (i : ι), i ∈ ∅ → Monic (g i)
hcop : Set.Pairwise ↑∅ fun i j => IsCoprime (g i) (g j)
i : ι
⊢ i ∈ ∅ → degree ((fun x => 0) i) < degree (g i)
rintro ⟨⟩
no goals
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
f : R[X]
hg : ∀ (i : ι), i ∈ ∅ → Monic (g i)
hcop : Set.Pairwise ↑∅ fun i j => IsCoprime (g i) (g j)
⊢ ↑f / ∏ i in ∅, ↑(g i) = ↑f + ∑ i in ∅, ↑((fun x => 0) i) / ↑(g i)
simp
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
hi : a ∈ b
⊢ False
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
i : ι
hi : i ∈ b
⊢ a ≠ i
rintro rfl
no goals
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
hi : a ∈ b
⊢ False
exact hab hi
case insert.intro.intro.intro.intro.intro.intro.intro.intro
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
case insert.intro.intro.intro.intro.intro
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
obtain ⟨q, r, hrdeg, IH⟩ :=
  Hind _ (fun i hi => hg i (Finset.mem_insert_of_mem hi))
    (Set.Pairwise.mono (Finset.coe_subset.2 fun i hi => Finset.mem_insert_of_mem hi) hcop)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∀ (i : ι), i ∈ insert a b → degree ((fun i => if i = a then r₁ else r i) i) < degree (g i)

case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑f / ∏ i in insert a b, ↑(g i) = ↑(q₀ + q) + ∑ i in insert a b, ↑((fun i => if i = a then r₁ else r i) i) / ↑(g i)
case insert.intro.intro.intro.intro.intro.intro.intro.intro
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∃ q r,
    (∀ (i : ι), i ∈ insert a b → degree (r i) < degree (g i)) ∧
      ↑f / ∏ i in insert a b, ↑(g i) = ↑q + ∑ i in insert a b, ↑(r i) / ↑(g i)
refine ⟨q₀ + q, fun i => if i = a then r₁ else r i, ?_, ?_⟩
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑?m.66060 / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑f / ↑(∏ i in insert a b, g i) = ↑(q₀ + q) + ∑ x in insert a b, ↑(if x = a then r₁ else r x) / ↑(g x)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑f / ∏ i in insert a b, ↑(g i) = ↑(q₀ + q) + ∑ i in insert a b, ↑((fun i => if i = a then r₁ else r i) i) / ↑(g i)
norm_cast  at hf IH⊢
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) =
    ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x))
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑?m.66060 / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑f / ↑(∏ i in insert a b, g i) = ↑(q₀ + q) + ∑ x in insert a b, ↑(if x = a then r₁ else r x) / ↑(g x)
rw [Finset.prod_insert hab, hf, IH, Finset.sum_insert hab, if_pos rfl]
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) = ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i))

R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i)) =
    ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x))
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_2
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) =
    ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x))
trans (↑(q₀ + q : R[X]) : K) + (↑r₁ / ↑(g a) + ∑ i : ι in b, (r i : K) / (g i : K))
case e_a.e_a
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∑ i in b, ↑(r i) / ↑(g i) = ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x)
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i)) =
    ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x))
congr 2
case e_a.e_a
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
⊢ ↑(r x) / ↑(g x) = ↑(if x = a then r₁ else r x) / ↑(g x)
case e_a.e_a
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∑ i in b, ↑(r i) / ↑(g i) = ∑ x in b, ↑(if x = a then r₁ else r x) / ↑(g x)
refine' Finset.sum_congr rfl fun x hxb => _
case e_a.e_a.hnc
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
⊢ ¬x = a
case e_a.e_a
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
⊢ ↑(r x) / ↑(g x) = ↑(if x = a then r₁ else r x) / ↑(g x)
rw [if_neg]
case e_a.e_a.hnc
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
b : Finset ι
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f q₀ r₁ r₂ : R[X]
left✝ : degree r₂ < degree (∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
hab : ¬x ∈ b
hg : ∀ (i : ι), i ∈ insert x b → Monic (g i)
hcop : Set.Pairwise ↑(insert x b) fun i j => IsCoprime (g i) (g j)
hdeg₁ : degree r₁ < degree (g x)
hf✝ : ↑f / (↑(g x) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g x) + ↑r₂ / ↑(∏ i in b, g i)
hf : ↑f / ↑(g x * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g x) + ↑r₂ / ↑(∏ i in b, g i)
⊢ False
case e_a.e_a.hnc
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
⊢ ¬x = a
rintro rfl
no goals
case e_a.e_a.hnc
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
b : Finset ι
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f q₀ r₁ r₂ : R[X]
left✝ : degree r₂ < degree (∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
x : ι
hxb : x ∈ b
hab : ¬x ∈ b
hg : ∀ (i : ι), i ∈ insert x b → Monic (g i)
hcop : Set.Pairwise ↑(insert x b) fun i j => IsCoprime (g i) (g j)
hdeg₁ : degree r₁ < degree (g x)
hf✝ : ↑f / (↑(g x) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g x) + ↑r₂ / ↑(∏ i in b, g i)
hf : ↑f / ↑(g x * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g x) + ↑r₂ / ↑(∏ i in b, g i)
⊢ False
exact hab hxb
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
⊢ i ∈ insert a b → degree ((fun i => if i = a then r₁ else r i) i) < degree (g i)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ∀ (i : ι), i ∈ insert a b → degree ((fun i => if i = a then r₁ else r i) i) < degree (g i)
intro i
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
⊢ i ∈ insert a b → degree (if i = a then r₁ else r i) < degree (g i)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
⊢ i ∈ insert a b → degree ((fun i => if i = a then r₁ else r i) i) < degree (g i)
dsimp only
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : i = a
⊢ i ∈ insert a b → degree r₁ < degree (g i)

case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inr
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : ¬i = a
⊢ i ∈ insert a b → degree (r i) < degree (g i)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
⊢ i ∈ insert a b → degree (if i = a then r₁ else r i) < degree (g i)
split_ifs with h1
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl.refl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ a ∈ insert a b → degree r₁ < degree (g a)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : i = a
⊢ i ∈ insert a b → degree r₁ < degree (g i)
cases h1
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl.refl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
a✝ : a ∈ insert a b
⊢ degree r₁ < degree (g a)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl.refl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ a ∈ insert a b → degree r₁ < degree (g a)
intro
no goals
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inl.refl
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
a✝ : a ∈ insert a b
⊢ degree r₁ < degree (g a)
exact hdeg₁
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inr
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : ¬i = a
hi : i ∈ insert a b
⊢ degree (r i) < degree (g i)
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inr
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : ¬i = a
⊢ i ∈ insert a b → degree (r i) < degree (g i)
intro hi
no goals
case insert.intro.intro.intro.intro.intro.intro.intro.intro.refine_1.inr
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
IH : ↑?m.66060 / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
i : ι
h1 : ¬i = a
hi : i ∈ insert a b
⊢ degree (r i) < degree (g i)
exact hrdeg i (Finset.mem_of_mem_insert_of_ne hi h1)
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) = ↑q₀ + ↑q + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i))
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) = ↑(q₀ + q) + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i))
push_cast
no goals
R : Type
inst✝⁴ : CommRing R
inst✝³ : IsDomain R
K : Type
inst✝² : Field K
inst✝¹ : Algebra R[X] K
inst✝ : IsFractionRing R[X] K
f✝ : R[X]
ι : Type u_1
g : ι → R[X]
s : Finset ι
hg✝ : ∀ (i : ι), i ∈ s → Monic (g i)
hcop✝ : Set.Pairwise ↑s fun i j => IsCoprime (g i) (g j)
a : ι
b : Finset ι
hab : ¬a ∈ b
Hind :
  ∀ (f : R[X]),
    (∀ (i : ι), i ∈ b → Monic (g i)) →
      (Set.Pairwise ↑b fun i j => IsCoprime (g i) (g j)) →
        ∃ q r, (∀ (i : ι), i ∈ b → degree (r i) < degree (g i)) ∧ ↑f / ∏ i in b, ↑(g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
f : R[X]
hg : ∀ (i : ι), i ∈ insert a b → Monic (g i)
hcop : Set.Pairwise ↑(insert a b) fun i j => IsCoprime (g i) (g j)
q₀ r₁ r₂ : R[X]
hdeg₁ : degree r₁ < degree (g a)
left✝ : degree r₂ < degree (∏ i in b, g i)
hf✝ : ↑f / (↑(g a) * ↑(∏ i in b, g i)) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
q : R[X]
r : ι → R[X]
hrdeg : ∀ (i : ι), i ∈ b → degree (r i) < degree (g i)
hf : ↑f / ↑(g a * ∏ i in b, g i) = ↑q₀ + ↑r₁ / ↑(g a) + ↑r₂ / ↑(∏ i in b, g i)
IH : ↑r₂ / ↑(∏ i in b, g i) = ↑q + ∑ i in b, ↑(r i) / ↑(g i)
⊢ ↑q₀ + ↑r₁ / ↑(g a) + (↑q + ∑ i in b, ↑(r i) / ↑(g i)) = ↑q₀ + ↑q + (↑r₁ / ↑(g a) + ∑ i in b, ↑(r i) / ↑(g i))
ring