Mathlib Map

Theorems · Definition

Set.piecewise

{α : Type u} →
  {β : α → Sort v} → (s : Set α) → ((i : α) → β i) → ((i : α) → β i) → [(j : α) → Decidable (j ∈ s)] → (i : α) → β i

s.piecewise f g is the function equal to f on the set s, and to g on its complement.

Defined in
Mathlib.Logic.Function.Basic
Cited by
136 results in Mathlib
Foundations
Depth 6 from the axioms, rests on 12 definitions · uses no axioms
Assumes
Decidable

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites1

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

  • Setstatement and proof · cited by 53,352

Cited by139

Results whose statement or proof uses this declaration.