New on the site: Michi-bot. An intelligent assistant based on the writings of Rabbi Michael Avraham.

A Halakhic–Mathematical Problem and Its Implications (Column 683)

With God’s help

Disclaimer: This post was translated from Hebrew using AI (ChatGPT 5 Thinking), so there may be inaccuracies or nuances lost. If something seems unclear, please refer to the Hebrew original or contact us for clarification.

In the previous column I discussed what constitutes greatness in Torah. Among other things, I argued that beyond knowledge, skill, and analytic ability, one also needs common sense and familiarity with the world and with other areas of knowledge. As an example there I brought a mathematical problem from Tractate Mikva’ot. The reason is that, in my view, a decisor or scholar need not be a professional mathematician, yet for problems of this sort a professional’s focused knowledge is sometimes required, not just general understanding. Whether in practice poskim consult a mathematician or physicist (I doubt it—see below in this column) is itself in question. Still, everything here looks fairly straightforward.

A pit of drawn water into which a channel flows

Many years ago at the Technion a doctoral student who was dealing with mathematics and halakhah asked me whether I had topics that merited mathematical analysis. I suggested he work on Mishnah Mikva’ot 3:3 (I mentioned this from a different angle in column 381):

“A pit that is full of drawn water, and a channel enters into it and goes out of it constantly—its invalidity remains until it is calculated that of the original [drawn water] no more than three log remain.”

We are dealing with a pit of drawn water that we wish to use as a mikveh. If it is entirely drawn water, the mikveh is invalid (biblically). But if a channel of natural water (an ama) flows slowly into the pit, the incoming water is gradually mixed into the contents of the pit; the percentage of drawn water decreases over time. The Mishnah rules that immersion becomes valid once less than three log of the original drawn water remain in the pit. How do we know when that happens? How do we compute it?

The standard assumption among the commentators is that water entering the pit mixes uniformly with what is already there. Practically, this means a slow process in which the inflow is sufficiently weak, allowing time for thorough mixing throughout the volume. If that is the case, the water exiting the pit will contain the same proportion of drawn water as the pit’s current composition.

The Beit Yosef (Yoreh De’ah end of the relevant siman) brings two interpretations in the name of the Ra’avad for how to apply the Mishnah’s phrase “until it is calculated”:

  1. Full mixing (proportional outflow): We assume perfect mixing. At any moment, the water exiting contains a fraction of drawn water equal to the fraction in the pit. Under this view, if initially the pit contains 40 se’ah of drawn water, the pit remains invalid “until it is calculated” that the proportion has dropped to less than three log. A common way this was computed yields a number like 12,760 se’ah that must pass through(!), since as water flows in and out, the original 40 se’ah are diluted until only 1/8 se’ah (= 3 log) remain.

  2. “Half-and-half” outflow: Alternatively, because the water that entered most recently is closer to the outlet, the outflow is taken as half from the drawn water and half from the natural water (a very arbitrary assumption). Under that assumption, after a certain moderate volume has entered and left, the remaining water is essentially from the channel and the mikveh is valid.

The first interpretation assumes perfect mixing. While not a realistic description, as a first-order approximation for slow processes it can be acceptable. One can even view it as an estimate of the average proportion of drawn water (early on the outflow contains a high percentage of drawn water; later very little).

A mathematical model

Modern calculus (differential and integral) was developed precisely for such questions. For simplicity, I continue to assume a slow inflow—i.e., thorough mixing in the pit. Without that assumption an explicit calculation becomes extremely complicated and would require simulations; still, as noted, this assumption is the one commonly used by the commentators and poskim (the first Ra’avad reading). Let us examine the quality of the Beit Yosef/Ra’avad calculation under this assumption.

Let the channel’s flow rate be V se’ah per hour. Denote by P(t) the amount of drawn water (in se’ah) in the pit at time t. The pit’s total volume is 40 se’ah. At the beginning (t = 0) the drawn water is P(0) = 40.

Over a tiny time interval dt, the amount that exits is V dt (equal to what enters, since the volume stays constant). Because mixing is uniform, the fraction of drawn water in the outflow equals P/40. Hence the drawn water lost during dt is (P/40)·V dt. Therefore:

