Prod.instUnique
No docstring.
-
α : Type u_1Unique αUnique αexpresses thatαis a type with a unique termdefault. -
β : Type u_2Unique β
Unique (α × β){ default := (default, default), uniq := ⋯ }Unique : Sort u → Sort (max 1 u)`Unique α` expresses that `α` is a type with a unique term `default`. This is implemented as a type, rather than a `Prop`-valued predicate, for good definitional properties of the default term.
Prod : Type u → Type v → Type (max u v)The product type, usually written `α × β`. Product types are also called pair or tuple types. Elements of this type are pairs in which the first element is an `α` and the second element is a `β`. Products nest to the right, so `(x, y, z) : α × β × γ` is equivalent to `(x, (y, z)) : α × (β × γ)`. Conventions for notations in identifiers: * The recommended spelling of `×` in identifiers is `Prod`.
Unique.mk : {α : Sort u} → (toInhabited : Inhabited α) → (∀ (a : α), a = default) → Unique αProd.mk : {α : Type u} → {β : Type v} → α → β → α × βConstructs a pair. This is usually written `(x, y)` instead of `Prod.mk x y`. Conventions for notations in identifiers: * The recommended spelling of `(a, b)` in identifiers is `mk`.
Inhabited.default : {α : Sort u} → [self : Inhabited α] → α`default` is a function that produces a "default" element of any `Inhabited` type. This element does not have any particular specified properties, but it is often an all-zeroes value.
Code
instance Prod.instUnique {α β : Type*} [Unique α] [Unique β] : Unique (α × β) where
defaultProof
(default, default) uniq p := by simp [Prod.ext_iff, Unique.eq_default]
New in v4.34.0-rc2-74-ge05e4f3 (2026-09-10), and its meaning has not changed since.
Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file · open it in the Lean web editor.
Dependency graph
Nothing to draw. Its statement rests on no other declaration in this project, and names nothing from a package left unaudited — so the graph is this declaration alone. That is the answer, not a missing picture.
Audit surface: 0 project declarations, 7 external constants
✓ Proved: no sorry anywhere in its closure
This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.