Imports
/- Copyright (c) 2026 Google LLC. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. -/ module public import Cryptids.Semantics.PA.Arithmetic public import Cryptids.Zf380

Internal PA Equivalence Between zf_380 and zf_393

This module internalizes the macro-step state-renumbering bisimulation between Machines.zf380 and Machines.zf393 from Cryptids.Zf380 inside an arbitrary first-order PAModel M via PAM M, yielding:

    mHalts_zf380_iff_zf393: in every PAModel M, mHalts M Machines.zf380 ↔ mHalts M Machines.zf393.

    paProvable_halts_zf380_iff_zf393: PAProvable ((paHalts Machines.zf380).iff (paHalts Machines.zf393)).

Section 1: Standard nSteps Equivalence and Boot Lifting

private theorem zf380_nSteps_eq_layer1_nSteps {N : ℕ} [NeZero N] (tm : Machine N 2) : ∀ (k : ℕ) (c : Cfg N 2), ConjectureMachines.Zf380.nSteps tm k c = ConjectureMachines.Semantics.Riemann.Layer1.nSteps tm k c | 0, _ => rfl N:ℕinst✝:NeZero Ntm:Machine N 2k:ℕc:Cfg N 2⊢ Zf380.nSteps tm (k + 1) c = Riemann.Layer1.nSteps tm (k + 1) c N:ℕinst✝:NeZero Ntm:Machine N 2k:ℕc:Cfg N 2⊢ Zf380.nSteps tm (k + 1) c = Riemann.Layer1.nSteps tm (k + 1) c N:ℕinst✝:NeZero Ntm:Machine N 2k:ℕc:Cfg N 2⊢ (step tm c).bind (Zf380.nSteps tm k) = (step tm c).bind (Riemann.Layer1.nSteps tm k) cases step tm c with N:ℕinst✝:NeZero Ntm:Machine N 2k:ℕc:Cfg N 2⊢ none.bind (Zf380.nSteps tm k) = none.bind (Riemann.Layer1.nSteps tm k) All goals completed! 🐙 N:ℕinst✝:NeZero Ntm:Machine N 2k:ℕc:Cfg N 2c':Cfg N 2⊢ (some c').bind (Zf380.nSteps tm k) = (some c').bind (Riemann.Layer1.nSteps tm k) All goals completed! 🐙

Standard k : ℕ step counts in mTracesTo coincide with mNSteps.

theorem mTracesTo_natCast_iff_mNSteps {states : ℕ} {tm : Machine states 2} (k : ℕ) (a b : MCfg states M) : mTracesTo tm (k : PAM M) a b ↔ mNSteps tm k a = some b := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states M⊢ mTracesTo tm (↑k) a b ↔ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states Mhtr:mTracesTo tm (↑k) a b⊢ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states Mc:PAM Md:PAM Mh0:c.mBeta d 0 = mEncodeCfg ahsteps:∀ i < ↑k, ∃ x y, c.mBeta d i = mEncodeCfg x ∧ c.mBeta d (i + 1) = mEncodeCfg y ∧ mStep tm x = some yhlast:c.mBeta d ↑k = mEncodeCfg b⊢ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states Mc:PAM Md:PAM Mh0:c.mBeta d 0 = mEncodeCfg ahsteps:∀ i < ↑k, ∃ x y, c.mBeta d i = mEncodeCfg x ∧ c.mBeta d (i + 1) = mEncodeCfg y ∧ mStep tm x = some yhlast:c.mBeta d ↑k = mEncodeCfg bhwalk:∀ j ≤ k, ∃ bj, mNSteps tm j a = some bj ∧ c.mBeta d ↑j = mEncodeCfg bj⊢ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states Mc:PAM Md:PAM Mh0:c.mBeta d 0 = mEncodeCfg ahsteps:∀ i < ↑k, ∃ x y, c.mBeta d i = mEncodeCfg x ∧ c.mBeta d (i + 1) = mEncodeCfg y ∧ mStep tm x = some yhlast:c.mBeta d ↑k = mEncodeCfg bhwalk:∀ j ≤ k, ∃ bj, mNSteps tm j a = some bj ∧ c.mBeta d ↑j = mEncodeCfg bjbk:MCfg states Mhnsk:mNSteps tm k a = some bkhbk:c.mBeta d ↑k = mEncodeCfg bk⊢ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mb:MCfg states Mc:PAM Md:PAM Mh0:c.mBeta d 0 = mEncodeCfg ahsteps:∀ i < ↑k, ∃ x y, c.mBeta d i = mEncodeCfg x ∧ c.mBeta d (i + 1) = mEncodeCfg y ∧ mStep tm x = some yhlast:c.mBeta d ↑k = mEncodeCfg bhwalk:∀ j ≤ k, ∃ bj, mNSteps tm j a = some bj ∧ c.mBeta d ↑j = mEncodeCfg bjbk:MCfg states Mhnsk:mNSteps tm k a = some bkhbk:c.mBeta d ↑k = mEncodeCfg bkhbkeq:bk = b⊢ mNSteps tm k a = some b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mstates:ℕtm:Machine states 2k:ℕa:MCfg states Mc:PAM Md:PAM Mh0:c.mBeta d 0 = mEncodeCfg ahsteps:∀ i < ↑k, ∃ x y, c.mBeta d i = mEncodeCfg x ∧ c.mBeta d (i + 1) = mEncodeCfg y ∧ mStep tm x = some yhwalk:∀ j ≤ k, ∃ bj, mNSteps tm j a = some bj ∧ c.mBeta d ↑j = mEncodeCfg bjbk:MCfg states Mhnsk:mNSteps tm k a = some bkhbk:c.mBeta d ↑k = mEncodeCfg bkhlast:c.mBeta d ↑k = mEncodeCfg bk⊢ mNSteps tm k a = some bk All goals completed! 🐙private theorem mBoot_cand : mTracesTo Machines.zf380 ((39753 : ℕ) : PAM M) mInit (embedCfg (M := M) (cfgOfFast 64 [] 0 bootR_39753)) := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ mTracesTo Machines.zf380 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Zf380.nSteps candM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)⊢ mTracesTo Machines.zf380 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Riemann.Layer1.nSteps candM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)⊢ mTracesTo Machines.zf380 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Riemann.Layer1.nSteps candM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)htr:mTracesTo candM (↑39753) (embedCfg init) (embedCfg (cfgOfFast 64 [] 0 bootR_39753))⊢ mTracesTo Machines.zf380 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) All goals completed! 🐙private theorem mBoot_ref : mTracesTo Machines.zf393 ((39753 : ℕ) : PAM M) mInit (embedCfg (M := M) (cfgOfFast 64 [] 0 bootR_39753)) := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ mTracesTo Machines.zf393 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Zf380.nSteps refM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)⊢ mTracesTo Machines.zf393 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Riemann.Layer1.nSteps refM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)⊢ mTracesTo Machines.zf393 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhb:Riemann.Layer1.nSteps refM 39753 init = some (cfgOfFast 64 [] 0 bootR_39753)htr:mTracesTo refM (↑39753) (embedCfg init) (embedCfg (cfgOfFast 64 [] 0 bootR_39753))⊢ mTracesTo Machines.zf393 (↑39753) mInit (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) All goals completed! 🐙

