Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into guido_refine
- Loading branch information
Showing
73 changed files
with
21,890 additions
and
21,409 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Bug1065a | ||
|
||
assume type mem | ||
|
||
let st_pre = st_pre_h mem | ||
let st_post' (a:Type) (pre:Type) = st_post_h' mem a pre | ||
|
||
assume val myStack : (a:Type) -> (pre:st_pre) -> (post: (m0:mem -> Tot (st_post' a (pre m0)))) -> Type0 | ||
|
||
assume val gg : #a:Type -> #pre:(st_pre_h mem) -> #post:(mem -> Tot (st_post_h' mem a True)) -> myStack a pre post |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Bug1065b | ||
|
||
assume val f : list (x:int{x>=0}) -> unit | ||
|
||
let test (x:list nat) = f 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Bug1065c | ||
|
||
assume val t : Type | ||
|
||
assume val proof : squash t | ||
|
||
#set-options "--no_smt" | ||
|
||
val ref : _:unit{t} | ||
let ref = proof | ||
|
||
let id1 (x : (_:unit{t})) : squash t = x | ||
|
||
let id2 (x : squash t) : (_:unit{t}) = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Bug1561a | ||
|
||
class validator_cls = { bidon: nat } | ||
|
||
type validator' (v : validator_cls) (k: nat) : Type0 = | C | ||
|
||
let validator [| cls: validator_cls |] k = validator' cls k | ||
|
||
let validate_nat [| d : validator_cls |] (p: bool) : Tot (validator 18) = C |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module Bug1561b | ||
|
||
class a = {x : bool} | ||
|
||
let t [| a |] : Tot Type = if x then ℤ else unit | ||
|
||
type u = | A | B | ||
|
||
let f_t [| _ : a |] : Tot Type = u → t → Tot t | ||
|
||
instance ii : a = { x = true } | ||
|
||
let f0 : f_t = fun l y → y | ||
|
||
(* used to explode with an assertion failure *) | ||
val test : unit -> unit | ||
let test () : unit = | ||
let f : f_t = fun l y → y | ||
in () | ||
|
||
val f1 : f_t | ||
let f1 = fun l y → y |
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
Oops, something went wrong.