Yes, a prenup or postnup and they are quite common the more wealthy people you know.
With the rise in land prices many farmers are now using them to ensure that a divorce doesn't result in having to sell a family farm that's been in the family for generations.
It doesn't have to be an adversarial process, and you need to make sure the other party is properly compensated, this compensation often comes from the firm/company/farm that is requiring the pre/post nup.
Now, if both parties are founders in the enterprise then it can be tricky if they both still want to run the company, in which case, I don't know how that could possibly be settled in a way that would make either party happy other than the pizza solution, one side names a price and the other side gets to decide to buy or sell.
With the rise in land prices many farmers are now using them to ensure that a divorce doesn't result in having to sell a family farm that's been in the family for generations.
It doesn't have to be an adversarial process, and you need to make sure the other party is properly compensated, this compensation often comes from the firm/company/farm that is requiring the pre/post nup.
Now, if both parties are founders in the enterprise then it can be tricky if they both still want to run the company, in which case, I don't know how that could possibly be settled in a way that would make either party happy other than the pizza solution, one side names a price and the other side gets to decide to buy or sell.