Skip to main content

lemma_vaddr_top_index_cell

Function lemma_vaddr_top_index_cell 

Source
pub proof fn lemma_vaddr_top_index_cell<C: PageTableConfig>(
    path: TreePath<NR_ENTRIES>,
)
Expand description
requires
path.inv(),
1 <= path.len() <= C::NR_LEVELS,
ensures
(path[0]) * page_size::<C>(C::NR_LEVELS as PagingLevel) <= vaddr::<C>(path),
vaddr::<C>(path) + page_size::<C>((C::NR_LEVELS + 1 - path.len()) as PagingLevel)
    <= (path[0] + 1) * page_size::<C>(C::NR_LEVELS as PagingLevel),

The VA of any path is within the cell selected by its top-level index.