jartsa said:
Let's say we have a large number of identical photons, spread around. The energy of this photon group is E.
Ok so far.
jartsa said:
Now we collect these photons into a small container, without adding or removing energy, and taking care that the photons stay identical. (by identical I mean same energy)
The container is in empty space and leaks out photons slowly, and the energy E is so large that there's a gravity field caused by all the photons.
This is not possible as you state it. There are at least two issues:
(1) If the collected photons in the container have a non-negligible gravity field, then a non-negligible amount of binding energy must have been released in the process of collecting them, since when inside the container the photons are a bound gravitating system, whereas the original photons were not bound.
(2) For the photons to be confined in the container, the container walls must be under stress, and this stress contributes to the externally measured energy of the total system. In other words, the externally measured energy of the system is not entirely "contained" in the photons when they are confined in the container.
jartsa said:
After all photons have leaked out, we can measure the energy of the collection of photons, it will be E.
No, it won't. First of all, the total energy of the bound system is not E, it's E - B, as above. Second, you are once again neglecting the container; as each photon is emitted, the stress on the container walls decreases slightly, and that needs to be taken into account.
jartsa said:
But the photons are now different: the first photon to leak out has the smallest energy, while the last one has the largest energy.
I think this is correct, but it's not as simple as you seem to think, because of the interaction with the container. I would need to do a more complete analysis of the scenario to be sure.
jartsa said:
Now it seems quite obvious that the first photon to leave donated some of its energy to the other photons.
No, it's not at all obvious, because of the issues I raised above.