-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix(proofs-lib/fstar): make type implicits on typeclasses"
This reverts commit 253fb96.
- Loading branch information
Lucas Franceschino
committed
Jun 26, 2024
1 parent
e366d5c
commit 73ba5b6
Showing
21 changed files
with
100 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module Core.Clone | ||
|
||
class t_Clone #self = { | ||
class t_Clone self = { | ||
f_clone: x:self -> r:self {x == r} | ||
} | ||
|
||
(** Everything is clonable *) | ||
instance clone_all (t: Type): t_Clone #t = { | ||
instance clone_all (t: Type): t_Clone t = { | ||
f_clone = (fun x -> x); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Core.Default | ||
|
||
class t_Default (#t: Type0) = { | ||
class t_Default (t: Type0) = { | ||
v_default: unit -> t; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module Core.Iter.Traits.Collect | ||
|
||
class into_iterator #self = { | ||
class into_iterator self = { | ||
f_IntoIter: Type0; | ||
// f_Item: Type0; | ||
f_into_iter: self -> f_IntoIter; | ||
} | ||
|
||
let t_IntoIterator #self = into_iterator #self | ||
let t_IntoIterator = into_iterator | ||
|
||
unfold instance impl t {| Core.Iter.Traits.Iterator.iterator #t |}: into_iterator #t = { | ||
unfold instance impl t {| Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = { | ||
f_IntoIter = t; | ||
f_into_iter = id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
module Core.Marker | ||
|
||
class t_Sized (#h: Type) = { | ||
class t_Sized (h: Type) = { | ||
dummy_field: unit | ||
} | ||
|
||
(** we consider everything to be sized *) | ||
instance t_Sized_all t: t_Sized #t = { | ||
instance t_Sized_all t: t_Sized t = { | ||
dummy_field = () | ||
} | ||
|
||
class t_Copy (#h: Type) = { | ||
class t_Copy (h: Type) = { | ||
dummy_copy_field: unit | ||
} | ||
|
||
(** we consider everything to be copyable *) | ||
instance t_Copy_all t: t_Copy #t = { | ||
instance t_Copy_all t: t_Copy t = { | ||
dummy_copy_field = () | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.