In lean4, you use:
import Mathlib.Algebra.BigOperators.Basic open Finset BigOperators /- rest of code -/