Every point of the lamp sends light in straight lines. A table point at x sees the lamp through everything that is not blocked, and the visible fraction is V(x). The four extreme rays (lamp edge through slab edge) bound the zones: between the outer rays the table gets less than full light, between the inner rays it is the umbra (V = 0).
The V curve below the table is computed exactly: the slab hides the interval of lamp points s ∈ [x + (a − x)hL/hO, x + (b − x)hL/hO] from the point x, and V is one minus the overlap of that interval with the lamp divided by D.
From similar triangles the penumbra width is P = D·dOR/dLO. At the geometric edge of a point-source shadow exactly half of a symmetric lamp is hidden: V = 0.5. A lamp 1.9 cm wide at 2 m has the Sun's angular size (0.53°): that is why everyday sunlit shadows have a soft edge about 1% as wide as the gap to the ground.
Simplifications: a one-dimensional lamp and slab (an infinitely long slab seen from the side), opaque and thin, no diffraction, no inter-reflection, uniform brightness; the table brightness also includes a mild distance fall-off. The lamp, slab and table print sprites were rendered in Blender.