How to uncheck a checkbox programmatically?
After a lot of trial and error, I found out:

Imagine a checkbox with name 'Coffee' has one option: ['Y' => 'I want an espresso'].

To uncheck this selection, enter:
$form['Coffee']['Y'][#checked]=false