∀ {Ω : Type u_1} {ι : Type u_2} {E : Type u_3} {m0 : MeasurableSpace Ω} {μ : Measure Ω} [Preorder ι] [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {𝒢 : Filtration ι m0} {f : ι → Ω → E} [SigmaFiniteFiltration μ 𝒢], Martingale f 𝒢 μ ↔ StronglyAdapted 𝒢 f ∧ (∀ (i : ι), Integrable (f i) μ) ∧ ∀ ⦃i j : ι⦄, i ≤ j → ∀ (s : Set Ω), MeasurableSet s → ∫ (ω : Ω) in s, f i ω ∂μ = ∫ (ω : Ω) in s, f j ω ∂μA process is a martingale iff it is adapted, integrable, and its set integrals over 𝒢 i-measurable sets are constant in time. The forward direction is Mathlib's Martingale.setIntegral_eq; the converse is the characterisation of conditional expectation by set integrals. Over a σ-finite filtration (in particular any finite measure), with any index.