math / data /lean /OAI /Combinatorics /EditApproximation /Refinement /ComputedFreshWork.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
608 Bytes
import OAI.Combinatorics.EditApproximation.Geometry.RankedMemoKernelFresh
import OAI.Combinatorics.EditApproximation.Refinement.ComputedKernelWork
namespace OAI
namespace EditApproximation
theorem computedFamilyKernelWork_eq_fresh_sum (source target : List ℕ) (N : ℕ)
(input : ComputedFamilyInput source target N)
(cost : ComputedFamilyMemoKey source target N → ℕ) :
computedFamilyKernelWork source target N input cost =
((computedFamilyResult source target N input).freshKeys.map cost).sum :=
rankedMemoKernelWork_eq_fresh_sum _ _ _ _ cost _ _
end EditApproximation
end OAI