case _3_2
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
⊢ (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀

R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
tfae_have _3_2 : 3 → 2
case _2_1
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R

R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
tfae_have _2_1 : 2 → 1
case _1_3
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
⊢ HenselianLocalRing R →
    ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀

R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
_1_3 :
  HenselianLocalRing R →
    ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
tfae_have _1_3 : 1 → 3
no goals
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
_1_3 :
  HenselianLocalRing R →
    ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀
⊢ List.TFAE
    [HenselianLocalRing R,
      ∀ (f : R[X]),
        Monic f →
          ∀ (a₀ : ResidueField R),
            ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀,
      ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
        Surjective ↑φ →
          ∀ (f : R[X]),
            Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀]
tfae_finish
case _3_2
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
H :
  ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
    Surjective ↑φ →
      ∀ (f : R[X]),
        Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀
⊢ ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
case _3_2
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
⊢ (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
intro H
no goals
case _3_2
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
H :
  ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
    Surjective ↑φ →
      ∀ (f : R[X]),
        Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀
⊢ ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
exact H (residue R) Ideal.Quotient.mk_surjective
case _2_1
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ HenselianLocalRing R
case _2_1
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
intro H
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : R),
        Polynomial.eval a₀ f ∈ maximalIdeal R →
          IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ HenselianLocalRing R
constructor
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
⊢ ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : R),
        Polynomial.eval a₀ f ∈ maximalIdeal R →
          IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
intro f hf a₀ h₁ h₂
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(aeval (↑(residue R) a₀)) f = 0 →
    ↑(aeval (↑(residue R) a₀)) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
H :
  ∀ (f : R[X]),
    Monic f →
      ∀ (a₀ : ResidueField R),
        ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
specialize H f hf (residue R a₀)
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(aeval (↑(residue R) a₀)) f = 0 →
    ↑(aeval (↑(residue R) a₀)) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
aux : Polynomial.eval a₀ (↑derivative f) ∈ nonunits R → False
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(aeval (↑(residue R) a₀)) f = 0 →
    ↑(aeval (↑(residue R) a₀)) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
have aux := flip mem_nonunits_iff.mp h₂
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₁ : Polynomial.eval a₀ f ∈ maximalIdeal R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(aeval (↑(residue R) a₀)) f = 0 →
    ↑(aeval (↑(residue R) a₀)) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
aux : Polynomial.eval a₀ (↑derivative f) ∈ nonunits R → False
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
simp only [aeval_def, ResidueField.algebraMap_eq, eval₂_at_apply, ←
  Ideal.Quotient.eq_zero_iff_mem, ← LocalRing.mem_maximalIdeal] at H h₁ aux
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
obtain ⟨a, ha₁, ha₂⟩ := H h₁ aux
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ a - a₀ ∈ maximalIdeal R
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
refine' ⟨a, ha₁, _⟩
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ ↑(Ideal.Quotient.mk (maximalIdeal R)) (a - a₀) = 0
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ a - a₀ ∈ maximalIdeal R
rw [← Ideal.Quotient.eq_zero_iff_mem]
no goals
case _2_1.is_henselian.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
f : R[X]
hf : Monic f
a₀ : R
h₂ : IsUnit (Polynomial.eval a₀ (↑derivative f))
H :
  ↑(residue R) (Polynomial.eval a₀ f) = 0 →
    ↑(residue R) (Polynomial.eval a₀ (↑derivative f)) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = ↑(residue R) a₀
h₁ : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ f) = 0
aux : ↑(Ideal.Quotient.mk (maximalIdeal R)) (Polynomial.eval a₀ (↑derivative f)) = 0 → False
a : R
ha₁ : IsRoot f a
ha₂ : ↑(residue R) a = ↑(residue R) a₀
⊢ ↑(Ideal.Quotient.mk (maximalIdeal R)) (a - a₀) = 0
rwa [← sub_eq_zero, ← RingHom.map_sub] at ha₂
case _1_3
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : K
h₁ : eval₂ φ a₀ f = 0
h₂ : eval₂ φ a₀ (↑derivative f) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = a₀
case _1_3
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
⊢ HenselianLocalRing R →
    ∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀
