Chabad.org — English translation + Rashi
Torah Temimah on the firstborn claim: “כי לי כל בכור” — the consecration of the firstborn at the time of the Exodus is the legal and historical basis for substituting the Levites.
English: “For every firstborn among the children of Israel is Mine, both man and beast” — on the day I struck every firstborn in the land of Egypt I consecrated them to Myself.
Category D — Conceptual / logical / legal / theological / ethical inference.
Method: The Torah connects the Levites’ replacement of the firstborn to the original consecration of the firstborn at the Exodus. The historical event is the legal basis for HaShem’s claim and for the later substitution.
Textual trigger: “בְּיוֹם הַכֹּתִי כׇל־בְּכוֹר בְּאֶרֶץ מִצְרַיִם הִקְדַּשְׁתִּי אֹתָם לִי” (Bamidbar 8:17), followed by the transfer of the Levites in 8:18.
The substitution of Levites for firstborn is not an arbitrary administrative choice; it rests on the original Divine claim established at the plague of the firstborn.