Commit 2026-08-25 20:09 95bdf0e0
View on Github →feat(Logic/Function): define predicate for constant function (#42713) Adds
Function.IsConstas a canonical way to express that a function is constant without specifying its value. Currently, this can be expressed by any of∀ x y, f x = f y∃ b, f = const α b∃ b, ∀ x, f x = bWe propose to use the first one since it also works for functions where both domain and codomain are empty. We also add
theorem eq_const_iff {f : α → β} {b : β} : f = const α b ↔ ∀ a : α, f a = b
to Function.Basic.lean