Mishneh Torah, Sabbath 1:1-3
משנה תורה, הלכות שבת א׳:א׳-ג׳
Mishneh Torah, Sabbath 1:1-3
Rambam opens Hilkhot Shabbat by defining the Torah’s labor prohibition through the Mishkan model and the thirty-nine avot melachot. This is foundational for later attempts to map electricity onto one of the melachot.
שְׁבִיתָה בַּשְּׁבִיעִי מִמְּלָאכָה מִצְוַת עֲשֵׂה שֶׁנֶּאֱמַר (שמות לד כא) "וּבַיּוֹם הַשְּׁבִיעִי תִּשְׁבֹּת". וְכָל הָעוֹשֶׂה בּוֹ מְלָאכָה בִּטֵּל מִצְוַת עֲשֵׂה וְעָבַר עַל לֹא תַּעֲשֶׂה שֶׁנֶּאֱמַר (דברים ה יד) "לֹא תַעֲשֶׂה כָל מְלָאכָה". וּמַה הוּא חַיָּב עַל עֲשִׂיַּת מְלָאכָה. אִם עָשָׂה בִּרְצוֹנוֹ בְּזָדוֹן חַיָּב כָּרֵת. וְאִם הָיוּ שָׁם עֵדִים וְהַתְרָאָה נִסְקָל. וְאִם עָשָׂה בִּשְׁגָגָה חַיָּב קָרְבַּן חַטָּאת קְבוּעָה:
Resting from labor on the seventh day fulfills a positive commandment, as [Exodus 23:12] states, "And you shall rest on the seventh day." Anyone who performs a labor on this day negates the observance of a positive commandment and also transgresses a negative commandment, for [ibid. 20:10] states, "Do not perform any labor [on it]." What are the liabilities incurred by a person who performs labor [on this day]? If he does so willingly, as a conscious act of defiance, he is liable for karet; if witnesses who administer a warning are present, he should be stoned [to death]. If he performs [labor] without being conscious of the transgression, he is liable to bring a sin offering of a fixed nature.