Part 7 of 7

TheoremEmbedded run of the binary addition component#✓fully proved

The addition component runs in a host, with every external stack unchanged and all embedded workspace cleared.

theorem run_embedded {K Λ : Type} [DecidableEq K] {Γ : K → Type}
    (E : SEmb (fun _ : SSVerify.K => Sym) Γ) (φ : Lab → Λ)
    (M : Λ → TM2.Stmt Γ Λ Bool) (hM : Embeds E φ prog M)
    (m n : ℕ) (v : Bool) (S : ∀ k, List (Γ k))
    (hS : Agree E (SSVerify.st ((pairInput m n).map .bit)
      [] [] [] []) S) :
    let N := (pairInput m n).length
    ∃ v' S', RunLe M (N * (2 * N + 6) + 2 * N + 8)
      ⟨some (φ (.inr 0)), v, S⟩ ⟨some (φ (.inr 3)), v', S'⟩ ∧
      Agree E (SSVerify.st [] [] []
        ((encodeNat (m + n)).map .bit) []) S' ∧ Frame E S S'
Uses 14

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.