Unfortunately, courts have ruled that this is unenforceable(in the US at least). I am opting for don't marry. I don't think the advantages are good enough to overcome the downsides. Interestingly, you could set up a contract with your unmarried partner that accomplishes this (if one partner gains x pounds, they are entitled to y percent of communal property).