Logic defines knowledge. Producing basic knowledge is the purpose of science. Physicists have been denying that science needs logic, because quantum mechanics and relativity are in conflict with logic. But physicists are wrong. There is no knowledge without logic and no purpose to science besides producing a logic consistent with the laws of nature, which have to have consistent relationships to be functional.
Logic means consistent relationships.
It is the logic that determines the truth in science, not perception. Perception is highly prone to illusion and erroneous assumptions. Logic, however, can be determined definitively. Mathematics which is simple enough to be beyond question is the strictest logic in science. So it is the mathematical proof that determines the definition of energy, not observations of questionable experiments.