Mr. Mason, a computer scientist who specializes in artificial intelligence, envisioned a world where the boundaries between machines and people have grown increasingly porous, and a powerful, godlike A.I.