Lem is best known for Solaris, of which there are two film adaptations. imho the book is better than both films, and the first film is better than the second.
Edit: Here is a snippet in which Klaupacius challenges Trurl's latest invention, the electronic bard, to compose "a love poem, lyrical, pastoral, and expressed in the language of pure mathematics," and gets a response: https://www.cse.wustl.edu/~jbuhler/cyberiad.html
Hm, interesting. Still impressive since he had to write the poem.