Daily Mishnah · Techie Talmid · On-Ramp
Mishnah Chullin 11:1-2
Problem Statement – The "Bug Report" in the Sugya
Alright, fellow code-slingers and wisdom-seekers, buckle up! We've got a fascinating system design challenge on our hands, courtesy of Mishnah Chullin 11:1-2. The core "bug report" we're debugging today is: How do we accurately determine the conditions under which the mitzvah of Reishit HaGez (first sheared wool) applies, and what are the specific parameters and minimum thresholds?
It seems like a straightforward data input/output scenario, right? Give wool, get mitzvah. But like any good piece of legacy code, this sugya has layers of conditional logic, edge cases, and differing interpretations that require careful parsing. We're not just talking about a simple if-then statement. We're dealing with a whole suite of parameters that can influence the outcome: location (Eretz Yisrael vs. Diaspora), Temple presence, animal type, number of animals, and even the quality and quantity of the wool itself.
The mishnah presents us with a set of rules, but then immediately introduces variations and stricter conditions, comparing Reishit HaGez to the mitzvah of the foreleg, jaw, and maw. This is like discovering that your initial API endpoint has several overloaded versions, each with slightly different input requirements and return values. We need to map out these dependencies and constraints to ensure our system correctly identifies when an obligation is triggered. Failure to do so could lead to a system malfunction – either fulfilling a mitzvah unnecessarily or, chas v'shalom, failing to fulfill it when required. Our goal is to build a robust, exception-handling algorithm that can navigate these complexities.
Full Experience in the App
Listen. Chat. Go deeper.
Audio playback, interactive chevruta, Hebrew tools, and every daily learning track — only in Derekh Learning.
Text Snapshot
Here are the key lines from Mishnah Chullin 11:1-2 that form the basis of our system logic:
Mishnah 11:1:
- "The first sheared wool of your flock [tzonekha] shall you give him" (Deuteronomy 18:4), applies both in Eretz Yisrael and outside of Eretz Yisrael, in the presence of the Temple and not in the presence of the Temple, and with regard to non-sacred animals. But it does not apply to sacrificial animals.
- There are more stringent elements in the mitzva of the foreleg, the jaw, and the maw [...] than in the halakha of the first sheared wool in that the mitzva of the foreleg, the jaw, and the maw applies to cattle and to sheep, as it is written: “Whether it be ox or sheep, that he shall give unto the priest the foreleg, and the jaw, and the maw” (Deuteronomy 18:3); and it applies to numerous animals and to few animals.
- But by contrast, the mitzva of the first sheared wool applies only to sheep and not to goats and cattle, and applies only to numerous animals.
- And how many are numerous? Beit Shammai say: It is at least two sheep, as it is stated: “That a man shall rear a young cow, and two sheep [tzon]” (Isaiah 7:21), indicating that two sheep are characterized as tzon; and the mitzva of the first sheared wool is written using the term “your flock [tzonekha].”
- And Beit Hillel say: It is at least five sheep, as it is stated: “And five sheep [tzon] made” (I Samuel 25:18).
- Rabbi Dosa ben Harkinas says: When shearing five sheep, the sheared wool of each sheep weighing one hundred dinars each and half [peras] of one hundred dinars each, i.e., one hundred and fifty dinars each, are subject to the obligation of the first sheared wool, i.e., they render the owner obligated to give the first sheared wool to the priests.
- And the Rabbis say: Any five sheep, each of whose sheared wool weighs any amount, render the owner obligated in the mitzva.
Mishnah 11:2:
- And how much of the sheared wool does one give to the priest? One gives him sheared wool of the weight of five sela in Judea, which are the equivalent of ten sela in the Galilee, as the weight of the Galilean sela is half that of the Judean sela.
- Furthermore, although one may give the wool to the priest without laundering it, this must be the weight of the wool once laundered and not when sullied, as is characteristic of wool when sheared.
- The measure that must be given to the priest is enough to fashion a small garment from it, as it is stated: “Shall you give him” (Deuteronomy 18:4), indicating that the sheared wool must contain enough for a proper gift.
- If the owner of the shearing did not manage to give it to the priest until he dyed it, the owner is exempt from the mitzva of the first sheared wool, as this constitutes a change in the wool by which means he acquires ownership of it. If he laundered it but did not dye it, he is obligated to give the first sheared wool, as laundering does not constitute a change in the wool.
- One who purchases the fleece of the sheep of a gentile is exempt from the obligation of giving the first sheared wool to the priest.
- With regard to one who purchases the fleece of the sheep of another Jew, if the seller kept some of the wool, then the seller is obligated to give the first sheared wool to the priest. If the seller did not keep any of the wool, the buyer is obligated to give it.
- If the seller had two types of sheep, gray and white, and he sold the buyer the gray fleece but not the white fleece, or if he sold the fleece of the male sheep but not of the female sheep, then this one, the seller, gives the first sheared wool for himself to the priest from the wool that he kept, and that one, the buyer, gives the first sheared wool for himself to the priest from the wool that he bought.
Flow Model – The Decision Tree of Reishit HaGez
Let's visualize the application of Reishit HaGez as a recursive decision tree. Each node represents a condition, and the branches represent the possible outcomes.
START: Processing Shear Event
│
├─── Is the animal sacred (קדשים)?
│ ├─── YES: EXEMPT (Mishnah 11:1)
│ └─── NO: Proceed...
│
├─── Is the animal a sheep (כבש/רחל)?
│ ├─── NO (e.g., goat, cow): EXEMPT (Mishnah 11:1)
│ └─── YES: Proceed...
│
├─── Are the sheep "numerous" (רבות)?
│ ├─── Beit Shammai Logic:
│ │ ├─── Count >= 2 sheep?
│ │ │ ├─── YES: Proceed...
│ │ │ └─── NO: EXEMPT
│ │ └─── (Implicitly, if count < 2, it's not numerous)
│ ├─── Beit Hillel Logic:
│ │ ├─── Count >= 5 sheep?
│ │ │ ├─── YES: Proceed...
│ │ │ └─── NO: EXEMPT
│ │ └─── (Implicitly, if count < 5, it's not numerous)
│ └─── (Defaulting to the stricter interpretation for now, or requiring disambiguation)
│
├─── (If Beit Hillel's 5 sheep are met) Minimum Wool Weight per Sheep (Rabbi Dosa vs. Rabbis)?
│ ├─── Rabbi Dosa Logic:
│ │ ├─── Is each sheep's wool >= 100.5 dinars?
│ │ │ ├─── YES: Proceed...
│ │ │ └─── NO: EXEMPT (for this specific calculation, but potentially still obligated if Rabbis' view applies)
│ │ └─── (Note: This is a condition for *individual* sheep, not the total flock)
│ ├─── Rabbis Logic:
│ │ ├─── Does the total wool from the 5+ sheep meet the minimum gift amount?
│ │ │ ├─── YES: Proceed...
│ │ │ └─── NO: EXEMPT
│ │ └─── (Note: This seems to be the primary check for the *total* obligation based on quantity)
│ └─── (Need to reconcile these views or apply a hierarchical check)
│
├─── Have you processed the wool?
│ ├─── Dyed?
│ │ ├─── YES: EXEMPT (Mishnah 11:2)
│ │ └─── NO: Proceed...
│ ├─── Laundered?
│ │ ├─── YES: Proceed...
│ │ └─── NO: Proceed (Laundering itself doesn't exempt, but unsullied wool is the baseline)
│
├─── What is the FINAL state of the wool?
│ ├─── Is it laundered AND not dyed? (Implies it's in a state that can be given)
│ │ ├─── YES: Proceed to check minimum gift weight...
│ │ └─── NO: (If dyed, already exempted. If unsullied and unlaundered, the Rabbis' view on "any amount" might still apply if other conditions met)
│
├─── What is the minimum gift weight?
│ ├─── Is the location Judea?
│ │ ├─── YES: Minimum gift weight = 5 *Sela* (Judean)
│ │ └─── NO (Galilee): Minimum gift weight = 10 *Sela* (Galilee, half weight)
│
├─── Does the available laundered wool meet the minimum gift weight?
│ ├─── YES: OBLIGATED to give *Reishit HaGez*
│ └─── NO: EXEMPT
│
├─── Special Case: Purchased Fleece?
│ ├─── Purchased from a gentile?
│ │ ├─── YES: EXEMPT (Mishnah 11:2)
│ │ └─── NO: Proceed...
│ ├─── Purchased from a Jew?
│ │ ├─── Seller kept some wool?
│ │ │ ├─── YES: Seller is OBLIGATED (Mishnah 11:2)
│ │ │ └─── NO: Buyer is OBLIGATED (Mishnah 11:2)
│ │ └─── (Consider sub-cases of specific types sold/kept, like gray/white, male/female)
│
└─── END OF PROCESSING (Output: Obligated/Exempt, and specific requirements if applicable)
This tree represents the core logic. We're looking for the path that leads to "OBLIGATED." Any branch that explicitly states "EXEMPT" terminates that particular pathway. The disagreements between Beit Shammai/Hillel and Rabbi Dosa/Rabbis introduce branching within the "numerous" and "weight" nodes, requiring a resolution strategy.
Two Implementations – Algorithm A vs. Algorithm B
Let's examine how the Rishonim (early commentators) and Acharonim (later commentators) implement the logic of Reishit HaGez. We'll frame this as two different algorithmic approaches.
Algorithm A: The Rishonim's Modular Approach (e.g., Rambam)
The Rambam, in his commentary, tends to break down the halakha into distinct, often self-contained modules. He prioritizes clarity of the operative law, sometimes streamlining the textual nuances for practical application.
Core Function:
DetermineReishitHaGezObligation(animalType, ownership, location, TemplePresence, numAnimals, woolQuantity)Key Modules/Subroutines:
CheckGeneralApplicability(animalType, ownership, TemplePresence):- Input:
animalType(sheep/goat/cattle),ownership(sacred/non-sacred),TemplePresence(yes/no). - Logic:
- If
animalTypeis not sheep,return EXEMPT. (Based on "only to sheep" in Mishnah 11:1). - If
ownershipis "sacred,"return EXEMPT. (Based on "not to sacrificial animals" in Mishnah 11:1). - If
TemplePresenceis "yes" or "no," andlocationis "Eretz Yisrael" or "Diaspora," these areAPPLICABLEconditions. (Mishnah 11:1 states it applies in all these scenarios).
- If
- Output:
APPLICABLEorEXEMPT.
- Input:
CheckNumericalThreshold(numAnimals, interpretiveSchool):- Input:
numAnimals(integer count),interpretiveSchool(Beit Shammai/Beit Hillel). - Logic:
- If
interpretiveSchoolis Beit Shammai:return (numAnimals >= 2). - If
interpretiveSchoolis Beit Hillel:return (numAnimals >= 5).
- If
- Output:
TRUE(numerous) orFALSE(not numerous). Note: The Rambam's practical ruling often follows Beit Hillel as the stricter, accepted view.
- Input:
CheckWoolQualityAndQuantity(shearedWoolData, interpretiveSchool):- Input:
shearedWoolData(e.g., weight per sheep, total weight),interpretiveSchool(Rabbi Dosa/Rabbis). - Logic:
- If
interpretiveSchoolis Rabbi Dosa: Check if each of thenumAnimals(if >= 5) has wool weighing >= 100.5 dinars. This is a conditional check per sheep. If this condition fails for any sheep, it might imply exemption under that specific condition. - If
interpretiveSchoolis Rabbis: Check if the total available laundered wool meets the minimum gift amount. This is a check on the aggregate.
- If
- Output:
SUFFICIENTorINSUFFICIENT. Note: The Rambam's approach often emphasizes the Rabbis' view for the overall obligation, focusing on the total amount needed for the gift.
- Input:
CheckGiftWeightRequirement(woolWeight, location):- Input:
woolWeight(in laundered units),location(Judea/Galilee). - Logic:
judeanSelaWeight = 5galileeSelaWeight = 10- If
locationis Judea:minRequiredWeight = judeanSelaWeight. - Else (
locationis Galilee):minRequiredWeight = galileeSelaWeight. return (woolWeight >= minRequiredWeight).
- Output:
MEETS_MINIMUMorBELOW_MINIMUM.
- Input:
ProcessWoolState(woolState):- Input:
woolState(e.g., "sullied," "laundered," "dyed"). - Logic:
- If
woolStateis "dyed,"return EXEMPT. (Mishnah 11:2). - If
woolStateis "laundered" (and not dyed),return APPLICABLE_FOR_WEIGHT_CHECK. - If
woolStateis "sullied" (unlaundered, undyed), it's the baseline for calculation.
- If
- Output:
EXEMPT,APPLICABLE_FOR_WEIGHT_CHECK,BASELINE.
- Input:
HandlePurchaseScenario(sellerOwnership, buyerOwnership, sellerKeptWool):- Input:
sellerOwnership(Jew/Gentile),buyerOwnership(Jew/Gentile),sellerKeptWool(boolean). - Logic:
- If
sellerOwnershipis Gentile:return BUYER_EXEMPT. - If
sellerOwnershipis Jew:- If
sellerKeptWoolisTRUE:return SELLER_OBLIGATED. - Else (
sellerKeptWoolisFALSE):return BUYER_OBLIGATED.
- If
- If
- Output:
BUYER_EXEMPT,SELLER_OBLIGATED,BUYER_OBLIGATED.
- Input:
Overall Execution Flow (Rambam-esque):
- Call
CheckGeneralApplicability. IfEXEMPT, terminate. - Call
CheckNumericalThreshold(defaulting to Beit Hillel). IfFALSE, terminate withEXEMPT. - (Implicitly, the Rambam often focuses on the Rabbis' view for quantity. If the total wool from the "numerous" sheep is sufficient to meet the gift weight, then the wool quality check is met).
- Call
ProcessWoolState. IfEXEMPT, terminate. IfAPPLICABLE_FOR_WEIGHT_CHECKorBASELINE, proceed. - Call
CheckGiftWeightRequirementwith the available laundered wool andlocation. IfMEETS_MINIMUM,return OBLIGATED. Otherwise,return EXEMPT. - Handle purchase scenarios separately if applicable.
- Call
Strengths: Clear, practical, often follows the majority or stricter opinion for definitive rulings. Modular design makes it easier to implement and understand specific halakhic conditions.
Algorithm B: The Tosafot's Integrated and Comparative Approach
Tosafot, on the other hand, excel at weaving together different textual strands, drawing comparisons, and resolving apparent contradictions. Their approach is more like building a complex graph, where connections and differences between concepts are paramount.
Core Function:
ProcessReishitHaGez(sugyaData)wheresugyaDataincludes all relevant parameters and textual sources.Key Logic Structures:
Comparative Analysis Engine:
- Input:
sugyaDatacontaining parameters for Reishit HaGez and Zevach Todah (foreleg, jaw, maw). - Logic: Explicitly compares the scope of applicability.
ReishitHaGez.AppliesTo = {Sheep};ZevachTodah.AppliesTo = {Cattle, Sheep}.ReishitHaGez.AppliesToQuantity = {Numerous};ZevachTodah.AppliesToQuantity = {Few, Numerous}.- This comparison highlights the restrictions of Reishit HaGez as a key defining feature. (Tosafot Yom Tov on 11:1:3).
- Input:
Dispute Resolution Module (with Source Tracing):
- Input:
numAnimals,woolQualityPerSheep. - Logic:
- First, establish the "numerous" threshold. Tosafot generally accept Beit Hillel's 5 (as per Tosafot Yom Tov on 11:1:4, referencing Gemara 137a).
- Then, address Rabbi Dosa vs. Rabbis. Tosafot (and the Gemara they cite) highlight that Rabbi Dosa's condition (100.5 dinars per sheep) is a specific scenario (as per Tosafot Yom Tov on 11:1:2, noting the distinction with "any amount" from the Rabbis). The primary obligation is then based on the Rabbis' view: the total gift amount must be met. Rabbi Dosa's view might be seen as a specific example or a stricter subset of the overall obligation if the total is met.
- Output: A determined obligation status, often acknowledging the differing views and their implications.
- Input:
Scriptural Interpretation Layer:
- Input:
ReishitHaGezverse (Deut. 18:4), other relevant verses (Isaiah 7:21, I Sam 25:18, Job). - Logic: Connects the term "tzon" to sheep (specifically, ewes) and the concept of a "gift" ("Shall you give him"). Tosafot Yom Tov on 11:1:4 explains why the verse "U'megz kevesai yitchamem" (Job 31:20) is used to derive applicability to sheep, and how the verse "Le'amod lesharet" (to stand to serve) is key for Reishit HaGez to indicate something suitable for priestly service. This is contrasted with other mitzvot derived from similar verses.
- Input:
"Change of Ownership" State Machine:
- Input:
purchasedFleece(boolean),sellerIsJew(boolean),sellerKeptPortion(boolean),specificWoolTypesSold(e.g., gray, male). - Logic: This is where Tosafot excel at detailed tracking.
- If purchased from gentile:
EXEMPT. - If purchased from Jew:
- If seller kept:
SELLER_OBLIGATED. - If seller did not keep:
BUYER_OBLIGATED.
- If seller kept:
- Crucially, Tosafot (and the commentary on Mishnah 11:2) add the complexity: If specific types of wool were sold (e.g., gray but not white), the seller is obligated for the kept wool (white), and the buyer is obligated for the purchased wool (gray), each for themselves. This implies a need to track obligations independently based on what was transferred and what was retained. This isn't just a simple buyer/seller switch; it's an assignment of obligation based on ownership segmentation.
- If purchased from gentile:
- Input:
Wool State Transitioner:
- Input:
woolState(raw, laundered, dyed). - Logic: Similar to Rambam, but Tosafot (via Tosafot Yom Tov on 11:1:2) might connect the "dyed" exemption to a more profound concept of "acquiring ownership" or a significant alteration that removes it from its original status as "first sheared wool." Laundering is a preparatory step, not a disqualifying one.
- Input:
Overall Execution Flow (Tosafot-esque):
- Begin by defining the scope of Reishit HaGez by comparing it to Zevach Todah, noting its restrictions (sheep only, numerous only).
- Establish the "numerous" count (Beit Hillel's 5).
- Process the wool state: dyed = exempt; laundered = preparation; sullied = baseline.
- Determine the minimum gift weight based on location.
- If the total available laundered wool meets the minimum gift weight, then the obligation is generally established.
- For purchased wool, apply the state machine logic, including the crucial segmentation for specific wool types. The obligation is assigned precisely based on who retained what or acquired what.
- Acknowter all these checks, the final obligation is determined, often with nuanced explanations about why certain interpretations are favored or how disputes are resolved.
Strengths: Deep textual analysis, comparative reasoning, highlights interconnections between halakhot, and provides a richer understanding of the underlying principles.
Edge Cases – Inputs That Break Naïve Logic
A naïve system might just check for "sheep" and "wool." But our sugya is much more nuanced. Here are two inputs that would cause a simple system to fail:
Input: A single, extremely valuable sheep.
- Parameters:
- Animal Type: Sheep (כבש)
- Number of Sheep: 1
- Wool Weight per Sheep: 1,000 dinars (laundered)
- Location: Judea
- Ownership: Non-sacred
- Temple Presence: Yes
- Naïve Logic Output: Obligated. (It's a sheep, has wool, wool is valuable).
- Correct Output: EXEMPT.
- Reasoning: The mitzvah of Reishit HaGez explicitly applies only to "numerous" animals. Beit Hillel (the accepted opinion) sets this minimum at five sheep. Even though the wool from this single sheep is exceptionally valuable and would far exceed the minimum gift weight (5 sela Judean, which is roughly 60 dinars if a sela is 12 dinars, or even more depending on the dinar-to-sela ratio), the numerical threshold of "numerous" is not met. The system must first pass the count check before evaluating wool quantity.
- Parameters:
Input: A flock of 10 sheep, with a total of 5 sela (Judean weight) of laundered wool.
- Parameters:
- Animal Type: Sheep (כבש)
- Number of Sheep: 10
- Total Laundered Wool Weight: 5 sela (Judean)
- Location: Judea
- Ownership: Non-sacred
- Temple Presence: No
- Naïve Logic Output: Obligated. (It's a flock of sheep, it's numerous, it meets the minimum weight).
- Correct Output: OBLIGATED (but with a caveat/explanation).
- Reasoning: This scenario highlights the interaction between the "numerous" requirement and the minimum gift weight.
- The flock is "numerous" (10 > 5 Beit Hillel).
- The total wool does meet the minimum gift requirement (5 sela Judean).
- The critical nuance, as discussed by Rabbi Dosa and the Rabbis, is whether this total weight is derived from the "numerous" sheep in a way that triggers the obligation. The Rabbis say "any five sheep... render the owner obligated." This implies that once the "numerous" threshold is met, the total available wool is then assessed against the gift weight.
- The potential break for naïve logic: If the system only checks the individual wool weight per sheep (as Rabbi Dosa might suggest for his specific condition) and finds that not every sheep has 100.5 dinars worth of wool, it might wrongly exempt the owner. However, the Rabbis' view ("Any five sheep... weighs any amount") and the overall gift weight requirement are the primary drivers once the "numerous" count is achieved. The total available wool from the flock, if laundered and not dyed, meeting the gift weight, is what matters. The intent of the Rabbis is key: "Any five sheep... render the owner obligated in the mitzva." This implies the obligation is triggered by the existence of the numerous flock and the availability of the required gift amount from their collective shearing.
- Parameters:
Refactor – A Minimal Change That Clarifies The Rule
The biggest point of potential confusion in a system design is often the interplay between the numerical threshold and the quantity threshold. The Mishnah states Reishit HaGez applies to "numerous" animals, and then discusses both the number of animals (Beit Shammai/Hillel) and the weight of wool (Rabbi Dosa/Rabbis).
Minimal Change: Add a conditional parameter woolSufficientForGift and make its evaluation dependent on the numericalThreshold being met before assessing its sufficiency.
Refactored Logic Snippet:
def CheckReishitHaGezObligation(numAnimals, totalLaunderedWoolWeight, location, isSacred, animalType, woolPerSheepData):
# ... (Initial checks for animalType, isSacred) ...
# Step 1: Numerical Threshold Check (Primary Filter)
isNumerous = CheckNumericalThreshold(numAnimals, interpretativeSchool="BeitHillel") # Assume Beit Hillel is accepted
if not isNumerous:
return "EXEMPT (Insufficient number of animals)"
# Step 2: Wool Quality/Quantity Check (Secondary Filter, dependent on Step 1)
# This is where the Rabbis' view is primary: "Any five sheep... render the owner obligated."
# The quantitative requirement is the GIFT WEIGHT. Rabbi Dosa's is a specific condition.
minGiftWeight = GetMinGiftWeight(location) # Returns weight in dinars
# Check if the TOTAL available laundered wool meets the minimum gift weight.
# The Rabbis' view ("any amount") combined with the gift weight is the operative rule for quantity.
isWoolSufficientForGift = (totalLaunderedWoolWeight >= minGiftWeight)
if not isWoolSufficientForGift:
return "EXEMPT (Insufficient wool for gift weight)"
# ... (Handle dyed/laundered states, purchase scenarios) ...
return "OBLIGATED"
Impact: This refactor explicitly prioritizes the "numerous" animal count as the precondition for assessing wool quantity. It clarifies that the * Rabbis'* view about the total gift weight is the main quantitative requirement once the numerical threshold is met, and Rabbi Dosa's view is a more specific, potentially stricter, condition that might be analyzed separately or as a subset. This structure prevents a scenario where vast amounts of wool from a single sheep would incorrectly trigger the obligation. The system must first have the correct "dataset" (numerous sheep) before evaluating the "data points" (wool quantity).
Takeaway
The sugya of Reishit HaGez is a fantastic case study in how halakha functions like a finely tuned algorithm, with multiple conditional branches, parameter dependencies, and differing interpretations that act like competing algorithms.
- Algorithm A (Rishonim): Often provides a clean, functional implementation by modularizing the rules and prioritizing clear rulings. It's like a well-documented API where each function does one thing well.
- Algorithm B (Tosafot): Offers a deeper, more interconnected understanding by analyzing the system's architecture, comparing different halakhot as related services, and tracing dependencies back to source code (verses).
Navigating this sugya teaches us that a robust system doesn't just check individual conditions; it understands their hierarchy and dependencies. The "bug" isn't in any single rule, but in how these rules interact. By understanding the flow model, comparing the implementations, and addressing the edge cases, we can build a more accurate and comprehensive system for understanding Reishit HaGez, ensuring our mitzvot are executed with precision and knowledge. It's all about the logic, the data, and the elegant, intricate connections that make the Torah's wisdom so powerful!
derekhlearning.com