Skip to content

Commit 908ec7b

Browse files
authored
Merge pull request #2363 from SkySkimmer/context-secvar
Adapt to rocq-prover/rocq#21987 (destruct clears non section variable even when reusing a section variable's name)
2 parents 24f7937 + b1faca8 commit 908ec7b

1 file changed

Lines changed: 17 additions & 18 deletions

File tree

theories/Homotopy/Syllepsis.v

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ Section eh_p_pp.
385385
Proof.
386386
apply moveR_Vp in H_urnat_yz0, H_urnat_yz1, H_wlrnat_x_yz.
387387
destruct H_urnat_yz0, H_urnat_yz1, H_wlrnat_x_yz.
388-
clear H_urnat_yz0 H_urnat_yz1 H_wlrnat_x_yz.
388+
try clear H_urnat_yz0 H_urnat_yz1 H_wlrnat_x_yz.
389389
destruct wrpp_yz0, wrpp_yz1.
390390
clear wrpp_yz0 wrpp_yz1.
391391
revert x0 ulnat_x0.
@@ -403,7 +403,7 @@ Section eh_p_pp.
403403
revert z1 urnat_z1.
404404
snapply equiv_path_ind_rlucancel.
405405
destruct wry0, wry1, wrz0, wrz1.
406-
clear wry0 wry1 wrz0 wrz1.
406+
clear wry0 wry1.
407407
revert wlx2 wlrnat_x_z.
408408
snapply equiv_path_ind_rlucancel.
409409
revert wlx1 wlrnat_x_y.
@@ -492,7 +492,7 @@ Section eh_pp_p.
492492
Proof.
493493
apply moveR_Vp in H_ulnat_xy0, H_ulnat_xy1, H_wlrnat_xy_z.
494494
destruct H_ulnat_xy0, H_ulnat_xy1, H_wlrnat_xy_z.
495-
clear H_ulnat_xy0 H_ulnat_xy1 H_wlrnat_xy_z.
495+
try clear H_ulnat_xy0 H_ulnat_xy1 H_wlrnat_xy_z.
496496
destruct wlpp_xy0, wlpp_xy1.
497497
clear wlpp_xy0 wlpp_xy1.
498498
revert x0 ulnat_x0.
@@ -510,13 +510,12 @@ Section eh_pp_p.
510510
revert z2 urnat_z2.
511511
snapply equiv_path_ind_rlucancel.
512512
destruct wlx0, wlx1, wly0, wly1.
513-
clear wlx0 wlx1 wly0 wly1.
513+
try clear wlx0 wlx1 wly0 wly1.
514514
revert wrz2 wlrnat_x_z.
515515
snapply equiv_path_ind_lrucancel.
516516
revert wrz1 wlrnat_y_z.
517517
snapply equiv_path_ind_lrucancel.
518518
destruct wrz0.
519-
clear wrz0.
520519
reflexivity.
521520
Defined.
522521

@@ -598,7 +597,7 @@ Section eh_V.
598597
apply moveL_Vp, moveL_pV in wlrnat_V_x_y.
599598
apply symmetry in wlrnat_V_x_y.
600599
destruct wlrnat_V_x_y.
601-
clear wlrnat_V_x_y.
600+
try clear wlrnat_V_x_y.
602601
clear H_whiskerR_wlrnat_x_y.
603602
revert ulnat_x0 ehlnat_1p_x0.
604603
snapply equiv_path_ind_rlucancel.
@@ -629,7 +628,7 @@ Section eh_V.
629628
snapply equiv_path_ind_rlucancel.
630629

631630
destruct wry0, wry1, wlx1.
632-
clear wry0 wry1 wlx1.
631+
clear wry0 wry1.
633632
revert wlx0.
634633
snapply equiv_path_ind_lrucancel.
635634
reflexivity.
@@ -726,16 +725,16 @@ Section Ehrnat_p1_pp.
726725
Proof.
727726
apply moveR_Vp in H_urnat_yz, H_ulnat_yz, H_ehrnat_yz.
728727
destruct H_urnat_yz, H_ulnat_yz, H_ehrnat_yz.
729-
clear H_urnat_yz H_ulnat_yz H_ehrnat_yz.
728+
try clear H_urnat_yz H_ulnat_yz H_ehrnat_yz.
730729
apply moveR_Vp in ehrnat_p1_y, ehrnat_p1_z.
731730
destruct ehrnat_p1_y, ehrnat_p1_z.
732-
clear ehrnat_p1_y ehrnat_p1_z.
731+
try clear ehrnat_p1_y ehrnat_p1_z.
733732
destruct H_a02, H_c02.
734733
clear H_a02 H_c02.
735734
destruct wrpp_yz, wlpp_yz.
736735
clear wrpp_yz wlpp_yz.
737736
destruct a01, a12, b01, b12, c01, c12.
738-
clear a01 a12 b01 b12 c01 c12.
737+
try clear a01 a12 b01 b12 c01 c12.
739738
revert y ulnat_y.
740739
snapply equiv_path_ind_rlucancel.
741740
revert z ulnat_z.
@@ -745,7 +744,7 @@ Section Ehrnat_p1_pp.
745744
revert wlz ehrnat_z.
746745
snapply equiv_path_ind_rlucancel.
747746
destruct wry, wrz.
748-
clear wry wrz.
747+
try clear wry wrz.
749748
reflexivity.
750749
Defined.
751750

@@ -861,10 +860,10 @@ Section wlrnat_V_p_pp.
861860
Proof.
862861
apply moveR_Vp in H_ehrnat_yz0, H_ehrnat_yz1.
863862
destruct H_ehrnat_yz0, H_ehrnat_yz1.
864-
clear H_ehrnat_yz0 H_ehrnat_yz1.
863+
try clear H_ehrnat_yz0 H_ehrnat_yz1.
865864
apply moveR_Vp in H_wlrnat_x_yz, H_wlrnat_yz_x.
866865
destruct H_wlrnat_x_yz, H_wlrnat_yz_x.
867-
clear H_wlrnat_x_yz H_wlrnat_yz_x.
866+
try clear H_wlrnat_x_yz H_wlrnat_yz_x.
868867
destruct a01, b01, c01, d01, e01, f01.
869868
clear a01 b01 c01 d01 e01 f01.
870869
pose (H_whiskerR_wlrnat_x_y := moveL_Mp _ _ _ (moveL_pV _ _ _ (whiskerR_p1 wlrnat_x_y))).
@@ -874,16 +873,16 @@ Section wlrnat_V_p_pp.
874873
apply moveL_Vp, moveL_pV in wlrnat_V_x_y.
875874
apply symmetry in wlrnat_V_x_y.
876875
destruct wlrnat_V_x_y.
877-
clear wlrnat_V_x_y.
876+
try clear wlrnat_V_x_y.
878877
apply moveL_pV in wlrnat_V_x_z.
879878
apply (concat H_whiskerR_wlrnat_x_z^) in wlrnat_V_x_z.
880879
apply moveL_Vp, moveL_pV in wlrnat_V_x_z.
881880
apply symmetry in wlrnat_V_x_z.
882881
destruct wlrnat_V_x_z.
883-
clear wlrnat_V_x_z.
882+
try clear wlrnat_V_x_z.
884883
clear H_whiskerR_wlrnat_x_y H_whiskerR_wlrnat_x_z.
885884
destruct wrpp_yz0, wlpp_yz0, wrpp_yz1, wlpp_yz1.
886-
clear wrpp_yz0 wlpp_yz0 wrpp_yz1 wlpp_yz1.
885+
try clear wrpp_yz0 wlpp_yz0 wrpp_yz1 wlpp_yz1.
887886
revert wlrnat_y_x wlrnat_z_x.
888887
revert wrx0 ehlnat_x0.
889888
snapply equiv_path_ind_rlucancel.
@@ -900,13 +899,13 @@ Section wlrnat_V_p_pp.
900899
revert wlz1 ehrnat_z1.
901900
snapply equiv_path_ind_rlucancel.
902901
destruct wry0, wry1, wrz0, wrz1.
903-
clear wry0 wry1 wrz0 wrz1.
902+
try clear wry0 wry1 wrz0 wrz1.
904903
revert wlx0.
905904
snapply equiv_path_ind_lrucancel.
906905
revert wlx1.
907906
snapply equiv_path_ind_lrucancel.
908907
destruct wlx2.
909-
clear wlx2.
908+
try clear wlx2.
910909
reflexivity.
911910
Defined.
912911

0 commit comments

Comments
 (0)