Hearing opposite things from two electricians whom I respect.
Background
Main panel:
125 amp busbar
100 amp overcurrent / single phase
Conductors from the Powco feed into the centerfed busbar, not lugs or breaker on top.
Inverter:
4000 Watts/50 amp OPD, so
50 amp Breaker for inverter on...