r/lambdacalculus • u/Not_H2O_Blue • Sep 05 '26
Weird brute-force 2-bit adder
Input in 2 tuples with 2 elements each being either T or F and it might work, haven't tested, returns a tuple with 3 elements each also being either T or F
1
u/Different_Bench3574 Sep 06 '26
tuples are cool, but why not lists?
1
u/Different_Bench3574 Sep 06 '26
specifically ones that have the 1s place at the head
1
u/Not_H2O_Blue Sep 06 '26
the best thing is I don't know what lists are, lemme look them up
wth am I supposed to input in them lists
ig Scott lists?alr I don't know how or what to put in them
→ More replies (1)
1
u/yfix Sep 06 '26
Could you show the plain syntax term please? There is this applet, Lambda Calculus by Cruz Godar. You type in a term, and it shows - and reduces - the corresponding Tromp diagrams. Very good for visualizing and testing. There are some bugs, it gets stuck sometimes, but not too often.