The Dayenu Boolean Function Is Almost Always True!
Doron Zeilberger

TL;DR
This paper analyzes the Dayenu Boolean function, showing that for n miracles, the number of satisfying truth assignments is 2^n minus (n+1), revealing its near-universal truthfulness.
Contribution
It formally expresses the Dayenu function in conjunctive normal form and derives an exact count of its satisfying truth vectors.
Findings
Number of satisfying truth-vectors is 2^n - (n+1)
The function is almost always true for large n
Provides a formal logical analysis of a cultural song
Abstract
The Boolean function implicit in the famous Dayenu song, sung at the Passover meal, is expressed in full conjunctive normal form, and it is proved that if there are n miracles the number of truth-vectors satisfying it is .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Advanced Combinatorial Mathematics · Music and Audio Processing
The Dayenu Boolean Function Is Almost Always True!
Doron ZEILBERGER
Dedicated to Hemi and Yael Nae
[Recall, from Logic 101, that for any two statements, , means that “either or or both happened”, means that both and happened, while means that did not happen. For typographical clarity, is often written .]
Two nights ago, my wife Jane and I were fortunate to be guests in a wonderful Passover seder at the house of Hemi††1
Hemi and I were dorm-mates at the Weizmann Institute, way back in the early seventies. His son is also called Doron, so we call him ‘little Doron’, while I am ‘big Doron’. ‘Little Doron’ is no longer so little (he is -years-old), but Hemi commented that he knows me (‘big Doron’) much longer than he knows ‘little Doron’. and Yael Nae. Soon enough we came to the number-one hit song, Dayenu, praising God for doing amazing miracles, let’s call them , where stands for “Took us out of Egypt”, and stands for “Built us our Temple”. The exact nature of the other miracles (and for that matter the above two ) are irrelevant to this mathematical paper, but can be easily looked-up in any Haggadah (and of course, nowadays, on the internet).
It so happened that what God actually did can be described by the Boolean function (with )
[TABLE]
whose only truth vector is the all-true vector , i.e., assuming, that the probability of any one miracle occurring is (and that they are independent events), has the tiny probability of .
But the author of Dayenu asserts that God was an over-achiever, and we, the children of Israel, should have been content if the following Boolean function would have been satisfied.
[TABLE]
The following question immediately came to my mind: How many (and which) truth-vectors are satisfied by the Dayenu function, and what is the probability that God, deciding randomly which miracles to perform and which not to perform, would have satisfied the minimum requirement demanded by the anonymous author of Dayenu?
Thanks to De Morgan we have
[TABLE]
We are now ready for
The Dayenu Theorem. The full disjunctive normal form of the negation of the Dayenu Boolean function is given by
[TABLE]
or, more concretely:
[TABLE]
Proof: By induction on . It is true when (check!). Assume that it is true when is replaced by . Note that
[TABLE]
[TABLE]
By the inductive hypothesis:
[TABLE]
Regarding we have
[TABLE]
[TABLE]
Since is FALSE, all the above terms, except the first, vanish, and since , we have
[TABLE]
Regarding we have
[TABLE]
[TABLE]
Combining, we have
[TABLE]
[TABLE]
[TABLE]
Since
[TABLE]
we get
[TABLE]
[TABLE]
[TABLE]
Since the second and third term above are the same (and ), we finally get
[TABLE]
[TABLE]
Corollary: Assuming that the probability of each miracle is , and that they are done independently, the probability of not meeting the Dayenu requirement is and hence of meeting it is , that happens to be, for , .
Comments:
1. Surprisingly, what God actually did, performing all the miracles, is not part of the truth-set of the Dayenu Boolean function, since there is always at least one miracle that is not performed.
2. A faster proof, without Boolean logic, for getting the set of true-false vectors not satisfying the Dayenu function (and hence proving the above Dayenu theorem), can be gotten by finding the set of all members of for which an never (immediately) follows a . Of course, this set is .
16 Nisan 5777. Exclusively published in the Personal Journal of Shalosh B. Ekhad and Doron Zeilberger , http://www.math.rutgers.edu/~zeilberg/pj.html, and arxiv.org .
Doron Zeilberger, Department of Mathematics, Rutgers University (New Brunswick), Hill Center-Busch Campus, 110 Frelinghuysen Rd., Piscataway, NJ 08854-8019, USA. Email: DoronZeil at gmail dot com .
