There are passages in Maimonides' Mishneh Torah where it is said that having incestuous intercourse with a girl under the age of three does not entail punishment. The same goes for a boy under nine (homosexuals). See Sefer Kedusha, Hilchos Issurei Biah 1,13 and 14.
"When an adult male enters into relations with any of the women forbidden in connection with the above transgressions who is three years and one day old or more,40 he is liable for execution, kerait, or lashes and she is not liable unless she is past majority. If she is younger than this, both participants are not liable, for the act is not considered as sexual relations."
"When a man enters into relations with a male or has a male enter into relations with him, once the corona is inserted [into the anus] they should both be stoned if they are both adults. As [Leviticus 18:22] states: "Do not lie with a man," [holding one liable for the act, whether] he is the active or passive partner. If a minor of nine years and a day or more is involved, the man who enters into relations or has the minor enter into relations with him should be stoned and the minor is not liable. If the male [minor] was less than nine years old, they are both free of liability"
What caught my attention is the commentary on this passage from Rabbi Eliyahu Touger where he says: "For until that age, her signs of virginity will regenerate and hence, relations are not of consequence. Nevertheless, even when the girl is below that age, it is forbidden to enter into such relations (the Rambam's Commentary to the Mishnah, Sanhedrin 7:4)".
And again this: "For sexual relations with a male below the age of nine are not of consequence. Nevertheless, it is forbidden to enter into such relations (the Rambam's Commentary to the Mishnah, Sanhedrin 7:4)."
I looked up this commentary on Rambam's Mishneh unsuccessfully. So, this intercourse under this age (under tre year and under nine year), although it does not violate the law, is still punished. Where is it?
Can you please highlight the precise portion of the text, in Hebrew and if possible with an English translation?
Shalom.