Why "obviously"? The "electrical system required to run the solar and the batteries" is just that - batteries, solar panels, solar controller, together with the wiring connecting between these items and the associated cable terminations, fuses, breakers, isolators, bus bars etc. Any cabling going beyond those items is not part of the "electrical system required to run the solar and the batteries". Even though the purpose of having these items is to supply power to the boat's various circuits and appliances, including in this case, an inverter.
Some bizarre logic here. The solar bank does not require an inverter to be of any use. The solar panels and controller will quite happily charge the batteries whether or not an inverter is present.
What I think you mean is that you chose to install new batteries to provide more stored power to run the inverter, and solar to recharge those batteries. But as the inverter and its existing undersized wiring were already present (as were the rest of the boat's domestic wiring, lighting and other appliances), they were not part of that new work.