Frontier enumeration
The frontier is the set of unrevealed cells adjacent to at least one number. It typically has a few dozen cells even on Expert (16×30), small enough to enumerate exhaustively by backtracking with constraint propagation.
For each consistent assignment the solver records how many mines are placed on the frontier; combined with the binomial distribution of mines on the interior 'sea', this gives an exact marginal probability for every cell on the board.
What gets surfaced
Cells with probability 0 are flagged as provably safe; cells with probability 1 are provably mines. Among ambiguous cells, the lowest-probability click is recommended — and, when that probability ties with the sea baseline, the recommendation that maximises expected information gain wins.