Skip to content

Commit 6c24d0d

Browse files
committed
Apply suggestions
1 parent a916780 commit 6c24d0d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Mathlib/Order/ConditionallyCompleteLattice/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ lemma csInf_eq_iff (hs : s.Nonempty) (n : α) :
521521
· intro rfl
522522
exact ⟨csInf_mem hs, fun _ ↦ csInf_le (OrderBot.bddBelow s)⟩
523523
· intro ⟨hn, hle⟩
524-
apply le_antisymm (csInf_le (OrderBot.bddBelow s) hn) (le_csInf hs hle)
524+
exact le_antisymm (csInf_le (OrderBot.bddBelow s) hn) (le_csInf hs hle)
525525

526526
theorem MonotoneOn.map_csInf {β : Type*} [ConditionallyCompleteLattice β] {f : α → β}
527527
(hf : MonotoneOn f s) (hs : s.Nonempty) : f (sInf s) = sInf (f '' s) :=

Mathlib/Order/ConditionallyCompleteLattice/Indexed.lean

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,11 @@ theorem ciInf_mem [Nonempty ι] (f : ι → α) : iInf f ∈ range f :=
427427
lemma ciInf_eq_iff [Nonempty ι] (f : ι → α) (n : α) :
428428
⨅ i, (f i) = n ↔ (∃ i, f i = n) ∧ ∀ i, n ≤ f i := by
429429
have : OrderBot α := WellFoundedLT.toOrderBot α
430-
refine ⟨(· ▸ ⟨ciInf_mem f, ciInf_le (OrderBot.bddBelow ..)⟩), fun ⟨⟨i, hi⟩, h⟩ ↦ ?_⟩
431-
exact le_antisymm (hi ▸ ciInf_le (OrderBot.bddBelow ..) _) (le_ciInf h)
430+
constructor
431+
· rintro rfl
432+
exact ⟨ciInf_mem f, ciInf_le (OrderBot.bddBelow ..)⟩
433+
· rintro ⟨⟨i, rfl⟩, h⟩
434+
exact le_antisymm (ciInf_le (OrderBot.bddBelow ..) _) (le_ciInf h)
432435

433436
end ConditionallyCompleteLinearOrder
434437

0 commit comments

Comments
 (0)