Foundational Texts in Judaism: Shabbat
(ב) וַיְכַ֤ל אֱלֹהִים֙ בַּיּ֣וֹם הַשְּׁבִיעִ֔י מְלַאכְתּ֖וֹ אֲשֶׁ֣ר עָשָׂ֑ה וַיִּשְׁבֹּת֙ בַּיּ֣וֹם הַשְּׁבִיעִ֔י מִכָּל־מְלַאכְתּ֖וֹ אֲשֶׁ֥ר עָשָֽׂה׃ (ג) וַיְבָ֤רֶךְ אֱלֹהִים֙ אֶת־י֣וֹם הַשְּׁבִיעִ֔י וַיְקַדֵּ֖שׁ אֹת֑וֹ כִּ֣י ב֤וֹ שָׁבַת֙ מִכָּל־מְלַאכְתּ֔וֹ אֲשֶׁר־בָּרָ֥א אֱלֹהִ֖ים לַעֲשֽׂוֹת׃ (פ)
(2) On the seventh day God finished the work that He had been doing, and He ceased on the seventh day from all the work that He had done. (3) And God blessed the seventh day and declared it holy, because on it God ceased from all the work of creation that He had done.

(א) כְּלָל גָּדוֹל אָמְרוּ בַשַּׁבָּת. כָּל הַשּׁוֹכֵחַ עִקַּר שַׁבָּת וְעָשָׂה מְלָאכוֹת הַרְבֵּה בְשַׁבָּתוֹת הַרְבֵּה, אֵינוֹ חַיָּב אֶלָּא חַטָּאת אֶחָת. הַיּוֹדֵעַ עִקַּר שַׁבָּת וְעָשָׂה מְלָאכוֹת הַרְבֵּה בְּשַׁבָּתוֹת הַרְבֵּה, חַיָּב עַל כָּל שַׁבָּת וְשַׁבָּת. הַיּוֹדֵעַ שֶׁהוּא שַׁבָּת וְעָשָׂה מְלָאכוֹת הַרְבֵּה בְּשַׁבָּתוֹת הַרְבֵּה, חַיָּב עַל כָּל אַב מְלָאכָה וּמְלָאכָה. הָעוֹשֶׂה מְלָאכוֹת הַרְבֵּה מֵעֵין מְלָאכָה אַחַת, אֵינוֹ חַיָּב אֶלָּא חַטָּאת אֶחָת:

(ב) אֲבוֹת מְלָאכוֹת אַרְבָּעִים חָסֵר אֶחָת. הַזּוֹרֵעַ. וְהַחוֹרֵשׁ. וְהַקּוֹצֵר. וְהַמְעַמֵּר. הַדָּשׁ. וְהַזּוֹרֶה. הַבּוֹרֵר. הַטּוֹחֵן. וְהַמְרַקֵּד. וְהַלָּשׁ. וְהָאוֹפֶה. הַגּוֹזֵז אֶת הַצֶּמֶר. הַמְלַבְּנוֹ. וְהַמְנַפְּצוֹ. וְהַצּוֹבְעוֹ. וְהַטּוֹוֶה. וְהַמֵּסֵךְ. וְהָעוֹשֶׂה שְׁנֵי בָתֵּי נִירִין. וְהָאוֹרֵג שְׁנֵי חוּטִין. וְהַפּוֹצֵעַ שְׁנֵי חוּטִין. הַקּוֹשֵׁר. וְהַמַּתִּיר. וְהַתּוֹפֵר שְׁתֵּי תְפִירוֹת. הַקּוֹרֵעַ עַל מְנָת לִתְפֹּר שְׁתֵּי תְפִירוֹת. הַצָּד צְבִי. הַשּׁוֹחֲטוֹ. וְהַמַּפְשִׁיטוֹ. הַמּוֹלְחוֹ, וְהַמְעַבֵּד אֶת עוֹרוֹ. וְהַמּוֹחֲקוֹ. וְהַמְחַתְּכוֹ. הַכּוֹתֵב שְׁתֵּי אוֹתִיּוֹת. וְהַמּוֹחֵק עַל מְנָת לִכְתֹּב שְׁתֵּי אוֹתִיּוֹת. הַבּוֹנֶה. וְהַסּוֹתֵר. הַמְכַבֶּה. וְהַמַּבְעִיר. הַמַּכֶּה בַפַּטִּישׁ. הַמּוֹצִיא מֵרְשׁוּת לִרְשׁוּת. הֲרֵי אֵלּוּ אֲבוֹת מְלָאכוֹת אַרְבָּעִים חָסֵר אֶחָת:

(1) A great principle they stated in respect to Shabbat: anyone who forgets the fundamental law of Shabbat and performs many labors on many Shabbatot, is liable for only one sin-offering. One who knows the fundamental law of Shabbat and performs many labors on many Shabbatot is liable for a sin-offering for each and every Shabbat. One who knows that it is Shabbat and performs many labors on many Shabbatot, is liable for every primary labor. One who performs many labors belonging to the same category is obligated for only one sin-offering.

(2) The primary labors are forty less one:sowing, plowing, reaping, binding sheaves, threshing, winnowing, selecting, grinding, sifting, kneading, baking, shearing wool, bleaching, hackling, dyeing, spinning, weaving, the making of two loops, weaving two threads, dividing two threads, tying and untying, sewing two stitches, tearing in order to sew two stitches, capturing a deer, slaughtering, or flaying, or salting it, curing its hide, scraping it [of its hair], cutting it up, writing two letters, erasing in order to write two letters [over the erasure], building, tearing down, extinguishing, kindling, striking with a hammer, [and] carrying out from one domain to another, These are the forty primary labors less one.

מתני׳ מבוי שהוא גבוה למעלה מעשרים אמה ימעט רבי יהודה אומר אינו צריך
MISHNA: If an alleyway is enclosed on three sides with courtyards opening into it from three sides, and the fourth side opens into a public domain, it is prohibited by rabbinic law to carry objects in it on Shabbat. However, carrying in an alleyway under those circumstances is permitted if a cross beam is placed horizontally over the entrance to the alleyway. The mishna teaches that if the cross beam spans the entrance to an alleyway at a height above twenty cubits, one must diminish the height of the cross beam so that it is less than twenty cubits. Rabbi Yehuda says: He need not diminish it, since the cross beam enables one to carry in the alleyway even at that height.