∀ {A : Type u_1} [inst : CommRing A] [inst_1 : IsLocalRing A] {g : PowerSeries A} {f : Polynomial A}
  {h : PowerSeries A},
  g.IsWeierstrassFactorization f h → f.natDegree = ((PowerSeries.map (IsLocalRing.residue A)) g).order.toNat