plan_total_exact
planner/LeanPool/Proofs.lean:118 · axioms propext, Classical.choice, Quot.soundEvery lamport is accounted for: what burners receive, plus fees, plus what stays shielded, equals your amount.
/-- Nothing is created or lost: what the burners receive + what stays shielded + fees = the balance. -/ def TotalExact (i : Input) (p : Plan) : Prop := sumReceived p.steps + p.leftShielded + p.totalFees = i.amount
/-- What the burners receive + what stays shielded + fees = exactly the shielded balance. -/
theorem plan_total_exact {i : Input} {p : Plan} (h : planUnlink i = .ok p) :
TotalExact i p :=
checkTotal_sound (checkAll_parts (planUnlink_checked h)).1