What exactly does the Canon digital lens optimizer (DLO) do?

Recent Canon cameras (example: EOS RP) have a function called Digital Lens Optimizer (DLO).

Canon Digital Photo Professional (DPP) software also has the same DLO function.

Apparently, DLO is using a patented technology to improve image quality taking into account the full operation of all camera sensor parts, including color filters (Bayer) / anti-aliasing, and the full operation of the lens (including the diffraction caused by the aperture) and, therefore, should be able to significantly improve the image quality.

But how does DLO really work? Do you use only generic manufacturing information or can you take into account some programmed calibration data stored in the lens, as Roger Cicala predicts in "This lens is soft" and other facts? Can you detect automatically, p. The exact force of chromatic aberration using some sophisticated algorithms, directly from the RAW image?

Can DLO completely overcome the effects of diffraction or diffraction is still a problem with small aperture diameters?

Is the DLO in the camera the same as in the DPP software, or does the DPP software use the additional processing power available on a computer compared to that of a camera?

Related: Why using Canon Digital Lens Optimizer doubles the size of a RAW file?