feat(kernel/level): improve is_geq procedure for universe levels
Now, it also returns true for (succ^k1 a) =?= k2 where k1 >= k2
This commit is contained in:
parent
488f989c46
commit
ffffabad95
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ bool is_geq_core(level l1, level l2) {
|
|||
return is_geq(imax_rhs(l1), l2);
|
||||
auto p1 = to_offset(l1);
|
||||
auto p2 = to_offset(l2);
|
||||
if (p1.first == p2.first)
|
||||
if (p1.first == p2.first || is_zero(p2.first))
|
||||
return p1.second >= p2.second;
|
||||
if (p1.second == p2.second && p1.second > 0)
|
||||
return is_geq(p1.first, p2.first);
|
||||
|
|
Loading…
Reference in a new issue