English
There exists a CovBy refinement where the head is bottom and the last is top.
Русский
Существует refinement CovBy, в котором голова равна нижнему элементу, а последний — верхнему.
LaTeX
$$$\forall {\alpha} [PartialOrder\alpha] [BoundedOrder\alpha] [WellFoundedLT\alpha] [WellFoundedGT\alpha] (s : LTSeries\alpha), \exists t:\ RelSeries{(a,b)\in \alpha\times\alpha \mid a \lessdot b}, \exists i:\ Fin (s.length + 1) \hookrightarrow Fin (t.length + 1), t \circ i = s \land t.head = \bot \land t.last = \top$$$
Lean4
theorem exists_relSeries_covBy_and_head_eq_bot_and_last_eq_bot {α} [PartialOrder α] [BoundedOrder α] [WellFoundedLT α]
[WellFoundedGT α] (s : LTSeries α) :
∃ (t : RelSeries {(a, b) : α × α | a ⋖ b}) (i : Fin (s.length + 1) ↪ Fin (t.length + 1)),
t ∘ i = s ∧ t.head = ⊥ ∧ t.last = ⊤ :=
by
wlog h₁ : s.head = ⊥
· obtain ⟨t, i, hi, ht⟩ := this (s.cons ⊥ (bot_lt_iff_ne_bot.mpr h₁)) rfl
exact
⟨t, ⟨fun j ↦ i (j.succ.cast (by simp)), fun _ _ ↦ by simp⟩,
funext fun j ↦ (congr_fun hi _).trans (RelSeries.cons_cast_succ _ _ _ _), ht⟩
wlog h₂ : s.last = ⊤
· obtain ⟨t, i, hi, ht⟩ := this (s.snoc ⊤ (lt_top_iff_ne_top.mpr h₂)) (by simp [h₁]) (by simp)
exact
⟨t, ⟨fun j ↦ i (.cast (by simp) j.castSucc), fun _ _ ↦ by simp⟩,
funext fun j ↦ (congr_fun hi _).trans (RelSeries.snoc_cast_castSucc _ _ _ _), ht⟩
obtain ⟨t, i, hit, hi₁, hi₂⟩ := s.exists_relSeries_covBy
refine ⟨t, i, hit, ?_, ?_⟩
· rw [← h₁, RelSeries.head, RelSeries.head, ← hi₁, ← hit, Function.comp]
· rw [← h₂, RelSeries.last, RelSeries.last, ← hi₂, ← hit, Function.comp]