Very cool, reminds me of Kiyoshi Kurosawa's Cure (1997) in the conceit of the murder mystery
Surprised not to see a mention of the Borges short story this was quite considerably inspired by