The areas / V01. The language of Mathlib
Mathlib.Basic.Nontrivial.Defs
24 declarations. Mathlib docs · Source
class Nontrivial E1 #
Type u_3 → Prop
Predicate typeclass for expressing that a type is not reduced to a single element. In rings,
this is equivalent to 0 ≠ 1. In vector spaces, this is equivalent to positive dimension.
ctor Nontrivial.mk E0 #
∀ {α : Type u_3}, (∃ x y, x ≠ y) → Nontrivial α
theorem Nontrivial.exists_pair_ne E1 #
∀ {α : Type u_3} [self : Nontrivial α], ∃ x y, x ≠ y
In a nontrivial type, there exists a pair of distinct terms.
theorem nontrivial_iff E0 #
∀ {α : Type u_1}, Nontrivial α ↔ ∃ x y, x ≠ y
theorem exists_pair_ne E1 #
∀ (α : Type u_3) [Nontrivial α], ∃ x y, x ≠ y
theorem Function.Injective.nontrivial E1 #
∀ {α : Type u_1} {β : Type u_2} [Nontrivial α] {f : α → β}, Function.Injective f → Nontrivial β
Pushforward a Nontrivial instance along an injective function.
theorem Function.Injective.exists_ne E1 #
∀ {α : Type u_1} {β : Type u_2} [Nontrivial α] {f : α → β}, Function.Injective f → ∀ (y : β), ∃ x, f x ≠ y
An injective function from a nontrivial type has an argument at which it does not take a given value.
theorem Decidable.exists_ne E1 #
∀ {α : Type u_1} [Nontrivial α] [DecidableEq α] (x : α), ∃ y, y ≠ x
theorem exists_ne E1 #
∀ {α : Type u_1} [Nontrivial α] (x : α), ∃ y, y ≠ x
theorem nontrivial_of_ne E1 #
∀ {α : Type u_1} (x y : α), x ≠ y → Nontrivial α
theorem nontrivial_iff_exists_ne E1 #
∀ {α : Type u_1} (x : α), Nontrivial α ↔ ∃ y, y ≠ x
theorem Function.nontrivial_of_nontrivial E1 #
∀ (α : Type u_3) (β : Type u_4) [Nontrivial (α → β)], Nontrivial β
instance instNontrivialProp E0 #
Nontrivial Prop
instance Nontrivial.to_nonempty E0 #
∀ {α : Type u_1} [Nontrivial α], Nonempty α
See lower instance priority.
Note that since this and instNonemptyOfInhabited are the most "obvious" way to find a nonempty
instance if no direct instance can be found, we give this a higher priority than the usual 100.
theorem subsingleton_iff E0 #
∀ {α : Type u_1}, Subsingleton α ↔ ∀ (x y : α), x = y
theorem not_nontrivial_iff_subsingleton E1 #
∀ {α : Type u_1}, ¬Nontrivial α ↔ Subsingleton α
theorem not_nontrivial E1 #
∀ (α : Type u_3) [Subsingleton α], ¬Nontrivial α
theorem not_subsingleton E1 #
∀ (α : Type u_3) [Nontrivial α], ¬Subsingleton α
theorem not_subsingleton_iff_nontrivial E1 #
∀ {α : Type u_1}, ¬Subsingleton α ↔ Nontrivial α
theorem subsingleton_or_nontrivial E1 #
∀ (α : Type u_3), Subsingleton α ∨ Nontrivial α
A type is either a subsingleton or nontrivial.
theorem false_of_nontrivial_of_subsingleton E1 #
∀ (α : Type u_3) [Nontrivial α] [Subsingleton α], False
theorem Function.Surjective.nontrivial E1 #
∀ {α : Type u_1} {β : Type u_2} [Nontrivial β] {f : α → β}, Function.Surjective f → Nontrivial α
Pullback a Nontrivial instance along a surjective function.
instance Bool.instNontrivial E0 #
Nontrivial Bool
theorem NeZero.nontrivial E1 #
∀ {α : Type u_3} [inst : Zero α] (a : α) [NeZero a], Nontrivial α