That's a twisted statement.
The meaning of the dietary laws were not revealed in that event. A point was revealed through dietary laws in that event.
it's layered, but certainly, this is the meaning of a revealed layer, and I would argue the crux of the dietary system. Every aspect of the Mosaic law points to the new. the mosaic law focuses on the physical and concrete whereas the new focuses on the heart, a more core spiritual perspective which makes it more abstract. With Peter's vision, the reference is just more explicit.
How did Pharaoh know that it was wrong to take Abraham's wife?
because he wouldn't like if it Abraham took his wife, certainly he can flex his power and do it anyways but it's not hard to figure how an act like that hurts others. This is how universal morality works, you know it's wrong because you would feel wronged if it was done against you.
then who spoke to Peter through his vision?
Maybe. Maybe not. The first sin appears to have been the breaking of a dietary law.
you would have to unpack that. Since strips of bacon and shell fish weren't hanging on the tree then we may argue it was a form of dietary law but it is a different focus then what the law has so a different meaning. The two do not share the same goal.
YHWH himself said that he would write his Torah on our hearts. Do you have anything more than conjecture to support your supposition? Scripture please.
law indeed is written upon our hearts
2 Cor 3:3
You show that you are a letter from Christ, the result of our ministry, written not with ink but with the Spirit of the living God, not on tablets of stone but on tablets of human hearts.
so it is not the letter of the law we follow but the letter of Christ. It is not the etched stone we follow but the living ink of the spirit upon our hearts. anything written upon our hearts is an abstract reference
here's the same verse in an melayu language dialect (a language that I speak)
Karena telah ternyata, bahwa kamu adalah surat Isa Al-Masih, yang ditulis oleh pelayanan kami, ditulis bukan dengan tinta, tetapi dengan Roh dari Allah yang hidup, bukan pada loh-loh batu, melainkan pada loh-loh daging, yaitu di dalam hati manusia.
in this language, law is written upon our liver, not about our hearts. "hati" means liver, it does not mean heart but it carries the meaning of the organ of emotion in this language which is innately an abstract meaning. When law is written upon our hearts (or liver) law is not physically etched into our organs. it of the "Spirit of the living God" and is an abstract reference. to have verbatim law imprinted upon our hearts would be pointless because it serves no greater purpose then the law itself did. law written upon our hearts is a reference to being called out of law, and guided by the spirit. every time you make a reference to it you unknowingly counter your own argument.
(CLV) Jn 16:13
Yet whenever that may be coming—the spirit of truth—it will be guiding you into all the truth, for it will not be speaking from itself, but whatsoever it should be hearing will it be speaking, and of what is coming will it be informing you.
you're going to have to add your commentary on this in order for me to understand what point you're making. The Holy Spirit and the Son are one with the Father. What the spirit speaks is of the Father and the same is of the Son. They do not bring a different message, but instead the same message in different forms. Law is an example of this message, but it is in physical form and limited to physical products, that's the point of the law, it's limits are baked in but it is there to echo the God's plan for salvation since he spoke "let there be light"