If one does an act of work on the Sabbath day by accident he has to bring a sin offering.
If he does it on purpose then if the act is done in front of two witnesses that warned him and said if you do this you will be doing an act of desecrating the Sabbath and you will be brought to beit din and stoned. If he acknowledges this and says, "I agree and even so I will do it,,"then he is stoned. If any of these conditions are not fulfilled he is not stoned but also he can't bring a sin offering because the act was done on purpose.
This applies to all the 43 things in the Torah for which there is a death penalty. In all cases there needs to be a set of conditions or else the case is thrown out of court.
So what is an accident? Rabbi Yochanan said even if he forgets the punishment but remember that the act is forbidden then that too is called accident. Reish Lakish said, "No. That is called on purpose. Only if he forgets that the act is forbidden is it an accident."
The Rambam says if one forgets an act of work but remembers it is Shabat or forgets the punishment then he is liable a sin offering. Even if he forgets all 39 types of work than he brings 39 sin offerings.{ Each one is a goat or a sheep.
So he decides like Rabbi Yochanan. But then what about the end of the rambam? If he forgot all 39 types then in what way is he remembering the Shabat? And if he in fact forgot the Shabat then he is liable only one sin offering! Now this Rambam comes from a Mishna and Rabbi Yochanan and Reish Lakish were disagreeing about it. And there Reih lakish said it could be he remembered the boundary of Shabat which is 12 miles from the Torah according to Rabbi Akiva. But this does not help us here. The son of the Rambam was asked this. (Abraham ben Moshe). He said three answers. One is he forget 39 principles but remembered at least one derivative.
I forgot the other two. But I wanted to suggest perhaps the last part of the Rambam is not referring to the first 10 words where he says the case that he forget the work is forbidden. Perhaps the end of the Rambam is only referring to the case where he forgot the punishment.
[I can't be sure that Reb Avraham himself did not answer this until I get a chance to see the Rambam again.]
If he does it on purpose then if the act is done in front of two witnesses that warned him and said if you do this you will be doing an act of desecrating the Sabbath and you will be brought to beit din and stoned. If he acknowledges this and says, "I agree and even so I will do it,,"then he is stoned. If any of these conditions are not fulfilled he is not stoned but also he can't bring a sin offering because the act was done on purpose.
This applies to all the 43 things in the Torah for which there is a death penalty. In all cases there needs to be a set of conditions or else the case is thrown out of court.
So what is an accident? Rabbi Yochanan said even if he forgets the punishment but remember that the act is forbidden then that too is called accident. Reish Lakish said, "No. That is called on purpose. Only if he forgets that the act is forbidden is it an accident."
The Rambam says if one forgets an act of work but remembers it is Shabat or forgets the punishment then he is liable a sin offering. Even if he forgets all 39 types of work than he brings 39 sin offerings.{ Each one is a goat or a sheep.
So he decides like Rabbi Yochanan. But then what about the end of the rambam? If he forgot all 39 types then in what way is he remembering the Shabat? And if he in fact forgot the Shabat then he is liable only one sin offering! Now this Rambam comes from a Mishna and Rabbi Yochanan and Reish Lakish were disagreeing about it. And there Reih lakish said it could be he remembered the boundary of Shabat which is 12 miles from the Torah according to Rabbi Akiva. But this does not help us here. The son of the Rambam was asked this. (Abraham ben Moshe). He said three answers. One is he forget 39 principles but remembered at least one derivative.
I forgot the other two. But I wanted to suggest perhaps the last part of the Rambam is not referring to the first 10 words where he says the case that he forget the work is forbidden. Perhaps the end of the Rambam is only referring to the case where he forgot the punishment.
[I can't be sure that Reb Avraham himself did not answer this until I get a chance to see the Rambam again.]