case h
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ↑(PowerSeries.coeff A n) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A n) (PowerSeries.X * ↑(rescale t) (exp A))
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
⊢ (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1) = PowerSeries.X * ↑(rescale t) (exp A)
ext n
case h.zero
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
⊢ ↑(PowerSeries.coeff A Nat.zero) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A Nat.zero) (PowerSeries.X * ↑(rescale t) (exp A))

case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ↑(PowerSeries.coeff A (succ n)) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A (succ n)) (PowerSeries.X * ↑(rescale t) (exp A))
case h
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ↑(PowerSeries.coeff A n) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A n) (PowerSeries.X * ↑(rescale t) (exp A))
cases' n with n
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A (x, succ n - x).fst) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (x, succ n - x).snd) (exp A - 1) +
      ↑(PowerSeries.coeff A (n + 1, succ n - (n + 1)).fst)
          (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (n + 1, succ n - (n + 1)).snd) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ↑(PowerSeries.coeff A (succ n)) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A (succ n)) (PowerSeries.X * ↑(rescale t) (exp A))
rw [coeff_succ_X_mul, coeff_rescale, coeff_exp, PowerSeries.coeff_mul,
  Nat.sum_antidiagonal_eq_sum_range_succ_mk, sum_range_succ]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ∑ x in range (n + 1),
      ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A (x, succ n - x).fst) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (x, succ n - x).snd) (exp A - 1) +
      ↑(PowerSeries.coeff A (n + 1, succ n - (n + 1)).fst)
          (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (n + 1, succ n - (n + 1)).snd) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
simp only [RingHom.map_sub, tsub_self, constantCoeff_one, constantCoeff_exp,
  coeff_zero_eq_constantCoeff, MulZeroClass.mul_zero, sub_self, add_zero]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∑ x in range (n + 1),
      ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ∑ x in range (n + 1),
      ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
have hnp1 : IsUnit ((n + 1)! : ℚ) := IsUnit.mk0 _ (by exact_mod_cast factorial_ne_zero (n + 1))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    ↑(algebraMap ℚ A) ↑(n + 1)! * (t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∑ x in range (n + 1),
      ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !)
rw [← (hnp1.map (algebraMap ℚ A)).mul_right_inj]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (↑(n + 1)! * (1 / ↑n !))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    ↑(algebraMap ℚ A) ↑(n + 1)! * (t ^ n * ↑(algebraMap ℚ A) (1 / ↑n !))
rw [mul_left_comm, ← RingHom.map_mul]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (↑((n + 1) * n !) * (1 / ↑n !))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (↑(n + 1)! * (1 / ↑n !))
change _ = t ^ n * algebraMap ℚ A (((n + 1) * n ! : ℕ) * (1 / n !))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    ↑(aeval t) (↑(monomial n) (↑n + 1))
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    t ^ n * ↑(algebraMap ℚ A) (↑((n + 1) * n !) * (1 / ↑n !))
rw [cast_mul, mul_assoc,
  mul_one_div_cancel (show (n ! : ℚ) ≠ 0 from cast_ne_zero.2 (factorial_ne_zero n)), mul_one,
  mul_comm (t ^ n), ← aeval_monomial, cast_add, cast_one]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∑ x in range (n + 1),
      ↑(algebraMap ℚ A) ↑(n + 1)! *
        (↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1)) =
    ∑ x in range (n + 1), ↑(aeval t) (↑(Nat.choose (n + 1) x) • bernoulli x)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      ∑ x in range (n + 1),
        ↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1) =
    ↑(aeval t) (↑(monomial n) (↑n + 1))
rw [← sum_bernoulli, Finset.mul_sum, AlgHom.map_sum]
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∀ (x : ℕ),
    x ∈ range (n + 1) →
      ↑(algebraMap ℚ A) ↑(n + 1)! *
          (↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
            ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1)) =
        ↑(aeval t) (↑(Nat.choose (n + 1) x) • bernoulli x)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∑ x in range (n + 1),
      ↑(algebraMap ℚ A) ↑(n + 1)! *
        (↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
          ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1)) =
    ∑ x in range (n + 1), ↑(aeval t) (↑(Nat.choose (n + 1) x) • bernoulli x)
apply Finset.sum_congr rfl
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
i : ℕ
hi : i ∈ range (n + 1)
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      (↑(PowerSeries.coeff A i) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - i)) (exp A - 1)) =
    ↑(aeval t) (↑(Nat.choose (n + 1) i) • bernoulli i)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
⊢ ∀ (x : ℕ),
    x ∈ range (n + 1) →
      ↑(algebraMap ℚ A) ↑(n + 1)! *
          (↑(PowerSeries.coeff A x) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
            ↑(PowerSeries.coeff A (succ n - x)) (exp A - 1)) =
        ↑(aeval t) (↑(Nat.choose (n + 1) x) • bernoulli x)
intro i hi
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
i : ℕ
hi : i ∈ range (n + 1)
⊢ ↑(algebraMap ℚ A) (↑(n + 1)! * (↑i !)⁻¹ * (↑(n + 1 - i)!)⁻¹) * ↑(aeval t) (bernoulli i) =
    ↑(algebraMap ℚ A) (↑(n + 1)! / (↑i ! * ↑(n + 1 - i)!)) * ↑(aeval t) (bernoulli i)
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
i : ℕ
hi : i ∈ range (n + 1)
⊢ ↑(algebraMap ℚ A) ↑(n + 1)! *
      (↑(PowerSeries.coeff A i) (PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) *
        ↑(PowerSeries.coeff A (succ n - i)) (exp A - 1)) =
    ↑(aeval t) (↑(Nat.choose (n + 1) i) • bernoulli i)
simp only [Nat.cast_choose ℚ (mem_range_le hi), coeff_mk, if_neg (mem_range_sub_ne_zero hi),
  one_div, AlgHom.map_smul, PowerSeries.coeff_one, coeff_exp, sub_zero, LinearMap.map_sub,
  Algebra.smul_mul_assoc, Algebra.smul_def, mul_right_comm _ ((aeval t) _), ← mul_assoc, ←
  RingHom.map_mul, succ_eq_add_one, ← Polynomial.C_eq_algebraMap, Polynomial.aeval_mul,
  Polynomial.aeval_C]
no goals
case h.succ
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
hnp1 : IsUnit ↑(n + 1)!
i : ℕ
hi : i ∈ range (n + 1)
⊢ ↑(algebraMap ℚ A) (↑(n + 1)! * (↑i !)⁻¹ * (↑(n + 1 - i)!)⁻¹) * ↑(aeval t) (bernoulli i) =
    ↑(algebraMap ℚ A) (↑(n + 1)! / (↑i ! * ↑(n + 1 - i)!)) * ↑(aeval t) (bernoulli i)
field_simp
no goals
case h.zero
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
⊢ ↑(PowerSeries.coeff A Nat.zero) ((PowerSeries.mk fun n => ↑(aeval t) ((1 / ↑n !) • bernoulli n)) * (exp A - 1)) =
    ↑(PowerSeries.coeff A Nat.zero) (PowerSeries.X * ↑(rescale t) (exp A))
simp
no goals
A : Type u_1
inst✝¹ : CommRing A
inst✝ : Algebra ℚ A
t : A
n : ℕ
⊢ ↑(n + 1)! ≠ 0
exact_mod_cast factorial_ne_zero (n + 1)