Section 2: MCfg Macro-Steps and Simulation Relation MRel

Simulation relation between Machines.zf393 and Machines.zf380 on MCfg over PAM M.

def MRel (c₁ : MCfg 393 M) (c₂ : MCfg 380 M) : Prop := validState c₁.state.val (mBit (mHalf (mHalf c₁.left))) (mBit (mHalf c₁.left)) (mBit c₁.left) c₁.head (mBit c₁.right) = true ∧ c₂ = ⟨mapState c₁.state.val (mBit c₁.left) c₁.head, c₁.head, c₁.left, c₁.right⟩private theorem mBit_eq_iff_mod_eq (x : PAM M) (b : Fin 2) : mBit x = b ↔ x % 2 = (b.val : PAM M) := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mx:PAM Mb:Fin 2⊢ x.mBit = b ↔ x % 2 = ↑↑b M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mx:PAM Mb:Fin 2⊢ x.mBit = b ↔ ↑↑x.mBit = ↑↑b All goals completed! 🐙

First-order definability of MRel on configuration codes in PAM M.

theorem paDef_mRelCode {k : ℕ} {fx₁ fx₂ : (Fin k → PAM M) → PAM M} (hx₁ : PAFunN k fx₁) (hx₂ : PAFunN k fx₂) : PADefN k (fun a ↦ ∃ (c₁ : MCfg 393 M) (c₂ : MCfg 380 M), fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂) := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂⊢ PADefN k fun a ↦ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))⊢ PADefN k fun a ↦ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM M⊢ (∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R))) ↔ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM M⊢ (∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R))) → ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM M⊢ (∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂) → ∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM M⊢ (∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R))) → ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))⊢ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))hb0:L.mBit = l0⊢ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))hb0:L.mBit = l0hb1:L.mHalf.mBit = l1⊢ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))hb0:L.mBit = l0hb1:L.mHalf.mBit = l1hb2:L.mHalf.mHalf.mBit = l2⊢ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))hb0:L.mBit = l0hb1:L.mHalf.mBit = l1hb2:L.mHalf.mHalf.mBit = l2hbr:R.mBit = r0⊢ ∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2l0:Fin 2l1:Fin 2l2:Fin 2r0:Fin 2hv:validState (↑q) l2 l1 l0 h r0 = trueL:PAM MR:PAM Mhl0:L % 2 = ↑↑l0hl1:L / 2 % 2 = ↑↑l1hl2:L / 2 / 2 % 2 = ↑↑l2hr0:R % 2 = ↑↑r0hx1:fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R))hx2:fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))hb0:L.mBit = l0hb1:L.mHalf.mBit = l1hb2:L.mHalf.mHalf.mBit = l2hbr:R.mBit = r0⊢ MRel { state := q, head := h, left := L, right := R } { state := mapState (↑q) l0 h, head := h, left := L, right := R } All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM M⊢ (∃ c₁ c₂, fx₁ a = mEncodeCfg c₁ ∧ fx₂ a = mEncodeCfg c₂ ∧ MRel c₁ c₂) → ∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mk:ℕfx₁:(Fin k → PAM M) → PAM Mfx₂:(Fin k → PAM M) → PAM Mhx₁:PAFunN k fx₁hx₂:PAFunN k fx₂htuple:∀ (q : Fin 393) (h l0 l1 l2 r0 : Fin 2), PADefN k fun a ↦ validState (↑q) l2 l1 l0 h r0 = true ∧ ∃ L R, L % 2 = ↑↑l0 ∧ L / 2 % 2 = ↑↑l1 ∧ L / 2 / 2 % 2 = ↑↑l2 ∧ R % 2 = ↑↑r0 ∧ fx₁ a = (↑↑q).mPair ((↑↑h).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑q) l0 h)).mPair ((↑↑h).mPair (L.mPair R))a:Fin k → PAM Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhx1:fx₁ a = mEncodeCfg { state := q, head := h, left := L, right := R }hv:validState ↑{ state := q, head := h, left := L, right := R }.state { state := q, head := h, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := h, left := L, right := R }.left.mHalf.mBit { state := q, head := h, left := L, right := R }.left.mBit { state := q, head := h, left := L, right := R }.head { state := q, head := h, left := L, right := R }.right.mBit = truehx2:fx₂ a = mEncodeCfg { state := mapState ↑{ state := q, head := h, left := L, right := R }.state { state := q, head := h, left := L, right := R }.left.mBit { state := q, head := h, left := L, right := R }.head, head := { state := q, head := h, left := L, right := R }.head, left := { state := q, head := h, left := L, right := R }.left, right := { state := q, head := h, left := L, right := R }.right }⊢ ∃ i i_1 i_2 i_3 i_4 i_5, validState (↑i) i_4 i_3 i_2 i_1 i_5 = true ∧ ∃ L R, L % 2 = ↑↑i_2 ∧ L / 2 % 2 = ↑↑i_3 ∧ L / 2 / 2 % 2 = ↑↑i_4 ∧ R % 2 = ↑↑i_5 ∧ fx₁ a = (↑↑i).mPair ((↑↑i_1).mPair (L.mPair R)) ∧ fx₂ a = (↑↑(mapState (↑i) i_2 i_1)).mPair ((↑↑i_1).mPair (L.mPair R)) All goals completed! 🐙private theorem mRel_boot : MRel (embedCfg (M := M) (cfgOfFast 64 [] 0 bootR_39753)) (embedCfg (M := M) (cfgOfFast 64 [] 0 bootR_39753)) := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ MRel (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhv:validState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.tail.tail.head (cfgOfFast 64 [] 0 bootR_39753).tape.left.tail.head (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head (cfgOfFast 64 [] 0 bootR_39753).tape.right.head = truehmap:cfgOfFast 64 [] 0 bootR_39753 = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }⊢ MRel (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhv:validState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.tail.tail.head (cfgOfFast 64 [] 0 bootR_39753).tape.left.tail.head (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head (cfgOfFast 64 [] 0 bootR_39753).tape.right.head = truehmap:cfgOfFast 64 [] 0 bootR_39753 = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }hst:(cfgOfFast 64 [] 0 bootR_39753).state = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }.state⊢ MRel (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhv:validState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right.head = truehmap:cfgOfFast 64 [] 0 bootR_39753 = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }hst:64 = mapState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head⊢ MRel (embedCfg { state := 64, tape := Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default)) }) (embedCfg { state := 64, tape := Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default)) }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhv:validState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right.head = truehmap:cfgOfFast 64 [] 0 bootR_39753 = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }hst:64 = mapState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head⊢ validState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right.head = true ∧ { state := 64, head := (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, left := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left, right := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right } = { state := mapState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, head := (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, left := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left, right := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right } exact ⟨hv, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mhv:validState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.tail.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right.head = truehmap:cfgOfFast 64 [] 0 bootR_39753 = { state := mapState (↑(cfgOfFast 64 [] 0 bootR_39753).state) (cfgOfFast 64 [] 0 bootR_39753).tape.left.head (cfgOfFast 64 [] 0 bootR_39753).tape.head, tape := (cfgOfFast 64 [] 0 bootR_39753).tape }hst:64 = mapState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head⊢ { state := 64, head := (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, left := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left, right := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right } = { state := mapState (↑64) (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left.head (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, head := (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).head, left := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).left, right := embedHalf (Tape.mk' (ListBlank.append [] default) (ListBlank.cons 0 (ListBlank.append bootR_39753 default))).right } All goals completed! 🐙⟩private theorem mStep_of_transition_eq {q : Fin 393} {S : Fin 380} (h : Fin 2) (L R : PAM M) (htr : zf380Trans S.val h = expectedTransition q.val (mBit (mHalf L)) (mBit L) h (mBit R)) : mStep candM ⟨S, h, L, R⟩ = (mStep refM ⟨q, h, L, R⟩).map fun c ↦ ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩ := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit⊢ mStep candM { state := S, head := h, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := h, left := L, right := R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit⊢ (match candM.transition S h with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match refM.transition q h with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match Zf393.zf393Trans q h with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBite:Zf393.zf393Trans q h = none⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match none with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R })M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2d:Dirq':Fin 393e:Zf393.zf393Trans q h = some (w, d, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, d, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBite:Zf393.zf393Trans q h = none⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match none with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2d:Dirq':Fin 393e:Zf393.zf393Trans q h = some (w, d, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, d, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.left, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, Dir.left, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R })M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.right, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, Dir.right, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.left, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, Dir.left, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R })M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393S:Fin 380h:Fin 2L:PAM MR:PAM Mhtr:zf380Trans (↑S) h = expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBitw:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.right, q')⊢ (match expectedTransition (↑q) L.mHalf.mBit L.mBit h R.mBit with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (match some (w, Dir.right, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) All goals completed! 🐙private theorem mStep_lr_pair {q₁ P S : Fin 380} (h : Fin 2) (L R : PAM M) (h1 : zf380Trans q₁.val h = some (h, Dir.left, P)) (h2 : zf380Trans P.val (mBit L) = some (mBit L, Dir.right, S)) : mNSteps candM 2 ⟨q₁, h, L, R⟩ = some ⟨S, h, L, R⟩ := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P:Fin 380S:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P)h2:zf380Trans (↑P) L.mBit = some (L.mBit, Dir.right, S)⊢ mNSteps candM 2 { state := q₁, head := h, left := L, right := R } = some { state := S, head := h, left := L, right := R } M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P:Fin 380S:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P)h2:zf380Trans (↑P) L.mBit = some (L.mBit, Dir.right, S)hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P, head := L.mBit, left := L.mHalf, right := mCons h R }⊢ mNSteps candM 2 { state := q₁, head := h, left := L, right := R } = some { state := S, head := h, left := L, right := R } M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P:Fin 380S:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P)h2:zf380Trans (↑P) L.mBit = some (L.mBit, Dir.right, S)hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P, head := L.mBit, left := L.mHalf, right := mCons h R }hs2:mStep candM { state := P, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S, head := h, left := L, right := R }⊢ mNSteps candM 2 { state := q₁, head := h, left := L, right := R } = some { state := S, head := h, left := L, right := R } All goals completed! 🐙private theorem mStep_three_left_right {q₁ P S : Fin 380} {h : Fin 2} {L R : PAM M} (h1 : zf380Trans q₁.val h = some (h, Dir.left, P)) (h2 : zf380Trans P.val (mBit L) = some (mBit L, Dir.right, S)) {c' : MCfg 380 M} (h3 : mStep candM ⟨S, h, L, R⟩ = some c') : mNSteps candM 3 ⟨q₁, h, L, R⟩ = some c' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P:Fin 380S:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P)h2:zf380Trans (↑P) L.mBit = some (L.mBit, Dir.right, S)c':MCfg 380 Mh3:mStep candM { state := S, head := h, left := L, right := R } = some c'⊢ mNSteps candM 3 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P:Fin 380S:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P)h2:zf380Trans (↑P) L.mBit = some (L.mBit, Dir.right, S)c':MCfg 380 Mh3:mStep candM { state := S, head := h, left := L, right := R } = some c'⊢ (some { state := S, head := h, left := L, right := R }).bind (mNSteps candM 1) = some c' All goals completed! 🐙private theorem mStep_five_left_right {q₁ P₁ S₁ P₂ S₂ : Fin 380} {h : Fin 2} {L R : PAM M} (h1 : zf380Trans q₁.val h = some (h, Dir.left, P₁)) (h2 : zf380Trans P₁.val (mBit L) = some (mBit L, Dir.right, S₁)) (h3 : zf380Trans S₁.val h = some (h, Dir.left, P₂)) (h4 : zf380Trans P₂.val (mBit L) = some (mBit L, Dir.right, S₂)) {c' : MCfg 380 M} (h5 : mStep candM ⟨S₂, h, L, R⟩ = some c') : mNSteps candM 5 ⟨q₁, h, L, R⟩ = some c' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380S₁:Fin 380P₂:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.right, S₁)h3:zf380Trans (↑S₁) h = some (h, Dir.left, P₂)h4:zf380Trans (↑P₂) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'⊢ mNSteps candM 5 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380S₁:Fin 380P₂:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.right, S₁)h3:zf380Trans (↑S₁) h = some (h, Dir.left, P₂)h4:zf380Trans (↑P₂) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'⊢ (some { state := S₁, head := h, left := L, right := R }).bind (mNSteps candM 3) = some c' All goals completed! 🐙private theorem mStep_five_left_left_right_right {q₁ P₁ P₂ S₁ S₂ : Fin 380} {h : Fin 2} {L R : PAM M} (h1 : zf380Trans q₁.val h = some (h, Dir.left, P₁)) (h2 : zf380Trans P₁.val (mBit L) = some (mBit L, Dir.left, P₂)) (h3 : zf380Trans P₂.val (mBit (mHalf L)) = some (mBit (mHalf L), Dir.right, S₁)) (h4 : zf380Trans S₁.val (mBit L) = some (mBit L, Dir.right, S₂)) {c' : MCfg 380 M} (h5 : mStep candM ⟨S₂, h, L, R⟩ = some c') : mNSteps candM 5 ⟨q₁, h, L, R⟩ = some c' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'⊢ mNSteps candM 5 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }⊢ mNSteps candM 5 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }⊢ mNSteps candM 5 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs4:mStep candM { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₂, head := h, left := L, right := R }⊢ mNSteps candM 5 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs4:mStep candM { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₂, head := h, left := L, right := R }⊢ (some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }).bind (mNSteps candM (2 + (1 + 1))) = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs4:mStep candM { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₂, head := h, left := L, right := R }⊢ mNSteps candM (2 + (1 + 1)) { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs4:mStep candM { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₂, head := h, left := L, right := R }⊢ (some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }).bind (mNSteps candM (1 + 1)) = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380S₁:Fin 380S₂:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₁)h4:zf380Trans (↑S₁) L.mBit = some (L.mBit, Dir.right, S₂)c':MCfg 380 Mh5:mStep candM { state := S₂, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs23:mNSteps candM 2 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs4:mStep candM { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₂, head := h, left := L, right := R }⊢ mNSteps candM (1 + 1) { state := S₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some c' All goals completed! 🐙private theorem mStep_seven_left_left_left_right_right_right {q₁ P₁ P₂ P₃ S₁ S₂ S₃ : Fin 380} {h : Fin 2} {L R : PAM M} (h1 : zf380Trans q₁.val h = some (h, Dir.left, P₁)) (h2 : zf380Trans P₁.val (mBit L) = some (mBit L, Dir.left, P₂)) (h3 : zf380Trans P₂.val (mBit (mHalf L)) = some (mBit (mHalf L), Dir.left, P₃)) (h4 : zf380Trans P₃.val (mBit (mHalf (mHalf L))) = some (mBit (mHalf (mHalf L)), Dir.right, S₁)) (h5 : zf380Trans S₁.val (mBit (mHalf L)) = some (mBit (mHalf L), Dir.right, S₂)) (h6 : zf380Trans S₂.val (mBit L) = some (mBit L, Dir.right, S₃)) {c' : MCfg 380 M} (h7 : mStep candM ⟨S₃, h, L, R⟩ = some c') : mNSteps candM 7 ⟨q₁, h, L, R⟩ = some c' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'⊢ mNSteps candM 7 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }⊢ mNSteps candM 7 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs6:mStep candM { state := S₂, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }⊢ mNSteps candM 7 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs6:mStep candM { state := S₂, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }hmid:mNSteps candM 5 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }⊢ mNSteps candM 7 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs6:mStep candM { state := S₂, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }hmid:mNSteps candM 5 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }⊢ (some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }).bind (mNSteps candM (5 + 1)) = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs6:mStep candM { state := S₂, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }hmid:mNSteps candM 5 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }⊢ mNSteps candM (5 + 1) { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh1:zf380Trans (↑q₁) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'hs1:mStep candM { state := q₁, head := h, left := L, right := R } = some { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R }hs6:mStep candM { state := S₂, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }hmid:mNSteps candM 5 { state := P₁, head := L.mBit, left := L.mHalf, right := mCons h R } = some { state := S₃, head := h, left := L, right := R }⊢ (some { state := S₃, head := h, left := L, right := R }).bind (mNSteps candM 1) = some c' All goals completed! 🐙private theorem mStep_nine_left_right_left_left_left_right_right_right {q₁ P₀ q₂ P₁ P₂ P₃ S₁ S₂ S₃ : Fin 380} {h : Fin 2} {L R : PAM M} (h0a : zf380Trans q₁.val h = some (h, Dir.left, P₀)) (h0b : zf380Trans P₀.val (mBit L) = some (mBit L, Dir.right, q₂)) (h1 : zf380Trans q₂.val h = some (h, Dir.left, P₁)) (h2 : zf380Trans P₁.val (mBit L) = some (mBit L, Dir.left, P₂)) (h3 : zf380Trans P₂.val (mBit (mHalf L)) = some (mBit (mHalf L), Dir.left, P₃)) (h4 : zf380Trans P₃.val (mBit (mHalf (mHalf L))) = some (mBit (mHalf (mHalf L)), Dir.right, S₁)) (h5 : zf380Trans S₁.val (mBit (mHalf L)) = some (mBit (mHalf L), Dir.right, S₂)) (h6 : zf380Trans S₂.val (mBit L) = some (mBit L, Dir.right, S₃)) {c' : MCfg 380 M} (h7 : mStep candM ⟨S₃, h, L, R⟩ = some c') : mNSteps candM 9 ⟨q₁, h, L, R⟩ = some c' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₀:Fin 380q₂:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh0a:zf380Trans (↑q₁) h = some (h, Dir.left, P₀)h0b:zf380Trans (↑P₀) L.mBit = some (L.mBit, Dir.right, q₂)h1:zf380Trans (↑q₂) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'⊢ mNSteps candM 9 { state := q₁, head := h, left := L, right := R } = some c' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq₁:Fin 380P₀:Fin 380q₂:Fin 380P₁:Fin 380P₂:Fin 380P₃:Fin 380S₁:Fin 380S₂:Fin 380S₃:Fin 380h:Fin 2L:PAM MR:PAM Mh0a:zf380Trans (↑q₁) h = some (h, Dir.left, P₀)h0b:zf380Trans (↑P₀) L.mBit = some (L.mBit, Dir.right, q₂)h1:zf380Trans (↑q₂) h = some (h, Dir.left, P₁)h2:zf380Trans (↑P₁) L.mBit = some (L.mBit, Dir.left, P₂)h3:zf380Trans (↑P₂) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, P₃)h4:zf380Trans (↑P₃) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, S₁)h5:zf380Trans (↑S₁) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, S₂)h6:zf380Trans (↑S₂) L.mBit = some (L.mBit, Dir.right, S₃)c':MCfg 380 Mh7:mStep candM { state := S₃, head := h, left := L, right := R } = some c'⊢ (some { state := q₂, head := h, left := L, right := R }).bind (mNSteps candM 7) = some c' All goals completed! 🐙private theorem mStep_preserves_valid (q : Fin 393) (h : Fin 2) (L R : PAM M) (hv : validState q.val (mBit (mHalf (mHalf L))) (mBit (mHalf L)) (mBit L) h (mBit R) = true) : match mStep refM ⟨q, h, L, R⟩ with | none => True | some c => validState c.state.val (mBit (mHalf (mHalf c.left))) (mBit (mHalf c.left)) (mBit c.left) c.head (mBit c.right) = true := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true⊢ match mStep refM { state := q, head := h, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = true⊢ match mStep refM { state := q, head := h, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = true⊢ match match refM.transition q h with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = true⊢ match match Zf393.zf393Trans q h with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truee:Zf393.zf393Trans q h = none⊢ match match none with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = trueM:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2d:Dirq':Fin 393e:Zf393.zf393Trans q h = some (w, d, q')⊢ match match some (w, d, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truee:Zf393.zf393Trans q h = none⊢ match match none with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2d:Dirq':Fin 393e:Zf393.zf393Trans q h = some (w, d, q')⊢ match match some (w, d, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.left, q')⊢ match match some (w, Dir.left, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = trueM:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.right, q')⊢ match match some (w, Dir.right, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.left, q')⊢ match match some (w, Dir.left, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393h:Fin 2L:PAM MR:PAM Mhv:validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = truehnext:∀ (x : Fin 2), validState (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit = true → checkNext (↑q) L.mHalf.mHalf.mBit L.mHalf.mBit L.mBit h R.mBit x = truew:Fin 2q':Fin 393e:Zf393.zf393Trans q h = some (w, Dir.right, q')⊢ match match some (w, Dir.right, q') with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true All goals completed! 🐙private theorem zf393Trans_eq_none_of_mStep_none {q : Fin 393} {hd : Fin 2} {L R : PAM M} (e : mStep refM ⟨q, hd, L, R⟩ = none) : ConjectureMachines.Zf393.zf393Trans q hd = none := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ Zf393.zf393Trans q hd = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match refM.transition q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = none⊢ Zf393.zf393Trans q hd = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = none⊢ Zf393.zf393Trans q hd = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonehtr:Zf393.zf393Trans q hd = none⊢ none = noneM:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2d:Dirq':Fin 393htr:Zf393.zf393Trans q hd = some (w, d, q')⊢ some (w, d, q') = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonehtr:Zf393.zf393Trans q hd = none⊢ none = none All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2d:Dirq':Fin 393htr:Zf393.zf393Trans q hd = some (w, d, q')⊢ some (w, d, q') = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2q':Fin 393htr:Zf393.zf393Trans q hd = some (w, Dir.left, q')⊢ some (w, Dir.left, q') = noneM:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2q':Fin 393htr:Zf393.zf393Trans q hd = some (w, Dir.right, q')⊢ some (w, Dir.right, q') = none M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2q':Fin 393htr:Zf393.zf393Trans q hd = some (w, Dir.left, q')⊢ some (w, Dir.left, q') = noneM:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Me:(match Zf393.zf393Trans q hd with | none => none | some (w, Dir.right, q') => some { state := q', head := R.mBit, left := mCons w L, right := R.mHalf } | some (w, Dir.left, q') => some { state := q', head := L.mBit, left := L.mHalf, right := mCons w R }) = nonew:Fin 2q':Fin 393htr:Zf393.zf393Trans q hd = some (w, Dir.right, q')⊢ some (w, Dir.right, q') = none All goals completed! 🐙

Single-step lockstep/macro-step simulation of refM (zf_393) by candM (zf_380) in PAM M.

theorem mRespects {c₁ : MCfg 393 M} {c₂ : MCfg 380 M} (hrel : MRel c₁ c₂) : match mStep refM c₁ with | none => mStep candM c₂ = none | some c₁' => ∃ (k : Fin 9) (c₂' : MCfg 380 M), MRel c₁' c₂' ∧ mNSteps candM (k.val + 1) c₂ = some c₂' := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mc₁:MCfg 393 Mc₂:MCfg 380 Mhrel:MRel c₁ c₂⊢ match mStep refM c₁ with | none => mStep candM c₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) c₂ = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mc₁:MCfg 393 Mc₂:MCfg 380 Mhv:validState (↑c₁.state) c₁.left.mHalf.mHalf.mBit c₁.left.mHalf.mBit c₁.left.mBit c₁.head c₁.right.mBit = trueh:c₂ = { state := mapState (↑c₁.state) c₁.left.mBit c₁.head, head := c₁.head, left := c₁.left, right := c₁.right }⊢ match mStep refM c₁ with | none => mStep candM c₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) c₂ = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mc₁:MCfg 393 Mhv:validState (↑c₁.state) c₁.left.mHalf.mHalf.mBit c₁.left.mHalf.mBit c₁.left.mBit c₁.head c₁.right.mBit = true⊢ match mStep refM c₁ with | none => mStep candM { state := mapState (↑c₁.state) c₁.left.mBit c₁.head, head := c₁.head, left := c₁.left, right := c₁.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState (↑c₁.state) c₁.left.mBit c₁.head, head := c₁.head, left := c₁.left, right := c₁.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = false⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Mhpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨0, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Mhpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 0 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = falsehm:isMultiStep (↑q) L.mBit hd = falsehstep:mStep candM { state := mapState (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Mhpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ mNSteps candM (↑⟨0, ⋯⟩ + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right } All goals completed! 🐙⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)hstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)hstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)hstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)hstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)hstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)c:MCfg 393 Mhstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨8, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = falseh9:isNineStepLRLLLRRR (↑q) hd = trueh0a:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, renum 197)h0b:zf380Trans (↑(renum 197)) L.mBit = some (L.mBit, Dir.right, renum 354)h1:zf380Trans (↑(renum 354)) hd = some (hd, Dir.left, renum 362)h2:zf380Trans (↑(renum 362)) L.mBit = some (L.mBit, Dir.left, renum 346)h3':zf380Trans (↑(renum 346)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, renum 100)h4:zf380Trans (↑(renum 100)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, renum 101)h5:zf380Trans (↑(renum 101)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, renum 102)h6:zf380Trans (↑(renum 102)) L.mBit = some (L.mBit, Dir.right, renum 352)c:MCfg 393 Mhstep9:mStep candM { state := renum 352, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 8 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, mStep_nine_left_right_left_left_left_right_right_right h0a h0b h1 h2 h3' h4 h5 h6 hstep9⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)hstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)hstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)hstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)hstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)hstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)c:MCfg 393 Mhstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨6, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = falseh7:isSevenStepLLLRRR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lllrrrP1 ↑q)h2:zf380Trans (↑(lllrrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, lllrrrP2 ↑q)h3':zf380Trans (↑(lllrrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.left, lllrrrP3 ↑q)h4:zf380Trans (↑(lllrrrP3 ↑q)) L.mHalf.mHalf.mBit = some (L.mHalf.mHalf.mBit, Dir.right, lllrrrS1 ↑q)h5:zf380Trans (↑(lllrrrS1 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, lllrrrS2 ↑q)h6:zf380Trans (↑(lllrrrS2 ↑q)) L.mBit = some (L.mBit, Dir.right, lllrrrS3 ↑q)c:MCfg 393 Mhstep7:mStep candM { state := lllrrrS3 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 6 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, mStep_seven_left_left_left_right_right_right h1 h2 h3' h4 h5 h6 hstep7⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)hstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)hstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)hstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)hstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)hstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)c:MCfg 393 Mhstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨4, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = falseh5b:isFiveStepLLRR (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, llrrP1 ↑q)h2:zf380Trans (↑(llrrP1 ↑q)) L.mBit = some (L.mBit, Dir.left, llrrP2 ↑q)h3':zf380Trans (↑(llrrP2 ↑q)) L.mHalf.mBit = some (L.mHalf.mBit, Dir.right, llrrS1 ↑q)h4:zf380Trans (↑(llrrS1 ↑q)) L.mBit = some (L.mBit, Dir.right, llrrS2 ↑q)c:MCfg 393 Mhstep5:mStep candM { state := llrrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 4 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, mStep_five_left_left_right_right h1 h2 h3' h4 hstep5⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)hstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)hstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)hstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)hstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)hstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)c:MCfg 393 Mhstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨4, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = falseh5a:isFiveStepLRLR (↑q) hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, lrlrP1 ↑q)h2:zf380Trans (↑(lrlrP1 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS1 ↑q)h3':zf380Trans (↑(lrlrS1 ↑q)) hd = some (hd, Dir.left, lrlrP2 ↑q)h4:zf380Trans (↑(lrlrP2 ↑q)) L.mBit = some (L.mBit, Dir.right, lrlrS2 ↑q)c:MCfg 393 Mhstep5:mStep candM { state := lrlrS2 ↑q, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 4 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, mStep_five_left_right h1 h2 h3' h4 hstep5⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = true⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)hstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })⊢ match mStep refM { state := q, head := hd, left := L, right := R } with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)hstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂'M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)hstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)hstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })e:mStep refM { state := q, head := hd, left := L, right := R } = none⊢ match none with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehpres:match mStep refM { state := q, head := hd, left := L, right := R } with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)hstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (mStep refM { state := q, head := hd, left := L, right := R })c:MCfg 393 Me:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)c:MCfg 393 Mhstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ match some c with | none => mStep candM { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) { state := mapState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head, head := { state := q, head := hd, left := L, right := R }.head, left := { state := q, head := hd, left := L, right := R }.left, right := { state := q, head := hd, left := L, right := R }.right } = some c₂' exact ⟨⟨2, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Mq:Fin 393hd:Fin 2L:PAM MR:PAM Mhv:validState ↑{ state := q, head := hd, left := L, right := R }.state { state := q, head := hd, left := L, right := R }.left.mHalf.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mHalf.mBit { state := q, head := hd, left := L, right := R }.left.mBit { state := q, head := hd, left := L, right := R }.head { state := q, head := hd, left := L, right := R }.right.mBit = truehv1:validState1 (↑q) L.mHalf.mBit L.mBit hd R.mBit = trueh3:isThreeStep (↑q) L.mBit hd = trueh1:zf380Trans (↑(mapState (↑q) L.mBit hd)) hd = some (hd, Dir.left, midP (↑q) hd)h2:zf380Trans (↑(midP (↑q) hd)) L.mBit = some (L.mBit, Dir.right, midS (↑q) L.mBit hd)c:MCfg 393 Mhstep3:mStep candM { state := midS (↑q) L.mBit hd, head := hd, left := L, right := R } = Option.map (fun c ↦ { state := mapState (↑c.state) c.left.mBit c.head, head := c.head, left := c.left, right := c.right }) (some c)hpres:match some c with | none => True | some c => validState (↑c.state) c.left.mHalf.mHalf.mBit c.left.mHalf.mBit c.left.mBit c.head c.right.mBit = truee:mStep refM { state := q, head := hd, left := L, right := R } = some c⊢ 2 < 9 All goals completed! 🐙⟩, ⟨mapState c.state.val (mBit c.left) c.head, c.head, c.left, c.right⟩, ⟨hpres, rfl⟩, mStep_three_left_right h1 h2 hstep3⟩

Section 3: Bidirectional Trace Simulation in PAM M

Forward trace simulation: if MRel a₁ a₂ and refM (zf_393) halts from a₁, then candM (zf_380) halts from a₂.

theorem mHaltsFrom_cand_of_ref {a₁ : MCfg 393 M} {a₂ : MCfg 380 M} (hrel₀ : MRel a₁ a₂) (hhalts : mHaltsFrom refM a₁) : mHaltsFrom candM a₂ := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂hhalts:mHaltsFrom refM a₁⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hsim:∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ N = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ mHaltsFrom candM a₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ 0 ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ 0 = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ ∀ (a : PAM M), (a ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ a = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂) → a + 1 ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (a + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hsim:∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ N = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ N = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ N = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'hb₁f:b₁ = f₁⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ N = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'hb₁f:b₁ = f₁hu₂a:u₂ = a₂⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ N = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'hb₁f:b₁ = f₁hu₂a:u₂ = a₂hb₂eq:b₂' = b₂⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₂:MCfg 380 Mhx₂:x₂ = mEncodeCfg b₂hb₁:c₀.mBeta d₀ N = mEncodeCfg f₁hrel:MRel f₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₂:MCfg 380 Mhx₂:x₂ = mEncodeCfg b₂hb₁:c₀.mBeta d₀ N = mEncodeCfg f₁hrel:MRel f₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂hres:match mStep refM f₁ with | none => mStep candM b₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) b₂ = some c₂'⊢ mHaltsFrom candM a₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂n₂:PAM Mx₂:PAM Mb₂:MCfg 380 Mhx₂:x₂ = mEncodeCfg b₂hb₁:c₀.mBeta d₀ N = mEncodeCfg f₁hrel:MRel f₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂hres:match none with | none => mStep candM b₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) b₂ = some c₂'⊢ mHaltsFrom candM a₂ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ 0 ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ 0 = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂a✝:0 ≤ N⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ 0 = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂⊢ ∀ (a : PAM M), (a ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ a = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂) → a + 1 ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (a + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ N⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < N⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'hu₂a:u₂ = a₂⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂u₂:MCfg 380 Mb₂':MCfg 380 Mhu₂:mEncodeCfg a₂ = mEncodeCfg u₂hx₂':x₂ = mEncodeCfg b₂'htr₂:mTracesTo candM n₂ u₂ b₂'hu₂a:u₂ = a₂hb₂eq:b₂' = b₂⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂p₁:MCfg 393 Mq₁:MCfg 393 Mhp₁:c₀.mBeta d₀ i = mEncodeCfg p₁hq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hst₁:mStep refM p₁ = some q₁⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂p₁:MCfg 393 Mq₁:MCfg 393 Mhp₁:c₀.mBeta d₀ i = mEncodeCfg p₁hq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hst₁:mStep refM p₁ = some q₁hp₁b:p₁ = b₁⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂q₁:MCfg 393 Mhq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hp₁:c₀.mBeta d₀ i = mEncodeCfg b₁hst₁:mStep refM b₁ = some q₁⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂q₁:MCfg 393 Mhq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hp₁:c₀.mBeta d₀ i = mEncodeCfg b₁hst₁:mStep refM b₁ = some q₁hres:match mStep refM b₁ with | none => mStep candM b₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) b₂ = some c₂'⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂q₁:MCfg 393 Mhq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hp₁:c₀.mBeta d₀ i = mEncodeCfg b₁hst₁:mStep refM b₁ = some q₁hres:match some q₁ with | none => mStep candM b₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) b₂ = some c₂'⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂q₁:MCfg 393 Mhq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hp₁:c₀.mBeta d₀ i = mEncodeCfg b₁hst₁:mStep refM b₁ = some q₁k:Fin 9c₂':MCfg 380 Mhrel':MRel q₁ c₂'hns:mNSteps candM (↑k + 1) b₂ = some c₂'⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₁:MCfg 393 Mhnone:mStep refM f₁ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₁hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep refM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₁hdef:PADef1 fun i ↦ i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂i:PAM Mih:i ≤ N → ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ i = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂hi1:i + 1 ≤ Nhilt:i < Nn₂:PAM Mx₂:PAM Mb₁:MCfg 393 Mb₂:MCfg 380 Mhb₁:c₀.mBeta d₀ i = mEncodeCfg b₁hx₂:x₂ = mEncodeCfg b₂hrel:MRel b₁ b₂hu₂:mEncodeCfg a₂ = mEncodeCfg a₂hx₂':x₂ = mEncodeCfg b₂htr₂:mTracesTo candM n₂ a₂ b₂q₁:MCfg 393 Mhq₁:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₁hp₁:c₀.mBeta d₀ i = mEncodeCfg b₁hst₁:mStep refM b₁ = some q₁k:Fin 9c₂':MCfg 380 Mhrel':MRel q₁ c₂'hns:mNSteps candM (↑k + 1) b₂ = some c₂'htr_step:mTracesTo candM (↑(↑k + 1)) b₂ c₂'⊢ ∃ n₂ x₂, (∃ b₁ b₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₁ ∧ x₂ = mEncodeCfg b₂ ∧ MRel b₁ b₂) ∧ ∃ u₂ b₂, mEncodeCfg a₂ = mEncodeCfg u₂ ∧ x₂ = mEncodeCfg b₂ ∧ mTracesTo candM n₂ u₂ b₂ All goals completed! 🐙

Backward trace simulation: if MRel a₁ a₂ and candM (zf_380) halts from a₂, then refM (zf_393) halts from a₁.

theorem mHaltsFrom_ref_of_cand {a₁ : MCfg 393 M} {a₂ : MCfg 380 M} (hrel₀ : MRel a₁ a₂) (hhalts : mHaltsFrom candM a₂) : mHaltsFrom refM a₁ := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂hhalts:mHaltsFrom candM a₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hsim:∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ N = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ mHaltsFrom refM a₁M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ 0 ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ 0 = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ ∀ (a : PAM M), (a ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ a = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂) → a + 1 ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (a + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hsim:∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ N = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ N = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ N = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ N = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁hc₁eq:c₁' = c₁⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ N = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁hc₁eq:c₁' = c₁hc₂eq:c₂' = c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ N = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁hc₁eq:c₁' = c₁hc₂eq:c₂' = c₂hb₂f:b₂ = f₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM (↑r) f₂ = some c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM (↑r) f₂ = some c₂hr:↑r = 0⊢ mHaltsFrom refM a₁M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM (↑r) f₂ = some c₂r':ℕhr:↑r = r' + 1⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM (↑r) f₂ = some c₂hr:↑r = 0⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM 0 f₂ = some c₂hr:↑r = 0⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hr:↑r = 0hns_r:f₂ = c₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂hres:match mStep refM c₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂hres:match mStep refM c₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'e:mStep refM c₁ = none⊢ mHaltsFrom refM a₁M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂hres:match mStep refM c₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'d₁:MCfg 393 Me:mStep refM c₁ = some d₁⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂hres:match mStep refM c₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'e:mStep refM c₁ = none⊢ mHaltsFrom refM a₁ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂hres:match mStep refM c₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'d₁:MCfg 393 Me:mStep refM c₁ = some d₁⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂d₁:MCfg 393 Mhres:match some d₁ with | none => mStep candM f₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) f₂ = some c₂'e:mStep refM c₁ = some d₁⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂hr:↑r = 0hx₂:x₂ = mEncodeCfg f₂hrel:MRel c₁ f₂hx₂':x₂ = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ f₂d₁:MCfg 393 Me:mStep refM c₁ = some d₁k:Fin 9d₂:MCfg 380 Mleft✝:MRel d₁ d₂hnsk:mNSteps candM (↑k + 1) f₂ = some d₂⊢ mHaltsFrom refM a₁ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂hns_r:mNSteps candM (↑r) f₂ = some c₂r':ℕhr:↑r = r' + 1⊢ mHaltsFrom refM a₁ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂r:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂hb₂:c₀.mBeta d₀ N = mEncodeCfg f₂htr_r:mTracesTo candM (↑↑r) f₂ c₂r':ℕhns_r:mNSteps candM (r' + 1) f₂ = some c₂hr:↑r = r' + 1⊢ mHaltsFrom refM a₁ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ 0 ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ 0 = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂a✝:0 ≤ N⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ 0 = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ exact ⟨⟨0, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂a✝:0 ≤ N⊢ 0 < 9 All goals completed! 🐙⟩, 0, mEncodeCfg a₁, mEncodeCfg a₂, ⟨a₁, a₂, rfl, rfl, hrel₀⟩, ⟨a₁, a₁, rfl, rfl, mTracesTo_zero refM a₁⟩, ⟨a₂, a₂, h0, rfl, M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂a✝:0 ≤ N⊢ mTracesTo candM (↑↑⟨0, ⋯⟩) a₂ a₂ All goals completed! 🐙⟩⟩ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂⊢ ∀ (a : PAM M), (a ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ a = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂) → a + 1 ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (a + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ N⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < N⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁hc₁eq:c₁' = c₁⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂u₁:MCfg 393 Mc₁':MCfg 393 Mhu₁:mEncodeCfg a₁ = mEncodeCfg u₁hx₁':x₁ = mEncodeCfg c₁'htr₁:mTracesTo refM n₁ u₁ c₁'b₂:MCfg 380 Mc₂':MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hx₂':x₂ = mEncodeCfg c₂'htr_r:mTracesTo candM (↑↑r) b₂ c₂'hu₁a:u₁ = a₁hc₁eq:c₁' = c₁hc₂eq:c₂' = c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂b₂:MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂htr_r:mTracesTo candM (↑↑r) b₂ c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂b₂:MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂htr_r:mTracesTo candM (↑↑r) b₂ c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂b₂:MCfg 380 Mhb₂:c₀.mBeta d₀ i = mEncodeCfg b₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂htr_r:mTracesTo candM (↑↑r) b₂ c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hp₂b:p₂ = b₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM (↑r) p₂ = some c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM (↑r) p₂ = some c₂hr:↑r = 0⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM (↑r) p₂ = some c₂r':ℕhr:↑r = r' + 1⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM (↑r) p₂ = some c₂hr:↑r = 0⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM 0 p₂ = some c₂hr:↑r = 0⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hr:↑r = 0hns_r:p₂ = c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match mStep refM c₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match mStep refM c₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'e:mStep refM c₁ = none⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match mStep refM c₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'d₁:MCfg 393 Me:mStep refM c₁ = some d₁⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match mStep refM c₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'e:mStep refM c₁ = none⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match none with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'e:mStep refM c₁ = none⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:none = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match none with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'e:mStep refM c₁ = none⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂hres:match mStep refM c₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'d₁:MCfg 393 Me:mStep refM c₁ = some d₁⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂d₁:MCfg 393 Mhres:match some d₁ with | none => mStep candM p₂ = none | some c₁' => ∃ k c₂', MRel c₁' c₂' ∧ mNSteps candM (↑k + 1) p₂ = some c₂'e:mStep refM c₁ = some d₁⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂d₁:MCfg 393 Me:mStep refM c₁ = some d₁k:Fin 9d₂:MCfg 380 Mhrel':MRel d₁ d₂hnsk:mNSteps candM (↑k + 1) p₂ = some d₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mhx₁:x₁ = mEncodeCfg c₁hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂hr:↑r = 0hx₂:x₂ = mEncodeCfg p₂hrel:MRel c₁ p₂hx₂':x₂ = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ p₂d₁:MCfg 393 Me:mStep refM c₁ = some d₁k:Fin 9d₂:MCfg 380 Mhrel':MRel d₁ d₂hnsk:mNSteps candM (↑k) q₂ = some d₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ All goals completed! 🐙 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂hns_r:mNSteps candM (↑r) p₂ = some c₂r':ℕhr:↑r = r' + 1⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂r':ℕhns_r:mNSteps candM (r' + 1) p₂ = some c₂hr:↑r = r' + 1⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂r':ℕhr:↑r = r' + 1hns_r:mNSteps candM r' q₂ = some c₂⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ M:Type u_1inst✝¹:PAStructure Minst✝:PAModel Ma₁:MCfg 393 Ma₂:MCfg 380 Mhrel₀:MRel a₁ a₂N:PAM Mf₂:MCfg 380 Mhnone:mStep candM f₂ = nonec₀:PAM Md₀:PAM Mh0:c₀.mBeta d₀ 0 = mEncodeCfg a₂hsteps:∀ i < N, ∃ x y, c₀.mBeta d₀ i = mEncodeCfg x ∧ c₀.mBeta d₀ (i + 1) = mEncodeCfg y ∧ mStep candM x = some yhN:c₀.mBeta d₀ N = mEncodeCfg f₂hdef:PADef1 fun i ↦ i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂i:PAM Mih:i ≤ N → ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ i = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂hi1:i + 1 ≤ Nhilt:i < Nr:Fin 9n₁:PAM Mx₁:PAM Mx₂:PAM Mc₁:MCfg 393 Mc₂:MCfg 380 Mhx₁:x₁ = mEncodeCfg c₁hx₂:x₂ = mEncodeCfg c₂hrel:MRel c₁ c₂hu₁:mEncodeCfg a₁ = mEncodeCfg a₁hx₁':x₁ = mEncodeCfg c₁htr₁:mTracesTo refM n₁ a₁ c₁hx₂':x₂ = mEncodeCfg c₂p₂:MCfg 380 Mq₂:MCfg 380 Mhp₂:c₀.mBeta d₀ i = mEncodeCfg p₂hq₂:c₀.mBeta d₀ (i + 1) = mEncodeCfg q₂hst₂:mStep candM p₂ = some q₂hb₂:c₀.mBeta d₀ i = mEncodeCfg p₂htr_r:mTracesTo candM (↑↑r) p₂ c₂r':ℕhr:↑r = r' + 1hns_r:mNSteps candM r' q₂ = some c₂hr'_lt:r' < 9⊢ ∃ r n₁ x₁ x₂, (∃ c₁ c₂, x₁ = mEncodeCfg c₁ ∧ x₂ = mEncodeCfg c₂ ∧ MRel c₁ c₂) ∧ (∃ u₁ c₁, mEncodeCfg a₁ = mEncodeCfg u₁ ∧ x₁ = mEncodeCfg c₁ ∧ mTracesTo refM n₁ u₁ c₁) ∧ ∃ b₂ c₂, c₀.mBeta d₀ (i + 1) = mEncodeCfg b₂ ∧ x₂ = mEncodeCfg c₂ ∧ mTracesTo candM (↑↑r) b₂ c₂ All goals completed! 🐙

In every first-order PAModel M, Machines.zf380 halts iff Machines.zf393 halts.

theorem mHalts_zf380_iff_zf393 : mHalts M Machines.zf380 ↔ mHalts M Machines.zf393 := M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ mHalts M Machines.zf380 ↔ mHalts M Machines.zf393 M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ mHaltsFrom Machines.zf380 mInit ↔ mHaltsFrom Machines.zf393 mInit M:Type u_1inst✝¹:PAStructure Minst✝:PAModel M⊢ mHaltsFrom Machines.zf380 (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) ↔ mHaltsFrom Machines.zf393 (embedCfg (cfgOfFast 64 [] 0 bootR_39753)) All goals completed! 🐙end Model

Peano Arithmetic proves that zf_380 halts if and only if zf_393 halts.

theorem paProvable_halts_zf380_iff_zf393 : PAProvable ((paHalts Machines.zf380).iff (paHalts Machines.zf393)) := ⊢ PAProvable ((paHalts Machines.zf380).iff (paHalts Machines.zf393)) ⊢ ∀ (M : Type) [inst : PAStructure M] [PAModel M] (v : ℕ → M), PAFormula.HoldsIn v ((paHalts Machines.zf380).iff (paHalts Machines.zf393)) M:Typeinst✝¹:PAStructure Minst✝:PAModel Mv:ℕ → M⊢ PAFormula.HoldsIn v ((paHalts Machines.zf380).iff (paHalts Machines.zf393)) M:Typeinst✝¹:PAStructure Minst✝:PAModel Mv:ℕ → M⊢ PAFormula.HoldsIn (fun x ↦ { raw := v x }) ((paHalts Machines.zf380).iff (paHalts Machines.zf393)) M:Typeinst✝¹:PAStructure Minst✝:PAModel Mv:ℕ → M⊢ (mHalts M Machines.zf380 → mHalts M Machines.zf393) ∧ (mHalts M Machines.zf393 → mHalts M Machines.zf380) All goals completed! 🐙end ConjectureMachines.Semantics.PA