I am puzzled by this line in the Mishna [Sanhedrin 10:1]:
וְאֵלּוּ שֶׁאֵין לָהֶם חֵלֶק לָעוֹלָם הַבָּא, הָאוֹמֵר אֵין תְּחִיַּת הַמֵּתִים מִן הַתּוֹרָה
And these are the ones who have no portion in the World to Come: He who says that the resurrection of the dead is not from the Torah.
What does it mean?
(1) That you must believe in the resurrection of the dead or you are penalized big time, even though you may otherwise be a fully observant Jew? That can't be, because Judaism does not mandate belief. (The Rambam believed it did, other luminaries disagreed, but the fact is that you can't make yourself believe. In Eichah Rabbah, Prologue II (see also Yerushalmi, Chagigah 1:7), we read:
It is written "They have forsaken Me and have not kept My law" [Jer. 16:11]. [This means that God said:] I wish they had forsaken Me but still kept My law, because by occupying themselves with it, the light which it contains would have led them back to the right path.)
(2) That you may believe what you want, but you may not SAY or preach certain things out loud? That's a matter of action, not belief, and you can certainly control yourself. (The Mishnah says: He who SAYS.)
(3) That it's your belief that CAUSES your portion in the World to Come to become real? (Mind over matter, as it were, which gets us into esoterica, philosophy, and even physics.)