Editing
Lambda Calculus
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Understanding</span> == Lambda calculus is understood through '''Abstraction''' and '''Everything is a Function'''. '''1. Nothing but Functions''': In Lambda Calculus, there are no "Numbers," no "Booleans," and no "Strings." * How do you count? You use "Church Encodings." * The number "2" is defined as a function that "Applies another function twice." * This proves that "Logic" and "Math" are actually just "Patterns of Functions." '''2. Computation as 'Substitution'''': Running a program in Lambda Calculus is like "Doing Algebra." * You don't "Change a value" in a memory chip. * You "Replace" a variable with an expression, and then "Simplify" the result until you can't simplify anymore (The Normal Form). * This makes functional programs "Predictable" and "Easy to test" because they have no "Side Effects." '''3. The Power of Ξ» (The Lambda)''': Why do we use Lambdas in modern code? * Because sometimes we need a "Quick Logic" without building a whole "Named Function." * In Python: `lambda x: x + 1`. * This allows us to "Pass logic around" just like we pass numbers or strings around. '''The 'Y Combinator'''': A famous (and mind-bending) function that allows Lambda Calculus to "Loop" without having a "Loop" command. It is a function that "Finds the fixed point" of another function, allowing for infinite recursion in a system that doesn't even have a "Return" statement. </div> <div style="background-color: #8B0000; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information