Lambda Calc, Peano Axioms, & Recreating Maths

Okay. Thanks! I'll think about that...

Like this?
image

I guess... does it work?

My solution is a little simpler; I think my hint misled you.

Oh! Mine just reported nothing. That makes so much more sense!

On to zero?!

I'm not sure if this is necroposting, but I'm working on a new λ-Calculus Program, and I want to implement ZERO?. Could someone give me tips?

Here's the project:

λ-Calculus

0: λf . λx . x
1: λf . λx . f x
2: λf . λx . f f x
3: λf . λx . f f f x

What's special about zero?

It's the identity function, and the only one that doesn't call $$f$$. Ooh, Let's see if I can make it...


(12:17 at 2/4/2024 edit)

I'm not sure that the problem is:


It works fine with 0 replaced with (SUCCESSOR 0).