+ In fact [Orlitzky/Gowda]_, no closed convex polyhedral cone can have
+ Lyapunov rank `n-1` in `n` dimensions::
+
+ sage: set_random_seed()
+ sage: K = random_cone(max_ambient_dim=8)
+ sage: b = lyapunov_rank(K)
+ sage: n = K.lattice_dim()
+ sage: b == n-1
+ False
+
+ The calculation of the Lyapunov rank of an improper cone can be
+ reduced to that of a proper cone [Orlitzky/Gowda]_::
+
+ sage: set_random_seed()
+ sage: K = random_cone(max_ambient_dim=8)
+ sage: actual = lyapunov_rank(K)
+ sage: K_S = _restrict_to_space(K, K.span())
+ sage: K_SP = _restrict_to_space(K_S.dual(), K_S.dual().span()).dual()
+ sage: l = K.lineality()
+ sage: c = K.codim()
+ sage: expected = lyapunov_rank(K_SP) + K.dim()*(l + c) + c**2
+ sage: actual == expected
+ True
+
+ The Lyapunov rank of any cone is just the dimension of ``LL(K)``::
+
+ sage: set_random_seed()
+ sage: K = random_cone(max_ambient_dim=8)
+ sage: lyapunov_rank(K) == len(LL(K))
+ True
+
+ We can make an imperfect cone perfect by adding a slack variable
+ (a Theorem in [Orlitzky/Gowda]_)::
+
+ sage: set_random_seed()
+ sage: K = random_cone(max_ambient_dim=8,
+ ....: strictly_convex=True,
+ ....: solid=True)
+ sage: L = ToricLattice(K.lattice_dim() + 1)
+ sage: K = Cone([ r.list() + [0] for r in K.rays() ], lattice=L)
+ sage: lyapunov_rank(K) >= K.lattice_dim()
+ True
+