Here are clips of examples of mathematical logic used, whether seriously or humorously, in cinema:
The classic "Battle of Wits" from The Princess Bride:
(Note: for this one you need to click on the link to YouTube -https://www.youtube.com/watch?v=U_eZmEiyTo0
A classic from a bit further back, Sarah's Certain Death Riddle from Labyrinth:
And then there's good old British humor in Monty Python's Quest for the Holy Grail:
In Batman II: The Dark Knight, there is a scene in which a spin off on the game theory notion of the Prisoner's Dilemma is played out:
(Note: for this one you need to click on the link to YouTube - https://www.youtube.com/watch?v=DEqfzr-5dBY