الانتقال إلى المحتوى
The Lumenary
مسار الدهشةاختياري · لا يُقيَّم أبدًاينطلق من Functions

The product, by its maps

هذه الصفحة غير مترجمة بعدُ إلى العربية، لذلك تُعرض باللغة English.

ساعد في الترجمة →
1

السؤال

Can you describe the set of pairs A×BA \times B without ever looking inside it — only by how functions go into it?

جرّب التجربة قبل متابعة القراءة. لا توجد طريقة خاطئة للاستكشاف.

2

التجربة

الضرب الديكارتي عبر دواله

اختر دالتين ⁦f : Z → A⁩ و⁦g : Z → B⁩. ثم حاول بناء دالة ⁦h : Z → A × B⁩ يعطي إسقاطاها f وg.

f : Z → A

g : Z → B

⟨f, g⟩ : Z → A × B

p ↦ (أحمر, 2) q ↦ (أزرق, 2) r ↦ (أحمر, 3)

دورك: اختر ⁦h(p)⁩ و⁦h(q)⁩ و⁦h(r)⁩ بالنقر على الخانات.

A × B123
أحمر
أزرق
3

تلميحات، إن أردتها

    4

    ما الذي يحدث

    ما الذي يحدث

    The product A×BA \times B comes with two projections, π1(a,b)=a\pi_1(a, b) = a and π2(a,b)=b\pi_2(a, b) = b. Given any set ZZ and any functions f:Z→Af : Z \to A and g:Z→Bg : Z \to B, there is a function

    ⟨f,g⟩:Z→A×B,z↦(f(z),g(z)),\langle f, g \rangle : Z \to A \times B, \qquad z \mapsto \big(f(z), g(z)\big),

    with π1∘⟨f,g⟩=f\pi_1 \circ \langle f, g \rangle = f and π2∘⟨f,g⟩=g\pi_2 \circ \langle f, g \rangle = g. The experiment shows more: it is the only such function. Any hh with π1∘h=f\pi_1 \circ h = f and π2∘h=g\pi_2 \circ h = g must send zz to the pair with first coordinate f(z)f(z) and second coordinate g(z)g(z) — that is, h=⟨f,g⟩h = \langle f, g \rangle.

    fst_comp_pairLean 4مُبرهَن هنا انطلاقًا من حقائق أساسيةمتحقَّق منه صوريًا
    /-- Following `pair f g` by the first projection gives back `f`. -/
    theorem fst_comp_pair (f : Z → A) (g : Z → B) : Prod.fst ∘ pair f g = f := rfl
    المسلّمات المستخدمة: لا مسلّماتformal/Lumenary/Category.leanجرّبه في محرّر Lean على الويب
    pair_uniqueLean 4مُبرهَن هنا انطلاقًا من حقائق أساسيةمتحقَّق منه صوريًا
    /-- **Universal property of the product, uniqueness half.** Any `h : Z → A × B` whose two
    coordinates are `f` and `g` *is* `pair f g`. Together with `fst_comp_pair` and
    `snd_comp_pair` (existence), this says: maps into `A × B` are the same thing as pairs of
    maps into `A` and into `B`. -/
    theorem pair_unique {f : Z → A} {g : Z → B} (h : Z → A × B)
        (hf : Prod.fst ∘ h = f) (hg : Prod.snd ∘ h = g) : h = pair f g := by
      funext z
      show h z = (f z, g z)
      rw [← hf, ← hg]
      -- The goal is now `h z = ((h z).1, (h z).2)`: every pair is built from its coordinates.
      rfl
    المسلّمات المستخدمة: Quot.soundformal/Lumenary/Category.leanجرّبه في محرّر Lean على الويب

    This "exists and is unique" statement is called the universal property of the product. It describes A×BA \times B entirely through its relationships with all other sets, without mentioning ordered pairs at all. In any category, an object with two arrows satisfying this property is called a product of AA and BB.

    The universal property pins the product down up to isomorphism: any two products of AA and BB are related by a unique isomorphism compatible with the projections — though they need not be literally equal. In the category of subsets of a set ordered by ⊆\subseteq, the product of AA and BB turns out to be A∩BA \cap B; in other categories products look different again. Universal properties like this one are the starting point for limits, adjunctions and the Yoneda lemma.

    متحقَّق منه صوريًا · 4 Leanصاغه الذكاء الاصطناعي · بانتظار المراجعة البشرية
    5

    إلى أين يقود هذا