I don't see here anything useful.

That's trivial and should be clear from the definition.  If it's not clear which definition the `degree` function is using - we should fix this instead.