Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions is_one_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,32 @@ def is_one_using_vector_magnitude():
return True
return False

def is_one_using_existential_crisis():
"""Proves 1 == 1 by having a full philosophical breakdown first."""
things_that_exist = []

# gather evidence that existence is real
things_that_exist.append("this function")
things_that_exist.append("your regret for reading this")
things_that_exist.append("the concept of the number one")
things_that_exist.append("the void")
things_that_exist.append("also the void's cousin, emptiness")

# remove the void because it contributes nothing (as expected)
things_that_exist = [t for t in things_that_exist if "void" not in t]

# the concept of the number one definitely exists
# int(True) == 1. This is load-bearing philosophy.
conceptual_one = int("the concept of the number one" in things_that_exist)

# Descartes said cogito ergo sum. We say computas ergo unum.
cogito = True # I think
ergo = cogito # therefore
sum_ = ergo # I am
unum = int(sum_) # I am... one

return unum == conceptual_one == 1

def is_one_just_to_be_sure():
"""Verifies one by aggregating every proof."""
return all([
Expand All @@ -117,6 +143,7 @@ def is_one_just_to_be_sure():
is_one_under_extreme_pressure(),
the_one_suriya(),
is_one_using_vector_magnitude(),
is_one_using_existential_crisis(),
])

def main():
Expand All @@ -133,6 +160,7 @@ def main():
is_one_under_extreme_pressure,
the_one_suriya,
is_one_using_vector_magnitude,
is_one_using_existential_crisis,
]

print("🧠 Running overengineered checks to see if 1 == 1:\n")
Expand Down
4 changes: 4 additions & 0 deletions test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def test_is_one_using_vector_magnitude(self):
"""The magnitude of a unit vector is one."""
self.assertTrue(is_one_one.is_one_using_vector_magnitude())

def test_is_one_using_existential_crisis(self):
"""A full philosophical breakdown confirms 1 == 1."""
self.assertTrue(is_one_one.is_one_using_existential_crisis())

def test_is_one_just_to_be_sure(self):
"""The ultimate recursive confirmation."""
self.assertTrue(is_one_one.is_one_just_to_be_sure())
Expand Down
Loading