Vayikra4:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר נֶפֶשׁ כִּי־תֶחֱטָא בִשְׁגָגָה מִכֹּל מִצְוֺת יְהוָה אֲשֶׁר לֹא תֵעָשֶׂינָה וְעָשָׂה מֵאַחַת מֵהֵנָּה׃

"Speak to the children of Israel, saying: when a soul sins by mistake against any of the commandments of the Eternal that must not be done, and does one of them,

Vayikra 4:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל

Vayikra / Leviticus 4:2 · Remez

Vayikra 4:2

דַּבֵּר אֶל־בְּנֵי יִשְׂרָאֵל לֵאמֹר נֶפֶשׁ כִּי־תֶחֱטָא בִשְׁגָגָה מִכֹּל מִצְוֺת יְהוָה אֲשֶׁר לֹא תֵעָשֶׂינָה וְעָשָׂה מֵאַחַת מֵהֵנָּה׃

"Speak to the children of Israel, saying: when a soul sins by mistake against any of the commandments of the Eternal that must not be done, and does one of them,

Remez רֶמֶז

If, when, and surely

One small word can say how likely an event is. The Torah chooses different words for different sinners.

Kli Yakar: of the anointed kohen and of the community it says "if," for their sin is rare, of an ordinary person "when," for it happens to him easily, and of the leader "when surely," for his pride will certainly bring him to sin. Netziv: "one of them" is breaking part of a complex prohibition, "of them" is breaking it entirely.

How Kli Yakar and Haamek Davar explain it

Kli Yakar When a soul sins

We find three words for sinners: "when" (כִּי), "if" (אִם) and "when surely" (אֲשֶׁר). Of the individual who sins it is written: "When a soul sins." Of the many who sin it says: "And if the whole community of Israel errs" (Vayikra / Leviticus 4:13). And of the leader it is written: "When surely a leader sins" (Vayikra / Leviticus 4:22). The commentators said that the word "when" expresses more certainty than "if," and "when surely" more certainty than "when." Therefore of the sin of the many, which is a rare thing, that many should agree to a sin, it says "if the whole community of Israel errs," which expresses doubt. And so of the anointed kohen it says: "If the anointed kohen sins" (Vayikra / Leviticus 4:3), for it is far-fetched and unusual that the anointed kohen or the many should sin. But an ordinary individual easily comes to sin, therefore it says "when a soul sins": the word "when" says that it is almost certain to happen. But the leader, who raises himself over all and rules haughtily, will certainly come to sin out of the pride of his heart, therefore it says "when surely a leader sins": "when surely" says that it will certainly happen, without doubt. So you will find in the book of the Zohar, in Rabbeinu Bachya and in "Toldot Yitzchak." But this is hard for me: if so, why does it say "And if one soul sins" (Vayikra / Leviticus 4:27)? Why is it said of the individual once "if" and once "when"? And another difficulty: why does it say "one soul"? By saying "soul" we know it is one and not two. And if the Torah is used to saying "one soul," why does it say here "when a soul sins," without "one"?

Haamek Davar One of them

The derash is known. And by the plain sense: there are prohibitions with only one detail, and whoever breaks that detail has broken the whole prohibition, like the prohibitions of intimacy. And there are prohibitions that include several details. And the Torah says: it is the same whether he broke part of the prohibition, and that is "one," one detail of the general prohibition, like Shabbat, which includes thirty-nine kinds of work, and whoever broke one of them is called one who broke "one," or broke it entirely, and that is called "of them."

Takeaway

In Hebrew כִּי, אִם and אֲשֶׁר can mean "when" or "if." Kli Yakar hears in each its own measure of certainty.
Kli Yakar himself leaves the question open: verse 4:27 says "if" of the individual, and he gives no answer here.
The thirty-nine kinds of work (ל״ט מְלָאכוֹת) forbidden on Shabbat were derived by the sages from the tasks of building the Mishkan (Mishnah, Shabbat 7:2).
"Haamek Davar" is a commentary on the Torah written by Netziv, head of the yeshivah in Volozhin.