Shulchan Arukh, Orach Chayim Siman 389
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 Non-Jew who has a window opening to an alleyway. Containing 1 paragraph. A non-Jew who lives in an alleyway and has a back window of his house opening to a field or yard—even if it is only four by four handbreadths—does not prohibit the residents of the alleyway [from carrying], even if he brings in and takes out camels and wagons through the alleyway all day long. For he prefers the opening in back that is open to him alone, which has air, and his opening to the alleyway is as if he does not regularly use it, so he does not prohibit. This applies when the field or yard is more than two se'ah in area. But if it is only two se'ah, it is small and he is not satisfied with it. A Jew who has an opening to an alleyway and a back opening to a yard, and he forgot and did not make an eruv: if the yard is more than two se'ah, he prohibits, since it is not suitable for him and he does not withdraw from the alleyway. But if it was enclosed for dwelling, even if it is more than two se'ah, he does not prohibit, since it is suitable for him. And there are those who say that on the contrary: if it was enclosed for dwelling, even if it is two se'ah, he prohibits, since when it is enclosed for dwelling it has no air and he does not want to withdraw from the alleyway on its account.