Comment on if statement == false
stevedice@sh.itjust.works 2 weeks agoI don’t think you’re picking up what I’m putting down. I’m not arguing that the return value can be 1, I’m well aware that it can’t — I wrote the function so that it will always return 0. It only returns 1 if we make an incorrect assumption (and mix up semantics with formal logic, but that’s another conversation), the incorrect assumption being “if is equivalent to if, and only if”
nickwitha_k@lemmy.sdf.org 2 weeks ago
Sorry! I sometimes get carried away on correctness.
stevedice@sh.itjust.works 1 week ago
I mean, making an assumption and the arriving to a contradiction is as correct as a proof gets.