Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  df-ack Structured version   Visualization version   GIF version

Definition df-ack 45894
Description: Define the Ackermann function (recursively). (Contributed by Thierry Arnoux, 28-Apr-2024.) (Revised by AV, 2-May-2024.)
Assertion
Ref Expression
df-ack Ack = seq0((𝑓 ∈ V, 𝑗 ∈ V ↦ (𝑛 ∈ ℕ0 ↦ (((IterComp‘𝑓)‘(𝑛 + 1))‘1))), (𝑖 ∈ ℕ0 ↦ if(𝑖 = 0, (𝑛 ∈ ℕ0 ↦ (𝑛 + 1)), 𝑖)))
Distinct variable group:   𝑓,𝑖,𝑗,𝑛

Detailed syntax breakdown of Definition df-ack
StepHypRef Expression
1 cack 45892 . 2 class Ack
2 vf . . . 4 setvar 𝑓
3 vj . . . 4 setvar 𝑗
4 cvv 3422 . . . 4 class V
5 vn . . . . 5 setvar 𝑛
6 cn0 12163 . . . . 5 class 0
7 c1 10803 . . . . . 6 class 1
85cv 1538 . . . . . . . 8 class 𝑛
9 caddc 10805 . . . . . . . 8 class +
108, 7, 9co 7255 . . . . . . 7 class (𝑛 + 1)
112cv 1538 . . . . . . . 8 class 𝑓
12 citco 45891 . . . . . . . 8 class IterComp
1311, 12cfv 6418 . . . . . . 7 class (IterComp‘𝑓)
1410, 13cfv 6418 . . . . . 6 class ((IterComp‘𝑓)‘(𝑛 + 1))
157, 14cfv 6418 . . . . 5 class (((IterComp‘𝑓)‘(𝑛 + 1))‘1)
165, 6, 15cmpt 5153 . . . 4 class (𝑛 ∈ ℕ0 ↦ (((IterComp‘𝑓)‘(𝑛 + 1))‘1))
172, 3, 4, 4, 16cmpo 7257 . . 3 class (𝑓 ∈ V, 𝑗 ∈ V ↦ (𝑛 ∈ ℕ0 ↦ (((IterComp‘𝑓)‘(𝑛 + 1))‘1)))
18 vi . . . 4 setvar 𝑖
1918cv 1538 . . . . . 6 class 𝑖
20 cc0 10802 . . . . . 6 class 0
2119, 20wceq 1539 . . . . 5 wff 𝑖 = 0
225, 6, 10cmpt 5153 . . . . 5 class (𝑛 ∈ ℕ0 ↦ (𝑛 + 1))
2321, 22, 19cif 4456 . . . 4 class if(𝑖 = 0, (𝑛 ∈ ℕ0 ↦ (𝑛 + 1)), 𝑖)
2418, 6, 23cmpt 5153 . . 3 class (𝑖 ∈ ℕ0 ↦ if(𝑖 = 0, (𝑛 ∈ ℕ0 ↦ (𝑛 + 1)), 𝑖))
2517, 24, 20cseq 13649 . 2 class seq0((𝑓 ∈ V, 𝑗 ∈ V ↦ (𝑛 ∈ ℕ0 ↦ (((IterComp‘𝑓)‘(𝑛 + 1))‘1))), (𝑖 ∈ ℕ0 ↦ if(𝑖 = 0, (𝑛 ∈ ℕ0 ↦ (𝑛 + 1)), 𝑖)))
261, 25wceq 1539 1 wff Ack = seq0((𝑓 ∈ V, 𝑗 ∈ V ↦ (𝑛 ∈ ℕ0 ↦ (((IterComp‘𝑓)‘(𝑛 + 1))‘1))), (𝑖 ∈ ℕ0 ↦ if(𝑖 = 0, (𝑛 ∈ ℕ0 ↦ (𝑛 + 1)), 𝑖)))
Colors of variables: wff setvar class
This definition is referenced by:  ackvalsuc1mpt  45912  ackval0  45914
  Copyright terms: Public domain W3C validator