Documentation

LeanPool.OrderMaintenance.Proof.Word.PeakTop

Theorem W, option (A), stage A2: the peaks of the core procedures, in the form of wpB_coreCall #

For a core s encoded in a machine state (Enc), with its stored values below 2^K (option (B)'s WB K s), its handles below 2^KH, its parameters with room (PRoom K s.P) and its capacities below 2^K (CapsW K κ), a normal run of each core procedure from its entry state setLocs 0 ps vs (arguments below 2^K) computes nothing at or above 2^(max (2K+4) KH) (≤ 2^(2K+4) + 2^KH, lt_pow_max_add):

insertAfter is insertAfter_peak (PeakIns.lean), for a core in service.

Nothing here is used by Theorems A and B.

@[reducible, inline]

The peak width of the core procedures.

Equations
Instances For
    theorem OrderMaintenance.Impl.wPk_ge (K KH : ℕ) :
    2 * K + 4 ≤ wPk K KH
    theorem OrderMaintenance.Impl.pk_of_PK {K KH : ℕ} {κ : Caps} {Γ : Machine.Reg → ℕ} {W : ℕ} {c : Stm} {s : Model.Core} {L : Loc} (h : PK K KH κ Γ W c s L) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ c s L = Res.ok s' L' n) :
    pkF κ c s L < 2 ^ W
    theorem OrderMaintenance.Impl.pk_of_PKok {K KH : ℕ} {κ : Caps} {Γ : Machine.Reg → ℕ} {W : ℕ} {c : Stm} {s : Model.Core} {L : Loc} (h : PKok K KH κ Γ W c s L) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ c s L = Res.ok s' L' n) :
    pkF κ c s L < 2 ^ W
    theorem OrderMaintenance.Impl.gd_entry {K KH : ℕ} {κ : Caps} {p : ℕ} {m : Machine.State} {s : Model.Core} (hK : 8 ≤ K) (hE : Enc p κ s m) (hWB : Proof.Word.WB K s) (hh : ∀ (i : ℕ), (s.E.getX i).h < 2 ^ KH) (hR : PRoom K s.P) {ps : List Machine.Reg} {vs : List ℕ} (hvs : ∀ v ∈ vs, v < 2 ^ K) :
    Gd K KH κ (ΓK K) s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) ps vs)
    theorem OrderMaintenance.Impl.order_peak {K KH : ℕ} {κ : Caps} {p : ℕ} {m : Machine.State} {s : Model.Core} (hC : CapsW K κ) (hK : 8 ≤ K) (hE : Enc p κ s m) (hWB : Proof.Word.WB K s) (hh : ∀ (i : ℕ), (s.E.getX i).h < 2 ^ KH) (hR : PRoom K s.P) {vs : List ℕ} (hvs : ∀ v ∈ vs, v < 2 ^ K) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ orderP.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) orderP.params vs) = Res.ok s' L' n) :
    pkF κ orderP.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) orderP.params vs) < 2 ^ wPk K KH

    order.

    theorem OrderMaintenance.Impl.markDead_peak {K KH : ℕ} {κ : Caps} {p : ℕ} {m : Machine.State} {s : Model.Core} (hC : CapsW K κ) (hK : 8 ≤ K) (hE : Enc p κ s m) (hWB : Proof.Word.WB K s) (hh : ∀ (i : ℕ), (s.E.getX i).h < 2 ^ KH) (hR : PRoom K s.P) {vs : List ℕ} (hvs : ∀ v ∈ vs, v < 2 ^ K) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ markDeadP.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) markDeadP.params vs) = Res.ok s' L' n) :

    markDead.

    theorem OrderMaintenance.Impl.prepareStep_peak {K KH : ℕ} {κ : Caps} {p : ℕ} {m : Machine.State} {s : Model.Core} (hC : CapsW K κ) (hK : 8 ≤ K) (hE : Enc p κ s m) (hWB : Proof.Word.WB K s) (hh : ∀ (i : ℕ), (s.E.getX i).h < 2 ^ KH) (hR : PRoom K s.P) (hM : PrepM s) {vs : List ℕ} (hvs : ∀ v ∈ vs, v < 2 ^ K) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ prepP.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) prepP.params vs) = Res.ok s' L' n) :
    pkF κ prepP.body s (Machine.State.setLocs (fun (x : Machine.Reg) => 0) prepP.params vs) < 2 ^ wPk K KH

    prepareStep, on a core being built.

    theorem OrderMaintenance.Impl.initCore_peak {K KH : ℕ} {κ : Caps} {p : ℕ} {m : Machine.State} {P : Model.Params} (hC : CapsW K κ) (hK : 8 ≤ K) (hE : Enc p κ (freshC P) m) (hWB : Proof.Word.WB K (freshC P)) (hh : ∀ (i : ℕ), ((freshC P).E.getX i).h < 2 ^ KH) (hR : PRoom K P) (hH : 1 ≤ P.H) (hK2 : InitCaps κ P) (hE2 : 2 ≤ κ.tbl Tbl.E) (hG2 : 2 ≤ κ.tbl Tbl.G) {vs : List ℕ} (hvs : ∀ v ∈ vs, v < 2 ^ K) {s' : Model.Core} {L' : Loc} {n : ℕ} (he : evalF κ initCoreS (freshC P) (Machine.State.setLocs (fun (x : Machine.Reg) => 0) ["lz"] vs) = Res.ok s' L' n) :
    pkF κ initCoreS (freshC P) (Machine.State.setLocs (fun (x : Machine.Reg) => 0) ["lz"] vs) < 2 ^ wPk K KH

    initCore, from the empty core of the construction.