Skip to content

Commit 80fa6da

Browse files
fix #1336 (#1693)
Co-authored-by: Zachary Stone <zstonex@gmail.com>
1 parent 61d8adf commit 80fa6da

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

CHANGELOG_UNRELEASED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151

5252
- in `charge.v`:
5353
+ definition `copp`, lemma `cscaleN1`
54+
- in `classical_orders.v`:
55+
+ lemma `big_lexi_order_prefix_closed_itv`
5456

5557
### Changed
5658

classical/classical_orders.v

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,4 +355,23 @@ move: i; case=> [][[]l|[]] [[]r|[]] [][]; rewrite ?in_itv /= ?andbT.
355355
by apply: (big_lexi_order_prefix_gt xr E2) => w wm; exact/esym/xppfx.
356356
by move=> _; exists 0 => ? ?; rewrite set_itvE.
357357
Qed.
358+
358359
End big_lexi_intervals.
360+
361+
Lemma big_lexi_order_prefix_closed_itv {d} {K : nat -> tbOrderType d} n
362+
(x : big_lexi_order K) :
363+
same_prefix n x = `[
364+
(@start_with K n x (fun=>\bot):big_lexi_order K)%O,
365+
(start_with n x (fun=>\top))%O].
366+
Proof.
367+
rewrite eqEsubset; split=> [z pfxz|z]; first last.
368+
rewrite set_itvE /= => xbt; apply: same_prefix_trans.
369+
exact: (start_with_prefix _ (fun=> \bot)%O).
370+
apply/same_prefix_sym/(big_lexi_order_between xbt).
371+
apply: same_prefix_trans (start_with_prefix _ _).
372+
exact/same_prefix_sym/start_with_prefix.
373+
rewrite set_itvE /= !leEbig_lexi_order; apply/andP; split;
374+
case E : (first_diff _ _) => [m|] //; rewrite /start_with /=.
375+
- by case: ifPn => [/pfxz -> //|]; rewrite le0x.
376+
- by case: ifPn => [/pfxz -> //|]; rewrite lex1.
377+
Qed.

0 commit comments

Comments
 (0)