dP = − (V/40) · P · dt, i.e., dP/dt = −(V/40)·P.

The solution is the familiar exponential:

P(t) = 40 · e^{−(V/40)·t}.

We ask for the time t₀ when the remaining original drawn water equals 3 log = 1/8 se’ah:

40 · e^{−(V/40)·t₀} = 1/8t₀ = (40/V) · ln(320)230/V.

To get a sense of scale: 1 se’ah is ≈ 8.3 liters (R. Ḥayim Na’eh) or ≈ 14.3 liters (Ḥazon Ish). A reasonable channel flow might be about 1 se’ah/minute (like a bathtub tap). Then t₀ is about 230 minutes—just under four hours. In that time about 230 se’ah have entered and left. Notice this result (≈ 230) holds for any flow rate (with 40 se’ah initial volume), because the required inflow volume equals V·t₀ = 40·ln(320) ≈ 230. For a different initial amount P₀, the formula is Inflow = P₀ · ln(P₀ / (1/8)).

Comparison

We can now compare this precise calculation (under the same assumptions!) with the Ra’avad/Beit Yosef arithmetic used by many. The common “full mixing” calculation found there requires on the order of 12,760 se’ah to pass through, whereas the precise result is ≈ 230 se’ah. The gap is not 55%—nor 555%—but about 5,500% (a factor of ≈ 55!).

Since we do not usually know how much water has passed through, time is a more sensible yardstick. In terms of waiting time, the Ra’avad-type computation multiplies the required waiting by ≈ 55. With a slow channel, that becomes an astronomically long wait; the pit’s water might evaporate before then.

A meta-halakhic look: what follows?

We saw that even the “precise” computation rests on unrealistic assumptions (very slow flow). So the comparison here is not between an exact result and an approximation, but between two ways of approximating the same situation. Yet the gap is dramatic. Here the Ra’avad’s method happens to be stringent; but it could just as well have been lenient by a huge factor. A stance that mechanically follows his arithmetic would—by chance—invalidate immersions for the scrupulous in cases where in fact the mikveh is already valid; conversely, in other scenarios it could lead to unwarranted leniencies.

In practice, if someone immersed once the criterion was truly met (less than three log of the original drawn water remain), do we worry that, given reliance on a crude calculation, perhaps more than three log remained? Typically, halakhah does not demand laboratory-grade checks (e.g., insect inspection with microscopes). The law is built upon reasonable estimates, not retrospective metaphysical anxieties. Still, the question of how much “control” poskim have over the metaphysical status remains (what about “timtum ha-lev,” etc.?).

Every calculation rests on assumptions; halakhic rulings likewise rest on assumptions. That is not a defect (scientific computations are always assumption-laden too; one chooses workable assumptions and estimates the error). Our issue here, however, is not the assumptions but the technique of computation. We assumed slow flow and full mixing, as did the Ra’avad. The difference lies in the mathematics used to implement that very assumption. We are not tweaking π in its tenth decimal place; we are talking about a factor of ~55 in the bottom line—whether we must wait until the equivalent of six entire pits of water have flowed through, or merely a fraction of one pit. That is an enormous, manifest error, not a tolerable approximation. Is such an error halakhically acceptable?

A note on consulting experts

For the Ra’avad and Beit Yosef one can argue “the Almighty does not exact beyond one’s means”: given the tools of their day, this is the calculation expected. But today we have better mathematical and scientific tools. Is it not reasonable to expect a contemporary posek to reach a different answer here?

Elsewhere (see cols. 325–326) I discussed cases of p’sik reisha: dragging a bench on Shabbat when it is uncertain whether a furrow will form (that is aino mitkaven), versus closing a box when one is unsure whether a fly is inside (some Acharonim saw that as a “retroactive certainty” and a biblical doubt). I explained the difference between an ontic uncertainty (ambiguity in reality itself) and an epistemic one (lack of knowledge). Even if an expert could often tell in advance, halakhah typically does not require recourse to experts for every act. Still, there are many areas where we do routinely consult experts (medicine, electricity on Shabbat, etc.). In our case—determining the status of a mikveh—there seems no reason not to obtain an expert’s opinion. The mathematics needed here is modest; a first-year student can handle it. This is consultation, not outsourcing halakhah.

