add more sequents

This commit is contained in:
Douglas Creager 2025-11-25 21:01:34 -05:00
parent 37265cb49b
commit 7a1fcc8e79
1 changed files with 16 additions and 0 deletions

View File

@ -2529,6 +2529,22 @@ impl<'db> SequentMap<'db> {
(bound_constraint.lower(db), constrained_upper) (bound_constraint.lower(db), constrained_upper)
} }
// (CL ≤ C ≤ pivot) ∧ (pivot ≤ B ≤ BU) → (CL ≤ C ≤ B)
(constrained_lower, constrained_upper)
if !matches!(constrained_upper, Type::TypeVar(_))
&& constrained_upper == bound_constraint.lower(db) =>
{
(constrained_lower, Type::TypeVar(bound_typevar))
}
// (pivot ≤ C ≤ CU) ∧ (BL ≤ B ≤ pivot) → (B ≤ C ≤ CU)
(constrained_lower, constrained_upper)
if !matches!(constrained_lower, Type::TypeVar(_))
&& constrained_lower == bound_constraint.upper(db) =>
{
(Type::TypeVar(bound_typevar), constrained_upper)
}
_ => return, _ => return,
}; };