EN
This paper has three parts. First, we study and characterize amenable and extremely amenable topological semigroups in terms of invariant measures using integral logic. We prove definability of some properties of a topological semigroup such as amenability and the fixed point on compacta property. Second, we define types and develop local stability in the framework of integral logic. For a stable formula ϕ, we prove definability of all complete ϕ-types over models and deduce from this the fundamental theorem of stability. Third, we study an important property in measure theory, Talagrand's stability. We point out the connection between Talagrand's stability and dependence property (NIP), and prove a measure-theoretic version of definability of types for NIP formulas.