News for hackers. Stuff that matters.
Re:When Is Cheryl's Birthday? by hyt7u on Saturday April 25, 2015 @04:18AM (#9437645)
It took me a bit to figure out that the third statement was meant to be Albert expressing his confidence that Bernard didn't know the answer and not Albert inducing from Bernard's silence that Bernard didn't know the answer. The latter implies something like the Python code below, which will end up giving August 17th as an answer instead:

  def statement3(date):
    possible_dates = tell(Month(date))
    return (not know(possible_dates)
      and not know(filter(lambda x : not know(x), 
        [tell(Day(d)) for d in possible_dates])))

There are no comments on this comment yet.