Skip to content

Commit 91e688b

Browse files
committed
chore(Order/Hom/Bounded): add LE instances (#12983)
1 parent f4da8e5 commit 91e688b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Mathlib/Order/Hom/Bounded.lean

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ theorem cancel_left {g : TopHom β γ} {f₁ f₂ : TopHom α β} (hg : Injectiv
307307

308308
end Top
309309

310+
instance instLE [LE β] [Top β] : LE (TopHom α β) where
311+
le f g := (f : α → β) ≤ g
312+
310313
instance [Preorder β] [Top β] : Preorder (TopHom α β) :=
311314
Preorder.lift (DFunLike.coe : TopHom α β → α → β)
312315

@@ -315,7 +318,7 @@ instance [PartialOrder β] [Top β] : PartialOrder (TopHom α β) :=
315318

316319
section OrderTop
317320

318-
variable [Preorder β] [OrderTop β]
321+
variable [LE β] [OrderTop β]
319322

320323
instance : OrderTop (TopHom α β) where
321324
top := ⟨⊤, rfl⟩
@@ -500,6 +503,9 @@ theorem cancel_left {g : BotHom β γ} {f₁ f₂ : BotHom α β} (hg : Injectiv
500503

501504
end Bot
502505

506+
instance instLE [LE β] [Bot β] : LE (BotHom α β) where
507+
le f g := (f : α → β) ≤ g
508+
503509
instance [Preorder β] [Bot β] : Preorder (BotHom α β) :=
504510
Preorder.lift (DFunLike.coe : BotHom α β → α → β)
505511

@@ -508,7 +514,7 @@ instance [PartialOrder β] [Bot β] : PartialOrder (BotHom α β) :=
508514

509515
section OrderBot
510516

511-
variable [Preorder β] [OrderBot β]
517+
variable [LE β] [OrderBot β]
512518

513519
instance : OrderBot (BotHom α β) where
514520
bot := ⟨⊥, rfl⟩

0 commit comments

Comments
 (0)