Documentation

Linglib.Core.Probability.Eval

pmf_eval_simps — registered simp set for closed-form PMF reduction #

A registered simp attribute, sibling of mfld_simps, parity_simps, monad_norm. Tags lemmas of the form "PMF expression at a fully-instantiated point = closed ENNReal.ofReal form" — no arithmetic glue (if_true, Fin.sum_univ_*, add_zero come from the default simp set at call sites).

Call sites use simp +decide [pmf_eval_simps] (the +decide fires if c then _ else _ branches whose condition is a decidable predicate), followed by an explicit norm_num/rw closer where a residual remains. The former pmf_eval / ennreal_close closer macros are retired: proofs state their reductions explicitly.

def Parser.Attr.pmf_eval_simps :
Lean.ParserDescr

Simp set for closed-form PMF reductions. Domain-specific reductions should be added via local attribute [pmf_eval_simps] in the consumer file to avoid cross-file pollution.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Parser.Attr.pmf_eval_simps_proc :
    Lean.ParserDescr

    Simplification procedure

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For