Cslib.FinFun
structureimported Lean
A FinFun is a function fn with a finite support. This is similar to Finsupp in Mathlib, but definitions are computable.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in structure Cslib.FinFun (α β : Type*) [Zero β]
- Defined in
- CSLib, `Cslib.FinFun`
- Lean proof
- By Fabrizio Montesi, Xueying Qin, from github.com/leanprover/cslib at
3951377e5a3f(Copyright (c) 2025 Fabrizio Montesi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.33.0.Cslib.FinFun← Cslib.FinFun (Cslib/Foundations/Data/FinFun/Basic.lean:27): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in /-- A `FinFun` is a function `fn` with a finite `support`. This is similar to `Finsupp` in Mathlib, but definitions are computable. -/ structure Cslib.FinFun (α β : Type*) [Zero β] where /-- The underlying function. -/ fn : α → β /-- The finite support of the function. -/ support : Finset α /-- Proof that `support` is the support of the underlying function. -/ mem_support_fn {a : α} : a ∈ support ↔ fn a ≠ 0