Skip to content
Imports
@[expose] public sectionnamespace ConjectureMachines.Riemann95Auxiliary.Physicalopen Turing ConjectureMachinesopen ConjectureMachines.Riemann120 ConjectureMachines.Riemann120.Layer2open ConjectureMachines.Semantics.Riemann.Layer1 (encodeRegs)def decLeaf98 : Fin 5 → Fin 98
| ⟨0, _⟩ => 18
| ⟨1, _⟩ => 32
| ⟨2, _⟩ => 56
| ⟨3, _⟩ => 31
| _ => 58def incLeaf98 : Fin 5 → Fin 98
| ⟨0, _⟩ => 1
| ⟨1, _⟩ => 29
| ⟨2, _⟩ => 79
| ⟨3, _⟩ => 23
| _ => 55def rawRoot98 (pad : Nat) (w : List (Fin 2)) (bank : List Nat) : Cfg 98 2 :=
⟨15, Tape.mk' (rootLeftOf true) (ListBlank.append (w ++ List.replicate (pad - w.length) 0 ++ [1,
0] ++ encodeRegs bank) default)⟩theorem swap_incLeaf (r : Fin 5) :
Renaming.swap (PhysicalRaw.incLeaf98 r) = incLeaf98 r := r:Fin 5⊢ Renaming.swap (PhysicalRaw.incLeaf98 r) = incLeaf98 r ⊢ ∀ (r : Fin 5), Renaming.swap (PhysicalRaw.incLeaf98 r) = incLeaf98 r; All goals completed! 🐙theorem swap_decLeaf (r : Fin 5) :
Renaming.swap (PhysicalRaw.decLeaf98 r) = decLeaf98 r := r:Fin 5⊢ Renaming.swap (PhysicalRaw.decLeaf98 r) = decLeaf98 r ⊢ ∀ (r : Fin 5), Renaming.swap (PhysicalRaw.decLeaf98 r) = decLeaf98 r; All goals completed! 🐙theorem rename_rawRoot (pad : Nat) (word : List (Fin 2)) (bank : List Nat) :
Renaming.renameCfg (PhysicalRaw.rawRoot98 pad word bank) = rawRoot98 pad word bank := rfltheorem swap_fence (k : Fin 2) :
Renaming.swap (if k = 0 then 9 else 63) = (if k = 0 then 9 else 63) := k:Fin 2⊢ Renaming.swap (if k = 0 then 9 else 63) = if k = 0 then 9 else 63 ⊢ ∀ (k : Fin 2), Renaming.swap (if k = 0 then 9 else 63) = if k = 0 then 9 else 63; All goals completed! 🐙theorem unary98_dec_pos (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (hpos : 0 <
bank.getD r.val 0) (L : ListBlank (Fin 2)) : ∃ s ≥ 1, nSteps s ⟨decLeaf98 r, Tape.mk' L
(ListBlank.append [1, 0] (ConjectureMachines.Semantics.Riemann.Layer1.regsTape bank))⟩ = some
⟨9, Tape.mk' L (ListBlank.append [0, 0] (ConjectureMachines.Semantics.Riemann.Layer1.regsTape
(bank.set r.val (bank.getD r.val 0 - 1) ++ [0])))⟩ := r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0L:ListBlank (Fin 2)⊢ ∃ s ≥ 1,
nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0]
(Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0L:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.decLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }⊢ ∃ s ≥ 1,
nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0]
(Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthhpos:0 < bank.getD (↑r) 0L:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.decLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }⊢ nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 - 1) ++ [0]))) }
All goals completed! 🐙theorem unary98_dec_zero (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (hz : bank.getD
r.val 0 = 0) (L : ListBlank (Fin 2)) : ∃ s ≥ 1, nSteps s ⟨decLeaf98 r, Tape.mk' L
(ListBlank.append [1, 0] (ConjectureMachines.Semantics.Riemann.Layer1.regsTape bank))⟩ = some
⟨63, Tape.mk' L (ListBlank.append [0, 0] (ConjectureMachines.Semantics.Riemann.Layer1.regsTape
bank))⟩ := r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0L:ListBlank (Fin 2)⊢ ∃ s ≥ 1,
nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some { state := 63, tape := Tape.mk' L (ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape bank)) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0L:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.decLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some { state := 63, tape := Tape.mk' L (ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape bank)) }⊢ ∃ s ≥ 1,
nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some { state := 63, tape := Tape.mk' L (ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape bank)) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthhz:bank.getD (↑r) 0 = 0L:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.decLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some { state := 63, tape := Tape.mk' L (ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape bank)) }⊢ nSteps s
{ state := decLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some { state := 63, tape := Tape.mk' L (ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape bank)) }
All goals completed! 🐙theorem unary98_inc (r : Fin 5) (bank : List Nat) (hr : r.val < bank.length) (L : ListBlank (Fin
2)) : ∃ s ≥ 1, nSteps s ⟨incLeaf98 r, Tape.mk' L (ListBlank.append [1, 0]
(ConjectureMachines.Semantics.Riemann.Layer1.regsTape bank))⟩ = some ⟨9, Tape.mk' L
(ListBlank.append [0, 0] (ConjectureMachines.Semantics.Riemann.Layer1.regsTape (bank.set r.val
(bank.getD r.val 0 + 1))))⟩ := r:Fin 5bank:List ℕhr:↑r < bank.lengthL:ListBlank (Fin 2)⊢ ∃ s ≥ 1,
nSteps s
{ state := incLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthL:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.incLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }⊢ ∃ s ≥ 1,
nSteps s
{ state := incLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }
r:Fin 5bank:List ℕhr:↑r < bank.lengthL:ListBlank (Fin 2)s:ℕhs:s ≥ 1h:Raw.nSteps s
{ state := PhysicalRaw.incLeaf98 r,
tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }⊢ nSteps s
{ state := incLeaf98 r, tape := Tape.mk' L (ListBlank.append [1, 0] (Semantics.Riemann.Layer1.regsTape bank)) } =
some
{ state := 9,
tape :=
Tape.mk' L
(ListBlank.append [0, 0] (Semantics.Riemann.Layer1.regsTape (bank.set (↑r) (bank.getD (↑r) 0 + 1)))) }
All goals completed! 🐙end ConjectureMachines.Riemann95Auxiliary.Physical