by_cases hp : p = 0
R : Type u_1
ι : Type u_2
inst✝ : CommSemiring R
p : MvPolynomial ι R
⊢ p.leadingTerms.totalDegree = p.totalDegree
case pos
R : Type u_1
ι : Type u_2
inst✝ : CommSemiring R
p : MvPolynomial ι R
hp : p = 0
⊢ p.leadingTerms.totalDegree = p.totalDegree

case neg
R : Type u_1
ι : Type u_2
inst✝ : CommSemiring R
p : MvPolynomial ι R
hp : ¬p = 0
⊢ p.leadingTerms.totalDegree = p.totalDegree