M6: reading back what was written #
A write to field f of record i changes exactly that value (Fld.get_set), keeps every
table size and the parameters, and a push changes no value at all (a pushed record is a
default record, which reads like a record past the end).
A push changes no value, and adds one to its table's size.
Lists, paths and optional records under field writes and pushes #
theorem
OrderMaintenance.Impl.Fld.set_rest
{κ : Caps}
{s s' : Model.Core}
{i v : Nat}
{f : Fld}
(h : set κ s i v f = some s')
:
A field write keeps every list, path row and optional record.
Lists under list writes #
@[simp]
Numeric node fields are unchanged when its children list is replaced.
@[simp]
Numeric node fields are unchanged when its table list is replaced.
@[simp]
Numeric node fields are unchanged when its inTables list is replaced.
@[simp]
theorem
OrderMaintenance.Impl.NF.get_side
(x : Model.Node)
(k : NF)
(values : List (Nat × Model.Side))
:
Numeric node fields are unchanged when its side list is replaced.
theorem
OrderMaintenance.Impl.NF.get_lists
(x : Model.Node)
(k : NF)
(a : List Nat)
(b : List (Nat × Nat))
(c : List Nat)
(d : List (Nat × Model.Side))
:
get
{ height := x.height, livePar := x.livePar, children := a, weight := x.weight, table := x.table,
inTables := x.inTables, first := x.first, last := x.last, draining := x.draining, t1 := x.t1, t2 := x.t2,
side := x.side, overflowOf := x.overflowOf, alive := x.alive }
k = get x k ∧ get
{ height := x.height, livePar := x.livePar, children := x.children, weight := x.weight, table := b,
inTables := x.inTables, first := x.first, last := x.last, draining := x.draining, t1 := x.t1, t2 := x.t2,
side := x.side, overflowOf := x.overflowOf, alive := x.alive }
k = get x k ∧ get
{ height := x.height, livePar := x.livePar, children := x.children, weight := x.weight, table := x.table,
inTables := c, first := x.first, last := x.last, draining := x.draining, t1 := x.t1, t2 := x.t2,
side := x.side, overflowOf := x.overflowOf, alive := x.alive }
k = get x k ∧ get
{ height := x.height, livePar := x.livePar, children := x.children, weight := x.weight, table := x.table,
inTables := x.inTables, first := x.first, last := x.last, draining := x.draining, t1 := x.t1, t2 := x.t2,
side := d, overflowOf := x.overflowOf, alive := x.alive }
k = get x k
theorem
OrderMaintenance.Impl.LK.put_keep
(s : Model.Core)
(i : Nat)
(l : List (Nat × Nat))
(k : LK)
:
What a list replacement keeps.