Shulchan Arukh, Orach Chayim Siman 361
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
גג הסמוך לרשות הרבים בתוך י' טפחים ולמעלה מעשרה לחצר הואיל ורבים משתמשין בו הרי זה כרה"ר ואסור לבעל הגג להשתמש בו מחצירו עד שיעשה לו סולם קבוע מחצירו איזהו סולם קבוע כל שקבעו שם בין לחול בין לשבת:
A roof adjacent to a public domain — within ten handbreadths and above ten handbreadths relative to a courtyard — since the public makes use of it, it is treated like a public domain, and the owner of the roof is forbidden to make use of it from his courtyard unless he makes a fixed ladder from his courtyard. What is a fixed ladder? Any ladder that is fixed there both for weekdays and for Shabbat.
חצר שנפרצה במילואה או ביותר מי' לר"ה מקום מחיצה נידון כצידי רשות הרבים שהוא כרמלית (כמו) שהוא החצר ואם נפרץ בקרן זויות אפילו בפחות מי' אסור וכן בית שנפרץ בקרן זוית אפי' בפחות מי' ונפרץ גם הקירוי עד שישאר באלכסון אסור אבל פירצה שאינה בקרן זוית אמרינן בה פי תקרה יורד וסותם אפילו ביותר מי' והוא שלא יהא פי תקרה משופע דליכא פה: הגה וי"א דבעינן ג"כ ברוחב הקירוי ארבעה טפחים (תוס' והרא"ש פרק כיצד משתתפים וסמ"ג וטור) ואמרי' פי תקרה יורד וסותם אפי' בב' מחיצות אם יש כאן ב' מחיצות שלימות דבוקות זו בזו אבל זו כנגד זו לא: (טור)
A courtyard that was breached along its entire width or more than ten handbreadths into a public domain — the place of the former wall is treated like the sides of a public domain, which has the status of a karmelit, as does the courtyard itself. If it was breached at a corner, even less than ten handbreadths is forbidden. Similarly a house that was breached at a corner even less than ten handbreadths, and the roof was also breached until only a diagonal strip remains, is forbidden. But a breach that is not at a corner — we apply the principle that the edge of the roof descends and seals, even if the breach is more than ten handbreadths, provided the edge of the roof is not slanted, since then there is no effective edge. Rema: Some say we also require the roof to be four handbreadths wide. (Tosafot and Rosh, ch. Keitzad Mishtatfim, Semag, and Tur) We apply the principle that the edge of the roof descends and seals even with two walls, if there are two complete walls joined together — but two walls facing each other, no. (Tur)