@@ -140,7 +140,7 @@ Open Scope bool.
140140
141141Section Duality.
142142
143- Context {disp : _ } {Alph : inhOrderType disp}.
143+ Context {disp} {Alph : inhOrderType disp}.
144144Let word := seq Alph.
145145
146146Lemma extract_cut (N : nat) (wt : N.-tuple Alph) (i : 'I_N) (S : {set 'I_N}) :
@@ -348,7 +348,7 @@ End Duality.
348348Module Swap.
349349Section Swap.
350350
351- Context {disp : _ } {Alph : inhOrderType disp}.
351+ Context {disp} {Alph : inhOrderType disp}.
352352Let word := seq Alph.
353353
354354Implicit Type a b c : Alph.
@@ -486,7 +486,7 @@ Module NoSetContainingBoth.
486486
487487Section Case.
488488
489- Context {disp : _ } {Alph : inhOrderType disp}.
489+ Context {disp} {Alph : inhOrderType disp}.
490490Let word := seq Alph.
491491
492492Implicit Type a b c : Alph.
@@ -645,7 +645,7 @@ Module SetContainingBothLeft.
645645(** *** Generic order hypothesis *)
646646Section RelHypothesis.
647647
648- Context {disp : _ } {Alph : inhOrderType disp}.
648+ Context {disp} {Alph : inhOrderType disp}.
649649Implicit Type a b c : Alph.
650650
651651Record hypRabc R a b c := HypRabc {
@@ -683,7 +683,7 @@ End RelHypothesis.
683683
684684Section Case.
685685
686- Context {disp : _ } {Alph : inhOrderType disp}.
686+ Context {disp} {Alph : inhOrderType disp}.
687687Let word := seq Alph.
688688
689689Implicit Type u v w r : word.
@@ -1287,7 +1287,7 @@ End SetContainingBothLeft.
12871287(** * Greene numbers are invariant by each plactic rules *)
12881288Section GreeneInvariantsRule.
12891289
1290- Context {disp : _ } {Alph : inhOrderType disp}.
1290+ Context {disp} {Alph : inhOrderType disp}.
12911291Let word := seq Alph.
12921292
12931293Variable u v1 w v2 : word.
@@ -1470,7 +1470,7 @@ End GreeneInvariantsRule.
14701470(** ** Deducing the other comparisons by duality *)
14711471Section GreeneInvariantsDual.
14721472
1473- Context {disp : _ } {Alph : inhOrderType disp}.
1473+ Context {disp} {Alph : inhOrderType disp}.
14741474Let word := seq Alph.
14751475Implicit Type u v w : word.
14761476
@@ -1590,7 +1590,7 @@ End GreeneInvariantsDual.
15901590(** * Main theorem *)
15911591Section GreeneInvariants.
15921592
1593- Context {disp : _ } {Alph : inhOrderType disp}.
1593+ Context {disp} {Alph : inhOrderType disp}.
15941594Let word := seq Alph.
15951595
15961596Implicit Type a b c : Alph.
@@ -1691,10 +1691,13 @@ Qed.
16911691
16921692End GreeneInvariants.
16931693
1694- Corollary Greene_row_eq_shape_RS
1695- d1 d2 (S : inhOrderType d1) (T : inhOrderType d2)
1696- (s : seq S) (t : seq T) :
1697- (forall k, Greene_row s k = Greene_row t k) -> (shape (RS s) = shape (RS t)).
1694+
1695+ Section GreenEqShape.
1696+
1697+ Context d1 d2 (S : inhOrderType d1) (T : inhOrderType d2).
1698+
1699+ Corollary Greene_row_eq_shape_RS (s : seq S) (t : seq T) :
1700+ (forall k, Greene_row s k = Greene_row t k) -> shape (RS s) = shape (RS t).
16981701Proof .
16991702move=> HGreene; apply: Greene_row_tab_eq_shape; try apply: is_tableau_RS.
17001703move=> k.
@@ -1703,10 +1706,8 @@ rewrite -(Greene_row_invar_plactic (u := t)); last exact: congr_RS.
17031706exact: HGreene.
17041707Qed .
17051708
1706- Corollary Greene_col_eq_shape_RS
1707- d1 d2 (S : inhOrderType d1) (T : inhOrderType d2)
1708- (s : seq S) (t : seq T) :
1709- (forall k, Greene_col s k = Greene_col t k) -> (shape (RS s) = shape (RS t)).
1709+ Corollary Greene_col_eq_shape_RS (s : seq S) (t : seq T) :
1710+ (forall k, Greene_col s k = Greene_col t k) -> shape (RS s) = shape (RS t).
17101711Proof .
17111712move=> HGreene; apply: Greene_col_tab_eq_shape; try apply: is_tableau_RS.
17121713move=> k.
@@ -1715,13 +1716,21 @@ rewrite -(Greene_col_invar_plactic (u := t)); last exact: congr_RS.
17151716exact: HGreene.
17161717Qed .
17171718
1719+ End GreenEqShape.
1720+
17181721
1719- (** ** Reverting uniq words *)
1722+ (** ** Reverting words *)
17201723Section RevConj.
17211724
1722- Context {disp : _} {Alph : inhOrderType disp }.
1725+ Context d {Alph : inhOrderType d }.
17231726Implicit Type s : seq Alph.
17241727
1728+ Corollary shape_RS_revdual s : shape (RS (revdual s)) = shape (RS s).
1729+ Proof .
1730+ apply: Greene_row_eq_shape_RS => k.
1731+ by rewrite -Greene_row_dual.
1732+ Qed .
1733+
17251734Theorem RS_rev_uniq s : uniq s -> RS (rev s) = conj_tab (RS s).
17261735Proof using .
17271736move Hsz : (size s) => n.
0 commit comments