Follow-up from #31736, which introduced declare_equal.
Depends on #31736
CC: @egourgoulhon @mjungmath
Component: manifolds
Author: Matthias Koeppe
Branch/Commit: c4acd09
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/31763