Automation for reads after writes
Library · Source module
Automation for reads after writes
Main results
* store_side [facts] proves the side conditions of the store lemmas: two handles are different, a handle is a buffer of the store, an offset is in or out of a block, a cell is in or out of a footprint. It uses the hypotheses, linear arithmetic, and the given facts as rewriting rules. * store_simp [facts] rewrites reads, lengths and positions through updates, using the hypotheses and the given facts, with store_side for the side conditions.
Handles are given as an injective family B : ι → ℕ (hB : Function.Injective B), so that the handles of a hundred buffers are told apart by deciding i ≠ j on the indices, with one hypothesis. Hypotheses b ≠ b' in the context work too.