Skip to content

Commit 496df61

Browse files
committed
Simplify proofs
1 parent 84f7a7f commit 496df61

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ostd/src/boot/memory_region.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,7 @@ impl<const LEN: usize> InvView for MemoryRegionArray<LEN> {
244244
}
245245

246246
proof fn view_preserves_inv(self) {
247-
assert(Seq::new(self.count as nat, |i: int| self.regions[i]@).len() == self.count);
248-
assert(self.count <= LEN);
249-
assert(self@.regions == Seq::new(self.count as nat, |i: int| self.regions[i]@));
250-
assert(self@.regions.len() <= LEN);
251-
assert(self.view().inv() <==> self@.regions.len() <= LEN);
252-
assert(self.view().inv());
247+
assert(self@.inv());
253248
}
254249
}
255250

0 commit comments

Comments
 (0)