“Common-sense” (ba’al-batim) halakhah and its limits

I once wrote (end of col. 397) about “grama solutions” for Shabbat devices: even if internally the mechanism is engineered as grama, to the ordinary eye there is a switch that turns on a machine; halakhah is not determined by microscopic inner processes but by the reasonable layperson’s perspective. One could adopt that stance while still insisting that, for insects, we check under a microscope; or that for our mikveh dilution we compute with maximal scientific precision. I will not expand on this here, only note that the perspectives can diverge across contexts.

Two related anecdotes illustrate the value of cross-disciplinary literacy. Prof. Shimshon Frankenthal told us of a U.S. case: by federal law, when two states transmit something to each other via a third state, they must pay the transit state—if it passes through wires. State A sent electricity to State C via State B. State B sued, claiming the electricity passed “through cables.” The defense brought a physicist who explained (citing the Poynting vector) that the power flows around the wire in the electromagnetic fields, not inside the metal; hence, they argued, it did not pass “through wires.” This is nonsense: the Poynting formulation is a dual description equivalent to current in the conductors; legally, the statute clearly meant transmission by wire, not via empty space. Yet a judge could be swayed by expert jargon. (See related.)

Similarly, an avrech once asked me whether glass is a liquid or a solid, having read that physicists sometimes call glass a liquid. For the laws of cooking on Shabbat, glass is a solid (dry, not “wet”). Physicists label it “amorphous” (non-crystalline), but that scientific classification does not answer the halakhic question. Again, without some literacy, a posek might take an expert’s statement out of its proper context.

Even in our mikveh case one might argue halakhah asks for a “ba’al-batim” perspective rather than a professional scientific one. But even within the “common-sense” assumptions (full mixing, slow flow), the computation should be done with the appropriate mathematics; here modern calculus gives the correct implementation of those very assumptions.

What will poskim actually do?

Independent of what halakhah ideally demands, what will a typical posek do in practice? I suspect he will rely on the Ra’avad’s calculation—probably the first interpretation, since it is stringent—and will likely not think to consult a physicist or mathematician for a more accurate computation. “What was good for the Ra’avad is good for us.”

We can, of course, debate meta-halakhically what the Almighty expects. But does the posek even raise both sides and consciously choose one? I doubt it. My claim is not that the conservative or less-educated posek is wrong, but that his horizon of deliberation is narrow; he may not realize that he has made a meta-halakhic choice that changes outcomes by orders of magnitude.

What if the Ra’avad’s arithmetic had been plainly wrong even by the standards of his day? I suspect many would still follow it, on the premise that a Rishon “cannot be mistaken” (Spirit of Sanctity, Providence, and so on), and that we dare not impugn the early authorities. This seems far less plausible. The recurrent protests about “casting aspersions on the Rishonim” have always struck me as misplaced. We are required to work with what is accessible to us, just as they did with what was accessible to them. Should someone today be considered “coerced” because in the days of Ḥazal there were no cars? Adopting a Rishon’s halakhic premises is one question (and even that is hardly necessary in my view); adopting their mathematics and science is quite another.

We often assume that conservatism is “safer,” i.e., less prone to error. Here is a counterexample: conservatism leads to massive halakhic mistakes, where stringency becomes leniency and vice versa (see also col. 503 for a case where pluralism was more stringent than monism, again against common intuition).

Back to breadth of horizons

A posek who clings to the Ra’avad’s arithmetic in such questions reaches halakhic errors—not necessarily identical to being factually wrong, but in today’s context they are errors. Although at the outset I wrote that a posek or scholar need not be a professional in mathematics, and therefore this mikveh example is not a perfect illustration for the previous column, it nevertheless has bearing on it. One does not need advanced expertise here, but one does need breadth of horizons: acquaintance with mathematics, recognition of its role, awareness of the meta-halakhic questions raised, and the readiness (and ability) to consult experts.


