Metamath Proof Explorer


Theorem ackval0012

Description: The Ackermann function at (0,0), (0,1), (0,2). (Contributed by AV, 2-May-2024)

Ref Expression
Assertion ackval0012 ⟨ ( ( Ack ‘ 0 ) ‘ 0 ) , ( ( Ack ‘ 0 ) ‘ 1 ) , ( ( Ack ‘ 0 ) ‘ 2 ) ⟩ = ⟨ 1 , 2 , 3 ⟩

Proof

Step Hyp Ref Expression
1 ackval0 ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) )
2 oveq1 ( 𝑛 = 0 → ( 𝑛 + 1 ) = ( 0 + 1 ) )
3 0p1e1 ( 0 + 1 ) = 1
4 2 3 eqtrdi ( 𝑛 = 0 → ( 𝑛 + 1 ) = 1 )
5 0nn0 0 ∈ ℕ0
6 5 a1i ( ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) ) → 0 ∈ ℕ0 )
7 1nn0 1 ∈ ℕ0
8 7 a1i ( ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) ) → 1 ∈ ℕ0 )
9 1 4 6 8 fvmptd3 ( ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) ) → ( ( Ack ‘ 0 ) ‘ 0 ) = 1 )
10 oveq1 ( 𝑛 = 1 → ( 𝑛 + 1 ) = ( 1 + 1 ) )
11 1p1e2 ( 1 + 1 ) = 2
12 10 11 eqtrdi ( 𝑛 = 1 → ( 𝑛 + 1 ) = 2 )
13 2nn0 2 ∈ ℕ0
14 13 a1i ( ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) ) → 2 ∈ ℕ0 )
15 1 12 8 14 fvmptd3 ( ( Ack ‘ 0 ) = ( 𝑛 ∈ ℕ0 ↦ ( 𝑛 + 1 ) ) → ( ( Ack ‘ 0 ) ‘ 1 ) = 2 )
16 oveq1 ( 𝑛 = 2 → ( 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