I've just started trying to learn some set theory and topology and I've come across the definition of disjoint sets quite a lot I've seen lots of Definitions such as
A set (of sets) $\mathcal{A}$ is disjoint if $\bigcap \mathcal{A} = \emptyset$.
The set $\mathcal{A}$ is pairwise disjoint when $\forall x \in A: \forall y \in A: x \neq y \implies x \cap y = \varnothing$
I can't quite understand what the difference actually is as I saw on s.e that a pairwise disjoint set is related to a $k$-wise disjoint.
I also saw this definition
An indexed collection $\{A_i\}_{i\in I}$ of subsets of $X$ is said to be pairwise disjoint if $A_i\cap A_j=\varnothing$ whenever $i\neq j$.
This confused me even further as an indexed collection can be a surjective function so when $i=j$ it could well be that $A_i$ = $A_j$ in that case how is their intersection empty?.
What I'm really trying to understand is what is pairwise and k wise disjoint sets? Thanks in advance