chore: add doc-string for Prod.mk (#3856)

This commit is contained in:
Kim Morrison 2024-04-13 09:55:20 +02:00 committed by GitHub
parent 864221d433
commit 32b9bc47b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 : β`. -/