Proof (2005)? https://www.imdb.com/title/tt0377107/?ref_=ext_shr_lnk The film summaries sound similar.