From 32b9bc47b7cbc3a4d99efea057378a925392ecfe Mon Sep 17 00:00:00 2001 From: Kim Morrison Date: Sat, 13 Apr 2024 09:55:20 +0200 Subject: [PATCH] chore: add doc-string for Prod.mk (#3856) --- src/Init/Prelude.lean | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Init/Prelude.lean b/src/Init/Prelude.lean index 5399b5533c..9dd83028f3 100644 --- a/src/Init/Prelude.lean +++ b/src/Init/Prelude.lean @@ -477,6 +477,8 @@ and `Prod.snd p` respectively. You can also write `p.fst` and `p.snd`. For more information: [Constructors with Arguments](https://lean-lang.org/theorem_proving_in_lean4/inductive_types.html?highlight=Prod#constructors-with-arguments) -/ structure Prod (α : Type u) (β : Type v) where + /-- Constructs a pair from two terms. -/ + mk :: /-- The first projection out of a pair. if `p : α × β` then `p.1 : α`. -/ fst : α /-- The second projection out of a pair. if `p : α × β` then `p.2 : β`. -/