There is no guarantee that is even physically possible. The jury is still very much out, but we know the brain is still growing and developing in puberty and even beyond. We aren't so clear on the implications of that fact. There is some reason to believe certain modes of human thought simply aren't available to you until a certain age and level of
physical development, and that these modes of thought are required for higher level math understanding and in general what we'd consider a sophisticated adult understanding of issues across many fields. The age these things occur seem to vary and have unknown dependence on the personal experiences of the child, but expecting these processes to be done by 12 is probably hoping for too much.
The only way I could see "graduating high school" by 12 to be done is either if you come up lucky and get a child with the necessary brain development early, or you define "graduate high school" at a relatively low level. (There's a world of difference between merely graduating, and graduating with honors and heading to college... everybody "graduates".)