The Shulchan Aruch · Orach Chayim
אורח חיים שנ״חOrach Chayim 358
Siman 358 of 697 in Orach Chayim — 14 se'ifim
הלכות ערוביןLaws of Eruvin· siman 358
Se’if 1א׳
כָּל הֶקֵּף שֶׁלֹּא הֻקַּף לַדִּירָה, כְּגוֹן גִּנּוֹת וּפַרְדֵּסִים וּבֻרְגָּנִים שֶׁאֵינָם עֲשׂוּיִם אֶלָּא לִשְׁמֹר בְּתוֹכָן, אָסְרוּ חֲכָמִים לְטַלְטֵל בְּתוֹכָהּ יוֹתֵר מִד' אַמּוֹת אִם הוּא יוֹתֵר מִסְאָתַיִם; אֲבָל אִם הִיא סְאָתַיִם, שֶׁהוּא שִׁעוּר ע' אַמָּה וְד' טְפָחִים עַל ע' אַמָּה וְד' טְפָחִים, מֻתָּר לְטַלְטֵל בְּכֻלּוֹ בֵּין שֶׁהוּא מְרֻבָּע בֵּין שֶׁהוּא עָגֹל אוֹ אָרִיךְ וְקָטִין, וּבִלְבַד שֶׁלֹּא יְהֵא אָרְכּוֹ יוֹתֵר מִשְּׁנַיִם בְּרָחְבּוֹ אַמָּה אַחַת; וְאִם הֻקַּף לַדִּירָה, אֲפִלּוּ יֵשׁ בּוֹ כַּמָּה מִילִין, מֻתָּר לְטַלְטֵל בְּכֻלּוֹ. הַגָּה: וְעַיֵּן לְקַמָּן סי' ת"א דִּין סְתָם עֲיָרוֹת אִי מֻקָּפוֹת לַדִּירָה. וְיֵשׁ אוֹמְרִים דִּסְתָם קַרְפִּיפוֹת שֶׁלָּנוּ מִקְרֵי מֻקָּפוֹת לְדִירָה, דִּרְגִילִים לִפְתֹּחַ פֶּתַח תְּחִלָּה וְאַחַר כָּךְ לְהַקִּיף (מָרְדְּכַי פֶּרֶק עוֹשִׂין פַּסִין). וְיֵשׁ אוֹמְרִים עוֹד דְּכָל קַרְפָּף שֶׁהוּא סָמוּךְ לְבֵיתוֹ מִקְרֵי הֻקַּף לַדִּירָה, כִּי דַּעְתֵּיהּ עִלָּוֵיהּ (הַגָּהוֹת אֲשֵׁרִי פ"ב דְּעֵרוּבִין), וְיֵשׁ חוֹלְקִין בָּזֶה. (בֵּית יוֹסֵף בְּשֵׁם תּוֹסָפוֹת).
Which Places Are Considered Enclosed for Dwelling, 14 Seifim: Regarding every enclosed area that is not enclosed as a dwelling place, like a garden, an orchard, or a shed, but is just enclosed to protect its contents, the Sages forbade carrying something more than four amot in them if it is more than two seot. However, if it is two seot big, which is seven amot and four tefachim by seven amot by four tefachim, it is permitted to carry within it, whether it is square, round, long, or wide, as long as its length is not more than twice its width. If it is enclosed for dwelling, even if it includes a few mils, it is permitted to carry within all of it. Rema: And see below chapter 401 regarding whether generic cities are enclosed for dwelling. There are some who say that generic porches are enclosed for dwelling, because generally they are built and then enclosed (Mordechai Chapter Osin Pasin). And there are furthermore those who say that any porch attached to the house is considered enclosed for dwelling, because such was his intention (Hagahot Oshr"i on Chapter 2 of Eiruvin), and some disagree (Beit Yosef in the name of the Tosafot).
Se’if 2ב׳
וּמַה נִּקְרָא מֻקָּף לַדִּירָה, זֶה שֶׁבָּנָה בּוֹ בֵּית דִּירָה אוֹ שֶׁפָּתַח לוֹ פֶּתַח מִבֵּיתוֹ וְאַחַר כָּךְ הִקִּיפוֹ. וְאִם הָיָה מֻקָּף שֶׁלֹּא לְשֵׁם דִּירָה וְרוֹצֶה לְהַקִּיפוֹ לְדִירָה אֵינוֹ צָרִיךְ לִפְרֹץ כֻּלּוֹ, אֶלָּא יִפְרֹץ בּוֹ פִּרְצָה בְּיוֹתֵר מֵעֶשֶׂר וְנִמְצָא בַּיִת פָּתוּחַ בּוֹ בְּלֹא הֶקֵּף, וְיַחֲזֹר וְיִגְדֹּר הַפִּרְצָה כֻּלּוֹ אוֹ אַמָּה הַיְתֵרָה עַל עֶשֶׂר אַמּוֹת, וְהָעֶשֶׂר אַמּוֹת פֶּתַח הֵן, וַהֲרֵי הוּא פָּתוּחַ וּלְבַסוֹף הֻקַּף. וְאִם פָּרַץ אַמָּה, וּגְדָרָהּ, וְחָזַר וּפָרַץ אַמָּה אֵצֶל מַה שֶּׁגָּדַר, וְחָזַר וְעָשָׂה כֵן עַד שֶׁהִשְׁלִימוּ לַעֲשָׂרָה, מֻתָּר. (עַיֵּן ת"ש). הַגָּה: וְאִם קָשֶׁה עָלָיו לִפְרֹץ הַכֹּתֶל, יֵשׁ אוֹמְרִים דְּיָכוֹל לְהַנִּיחַ עָפָר אֵצֶל הַכֹּתֶל מִשְּׁנֵי צְדָדֶיהָ עַד שֶׁיִּתְמַעֵט הַכֹּתֶל מִגֹּבַהּ עֶשֶׂר וְרֹחַב הֶעָפָר רָחָב מֵאַרְבַּע בְּאֹרֶךְ עֶשֶׂר אַמּוֹת בְּאֹרֶךְ הַכֹּתֶל, וְאִם אֵין בְּגֹבַהּ הֶעָפָר עֶשֶׂר אִם כֵּן הָוֵי כְּאִלּוּ פָּרַץ שָׁם הַכֹּתֶל שֶׁלֹּא נִשְׁאַר שָׁם גָּבוֹהַּ עֲשָׂרָה לְמַעְלָה מִן הֶעָפָר דְּהָוֵי כְּקַרְקָעִית הַקַרְפָּף, וְאַף אִם חוֹזֵר וְלוֹקֵחַ מִשָּׁם אַחַר כָּךְ הֶעָפָר, הוֹאִיל וּבִטְּלוּ שָׁם שַׁבָּת אַחַת. וְיֵשׁ חוֹלְקִים דְּעָפָר לֹא הָוֵי בִּטּוּל אֶלָּא אִם כֵּן אֵין עָתִיד לְפַנּוֹתוֹ לְעוֹלָם. (ת"ה סי' ע"ה הָרֹא"שׁ פ"ק דְּסֻכָּה).
What is considered enclosed for dwelling purposes? If someone built a house or an opening from his house and then enclosed the area. If it was enclosed not for dwelling and one wants to enclose it for dwelling, he doesn't need to destroy the whole wall. Rather, he should make a breach bigger than ten [amot], and then the house will be open to a non-enclosed area. Then he can return and patch up the whole wall or just leave ten open and that ten is considered an opening. This way, it was open and is now enclosed [newly, and considered enclosed for dwelling]. If he breached one amah and then patched it, and then breaks an adjacent amah and patches it, and so on until he gets to ten, this is permitted. Rema: If it is difficult for him to break the wall, some say that he can put dirt next to the wall from both sides until the wall becomes less than ten [tefachim] tall and the width of the dirt is from four amot [up] for the length of ten amot along the wall. If the dirt is not ten [tefachim] tall, it will be as if he broke the wall, because there are not ten tefachim above the ground, and it is considered the ground of the yard. Even if he returns and removes the dirt, because it was nullified for one Shabbat, [it still holds]. Some disagree, claiming that dirt does not cancel [a wall's legal status] unless one will not ever remove it (Trumat HaDeshen chapter 75, and the Ros"h first chapter of Sukkah).
Se’if 3ג׳
תֵּל גָּבוֹהַּ עֲשָׂרָה דִּינוֹ כְּקַרְפָּף.
A piece of land raised ten [tefachim] is considered an enclosed space [not enclosed for dwelling].
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0