References mentioned in passing: here; here; here; and cols. 325–326, , and related.

21 תגובות

  1. Why is it unreasonable in your opinion to adopt the halakhic assumptions of the Rishonim? You wrote in the comments to the previous column that because of their proximity to the source, they have an advantage over us.

    1. Because it doesn't seem like the tradition they received guided them here. It's about applying common sense to a mathematical problem.

  2. Maybe the Rabbi also understands that it is possible to dilute in parts. If there are 40 Sa in the pit, then each flow of 40 Sa dilutes the pumps in the pit by half (this is how you understand the Rabbi), and a total of 9 dilutions will be required, which is 360 Sa. And each flow of 1 Sa dilutes the pumps in the pit by 1/40 and a total of 234 dilutions will be required, which is 234 Sa. The differential equation does a continuous dilution, and in the Rabbi you did a discrete dilution in one stroke, but even the Rabbi (with simple arithmetic and with his explanation that comes out by arithmetic) could use discrete dilutions in several strokes. What do you think? By the way, it is interesting to check whether compound interest (non-Jews) dealt with the number of discounting steps even without reaching continuous discounting with an exponent.

    1. I understand that you mean the second interpretation of the rab’d? So, the gist is missing from the book. In any case, it is of course a reasonable approximation as you get closer to the sequence (the smaller the portions).
      I didn't understand the question about compound interest.

      1. I'm talking about the first interpretation that comes out according to calculation. Just because you did it in one stroke requires an astronomical amount of water. But the division of the water that goes into several strokes can be chosen according to convenience. To me, this doesn't seem like a far-fetched interpretation in the words of the Rabbi. Like Ishurita Debbi Rabbi Bendarim 10 who understood the idea of taking a part and then a part of the part.

        Regarding compound interest, I was just wondering. The discounting of compound interest (in how many strokes to calculate and accumulate the annual interest) is seemingly a parallel problem, since there too, in each stroke, you multiply by a fixed ratio (one plus the annual interest divided by the number of strokes), and increasing the number of strokes (and correspondingly decreasing the interest in each stroke) accelerates the increase until at the limit of the continuous there is an exponent. And so here too, with each beat, one multiplies by a fixed ratio (which is the dilution ratio) and increasing the number of beats (and correspondingly decreasing the amount of water with each beat) accelerates the decline until at the limit of the continuous there is an exponent. But such matters of interest are general and much more common than dealing with the amma that flows into the mikveh, and therefore it may be possible to test the state of understanding in the field through the question of interest.

        1. The connection to compound interest is clear, I just didn't understand the question. What is there to understand here? It is clear that compound interest in the limit is an exponent, and the smaller the step, the closer you get to it. What is there to check there?

          1. Just historically check the arithmetic skill in the general and Jewish world on the matter.

        2. As far as I understand, the words of the Rabbi were not understood here properly and this can be proven from the second way that the Rabbi wrote.
          The Rabbi writes in the second way that the water comes out half-way because the water that arrived last is closer to coming out of the pit, meaning from his words that according to this way the water that enters from the aqueduct takes a larger share of the water that comes out of the pit than the water in the pit, whereas in the first way where the water is mixed the water that enters from the aqueduct does not have a larger share of the water that comes out, according to this it should have been that according to the second way a much larger amount of water would be required to enter the pit than according to the first way, but according to the calculation you presented, the second way requires much less water to enter from the aqueduct, which is not heard at all from the words of the Rabbi!
          Therefore, it seems clear to me that the Rabbi intended a calculation that is divided into small units of water and not a calculation of all the water at once. If we consider this way, even without resorting to differential calculation, we will come to the conclusion that in the first way we will arrive at a much smaller amount than you presented in your words, and in the second way we will need more water coming from the aqueduct than in the second way, because every small unit of water that enters the cistern, half of it comes out and half mixes with the water in the aqueduct, so that in the next unit of water that comes out of the cistern, half of the water will be from the aqueduct and half of the water will be from the water in the aqueduct that has already begun to mix with the water in the aqueduct, and so on.
          I hope that my words will be understood properly, because in my opinion, this is the simple understanding of the Rabbi's words.
          Thank you for the insightful columns and Shabbat Shalom!

          1. Hello. This suggestion has already been raised at Tirgitz (at compound interest), and I wrote that I don't think that's what the Rabbi meant.

            1. Good week!
              I really see that this suggestion has been raised, but I think I have pretty much proven it from the second way that the Rabbi proposed, you did not address the proof I provided, if the Rabbi really did not mean what I said then it would be very incomprehensible how it is possible that in the second way in which the Rabbi writes that the water coming from the aqueduct is closer to going out, we would need much less water from the aqueduct than in the first way.
              Anyway, thanks for the response.

              1. I understand your point, but the phrase "half by half" is very clear, and if he meant otherwise, he should have said so. What you are proposing is much more complex than Tirgitz's proposal, since according to you, each part that comes out consists of half of the water from the aqueduct and half of the water from the cistern that is already mixed with the aqueduct. All of this is missing from his words.

  3. Apparently this is a question that can be tested empirically even in the early days, without calculation.
    Dilute paint with water in a ratio of 3 login to 40 sa in a glass.
    Take colored water and put it in a small hole (a hole in the table). Mark a water well and wait for the color of the water to become the same as the color of the water in the glass.
    No?

  4. Thank you very much for the wonderful column. I am in the middle of studying mikvahs and just today I started this topic (in my language: private supervision). But I don't understand why you think that the Rabbi is not according to what you wrote? The Rabbi says that we assume that the water comes out according to calculation, but he never said that the way to calculate is as you put it. All he meant was the slow process and that the water mixes in the same way that you also assume, but of course they always think as you wrote. The truth of things is nothing new and I don't know why you are attacking all the poskim who would not even think that the Rabbi's calculation is incorrect and would not have asked the expert, etc., etc., while the poskim definitely insisted on it. The Sh”ach Yo”d R”a Sk”u does understand the opinion of the Rav”d as you wrote, but the rabbi Mikvaot Tanina 5 Sk”d-E wrote that his words are very puzzling to him and he admits with a bowed head: “We do not know a precise calculation”. He would certainly have been willing to hear from an expert what his opinion was (and it should not be difficult, then, what use is there to us from the words of the Rav”d if we do not know a precise calculation, because there are things that can be clearly determined, for example, when there were people being pumped in a pit and they entered, most of the people who pumped must have come out, as the rabbi said there.)

    More than that. It seems to me that you mixed up two things. A. That the HaRabbad's calculation (in your opinion) is incorrect. So what is the calculation? Any person with a brain in their right mind understands that it is impossible to calculate according to the Shach's words because it is clear that more water comes out of the water that was already in the pit, but we do not know a precise calculation like the Chazon Ish wrote and for that we need your mathematical model. Therefore, according to your understanding of the HaRabbad's opinion, he did make a mistake in knowledge that was already known at the time.

    (By the way, maybe you could explain to me what the Chazon Ish means in the painting he painted there?)

    1. I did not go into the commentators, as this was just an example. I am also not familiar with their statements on this. Now to your words.
      This is naivety. If the Rabbi had meant this, details about the calculation should have been given. As such, a suggestion by Tirgitz came up above regarding the Rabbi's intention, ah.
      I did not write that all the poskim would accept the Rabbi, but that many of them would do so.
      I was talking about the poskim of our time, not about the sheikh and his ilk.
      The entire calculation is clearly incorrect. Therefore, there will always be questions about the calculation. The question is how to do the calculation given the assumptions. Therefore, questions about the method of calculation are irrelevant.
      And where you came from: did the prophet himself turn to a mathematician?

      1. Maybe he did, maybe he didn't. I don't know if he wrote the report to the mikvahs in Kosovo or Bnei Brak, and if he had the opportunity to consult an expert. As someone who does appreciate the prophet, I can ask you why he really didn't consult an expert? It's not that he thought the Rabbi was right and what was good for the Rabbi is good for us, he certainly agrees with what you wrote that we shouldn't calculate according to the Shach's words (and his words are very puzzling), but he wrote that he had no way of knowing the exact calculation, so why didn't he ask someone who does know the exact calculation? Did it not occur to him that there are mathematicians in the world? Or did he think that mathematics is at the same point it was at in the days of the prophet Makandya? (from whom the prophet drew his knowledge of mathematics)

        1. The way of the prophet in studying the Torah was also like this among the commentators of the Gemara themselves - that is, after reviewing the Gemara of Rambam and some well-known first and last rabbis, he would raise difficult questions and often remain in doubt, or would justify his interpretation, but he would not "turn to experts in Talmud" and halakha who often explained in their books what was difficult for the prophet [the complete opposite of the way of Rabbi Ovadia Yosef, for example] - and he noted this in his letters that it was not his way to rummage through the archives looking for answers, - all of this is mainly for commentaries that do not touch on the actual halakha in the case before him.

          Therefore, it is not a question of why he did not turn to a mathematician to explain the HaRava or the Mishnah to him, because in his opinion this was not required of him by the law of Torah study and therefore he did not do so.

          The situation is different regarding questions that came to his attention. If I am not mistaken, the prophet consulted with doctors and so on.

          Other poskim, such as the Gershwin Auerbach, as far as I know, consulted with experts on electricity and so on. Even if the matter did not concern a practical ruling at that moment.

          Personally, I find the path that Rabbi Michi suggests also in learning that does not concern the practical. If they precede the introductions to the issues with current research and studies, this will add to the understanding and clarity of the issue.

          Even if the conclusion remains the same as the explanation of the first who did not follow innovative paths. [As I saw on the subject of DNA testing, many jurists believe that it should not be used to permit bastardy or determine bastardy, etc., even though doctors claim that it is 99% accurate – because we only have the words of Chazal] But at least there will be a spatial perspective.
          But the way of the Chazal is not like this not because of “external wisdom” but what is included in the obligation of the Talmud Torah.

          1. Your words are correct that he did not consult an expert because he did not rule on the Halacha here. But I did not understand all of his reasoning, as it was not his custom to search the answers, contrary to Gera Yosef, etc. The reason he did not search the answers is because he was not so interested in what they thought (what does Mikhi say? It is worth reading their words, just to make sure I did not miss anything) and the method of the prophet was not to collect all the methods and list them and decide which method was listed by the majority of the books (including Netei Gabriel and the rulings on the answers). What is the connection between this and the fact that he did not inquire with an expert in the HaRabbad who calculates by calculation and he agrees that the method of calculation that the Shach wrote is incorrect?

  5. You could say that you tried to interpret the words of the Rabbi. There is no need to understand the words of the Rabbi as you explained, he simply gives two basic assumptions for the quantity that comes out of the pit, a relative quantity or an equal quantity, but he does not provide a way of calculation, only uses the mishnaic language "until he calculates". The rest is your interpretation, which seems to be mistaken.

  6. Now I saw that in Hagyon 4 (Studies in the Thinking of the Sages of Jerusalem 2009) p. 113 ff. there was an article in which it was claimed that the intention of the Rav is as you say [understanding the Shaykh] and that the correct calculation is the differential calculation, and in Hagyon 5 (Jerusalem 2009) p. 151 Eliyahu Beller wrote in response to this: “In truth, there is no basis for interpreting […] in the first way of the Rav, neither according to the language of the Rav nor according to common sense. It is clear that the ratio between the amount of the first water pumped and the rainwater from the aqueduct changes every moment, and therefore the ratio between the types of water that come out must also change accordingly, and in the words of the Chazon Ish (on the words of the Rav): “And if we assume according to the calculation … Every hour the kosher increase and the impermissible decrease. Moreover: from the continuation of the words of the Rab'd there is a decisive answer against the understanding of the Knesset. (Ayyyy) […] But of course the “calculation” of the Rab'd takes into account the ratio that changes every moment, as the Knesset does in their "revised interpretation” with the help of a differential equation. Of course, at the time of the Rab'd the differential calculus had not yet been developed, and therefore it turns out that the Rab'd meant a discrete calculation with units of water that are small in relation to the amount of water in the cistern. For example: […] ” Ayyyy.

Leave a Reply

Back to top button