logoalt Hacker News

lukas09912/09/20242 repliesview on HN

Is there not a convention within formal logic defining this type of statement to be true or false?


Replies

gabrielhidasy12/09/2024

There is, it's the "Vacuous Truth", generally any affirmation about elements of the empty set is true. It's very useful as it allows you to convert any statement "All elements of x are Y" in "No element in x is Not Y".

scotty7912/09/2024

There is.

  [].all(x => whatever(x)) == true
At least that's how math usually thinks about it.