The Rambam · Sefer Zemanim
הלכות שבת י״זSabbath 17
Chapter 17 of 30 in Sabbath — 36 halachot
Halacha 1א׳
מָבוֹי שֶׁיֵּשׁ לוֹ שְׁלֹשָׁה כְּתָלִים הוּא הַנִּקְרָא מָבוֹי סָתוּם. וּמָבוֹי שֶׁיֵּשׁ לוֹ שְׁנֵי כְּתָלִים בִּלְבַד זֶה כְּנֶגֶד זֶה וְהָעָם נִכְנָסִין בְּרוּחַ זוֹ וְיוֹצְאִין בְּשֶׁכְּנֶגְדָהּ הוּא הַנִּקְרָא מָבוֹי הַמְפֻלָּשׁ:
1 An alley that has three walls is called a closed alley. But an alley that only has two walls that are across from each other - and the people enter from this direction and exit in the one across from it - is called an open alley.
Halacha 2ב׳
הֵיאַךְ מַתִּירִין מָבוֹי הַסָּתוּם. עוֹשֶׂה לוֹ בְּרוּחַ רְבִיעִית לֶחִי אֶחָד אוֹ עוֹשֶׂה עָלָיו קוֹרָה וְדַיּוֹ. וְתֵחָשֵׁב אוֹתָהּ קוֹרָה אוֹ אוֹתוֹ לֶחִי כְּאִלּוּ סָתַם רוּחַ רְבִיעִית וְיֵעָשֶׂה רְשׁוּת הַיָּחִיד וְיִהְיֶה מֻתָּר לְטַלְטֵל בְּכֻלּוֹ. שֶׁדִּין תּוֹרָה בְּשָׁלֹשׁ מְחִצּוֹת בִּלְבַד מֻתָּר לְטַלְטֵל וּמִדִּבְרֵי סוֹפְרִים הִיא הָרוּחַ הָרְבִיעִית וּלְפִיכָךְ דַּי לָהּ בְּלֶחִי אוֹ קוֹרָה:
2 How do we permit [carrying in] a closed alley? One makes a post for it or a beam on top of it in the fourth direction, and that is sufficient for it. And that beam or that post is considered as if it closes the fourth direction and makes it into a private domain, such that it would be permissible to carry in the whole thing. For the law of the Torah is that it is permissible to carry within three partitions alone; and the fourth direction is [only] from the words of the scribes (rabbinic). So therefore, it is sufficient with a post or a beam.
Halacha 3ג׳
וְהֵיאַךְ מַתִּירִין מָבוֹי מְפֻלָּשׁ. עוֹשֶׂה לוֹ צוּרַת פֶּתַח מִכָּאן וְלֶחִי אוֹ קוֹרָה מִכָּאן. וּמָבוֹי עָקֹם תּוֹרָתוֹ כִּמְפֻלָּשׁ:
3 And how do we permit an open alley? One makes the outline of an entrance from [this open] side, and a post or a beam on [the opposing open] side. And the status of a bent alley is like an open one.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0