Discovering meditation from first principles