pub proof fn lemma_align_down_indices<C: PagingConstsTrait>(
va: Vaddr,
level: PagingLevel,
)Expand description
requires
1 <= level <= C::NR_LEVELS,ensures({
let aligned = nat_align_down(va as nat, page_size::<C>(level) as nat) as Vaddr;
&&& aligned % C::BASE_PAGE_SIZE == 0
&&& vaddr_leading_part_spec::<C>(aligned) == vaddr_leading_part_spec::<C>(va)
&&& forall |i: PagingLevel| {
1 <= i <= C::NR_LEVELS
==> #[trigger] pte_index_spec::<C>(aligned, i)
== if i < level { 0 } else { pte_index_spec::<C>(va, i) }
}
}),Aligning down preserves all indices at and above the slot and the upper address bits.