intro hR K _K φ hφ f hf a₀ h₁ h₂
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
h₁ : eval₂ φ (↑φ a₀) f = 0
h₂ : eval₂ φ (↑φ a₀) (↑derivative f) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
case _1_3
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : K
h₁ : eval₂ φ a₀ f = 0
h₂ : eval₂ φ a₀ (↑derivative f) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = a₀
obtain ⟨a₀, rfl⟩ := hφ a₀
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
h₁ : eval₂ φ (↑φ a₀) f = 0
h₂ : eval₂ φ (↑φ a₀) (↑derivative f) ≠ 0
H :
  Polynomial.eval a₀ f ∈ maximalIdeal R →
    IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
h₁ : eval₂ φ (↑φ a₀) f = 0
h₂ : eval₂ φ (↑φ a₀) (↑derivative f) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
have H := HenselianLocalRing.is_henselian f hf a₀
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
h₁ : eval₂ φ (↑φ a₀) f = 0
h₂ : eval₂ φ (↑φ a₀) (↑derivative f) ≠ 0
H :
  Polynomial.eval a₀ f ∈ maximalIdeal R →
    IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ a - a₀ ∈ maximalIdeal R
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
simp only [← ker_eq_maximalIdeal φ hφ, eval₂_at_apply, RingHom.mem_ker φ] at H h₁ h₂
case _1_3.intro.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
a : R
ha₁ : IsRoot f a
ha₂ : ↑φ (a - a₀) = 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
case _1_3.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
obtain ⟨a, ha₁, ha₂⟩ := H h₁ (by
  contrapose! h₂
  rwa [← mem_nonunits_iff, ← LocalRing.mem_maximalIdeal, ← LocalRing.ker_eq_maximalIdeal φ hφ,
    RingHom.mem_ker] at h₂)
case _1_3.intro.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
a : R
ha₁ : IsRoot f a
ha₂ : ↑φ (a - a₀) = 0
⊢ ↑φ a = ↑φ a₀
case _1_3.intro.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
a : R
ha₁ : IsRoot f a
ha₂ : ↑φ (a - a₀) = 0
⊢ ∃ a, IsRoot f a ∧ ↑φ a = ↑φ a₀
refine' ⟨a, ha₁, _⟩
no goals
case _1_3.intro.intro.intro
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
a : R
ha₁ : IsRoot f a
ha₂ : ↑φ (a - a₀) = 0
⊢ ↑φ a = ↑φ a₀
rwa [φ.map_sub, sub_eq_zero] at ha₂
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ¬IsUnit (Polynomial.eval a₀ (↑derivative f))
⊢ ↑φ (Polynomial.eval a₀ (↑derivative f)) = 0
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ↑φ (Polynomial.eval a₀ (↑derivative f)) ≠ 0
⊢ IsUnit (Polynomial.eval a₀ (↑derivative f))
contrapose! h₂
no goals
R : Type u
inst✝¹ : CommRing R
inst✝ : LocalRing R
_3_2 :
  (∀ {K : Type u} [inst : Field K] (φ : R →+* K),
      Surjective ↑φ →
        ∀ (f : R[X]),
          Monic f → ∀ (a₀ : K), eval₂ φ a₀ f = 0 → eval₂ φ a₀ (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑φ a = a₀) →
    ∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀
_2_1 :
  (∀ (f : R[X]),
      Monic f →
        ∀ (a₀ : ResidueField R),
          ↑(aeval a₀) f = 0 → ↑(aeval a₀) (↑derivative f) ≠ 0 → ∃ a, IsRoot f a ∧ ↑(residue R) a = a₀) →
    HenselianLocalRing R
hR : HenselianLocalRing R
K : Type u
_K : Field K
φ : R →+* K
hφ : Surjective ↑φ
f : R[X]
hf : Monic f
a₀ : R
H : ↑φ (Polynomial.eval a₀ f) = 0 → IsUnit (Polynomial.eval a₀ (↑derivative f)) → ∃ a, IsRoot f a ∧ ↑φ (a - a₀) = 0
h₁ : ↑φ (Polynomial.eval a₀ f) = 0
h₂ : ¬IsUnit (Polynomial.eval a₀ (↑derivative f))
⊢ ↑φ (Polynomial.eval a₀ (↑derivative f)) = 0
rwa [← mem_nonunits_iff, ← LocalRing.mem_maximalIdeal, ← LocalRing.ker_eq_maximalIdeal φ hφ,
  RingHom.mem_ker] at h₂