NLA-lib Explorer

NLAlib.Ops.«tacticCount_eval[_]»

Library · def

count_eval [facts]: a goal C₁ = C₂ or C₁ ≤ C₂ between counts, where C₁ is a pushed-forward count (Count.push T c), a static count (stmtCost s idx) or a sum over a range, and C₂ a closed form. Unfolds stmtCost/useCost and the given definitions, distributes Count.push over sums and multiples (map_add, map_nsmul, map_sum, Count.push_one), rewrites the costs of the profiles (countNF: Blas.seq_cost_dot, …; the side conditions of the pairwise profile by omega from the context), evaluates the sums over ranges (Count.sum_range_nsmul, Count.sum_range_id_nsmul, Finset.sum_add_distrib), and closes by module. Fails with the goal if the closed form does not match.

NLAlib.Ops.«tacticCount_eval[_]» : ParserDescr

Full source on GitHub

Import NLAlib.Ops.Logic.Count.