indices: SmallVec::from_slice(&goal.obligations.get(mo_index).unwrap().position.indices[len..]),
let mut all_positions: Vec<ExplicitPosition> = position_to_goals.keys().cloned().collect();
// Moreover, all positions in the partition are related to p. p is the highest in the partition.
while p_index < all_positions.len() && MatchGoal::pos_comparable(p, &all_positions[p_index]) {
debug_assert_eq!(pos1.len(), pos2.len(), "Given arrays should be of the same length.");