The Shulchan Aruch · Orach Chayim
אורח חיים שמ״הOrach Chayim 345
Siman 345 of 697 in Orach Chayim — 19 se'ifim
הלכות ערוביןLaws of Eruvin· siman 345
Se’if 1א׳
אַרְבַּע רָשֻׁיּוֹת לְשַׁבָּת; רְשׁוּת הַיָּחִיד וּרְשׁוּת הָרַבִּים, וְכַּרְמְלִית (פי' רַךְ מָל לֹא לַח וְלֹא יָבֵשׁ אֶלָּא בֵּינוֹנִי הֲכָא נָמֵי לֹא רְשׁוּת הַיָּחִיד לְפִי שֶׁאֵין לוֹ מְחִצוֹת, וְלֹא רְשׁוּת הָרַבִּים שֶׁאֵינוֹ דּוֹמֶה לְדִגְלֵי מִדְבָּר דְּלָאו לְהִלּוּכָא דְּרַבִּים עֲבֵדָא, רַשִׁ"י) וּמְקוֹם פְּטוּר.
There are four domains on Shabbat: the private domain, the public domain, the karmelit (meaning soft brittle: not wet or dry but in between Similarly this is not the private domain because it has no walls, but it is not the public domain as it is not similar to the flags of the wilderness because it's not a place where many people walk. Rash"i.) and a place of exemption.
Se’if 2ב׳
אֵיזֶה רְשׁוּת הַיָּחִיד, מָקוֹם הַמֻּקָּף מְחִצּוֹת גְּבוֹהוֹת עֲשָׂרָה טְפָחִים וְיֵשׁ בּוֹ ד' טְפָחִים עַל ד' טְפָחִים אוֹ יוֹתֵר, וְכֵן חָרִיץ עָמֹק עֲשָׂרָה וְרָחָב אַרְבָּעָה עַל אַרְבָּעָה. וְכֵן תֵּל גָּבוֹהַּ עֲשָׂרָה וְרָחָב אַרְבָּעָה עַל אַרְבָּעָה. הַגָּה: יֵשׁ אוֹמְרִים דְּבָעֵינָן בְּאֵלּוּ אַרְבָּעָה עַל אַרְבָּעָה הֵן וַאֲלַכְסוֹנָן, וּכְמוֹ שֶׁיִּתְבָּאֵר לְקַמָּן סי' שמ"ט (הַגָּהוֹת אֲשֵׁרִי פ"ק דְּשַׁבָּת וְתוס' עֵירוּבִין דַּף נ"א).
What is the private domain? A place surrounded by walls that are ten tefachim that is four by four, or a pit that is ten tefachim deep and four by four, or a hill that is ten tall and four by four. Rem"a: Some say that the diagonal also must be four tefachim, like we will explain below in chapter 349. (Hagahos Ashiri; Tosefos)
Se’if 3ג׳
כְּתָלִים הַמַּקִּיפִים רְשׁוּת הַיָּחִיד, עַל גַּבֵּיהֶם רְשׁוּת הַיָּחִיד אֲפִלּוּ אֵינָם רְחָבִים ד'.
The tops of walls enclosing a private domain are considered private domain even if they are not four tefachim wide.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0