NLAlib.Ops.whileIter_sim
Library · theorem
NLAlib.Ops.whileIter_sim {σ σ' : Type} (R : σ → σ' → Prop) {test : ℕ → σ → Option (Bool × σ)}
{body : ℕ → σ → Option σ} {test' : ℕ → σ' → Option (Bool × σ')} {body' : ℕ → σ' → Option σ'}
(ht :
∀ (i : ℕ) (s : σ) (bs : Bool × σ) (s' : σ'),
R s s' → test i s = some bs → ∃ s₁', test' i s' = some (bs.1, s₁') ∧ R bs.2 s₁')
(hb :
∀ (i : ℕ) (s s₁ : σ) (s' : σ'),
R s s' → body i s = some s₁ → ∃ s₁', body' i s' = some s₁' ∧ R s₁ s₁')
(n i : ℕ) (s : σ) (js : ℕ × σ) (s' : σ') :
R s s' →
Ops.whileIter test body n i s = some js →
∃ s₁', Ops.whileIter test' body' n i s' = some (js.1, s₁') ∧ R js.2 s₁'Import NLAlib.Ops.Transfer.