Skip to content

Commit

Permalink
Add some type annotations
Browse files Browse the repository at this point in the history
Closes #1356
Closes #1357
  • Loading branch information
myreen committed Nov 29, 2024
1 parent 56f838f commit 409fbbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/list/src/listScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Definition LENGTH[simp]:
End

Definition MAP[simp]:
MAP f [] = [] /\
MAP (f:'a -> 'b) [] = [] /\
MAP f (h::t) = f h::MAP f t
End

Expand Down Expand Up @@ -234,8 +234,8 @@ End

(* preserving particular variable quantification order *)
Theorem EL:
(!l. EL 0 l = HD l:'a) /\
(!l n. EL (SUC n) l = EL n (TL l))
(!(l:'a list). EL 0 l = HD l:'a) /\
(!(l:'a list) n. EL (SUC n) l = EL n (TL l))
Proof
REWRITE_TAC[EL_def]
QED
Expand Down

1 comment on commit 409fbbf

@binghe
Copy link
Member

@binghe binghe commented on 409fbbf Nov 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix the OT build broken issues, with the previous mentioned sorting idea implemented.

Please sign in to comment.