(Definition of a sheaf) Assume given $X$ a topological space, with $\mathcal{O}(X)$ its partial order category of open sets, and $F \colon \mathcal{O}(X)^{\mathrm{op}} \to \mathrm{Set}$ a presheaf. Then, given an open set $U \subset X$ and a collection $\{U_i \}_{i \in I}$ of open sets covering $U = \bigcup_{i \in I} U_i$, we can define the following sheaf condition.
Given a family of sections $s_1, \dotsc, s_n$ where each $s_i \in F(U_i)$ is a value assignment (section) over $U_i$, whenever we have that for all $i, j$, $$s_i|_{U_i \cap U_j } = s_j|_{U_i \cap U_j} \,,$$ then there exists a unique value assignment (section) $s \in F(U)$ such that $s|_{U_i} = s_i$ for all $i$.
Note: Given $s ∈ F(U)$, it is common to denote its restriction to $V$ by $s|_V$, that is, $ρ_V^U \colon F(U) \to F(V)$ takes $s \mapsto s|_V$ for each $s ∈ F(U)$,
— Sheaf Theory through Examples by Rosiak, Chapter 5, Definition 122
In the above definition, what does the following condition mean? $$ s_i|_{U_i \cap U_j } = s_j|_{U_i \cap U_j} $$ If $s_i$ are element in the set which functor takes open set to, what does it mean for two elements to be equal in the restriction?
For example, if I say $3 = 1 + 2$, that is the same whether I take the set which the numbers come from as natural, rational, real, etc.