@@ -117,7 +117,7 @@ with is0 (_ +1) ↪ false;
117117
118118opaque symbol s ≠0 [n ] : π (n +1 ≠ 0 ) ≔
119119begin
120- assume n h ; refine ind_eq h (λ n , istrue (is0 n )) top
120+ assume n h ; refine ind_eq h (λ n , istrue (is0 n )) ⊤ᵢ
121121end ;
122122
123123opaque symbol 0 ≠s [n ] : π (0 ≠ n +1 ) ≔
154154opaque symbol eqn_complete x y : π(x = y ) → π(istrue (eqn x y )) ≔
155155begin
156156 induction
157- { assume y i ; rewrite left i ; apply top ; }
157+ { assume y i ; rewrite left i ; apply ⊤ᵢ ; }
158158 { simplify ; assume x h ; induction
159159 { assume i ; apply s ≠0 i ; }
160160 { assume y i j ; simplify ; }
654654opaque symbol ≤_refl x : π (istrue (x ≤ x )) ≔
655655begin
656656 induction
657- { simplify ; apply top ;}
657+ { simplify ; apply ⊤ᵢ ;}
658658 { assume x h ; simplify ; apply h ; }
659659end ;
660660
@@ -749,14 +749,14 @@ end;
749749opaque symbol leq_pred n : π (istrue (n -1 ≤ n )) ≔
750750begin
751751 induction
752- { apply top ;}
752+ { apply ⊤ᵢ ;}
753753 { assume n h ; simplify ; apply leqnSn n ;}
754754end ;
755755
756756opaque symbol ltnW m n : π (istrue (m < n )) → π (istrue (m ≤ n )) ≔
757757begin
758758 induction
759- { assume m h ; apply top ;}
759+ { assume m h ; apply ⊤ᵢ ;}
760760 { assume m h ; induction
761761 { assume i ; apply i ;}
762762 { assume n i j ; apply h n ; apply j ;}
798798opaque symbol leq_total x y : π (istrue (x ≤ y ) ∨ istrue (y ≤ x )) ≔
799799begin
800800 induction
801- { assume y ; simplify ; apply ∨ᵢ₁; apply top ; }
801+ { assume y ; simplify ; apply ∨ᵢ₁; apply ⊤ᵢ ; }
802802 { assume x h ; induction
803- { simplify ; apply ∨ᵢ₂; apply top ; }
803+ { simplify ; apply ∨ᵢ₂; apply ⊤ᵢ ; }
804804 { assume y i ; simplify ; apply h y ; }
805805 }
806806end ;
@@ -814,7 +814,7 @@ begin
814814 } {
815815 generalize n ; induction
816816 { assume h ; apply h (eq_refl 0 ); }
817- { assume n h i ; apply top ; }
817+ { assume n h i ; apply ⊤ᵢ ; }
818818 };
819819end ;
820820
@@ -824,7 +824,7 @@ begin
824824 generalize m ; induction
825825 { induction
826826 { assume h ; apply ∨ᵢ₁ (eq_refl 0 ) }
827- { assume n h i ; apply ∨ᵢ₂ top }
827+ { assume n h i ; apply ∨ᵢ₂ ⊤ᵢ }
828828 }
829829 { assume m h ; induction
830830 { assume i ; apply ∨ᵢ₂ i }
883883opaque symbol leq_addl m n : π (istrue (n ≤ m + n )) ≔
884884begin
885885 assume m ; induction
886- { apply top ; }
886+ { apply ⊤ᵢ ; }
887887 { assume n h ; apply h ; }
888888end ;
889889
@@ -897,7 +897,7 @@ begin
897897 induction
898898 { assume n ; apply ≤_refl n ; }
899899 { assume m h ; induction
900- { apply top ; }
900+ { apply ⊤ᵢ ; }
901901 { assume n i ; simplify ;
902902 have t : π (istrue (n ≤ n +1 )) { apply leqnSn n };
903903 apply @leq_trans (n - m ) n (n +1 ) (h n ) t ;
@@ -909,7 +909,7 @@ opaque symbol subn_eq0 m n : π ((m - n = 0) ⇔ istrue (m ≤ n)) ≔
909909begin
910910 assume m n ; apply ∧ᵢ {
911911 generalize m ; induction
912- { assume n h ; apply top ; }
912+ { assume n h ; apply ⊤ᵢ ; }
913913 { assume m h ; induction
914914 { assume i ; apply s ≠0 i ; }
915915 { assume n i j ; apply h n j ; }
@@ -1188,7 +1188,7 @@ rule max $x $x ↪ $x;
11881188opaque symbol leq_maxl m n : π (istrue (m ≤ max m n )) ≔
11891189begin
11901190 induction
1191- { assume n ; apply top ; }
1191+ { assume n ; apply ⊤ᵢ ; }
11921192 { assume m h ; induction
11931193 { simplify ; apply ≤_refl m ; }
11941194 { assume n i ; simplify ; apply h n ; }
@@ -1352,7 +1352,7 @@ begin
13521352 } {
13531353 generalize m ; induction
13541354 { assume h ; apply h (eq_refl 0 ); }
1355- { assume m h i ; apply top ; }
1355+ { assume m h i ; apply ⊤ᵢ ; }
13561356 };
13571357end ;
13581358
@@ -1482,9 +1482,9 @@ rule min $x $x ↪ $x;
14821482opaque symbol geq_minl m n : π (istrue (min m n ≤ m )) ≔
14831483begin
14841484 induction
1485- { assume n ; apply top ; }
1485+ { assume n ; apply ⊤ᵢ ; }
14861486 { assume m h ; induction
1487- { apply top ; }
1487+ { apply ⊤ᵢ ; }
14881488 { assume n i ; simplify ; apply h n ; }
14891489 }
14901490end ;
@@ -1777,7 +1777,7 @@ end;
17771777opaque symbol fact_gt0 n : π (istrue (n ! > 0 )) ≔
17781778begin
17791779 induction
1780- { apply top ; }
1780+ { apply ⊤ᵢ ; }
17811781 { assume n h ; rewrite factS n ; rewrite mulSnr n (n !);
17821782 apply ltn_addl 0 (n !) (n * n !); apply h ; }
17831783end ;
@@ -1790,6 +1790,6 @@ end;
17901790opaque symbol fact_geq n : π (istrue (n ≤ n !)) ≔
17911791begin
17921792 induction
1793- { apply top ; }
1793+ { apply ⊤ᵢ ; }
17941794 { assume n h ; rewrite factS n ; apply leq_pmulr (n +1 ) (n !) (fact_gt0 n ); }
17951795end ;
0 commit comments