The lever rule with fractional crystallization and fusion