This seems like a variant of Pascal's wager.