You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variable {A B C : Type}
/-- 積の普遍性から導かれる射 -/deffork (f : A → B) (g : A → C) : A → B × C :=
fun a => (f a, g a)
/-- 第一成分への射影 -/
abbrev exl := @Prod.fst A B
/-- 第二成分への射影 -/
abbrev exr := @Prod.snd A B
open Prod
/-- ### 積の普遍性すべての積への関数は、`fork` で書き表すことができる。 -/example (h : A → B × C) : fork (fst ∘ h) (snd ∘ h) = h := rfl
/-- A × B → A × B は fork -/example : fork fst snd = @id (A × B) := rfl
The text was updated successfully, but these errors were encountered:
import Mathlib.Tactic
/-- ### 積の普遍性すべての積への関数は、`fork` で書き表すことができる。 -/example (h : A → B × C) : h = fork f g ↔ fst ∘ h = f ∧ snd ∘ h = g := by
constructor <;> aesop
The text was updated successfully, but these errors were encountered: