@@ -195,7 +195,7 @@ protected with nosimpl.
195
195
*/
196
196
197
197
require open Stdlib .Set Stdlib .Prop Stdlib .FOL Stdlib .Eq
198
- Stdlib .Nat Stdlib .Bool ;
198
+ Stdlib .Nat Stdlib .Bool Stdlib . Prod ;
199
199
200
200
(a :Set ) inductive 𝕃:TYPE ≔
201
201
| □ : 𝕃 a // \Box
@@ -583,20 +583,20 @@ symbol zip [a b] : 𝕃 a → 𝕃 b → 𝕃 (a × b);
583
583
rule zip □ □ ↪ □
584
584
with zip □ _ ↪ □
585
585
with zip _ □ ↪ □
586
- with zip ($x ⸬ $l ) ($y ⸬ $m ) ↪ $x & $y ⸬ zip $l $m ;
586
+ with zip ($x ⸬ $l ) ($y ⸬ $m ) ↪ ( $x ‚ $y ) ⸬ zip $l $m ;
587
587
588
588
symbol unzip1 [a b ] : 𝕃 (a × b ) → 𝕃 a ;
589
589
590
590
rule unzip1 □ ↪ □
591
- with unzip1 ($x & _ ⸬ $l ) ↪ $x ⸬ unzip1 $l ;
591
+ with unzip1 (( $x ‚ _ ) ⸬ $l ) ↪ $x ⸬ unzip1 $l ;
592
592
593
593
symbol unzip2 [a b ] : 𝕃 (a × b ) → 𝕃 b ;
594
594
595
595
rule unzip2 □ ↪ □
596
- with unzip2 (_ & $y ⸬ $l ) ↪ $y ⸬ unzip2 $l ;
596
+ with unzip2 ((_ ‚ $y ) ⸬ $l ) ↪ $y ⸬ unzip2 $l ;
597
597
598
- assert ⊢ unzip1 ((3 & 5 ) ⸬ (6 & 4 ) ⸬ (7 & 2 ) ⸬ (8 & 1 ) ⸬ □) ≡ 3 ⸬ 6 ⸬ 7 ⸬ 8 ⸬ □;
599
- assert ⊢ unzip2 ((3 & 5 ) ⸬ (6 & 4 ) ⸬ (7 & 2 ) ⸬ (8 & 1 ) ⸬ □) ≡ 5 ⸬ 4 ⸬ 2 ⸬ 1 ⸬ □;
598
+ assert ⊢ unzip1 ((3 ‚ 5 ) ⸬ (6 ‚ 4 ) ⸬ (7 ‚ 2 ) ⸬ (8 ‚ 1 ) ⸬ □) ≡ 3 ⸬ 6 ⸬ 7 ⸬ 8 ⸬ □;
599
+ assert ⊢ unzip2 ((3 ‚ 5 ) ⸬ (6 ‚ 4 ) ⸬ (7 ‚ 2 ) ⸬ (8 ‚ 1 ) ⸬ □) ≡ 5 ⸬ 4 ⸬ 2 ⸬ 1 ⸬ □;
600
600
601
601
symbol all2 [a b ] : (τ a → τ b → 𝔹) → 𝕃 a → 𝕃 b → 𝔹;
602
602
@@ -687,12 +687,12 @@ begin
687
687
apply @seq_ind2 a b (λ l1 l2 , (zip (l1 ++ sa ) (l2 ++ sb ) = zip l1 l2 ++ zip sa sb )) _ _ la lb h {
688
688
reflexivity ;
689
689
} {
690
- assume l1 l2 e1 e2 h1 h2 ; simplify ; apply feq (λ l , e1 & e2 ⸬ l ) h2 ;
690
+ assume l1 l2 e1 e2 h1 h2 ; simplify ; apply feq (λ l , ( e1 ‚ e2 ) ⸬ l ) h2 ;
691
691
};
692
692
end ;
693
693
694
694
opaque symbol nth_zip [a b ] (x :τ a ) (y :τ b ) la lb i : π(size la = size lb ) →
695
- π(nth (x & y ) (zip la lb ) i = nth x la i & nth y lb i ) ≔
695
+ π(nth (x ‚ y ) (zip la lb ) i = nth x la i ‚ nth y lb i ) ≔
696
696
begin
697
697
assume a b x y ; induction
698
698
{ assume lb i h ;
0 commit comments