file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DependentBoolRefinement.fst | DependentBoolRefinement.src_env | val src_env : Type0 | let src_env = list (var & binding) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 148,
"start_col": 0,
"start_line": 148
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"DependentBoolRefinement.binding"
] | [] | false | false | false | true | true | let src_env =
| list (var & binding) | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.lookup_ty | val lookup_ty (e: src_env) (x: var) : option src_ty | val lookup_ty (e: src_env) (x: var) : option src_ty | let lookup_ty (e:src_env) (x:var)
: option src_ty
= match lookup e x with
| Some (Inl t) -> Some t
| _ -> None | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 166,
"start_col": 0,
"start_line": 162
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_env -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Native.option DependentBoolRefinement.src_ty | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.var",
"DependentBoolRefinement.lookup",
"DependentBoolRefinement.binding",
"DependentBoolRefinement.src_ty",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.None"
] | [] | false | false | false | true | false | let lookup_ty (e: src_env) (x: var) : option src_ty =
| match lookup e x with
| Some (Inl t) -> Some t
| _ -> None | false |
DependentBoolRefinement.fst | DependentBoolRefinement.b2t_ty | val b2t_ty:R.term | val b2t_ty:R.term | let b2t_ty : R.term = R.(pack_ln (Tv_Arrow (RT.mk_simple_binder RT.pp_name_default RT.bool_ty) (RT.mk_total (RT.tm_type RT.u_zero)))) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 133,
"end_line": 214,
"start_col": 0,
"start_line": 214
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_Arrow",
"FStar.Reflection.Typing.mk_simple_binder",
"FStar.Reflection.Typing.pp_name_default",
"FStar.Reflection.Typing.bool_ty",
"FStar.Reflection.Typing.mk_total",
"FStar.Reflection.Typing.tm_type",
"FStar.Reflection.Ty... | [] | false | false | false | true | false | let b2t_ty:R.term =
| let open R in
pack_ln (Tv_Arrow (RT.mk_simple_binder RT.pp_name_default RT.bool_ty)
(RT.mk_total (RT.tm_type RT.u_zero))) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.b2t_lid | val b2t_lid:R.name | val b2t_lid:R.name | let b2t_lid : R.name = ["Prims"; "b2t"] | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 212,
"start_col": 0,
"start_line": 212
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Stubs.Reflection.Types.name | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Prims.string",
"Prims.Nil"
] | [] | false | false | false | true | false | let b2t_lid:R.name =
| ["Prims"; "b2t"] | false |
DependentBoolRefinement.fst | DependentBoolRefinement.max | val max : n1: Prims.nat -> n2: Prims.nat -> Prims.nat | let max (n1 n2:nat) = if n1 < n2 then n2 else n1 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 168,
"start_col": 0,
"start_line": 168
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n1: Prims.nat -> n2: Prims.nat -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.op_LessThan",
"Prims.bool"
] | [] | false | false | false | true | false | let max (n1 n2: nat) =
| if n1 < n2 then n2 else n1 | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.b2t_fv | val b2t_fv:R.fv | val b2t_fv:R.fv | let b2t_fv : R.fv = R.pack_fv b2t_lid | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 213,
"start_col": 0,
"start_line": 213
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Stubs.Reflection.Types.fv | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.V2.Builtins.pack_fv",
"DependentBoolRefinement.b2t_lid"
] | [] | false | false | false | true | false | let b2t_fv:R.fv =
| R.pack_fv b2t_lid | false |
DependentBoolRefinement.fst | DependentBoolRefinement.r_b2t | val r_b2t (t: R.term) : R.term | val r_b2t (t: R.term) : R.term | let r_b2t (t:R.term)
: R.term
= R.(pack_ln (Tv_App (pack_ln (Tv_FVar b2t_fv)) (t, Q_Explicit))) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 67,
"end_line": 217,
"start_col": 0,
"start_line": 215
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_App",
"FStar.Stubs.Reflection.V2.Data.Tv_FVar",
"DependentBoolRefinement.b2t_fv",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Stubs.Reflection.V... | [] | false | false | false | true | false | let r_b2t (t: R.term) : R.term =
| let open R in pack_ln (Tv_App (pack_ln (Tv_FVar b2t_fv)) (t, Q_Explicit)) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.fstar_top_env | val fstar_top_env : Type0 | let fstar_top_env =
g:fstar_env {
forall x. None? (RT.lookup_bvar g x )
} | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 333,
"start_col": 0,
"start_line": 330
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.fstar_env",
"Prims.l_Forall",
"Prims.int",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_None",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Typing.lookup_bvar"
] | [] | false | false | false | true | true | let fstar_top_env =
| g: fstar_env{forall x. None? (RT.lookup_bvar g x)} | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.fstar_env | val fstar_env : Type0 | let fstar_env =
g:R.env {
RT.lookup_fvar g RT.bool_fv == Some (RT.tm_type RT.u_zero) /\
RT.lookup_fvar g b2t_fv == Some b2t_ty
} | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 328,
"start_col": 0,
"start_line": 324
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Typing.lookup_fvar",
"FStar.Reflection.Typing.bool_fv",
"FStar.Pervasives.Native.Some",
"FStar.Reflection.Typing.tm_type",
"FStar.Reflection.Typi... | [] | false | false | false | true | true | let fstar_env =
| g:
R.env
{ RT.lookup_fvar g RT.bool_fv == Some (RT.tm_type RT.u_zero) /\
RT.lookup_fvar g b2t_fv == Some b2t_ty } | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_eqn | val elab_eqn (e1 e2: src_exp) : R.term | val elab_eqn (e1 e2: src_exp) : R.term | let elab_eqn (e1 e2:src_exp)
: R.term
= RT.eq2 RT.u_zero RT.bool_ty (elab_exp e1) (elab_exp e2) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 310,
"start_col": 0,
"start_line": 308
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e1: DependentBoolRefinement.src_exp -> e2: DependentBoolRefinement.src_exp
-> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_exp",
"FStar.Reflection.Typing.eq2",
"FStar.Reflection.Typing.u_zero",
"FStar.Reflection.Typing.bool_ty",
"DependentBoolRefinement.elab_exp",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let elab_eqn (e1 e2: src_exp) : R.term =
| RT.eq2 RT.u_zero RT.bool_ty (elab_exp e1) (elab_exp e2) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.extend_env_l | val extend_env_l : g: FStar.Stubs.Reflection.Types.env -> sg: DependentBoolRefinement.src_env
-> FStar.Stubs.Reflection.Types.env | let extend_env_l (g:R.env) (sg:src_env) =
L.fold_right
(fun (x, b) g -> RT.extend_env g x (elab_binding b))
sg
g | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 6,
"end_line": 322,
"start_col": 0,
"start_line": 318
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: FStar.Stubs.Reflection.Types.env -> sg: DependentBoolRefinement.src_env
-> FStar.Stubs.Reflection.Types.env | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"DependentBoolRefinement.src_env",
"FStar.List.Tot.Base.fold_right",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.V2.Data.var",
"DependentBoolRefinement.binding",
"FStar.Reflection.Typing.extend_env",
"DependentBoolRefinement.elab_binding"
] | [] | false | false | false | true | false | let extend_env_l (g: R.env) (sg: src_env) =
| L.fold_right (fun (x, b) g -> RT.extend_env g x (elab_binding b)) sg g | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.s_height | val s_height (#f #g #t0 #t1: _) (d: sub_typing f g t0 t1) : GTot nat | val s_height (#f #g #t0 #t1: _) (d: sub_typing f g t0 t1) : GTot nat | let s_height #f #g #t0 #t1 (d:sub_typing f g t0 t1)
: GTot nat
= 1 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 416,
"start_col": 0,
"start_line": 414
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: DependentBoolRefinement.sub_typing f g t0 t1 -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.sub_typing",
"Prims.nat"
] | [] | false | false | false | false | false | let s_height #f #g #t0 #t1 (d: sub_typing f g t0 t1) : GTot nat =
| 1 | false |
DependentBoolRefinement.fst | DependentBoolRefinement.open_ty' | val open_ty' (t: src_ty) (v: src_exp) (n: index) : Tot src_ty (decreases t) | val open_ty' (t: src_ty) (v: src_exp) (n: index) : Tot src_ty (decreases t) | let rec open_exp' (e:src_exp) (v:src_exp) (n:index)
: Tot src_exp
(decreases e)
= match e with
| EBool _ -> e
| EVar m -> EVar m
| EBVar m -> if m = n then v else EBVar m
| EIf b e1 e2 -> EIf (open_exp' b v n) (open_exp' e1 v n) (open_exp' e2 v n)
| ELam t e -> ELam (open_ty' t v n) (o... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 70,
"end_line": 79,
"start_col": 0,
"start_line": 62
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: DependentBoolRefinement.src_ty ->
v: DependentBoolRefinement.src_exp ->
n: DependentBoolRefinement.index
-> Prims.Tot DependentBoolRefinement.src_ty | Prims.Tot | [
"total",
""
] | [
"open_exp'",
"open_ty'"
] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.index",
"DependentBoolRefinement.TBool",
"DependentBoolRefinement.TRefineBool",
"DependentBoolRefinement.open_exp'",
"Prims.op_Addition",
"DependentBoolRefinement.TArrow",
"DependentBoolRefinement.open_ty'"... | [
"mutual recursion"
] | false | false | false | true | false | let rec open_ty' (t: src_ty) (v: src_exp) (n: index) : Tot src_ty (decreases t) =
| match t with
| TBool -> TBool
| TRefineBool e -> TRefineBool (open_exp' e v (n + 1))
| TArrow t1 t2 -> TArrow (open_ty' t1 v n) (open_ty' t2 v (n + 1)) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.close_exp' | val close_exp' (e: src_exp) (v: var) (n: nat) : Tot src_exp (decreases e) | val close_exp' (e: src_exp) (v: var) (n: nat) : Tot src_exp (decreases e) | let rec close_exp' (e:src_exp) (v:var) (n:nat)
: Tot src_exp
(decreases e)
= match e with
| EBool _ -> e
| EVar m -> if m = v then EBVar n else EVar m
| EBVar m -> EBVar m
| EIf b e1 e2 -> EIf (close_exp' b v n) (close_exp' e1 v n) (close_exp' e2 v n)
| ELam t e -> ELam (close_ty' t v n)... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 72,
"end_line": 98,
"start_col": 0,
"start_line": 81
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> v: DependentBoolRefinement.var -> n: Prims.nat
-> Prims.Tot DependentBoolRefinement.src_exp | Prims.Tot | [
"total",
""
] | [
"close_exp'",
"close_ty'"
] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"Prims.nat",
"Prims.bool",
"Prims.op_Equality",
"DependentBoolRefinement.EBVar",
"DependentBoolRefinement.EVar",
"DependentBoolRefinement.index",
"DependentBoolRefinement.EIf",
"DependentBoolRefinement.close_exp'",
"DependentBoolR... | [
"mutual recursion"
] | false | false | false | true | false | let rec close_exp' (e: src_exp) (v: var) (n: nat) : Tot src_exp (decreases e) =
| match e with
| EBool _ -> e
| EVar m -> if m = v then EBVar n else EVar m
| EBVar m -> EBVar m
| EIf b e1 e2 -> EIf (close_exp' b v n) (close_exp' e1 v n) (close_exp' e2 v n)
| ELam t e -> ELam (close_ty' t v n) (close_exp' e v (n + 1))
| EApp e1 e2 -> EApp (close_exp' e1 v n) (close_exp' e2 v n) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.ln' | val ln' (e: src_exp) (n: int) : bool | val ln' (e: src_exp) (n: int) : bool | let rec ln' (e:src_exp) (n:int)
: bool
= match e with
| EBool _
| EVar _ -> true
| EBVar m -> m <= n
| EIf b e1 e2 -> ln' b n && ln' e1 n && ln' e2 n
| ELam t e -> ln_ty' t n && ln' e (n + 1)
| EApp e1 e2 -> ln' e1 n && ln' e2 n
and ln_ty' (t:src_ty) (n:int)
: bool
= match t with
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 57,
"start_col": 0,
"start_line": 42
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> n: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [
"ln'",
"ln_ty'"
] | [
"DependentBoolRefinement.src_exp",
"Prims.int",
"Prims.bool",
"DependentBoolRefinement.var",
"DependentBoolRefinement.index",
"Prims.op_LessThanOrEqual",
"Prims.op_AmpAmp",
"DependentBoolRefinement.ln'",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.ln_ty'",
"Prims.op_Addition"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec ln' (e: src_exp) (n: int) : bool =
| match e with
| EBool _ | EVar _ -> true
| EBVar m -> m <= n
| EIf b e1 e2 -> ln' b n && ln' e1 n && ln' e2 n
| ELam t e -> ln_ty' t n && ln' e (n + 1)
| EApp e1 e2 -> ln' e1 n && ln' e2 n | false |
DependentBoolRefinement.fst | DependentBoolRefinement.freevars_ty | val freevars_ty (t: src_ty) : Set.set var | val freevars_ty (t: src_ty) : Set.set var | let rec freevars (e:src_exp)
: FStar.Set.set var
= match e with
| EVar v -> Set.singleton v
| EBool _
| EBVar _ -> Set.empty
| EIf b e1 e2 -> Set.union (freevars b) (Set.union (freevars e1) (freevars e2))
| ELam t e -> Set.union (freevars_ty t) (freevars e)
| EApp e1 e2 -> Set.union (freeva... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 40,
"start_col": 0,
"start_line": 26
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> FStar.Set.set DependentBoolRefinement.var | Prims.Tot | [
"total"
] | [
"freevars",
"freevars_ty"
] | [
"DependentBoolRefinement.src_ty",
"FStar.Set.empty",
"DependentBoolRefinement.var",
"FStar.Set.union",
"DependentBoolRefinement.freevars_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.freevars",
"FStar.Set.set"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec freevars_ty (t: src_ty) : Set.set var =
| match t with
| TBool -> Set.empty
| TArrow t1 t2 -> (freevars_ty t1) `Set.union` (freevars_ty t2)
| TRefineBool e -> freevars e | false |
DependentBoolRefinement.fst | DependentBoolRefinement.ln_ty' | val ln_ty' (t: src_ty) (n: int) : bool | val ln_ty' (t: src_ty) (n: int) : bool | let rec ln' (e:src_exp) (n:int)
: bool
= match e with
| EBool _
| EVar _ -> true
| EBVar m -> m <= n
| EIf b e1 e2 -> ln' b n && ln' e1 n && ln' e2 n
| ELam t e -> ln_ty' t n && ln' e (n + 1)
| EApp e1 e2 -> ln' e1 n && ln' e2 n
and ln_ty' (t:src_ty) (n:int)
: bool
= match t with
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 54,
"end_line": 57,
"start_col": 0,
"start_line": 42
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> n: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [
"ln'",
"ln_ty'"
] | [
"DependentBoolRefinement.src_ty",
"Prims.int",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.ln'",
"Prims.op_Addition",
"Prims.op_AmpAmp",
"DependentBoolRefinement.ln_ty'",
"Prims.bool"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec ln_ty' (t: src_ty) (n: int) : bool =
| match t with
| TBool -> true
| TRefineBool e -> ln' e (n + 1)
| TArrow t1 t2 -> ln_ty' t1 n && ln_ty' t2 (n + 1) | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.serialize_params_blake2s | val serialize_params_blake2s
(kk: size_t{v kk <= Spec.max_key Spec.Blake2S})
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output Spec.Blake2S})
(p: blake2_params Spec.Blake2S)
(b: lbuffer (word_t Spec.Blake2S) 8ul)
: Stack unit
(requires
fun h ->
live h b /\ blake2_param... | val serialize_params_blake2s
(kk: size_t{v kk <= Spec.max_key Spec.Blake2S})
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output Spec.Blake2S})
(p: blake2_params Spec.Blake2S)
(b: lbuffer (word_t Spec.Blake2S) 8ul)
: Stack unit
(requires
fun h ->
live h b /\ blake2_param... | let serialize_params_blake2s
(kk:size_t{v kk <= Spec.max_key Spec.Blake2S})
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output Spec.Blake2S})
(p: blake2_params Spec.Blake2S)
(b: lbuffer (word_t Spec.Blake2S) 8ul)
: Stack unit
(requires fun h -> live h b /\
blake2_params_inv h p /\
LowStar.Buffer... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 9,
"end_line": 664,
"start_col": 0,
"start_line": 574
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
kk:
Lib.IntTypes.size_t
{Lib.IntTypes.v kk <= Spec.Blake2.Definitions.max_key Spec.Blake2.Definitions.Blake2S} ->
nn:
Lib.IntTypes.size_t
{ 1 <= Lib.IntTypes.v nn /\
Lib.IntTypes.v nn <= Spec.Blake2.Definitions.max_output Spec.Blake2.Definitions.Blake2S } ->
p: Hacl.Im... | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Blake2.Definitions.max_key",
"Spec.Blake2.Definitions.Blake2S",
"Prims.l_and",
"Spec.Blake2.Definitions.max_output",
"Hacl.Impl.Blake2.Core.blake2_params",
"Lib.Buffe... | [] | false | true | false | false | false | let serialize_params_blake2s
(kk: size_t{v kk <= Spec.max_key Spec.Blake2S})
(nn: size_t{1 <= v nn /\ v nn <= Spec.max_output Spec.Blake2S})
(p: blake2_params Spec.Blake2S)
(b: lbuffer (word_t Spec.Blake2S) 8ul)
: Stack unit
(requires
fun h ->
live h b /\ blake2_param... | let h0 = ST.get () in
[@@ inline_let ]let kk_shift_8 = shift_left (to_u32 kk) (size 8) in
[@@ inline_let ]let fanout_shift_16 = shift_left (to_u32 p.fanout) (size 16) in
[@@ inline_let ]let depth_shift_24 = shift_left (to_u32 p.depth) (size 24) in
[@@ inline_let ]let v0 = (to_u32 nn) ^. kk_shift_8 ^. fanout_shift_16 ^.... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.open_exp' | val open_exp' (e v: src_exp) (n: index) : Tot src_exp (decreases e) | val open_exp' (e v: src_exp) (n: index) : Tot src_exp (decreases e) | let rec open_exp' (e:src_exp) (v:src_exp) (n:index)
: Tot src_exp
(decreases e)
= match e with
| EBool _ -> e
| EVar m -> EVar m
| EBVar m -> if m = n then v else EBVar m
| EIf b e1 e2 -> EIf (open_exp' b v n) (open_exp' e1 v n) (open_exp' e2 v n)
| ELam t e -> ELam (open_ty' t v n) (o... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 70,
"end_line": 79,
"start_col": 0,
"start_line": 62
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: DependentBoolRefinement.src_exp ->
v: DependentBoolRefinement.src_exp ->
n: DependentBoolRefinement.index
-> Prims.Tot DependentBoolRefinement.src_exp | Prims.Tot | [
"total",
""
] | [
"open_exp'",
"open_ty'"
] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.index",
"Prims.bool",
"DependentBoolRefinement.var",
"DependentBoolRefinement.EVar",
"Prims.op_Equality",
"DependentBoolRefinement.EBVar",
"DependentBoolRefinement.EIf",
"DependentBoolRefinement.open_exp'",
"DependentBoolRefinement.src_ty... | [
"mutual recursion"
] | false | false | false | true | false | let rec open_exp' (e v: src_exp) (n: index) : Tot src_exp (decreases e) =
| match e with
| EBool _ -> e
| EVar m -> EVar m
| EBVar m -> if m = n then v else EBVar m
| EIf b e1 e2 -> EIf (open_exp' b v n) (open_exp' e1 v n) (open_exp' e2 v n)
| ELam t e -> ELam (open_ty' t v n) (open_exp' e v (n + 1))
| EApp e1 e2 -> EApp (open_exp' e1 v n) (open_exp' e2 v n) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.lookup | val lookup (e: list (var & 'a)) (x: var) : option 'a | val lookup (e: list (var & 'a)) (x: var) : option 'a | let rec lookup (e:list (var & 'a)) (x:var)
: option 'a
= match e with
| [] -> None
| (y, v) :: tl -> if x = y then Some v else lookup tl x | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 154,
"start_col": 0,
"start_line": 150
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Prims.list (DependentBoolRefinement.var * 'a) -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Native.option 'a | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"FStar.Pervasives.Native.None",
"Prims.op_Equality",
"FStar.Pervasives.Native.Some",
"Prims.bool",
"DependentBoolRefinement.lookup",
"FStar.Pervasives.Native.option"
] | [
"recursion"
] | false | false | false | true | false | let rec lookup (e: list (var & 'a)) (x: var) : option 'a =
| match e with
| [] -> None
| (y, v) :: tl -> if x = y then Some v else lookup tl x | false |
DependentBoolRefinement.fst | DependentBoolRefinement.close_ty' | val close_ty' (t: src_ty) (v: var) (n: index) : Tot src_ty (decreases t) | val close_ty' (t: src_ty) (v: var) (n: index) : Tot src_ty (decreases t) | let rec close_exp' (e:src_exp) (v:var) (n:nat)
: Tot src_exp
(decreases e)
= match e with
| EBool _ -> e
| EVar m -> if m = v then EBVar n else EVar m
| EBVar m -> EBVar m
| EIf b e1 e2 -> EIf (close_exp' b v n) (close_exp' e1 v n) (close_exp' e2 v n)
| ELam t e -> ELam (close_ty' t v n)... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 72,
"end_line": 98,
"start_col": 0,
"start_line": 81
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: DependentBoolRefinement.src_ty ->
v: DependentBoolRefinement.var ->
n: DependentBoolRefinement.index
-> Prims.Tot DependentBoolRefinement.src_ty | Prims.Tot | [
"total",
""
] | [
"close_exp'",
"close_ty'"
] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"DependentBoolRefinement.index",
"DependentBoolRefinement.TBool",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.TRefineBool",
"DependentBoolRefinement.close_exp'",
"Prims.op_Addition",
"DependentBoolRefinement.TArrow",
... | [
"mutual recursion"
] | false | false | false | true | false | let rec close_ty' (t: src_ty) (v: var) (n: index) : Tot src_ty (decreases t) =
| match t with
| TBool -> TBool
| TRefineBool e -> TRefineBool (close_exp' e v (n + 1))
| TArrow t1 t2 -> TArrow (close_ty' t1 v n) (close_ty' t2 v (n + 1)) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.fresh | val fresh (e: list (var & 'a)) : var | val fresh (e: list (var & 'a)) : var | let rec fresh (e:list (var & 'a))
: var
= match e with
| [] -> 0
| (y, _) :: tl -> max (fresh tl) y + 1
| _ :: tl -> fresh tl | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 175,
"start_col": 0,
"start_line": 170
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Prims.list (DependentBoolRefinement.var * 'a) -> DependentBoolRefinement.var | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"Prims.op_Addition",
"DependentBoolRefinement.max",
"DependentBoolRefinement.fresh"
] | [
"recursion"
] | false | false | false | true | false | let rec fresh (e: list (var & 'a)) : var =
| match e with
| [] -> 0
| (y, _) :: tl -> max (fresh tl) y + 1
| _ :: tl -> fresh tl | false |
DependentBoolRefinement.fst | DependentBoolRefinement.src_env_ok | val src_env_ok (s: src_env) : bool | val src_env_ok (s: src_env) : bool | let rec src_env_ok (s:src_env)
: bool
= match s with
| [] -> true
| (x, _)::tl -> None? (lookup tl x) && src_env_ok tl | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 160,
"start_col": 0,
"start_line": 156
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: DependentBoolRefinement.src_env -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.var",
"DependentBoolRefinement.binding",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.op_AmpAmp",
"FStar.Pervasives.Native.uu___is_None",
"DependentBoolRefinement.lookup",
"DependentBoolRefinement.src_env_ok",
"Prims.bool"
] | [
"recursion"
] | false | false | false | true | false | let rec src_env_ok (s: src_env) : bool =
| match s with
| [] -> true
| (x, _) :: tl -> None? (lookup tl x) && src_env_ok tl | false |
DependentBoolRefinement.fst | DependentBoolRefinement.fresh_is_fresh | val fresh_is_fresh (e: src_env) : Lemma (None? (lookup e (fresh e))) | val fresh_is_fresh (e: src_env) : Lemma (None? (lookup e (fresh e))) | let fresh_is_fresh (e:src_env)
: Lemma (None? (lookup e (fresh e)))
= match lookup e (fresh e) with
| None -> ()
| Some _ ->
lookup_mem e (fresh e);
FStar.Classical.forall_intro (fresh_not_mem e) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 208,
"start_col": 0,
"start_line": 202
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_env
-> FStar.Pervasives.Lemma
(ensures None? (DependentBoolRefinement.lookup e (DependentBoolRefinement.fresh e))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.lookup",
"DependentBoolRefinement.binding",
"DependentBoolRefinement.fresh",
"FStar.Classical.forall_intro",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"Prims.l_imp",
"FStar.List.Tot.Base.memP",
"Prims.b2t",
"Prims... | [] | false | false | true | false | false | let fresh_is_fresh (e: src_env) : Lemma (None? (lookup e (fresh e))) =
| match lookup e (fresh e) with
| None -> ()
| Some _ ->
lookup_mem e (fresh e);
FStar.Classical.forall_intro (fresh_not_mem e) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.lookup_mem | val lookup_mem (e: list (var & 'a)) (x: var)
: Lemma (requires Some? (lookup e x)) (ensures exists elt. L.memP elt e /\ fst elt == x) | val lookup_mem (e: list (var & 'a)) (x: var)
: Lemma (requires Some? (lookup e x)) (ensures exists elt. L.memP elt e /\ fst elt == x) | let rec lookup_mem (e:list (var & 'a)) (x:var)
: Lemma
(requires Some? (lookup e x))
(ensures exists elt. L.memP elt e /\ fst elt == x)
= match e with
| [] -> ()
| hd :: tl ->
match lookup tl x with
| None -> assert (L.memP hd e)
| _ ->
lookup_mem tl x;
eliminate ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 200,
"start_col": 0,
"start_line": 183
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Prims.list (DependentBoolRefinement.var * 'a) -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma (requires Some? (DependentBoolRefinement.lookup e x))
(ensures
exists (elt: (DependentBoolRefinement.var * 'a)).
FStar.List.Tot.Base.memP elt e /\ FStar.Pervasives.Native.fst elt == x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"DependentBoolRefinement.lookup",
"Prims._assert",
"FStar.List.Tot.Base.memP",
"FStar.Pervasives.Native.option",
"FStar.Classical.Sugar.exists_elim",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.fst",
"Prims... | [
"recursion"
] | false | false | true | false | false | let rec lookup_mem (e: list (var & 'a)) (x: var)
: Lemma (requires Some? (lookup e x)) (ensures exists elt. L.memP elt e /\ fst elt == x) =
| match e with
| [] -> ()
| hd :: tl ->
match lookup tl x with
| None -> assert (L.memP hd e)
| _ ->
lookup_mem tl x;
eliminate exists elt.
L.memP elt tl /\ fst elt == x
returns _
with _.
(introduce exists elt.L.memP elt e /\ fst elt == x
with elt
and ()) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.freevars | val freevars (e: src_exp) : FStar.Set.set var | val freevars (e: src_exp) : FStar.Set.set var | let rec freevars (e:src_exp)
: FStar.Set.set var
= match e with
| EVar v -> Set.singleton v
| EBool _
| EBVar _ -> Set.empty
| EIf b e1 e2 -> Set.union (freevars b) (Set.union (freevars e1) (freevars e2))
| ELam t e -> Set.union (freevars_ty t) (freevars e)
| EApp e1 e2 -> Set.union (freeva... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 40,
"start_col": 0,
"start_line": 26
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> FStar.Set.set DependentBoolRefinement.var | Prims.Tot | [
"total"
] | [
"freevars",
"freevars_ty"
] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"FStar.Set.singleton",
"Prims.bool",
"FStar.Set.empty",
"DependentBoolRefinement.index",
"FStar.Set.union",
"DependentBoolRefinement.freevars",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.freevars_ty",
"FStar.Set.se... | [
"mutual recursion"
] | false | false | false | true | false | let rec freevars (e: src_exp) : FStar.Set.set var =
| match e with
| EVar v -> Set.singleton v
| EBool _ | EBVar _ -> Set.empty
| EIf b e1 e2 -> Set.union (freevars b) (Set.union (freevars e1) (freevars e2))
| ELam t e -> Set.union (freevars_ty t) (freevars e)
| EApp e1 e2 -> Set.union (freevars e1) (freevars e2) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.fresh_not_mem | val fresh_not_mem (e: list (var & 'a)) (elt: (var & 'a))
: Lemma (ensures L.memP elt e ==> fresh e > fst elt) | val fresh_not_mem (e: list (var & 'a)) (elt: (var & 'a))
: Lemma (ensures L.memP elt e ==> fresh e > fst elt) | let rec fresh_not_mem (e:list (var & 'a)) (elt: (var & 'a))
: Lemma (ensures L.memP elt e ==> fresh e > fst elt)
= match e with
| [] -> ()
| hd :: tl -> fresh_not_mem tl elt | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 181,
"start_col": 0,
"start_line": 177
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Prims.list (DependentBoolRefinement.var * 'a) -> elt: (DependentBoolRefinement.var * 'a)
-> FStar.Pervasives.Lemma
(ensures
FStar.List.Tot.Base.memP elt e ==>
DependentBoolRefinement.fresh e > FStar.Pervasives.Native.fst elt) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"DependentBoolRefinement.fresh_not_mem",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_imp",
"FStar.List.Tot.Base.memP",
"Prims.b2t",
"Prims.op_GreaterThan",
"DependentBoolRefinement.fresh",
"FStar.Pervas... | [
"recursion"
] | false | false | true | false | false | let rec fresh_not_mem (e: list (var & 'a)) (elt: (var & 'a))
: Lemma (ensures L.memP elt e ==> fresh e > fst elt) =
| match e with
| [] -> ()
| hd :: tl -> fresh_not_mem tl elt | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_binding | val elab_binding (b: binding) : R.term | val elab_binding (b: binding) : R.term | let elab_binding (b:binding)
: R.term
= match b with
| Inl t -> elab_ty t
| Inr (e1, e2) -> elab_eqn e1 e2 | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 316,
"start_col": 0,
"start_line": 312
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: DependentBoolRefinement.binding -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.binding",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.elab_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.elab_eqn",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let elab_binding (b: binding) : R.term =
| match b with
| Inl t -> elab_ty t
| Inr (e1, e2) -> elab_eqn e1 e2 | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_impl | val heap_impl : Type u#1 | val heap_impl : Type u#1 | let heap_impl = vale_full_heap | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 8,
"start_col": 0,
"start_line": 8
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapImpl.vale_full_heap"
] | [] | false | false | false | true | true | let heap_impl =
| vale_full_heap | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_taint | val heap_taint (hi:heap_impl) : memTaint_t | val heap_taint (hi:heap_impl) : memTaint_t | let heap_taint hi = hi.vf_layout.vl_taint | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 12,
"start_col": 0,
"start_line": 12
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | hi: Vale.Arch.Heap.heap_impl -> Vale.Arch.HeapTypes_s.memTaint_t | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.Heap.heap_impl",
"Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout__item__vl_taint",
"Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__item__vf_layout",
"Vale.Arch.HeapTypes_s.memTaint_t"
] | [] | false | false | false | true | false | let heap_taint hi =
| hi.vf_layout.vl_taint | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_get | val heap_get (hi:heap_impl) : machine_heap | val heap_get (hi:heap_impl) : machine_heap | let heap_get hi = hi.vf_heap.mh | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 10,
"start_col": 0,
"start_line": 10
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | hi: Vale.Arch.Heap.heap_impl -> Vale.Arch.MachineHeap_s.machine_heap | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.Heap.heap_impl",
"Vale.Arch.HeapImpl.__proj__ValeHeap__item__mh",
"Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__item__vf_heap",
"Vale.Arch.MachineHeap_s.machine_heap"
] | [] | false | false | false | true | false | let heap_get hi =
| hi.vf_heap.mh | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_exp | val elab_exp (e: src_exp) : Tot R.term | val elab_exp (e: src_exp) : Tot R.term | let rec elab_exp (e:src_exp)
: Tot R.term
= let open R in
match e with
| EBool true ->
pack_ln (Tv_Const R.C_True)
| EBool false ->
pack_ln (Tv_Const R.C_False)
| EBVar n ->
let bv = R.pack_bv (RT.make_bv n) in
R.pack_ln (Tv_BVar bv)
| EVar n ->
let v = R.... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 273,
"start_col": 0,
"start_line": 219
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [
"elab_exp",
"elab_ty"
] | [
"DependentBoolRefinement.src_exp",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_Const",
"FStar.Stubs.Reflection.V2.Data.C_True",
"FStar.Stubs.Reflection.V2.Data.C_False",
"DependentBoolRefinement.index",
"FStar.Stubs.Reflection.V2.Data.Tv_BVar",
"FStar.Stubs.Reflect... | [
"mutual recursion"
] | false | false | false | true | false | let rec elab_exp (e: src_exp) : Tot R.term =
| let open R in
match e with
| EBool true -> pack_ln (Tv_Const R.C_True)
| EBool false -> pack_ln (Tv_Const R.C_False)
| EBVar n ->
let bv = R.pack_bv (RT.make_bv n) in
R.pack_ln (Tv_BVar bv)
| EVar n ->
let v = R.pack_namedv (RT.make_namedv n) in
R.pack_ln (Tv_Var v)
| ELam t e ->
let t = elab_ty t in
let e ... | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.one_heaplet | val one_heaplet (ih: interop_heap) (id: option heaplet_id) : GTot vale_heap | val one_heaplet (ih: interop_heap) (id: option heaplet_id) : GTot vale_heap | let one_heaplet (ih:interop_heap) (id:option heaplet_id) : GTot vale_heap =
let m = down_mem ih in
let g = Ghost.hide ih in
ValeHeap m g id | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 37,
"start_col": 0,
"start_line": 34
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh
let heap_taint hi = hi.vf_layout.vl_taint
// Update heaplet k with mh', but only for the addresses that k owns (addres... | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ih: Vale.Interop.Heap_s.interop_heap ->
id: FStar.Pervasives.Native.option Vale.Arch.HeapImpl.heaplet_id
-> Prims.GTot Vale.Arch.HeapImpl.vale_heap | Prims.GTot | [
"sometrivial"
] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"FStar.Pervasives.Native.option",
"Vale.Arch.HeapImpl.heaplet_id",
"Vale.Arch.HeapImpl.ValeHeap",
"FStar.Ghost.erased",
"FStar.Ghost.hide",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Interop.Heap_s.correct_down",
"Vale.Interop.down_mem",
"Vale.Arch.HeapImpl.v... | [] | false | false | false | false | false | let one_heaplet (ih: interop_heap) (id: option heaplet_id) : GTot vale_heap =
| let m = down_mem ih in
let g = Ghost.hide ih in
ValeHeap m g id | false |
DependentBoolRefinement.fst | DependentBoolRefinement.ok | val ok : sg: DependentBoolRefinement.src_env -> e: DependentBoolRefinement.src_exp -> Prims.logical | let ok (sg:src_env) (e:src_exp) = (forall x. x `Set.mem` freevars e ==> Some? (lookup sg x)) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 92,
"end_line": 452,
"start_col": 0,
"start_line": 452
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | sg: DependentBoolRefinement.src_env -> e: DependentBoolRefinement.src_exp -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_exp",
"Prims.l_Forall",
"DependentBoolRefinement.var",
"Prims.l_imp",
"Prims.b2t",
"FStar.Set.mem",
"DependentBoolRefinement.freevars",
"FStar.Pervasives.Native.uu___is_Some",
"DependentBoolRefinement.binding",
"DependentBoolRefinem... | [] | false | false | false | true | true | let ok (sg: src_env) (e: src_exp) =
| (forall x. x `Set.mem` (freevars e) ==> Some? (lookup sg x)) | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty | val elab_ty (t: src_ty) : R.term | val elab_ty (t: src_ty) : R.term | let rec elab_exp (e:src_exp)
: Tot R.term
= let open R in
match e with
| EBool true ->
pack_ln (Tv_Const R.C_True)
| EBool false ->
pack_ln (Tv_Const R.C_False)
| EBVar n ->
let bv = R.pack_bv (RT.make_bv n) in
R.pack_ln (Tv_BVar bv)
| EVar n ->
let v = R.... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 273,
"start_col": 0,
"start_line": 219
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> FStar.Stubs.Reflection.Types.term | Prims.Tot | [
"total"
] | [
"elab_exp",
"elab_ty"
] | [
"DependentBoolRefinement.src_ty",
"FStar.Reflection.Typing.bool_ty",
"FStar.Stubs.Reflection.V2.Builtins.pack_ln",
"FStar.Stubs.Reflection.V2.Data.Tv_Arrow",
"FStar.Reflection.Typing.mk_simple_binder",
"FStar.Reflection.Typing.pp_name_default",
"FStar.Reflection.Typing.mk_total",
"FStar.Stubs.Reflecti... | [
"mutual recursion"
] | false | false | false | true | false | let rec elab_ty (t: src_ty) : R.term =
| let open R in
match t with
| TBool -> RT.bool_ty
| TArrow t1 t2 ->
let t1 = elab_ty t1 in
let t2 = elab_ty t2 in
R.pack_ln (R.Tv_Arrow (RT.mk_simple_binder RT.pp_name_default t1) (RT.mk_total t2))
| TRefineBool e ->
let e = elab_exp e in
let b = RT.mk_simple_binder RT.pp_name_default RT.bool_ty in
let bv = ... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.weaken | val weaken
(f: fstar_top_env)
(sg: src_env)
(hyp: var{None? (lookup sg hyp)})
(b: src_exp)
(t0 t1: src_ty)
: T.Tac
(t: src_ty &
sub_typing f ((hyp, Inr (b, EBool true)) :: sg) t0 t &
sub_typing f ((hyp, Inr (b, EBool false)) :: sg) t1 t) | val weaken
(f: fstar_top_env)
(sg: src_env)
(hyp: var{None? (lookup sg hyp)})
(b: src_exp)
(t0 t1: src_ty)
: T.Tac
(t: src_ty &
sub_typing f ((hyp, Inr (b, EBool true)) :: sg) t0 t &
sub_typing f ((hyp, Inr (b, EBool false)) :: sg) t1 t) | let weaken (f:fstar_top_env) (sg:src_env) (hyp:var { None? (lookup sg hyp) } ) (b:src_exp) (t0 t1:src_ty)
: T.Tac (t:src_ty &
sub_typing f ((hyp,Inr(b, EBool true))::sg) t0 t &
sub_typing f ((hyp,Inr(b, EBool false))::sg) t1 t)
= if t0 = t1
then (| t0, S_Refl _ t0, S_Refl _ t1 |)
else ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 450,
"start_col": 0,
"start_line": 444
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: DependentBoolRefinement.fstar_top_env ->
sg: DependentBoolRefinement.src_env ->
hyp: DependentBoolRefinement.var{None? (DependentBoolRefinement.lookup sg hyp)} ->
b: DependentBoolRefinement.src_exp ->
t0: DependentBoolRefinement.src_ty ->
t1: DependentBoolRefinement.src_ty
-> FStar.Tactics... | FStar.Tactics.Effect.Tac | [] | [] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.var",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_None",
"DependentBoolRefinement.binding",
"DependentBoolRefinement.lookup",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.src_ty",
... | [] | false | true | false | false | false | let weaken
(f: fstar_top_env)
(sg: src_env)
(hyp: var{None? (lookup sg hyp)})
(b: src_exp)
(t0 t1: src_ty)
: T.Tac
(t: src_ty &
sub_typing f ((hyp, Inr (b, EBool true)) :: sg) t0 t &
sub_typing f ((hyp, Inr (b, EBool false)) :: sg) t1 t) =
| if t0 = t1 then (| t0, S_Refl _ t0, S_Refl _ t1 |) else T.fail "weaken is very dumb" | false |
DependentBoolRefinement.fst | DependentBoolRefinement.check_sub_typing | val check_sub_typing (f: _) (sg: src_env) (t0 t1: src_ty) : T.Tac (sub_typing f sg t0 t1) | val check_sub_typing (f: _) (sg: src_env) (t0 t1: src_ty) : T.Tac (sub_typing f sg t0 t1) | let check_sub_typing f
(sg:src_env)
(t0 t1:src_ty)
: T.Tac (sub_typing f sg t0 t1)
= if t0 = t1 then S_Refl _ t0
else T.fail "Not subtypes" | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 442,
"start_col": 0,
"start_line": 437
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: DependentBoolRefinement.fstar_top_env ->
sg: DependentBoolRefinement.src_env ->
t0: DependentBoolRefinement.src_ty ->
t1: DependentBoolRefinement.src_ty
-> FStar.Tactics.Effect.Tac (DependentBoolRefinement.sub_typing f sg t0 t1) | FStar.Tactics.Effect.Tac | [] | [] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"Prims.op_Equality",
"DependentBoolRefinement.S_Refl",
"DependentBoolRefinement.sub_typing",
"Prims.bool",
"FStar.Tactics.V2.Derived.fail"
] | [] | false | true | false | false | false | let check_sub_typing f (sg: src_env) (t0: src_ty) (t1: src_ty) : T.Tac (sub_typing f sg t0 t1) =
| if t0 = t1 then S_Refl _ t0 else T.fail "Not subtypes" | false |
DependentBoolRefinement.fst | DependentBoolRefinement.t_height | val t_height (#f: _) (#g: src_env) (#t: src_ty) (d: src_ty_ok f g t) : GTot nat (decreases d) | val t_height (#f: _) (#g: src_env) (#t: src_ty) (d: src_ty_ok f g t) : GTot nat (decreases d) | let rec height #f #g #e #t (d:src_typing f g e t)
: GTot nat (decreases d)
= match d with
| T_Bool _ _ -> 1
| T_Var _ _ -> 1
| T_Lam _ _ _ _ _ ty_ok body -> max (height body) (t_height ty_ok) + 1
| T_App _ _ _ _ _ _ tl tr ts -> max (max (height tl) (height tr)) (s_height ts) + 1
| T_If _ _ _ _ ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 435,
"start_col": 0,
"start_line": 418
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: DependentBoolRefinement.src_ty_ok f g t -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial",
""
] | [
"height",
"t_height"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_ty_ok",
"DependentBoolRefinement.var",
"Prims.l_and",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_None",
"DependentBoolRefinement.binding",
"DependentBoolRef... | [
"mutual recursion"
] | false | false | false | false | false | let rec t_height #f (#g: src_env) (#t: src_ty) (d: src_ty_ok f g t) : GTot nat (decreases d) =
| match d with
| OK_TBool _ -> 1
| OK_TArrow _ _ _ _ d0 d1 -> max (t_height d0) (t_height d1) + 1
| OK_TRefine _ _ _ d -> height d + 1 | false |
DependentBoolRefinement.fst | DependentBoolRefinement.check_ok | val check_ok (e: src_exp) (sg: src_env) : b: bool{b <==> ok sg e} | val check_ok (e: src_exp) (sg: src_env) : b: bool{b <==> ok sg e} | let rec check_ok_ty (t:src_ty) (sg:src_env)
: b:bool { b <==> (ok_ty sg t) }
= match t with
| TBool -> true
| TArrow t1 t2 ->
check_ok_ty t1 sg &&
check_ok_ty t2 sg
| TRefineBool e ->
check_ok e sg
and check_ok (e:src_exp) (sg:src_env)
: b:bool { b <==> ok sg e }
= match e with
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 472,
"start_col": 0,
"start_line": 455
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> sg: DependentBoolRefinement.src_env
-> b: Prims.bool{b <==> DependentBoolRefinement.ok sg e} | Prims.Tot | [
"total"
] | [
"check_ok_ty",
"check_ok"
] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.index",
"DependentBoolRefinement.var",
"FStar.Pervasives.Native.uu___is_Some",
"DependentBoolRefinement.binding",
"DependentBoolRefinement.lookup",
"Prims.bool",
"Prims.op_AmpAmp",
"DependentBoolRefineme... | [
"mutual recursion"
] | false | false | false | false | false | let rec check_ok (e: src_exp) (sg: src_env) : b: bool{b <==> ok sg e} =
| match e with
| EBVar _ -> true
| EVar x -> Some? (lookup sg x)
| EBool _ -> true
| EIf b e1 e2 -> check_ok b sg && check_ok e1 sg && check_ok e2 sg
| ELam t e -> check_ok_ty t sg && check_ok e sg
| EApp e1 e2 -> check_ok e1 sg && check_ok e2 sg | false |
DependentBoolRefinement.fst | DependentBoolRefinement.b2t_typing | val b2t_typing (g: fstar_env) (t: R.term) (dt: RT.tot_typing g t RT.bool_ty)
: RT.tot_typing g (r_b2t t) (RT.tm_type RT.u_zero) | val b2t_typing (g: fstar_env) (t: R.term) (dt: RT.tot_typing g t RT.bool_ty)
: RT.tot_typing g (r_b2t t) (RT.tm_type RT.u_zero) | let b2t_typing (g:fstar_env) (t:R.term) (dt:RT.tot_typing g t RT.bool_ty)
: RT.tot_typing g (r_b2t t) (RT.tm_type RT.u_zero)
= let b2t_typing : RT.tot_typing g _ b2t_ty = RT.T_FVar g b2t_fv in
let app_ty : _ = RT.T_App _ _ _ _ (RT.tm_type RT.u_zero) _ b2t_typing dt in
RT.open_with_spec (RT.tm_type RT.u_zero... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 629,
"start_col": 0,
"start_line": 624
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: DependentBoolRefinement.fstar_env ->
t: FStar.Stubs.Reflection.Types.term ->
dt: FStar.Reflection.Typing.tot_typing g t FStar.Reflection.Typing.bool_ty
-> FStar.Reflection.Typing.tot_typing g
(DependentBoolRefinement.r_b2t t)
(FStar.Reflection.Typing.tm_type FStar.Reflection.Typing.u_zero) | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.fstar_env",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Typing.tot_typing",
"FStar.Reflection.Typing.bool_ty",
"Prims.unit",
"FStar.Reflection.Typing.open_with_spec",
"FStar.Reflection.Typing.tm_type",
"FStar.Reflection.Typing.u_zero",
"FStar.Reflection.Typing.typ... | [] | false | false | false | false | false | let b2t_typing (g: fstar_env) (t: R.term) (dt: RT.tot_typing g t RT.bool_ty)
: RT.tot_typing g (r_b2t t) (RT.tm_type RT.u_zero) =
| let b2t_typing:RT.tot_typing g _ b2t_ty = RT.T_FVar g b2t_fv in
let app_ty:_ = RT.T_App _ _ _ _ (RT.tm_type RT.u_zero) _ b2t_typing dt in
RT.open_with_spec (RT.tm_type RT.u_zero) t;
app_ty | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.load_felem5_lemma | val load_felem5_lemma: s:felem4 ->
Lemma (let f = load_felem5 s in
felem_fits5 f (1,1,1,1,1) /\ as_nat5 f == as_nat4 s) | val load_felem5_lemma: s:felem4 ->
Lemma (let f = load_felem5 s in
felem_fits5 f (1,1,1,1,1) /\ as_nat5 f == as_nat4 s) | let load_felem5_lemma s =
L1.load_felem5_lemma s | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 20,
"start_col": 0,
"start_line": 19
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Hacl.Spec.K256.Field52.Definitions.felem4
-> FStar.Pervasives.Lemma
(ensures
(let f = Hacl.Spec.K256.Field52.load_felem5 s in
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1) /\
Hacl.Spec.K256.Field52.Definitions.as_nat5 f == Hacl.Spec.K256.Field52.Definitions.as_nat4 s
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem4",
"Hacl.Spec.K256.Field52.Lemmas1.load_felem5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let load_felem5_lemma s =
| L1.load_felem5_lemma s | false |
DependentBoolRefinement.fst | DependentBoolRefinement.ok_ty | val ok_ty : sg: DependentBoolRefinement.src_env -> e: DependentBoolRefinement.src_ty -> Prims.logical | let ok_ty (sg:src_env) (e:src_ty) = (forall x. x `Set.mem` freevars_ty e ==> Some? (lookup sg x)) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 97,
"end_line": 453,
"start_col": 0,
"start_line": 453
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | sg: DependentBoolRefinement.src_env -> e: DependentBoolRefinement.src_ty -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"Prims.l_Forall",
"DependentBoolRefinement.var",
"Prims.l_imp",
"Prims.b2t",
"FStar.Set.mem",
"DependentBoolRefinement.freevars_ty",
"FStar.Pervasives.Native.uu___is_Some",
"DependentBoolRefinement.binding",
"DependentBoolRefin... | [] | false | false | false | true | true | let ok_ty (sg: src_env) (e: src_ty) =
| (forall x. x `Set.mem` (freevars_ty e) ==> Some? (lookup sg x)) | false | |
DependentBoolRefinement.fst | DependentBoolRefinement.subtyping_soundness | val subtyping_soundness (#f: _) (#sg: src_env) (#t0 #t1: src_ty) (ds: sub_typing f sg t0 t1)
: GTot (RT.sub_typing (extend_env_l f sg) (elab_ty t0) (elab_ty t1)) | val subtyping_soundness (#f: _) (#sg: src_env) (#t0 #t1: src_ty) (ds: sub_typing f sg t0 t1)
: GTot (RT.sub_typing (extend_env_l f sg) (elab_ty t0) (elab_ty t1)) | let subtyping_soundness #f (#sg:src_env) (#t0 #t1:src_ty) (ds:sub_typing f sg t0 t1)
: GTot (RT.sub_typing (extend_env_l f sg) (elab_ty t0) (elab_ty t1))
= match ds with
| S_Refl _ _ -> RT.Rel_equiv _ _ _ _ (RT.Rel_refl _ _ _)
| S_ELab _ _ _ d -> d | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 647,
"start_col": 0,
"start_line": 643
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ds: DependentBoolRefinement.sub_typing f sg t0 t1
-> Prims.GTot
(FStar.Reflection.Typing.sub_typing (DependentBoolRefinement.extend_env_l f sg)
(DependentBoolRefinement.elab_ty t0)
(DependentBoolRefinement.elab_ty t1)) | Prims.GTot | [
"sometrivial"
] | [] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.sub_typing",
"FStar.Reflection.Typing.Rel_equiv",
"DependentBoolRefinement.extend_env_l",
"DependentBoolRefinement.elab_ty",
"FStar.Reflection.Typing.R_Sub",
"FStar.... | [] | false | false | false | false | false | let subtyping_soundness #f (#sg: src_env) (#t0: src_ty) (#t1: src_ty) (ds: sub_typing f sg t0 t1)
: GTot (RT.sub_typing (extend_env_l f sg) (elab_ty t0) (elab_ty t1)) =
| match ds with
| S_Refl _ _ -> RT.Rel_equiv _ _ _ _ (RT.Rel_refl _ _ _)
| S_ELab _ _ _ d -> d | false |
DependentBoolRefinement.fst | DependentBoolRefinement.height | val height (#f #g #e #t: _) (d: src_typing f g e t) : GTot nat (decreases d) | val height (#f #g #e #t: _) (d: src_typing f g e t) : GTot nat (decreases d) | let rec height #f #g #e #t (d:src_typing f g e t)
: GTot nat (decreases d)
= match d with
| T_Bool _ _ -> 1
| T_Var _ _ -> 1
| T_Lam _ _ _ _ _ ty_ok body -> max (height body) (t_height ty_ok) + 1
| T_App _ _ _ _ _ _ tl tr ts -> max (max (height tl) (height tr)) (s_height ts) + 1
| T_If _ _ _ _ ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 435,
"start_col": 0,
"start_line": 418
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | d: DependentBoolRefinement.src_typing f g e t -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial",
""
] | [
"height",
"t_height"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_typing",
"Prims.bool",
"DependentBoolRefinement.var",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"DependentBoolRef... | [
"mutual recursion"
] | false | false | false | false | false | let rec height #f #g #e #t (d: src_typing f g e t) : GTot nat (decreases d) =
| match d with
| T_Bool _ _ -> 1
| T_Var _ _ -> 1
| T_Lam _ _ _ _ _ ty_ok body -> max (height body) (t_height ty_ok) + 1
| T_App _ _ _ _ _ _ tl tr ts -> max (max (height tl) (height tr)) (s_height ts) + 1
| T_If _ _ _ _ _ _ _ _ tb tl tr sl sr st ->
max (height tb)
(max (max (height tl) (height tr)) (max (s_height s... | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.store_felem5_lemma | val store_felem5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures as_nat4 (store_felem5 f) == as_nat5 f) | val store_felem5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures as_nat4 (store_felem5 f) == as_nat5 f) | let store_felem5_lemma f =
L1.store_felem5_lemma f | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 24,
"start_col": 0,
"start_line": 23
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1))
(ensures
Hacl.Spec.K256.Field52.Definitions.as_nat4 (Hacl.Spec.K256.Field52.store_felem5 f) ==
Hacl.Spec.K256.Field52.Definitions.as_nat5 f) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Lemmas1.store_felem5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let store_felem5_lemma f =
| L1.store_felem5_lemma f | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heaplet_upd_f | val heaplet_upd_f (vfh: vale_full_heap) (mh': machine_heap) (k: heaplet_id) : vale_heap | val heaplet_upd_f (vfh: vale_full_heap) (mh': machine_heap) (k: heaplet_id) : vale_heap | let heaplet_upd_f (vfh:vale_full_heap) (mh':machine_heap) (k:heaplet_id) : vale_heap =
let hk = Map16.sel vfh.vf_heaplets k in
let mhk = hk.mh in
let dom_upd = Set.intersect (vfh.vf_layout.vl_inner.vl_heaplet_sets k) (Map.domain mhk) in
let mhk' = Map.concat mhk (Map.restrict dom_upd mh') in
mi_heap_upd hk mh... | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 20,
"start_col": 0,
"start_line": 15
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh
let heap_taint hi = hi.vf_layout.vl_taint | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
vfh: Vale.Arch.HeapImpl.vale_full_heap ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
k: Vale.Arch.HeapImpl.heaplet_id
-> Vale.Arch.HeapImpl.vale_heap | Prims.Tot | [
"total"
] | [] | [
"Vale.Arch.HeapImpl.vale_full_heap",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Arch.HeapImpl.heaplet_id",
"Vale.Arch.HeapImpl.mi_heap_upd",
"FStar.Map.t",
"Prims.int",
"Vale.Def.Words_s.nat8",
"FStar.Map.concat",
"Vale.Def.Types_s.nat8",
"FStar.Map.restrict",
"FStar.Set.set",
"FStar.Set.in... | [] | false | false | false | true | false | let heaplet_upd_f (vfh: vale_full_heap) (mh': machine_heap) (k: heaplet_id) : vale_heap =
| let hk = Map16.sel vfh.vf_heaplets k in
let mhk = hk.mh in
let dom_upd = Set.intersect (vfh.vf_layout.vl_inner.vl_heaplet_sets k) (Map.domain mhk) in
let mhk' = Map.concat mhk (Map.restrict dom_upd mh') in
mi_heap_upd hk mhk' | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_create_machine | val heap_create_machine (ih:interop_heap) : Ghost machine_heap
(requires True)
(ensures fun mh -> correct_down ih mh) | val heap_create_machine (ih:interop_heap) : Ghost machine_heap
(requires True)
(ensures fun mh -> correct_down ih mh) | let heap_create_machine ih =
down_mem ih | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 32,
"start_col": 0,
"start_line": 31
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh
let heap_taint hi = hi.vf_layout.vl_taint
// Update heaplet k with mh', but only for the addresses that k owns (addres... | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ih: Vale.Interop.Heap_s.interop_heap -> Prims.Ghost Vale.Arch.MachineHeap_s.machine_heap | Prims.Ghost | [] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Interop.down_mem",
"Vale.Arch.MachineHeap_s.machine_heap"
] | [] | false | false | false | false | false | let heap_create_machine ih =
| down_mem ih | false |
DependentBoolRefinement.fst | DependentBoolRefinement.extend_env_l_lookup_bvar | val extend_env_l_lookup_bvar (g: R.env) (sg: src_env) (x: var)
: Lemma (requires (forall x. RT.lookup_bvar g x == None))
(ensures
(match lookup sg x with
| Some b -> RT.lookup_bvar (extend_env_l g sg) x == Some (elab_binding b)
| None -> RT.lookup_bvar (extend_env_l g sg) x == None... | val extend_env_l_lookup_bvar (g: R.env) (sg: src_env) (x: var)
: Lemma (requires (forall x. RT.lookup_bvar g x == None))
(ensures
(match lookup sg x with
| Some b -> RT.lookup_bvar (extend_env_l g sg) x == Some (elab_binding b)
| None -> RT.lookup_bvar (extend_env_l g sg) x == None... | let rec extend_env_l_lookup_bvar (g:R.env) (sg:src_env) (x:var)
: Lemma
(requires (forall x. RT.lookup_bvar g x == None))
(ensures (
match lookup sg x with
| Some b -> RT.lookup_bvar (extend_env_l g sg) x == Some (elab_binding b)
| None -> RT.lookup_bvar (extend_env_l g sg) x == None))
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 49,
"end_line": 579,
"start_col": 0,
"start_line": 568
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: FStar.Stubs.Reflection.Types.env ->
sg: DependentBoolRefinement.src_env ->
x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(requires
forall (x: Prims.int).
FStar.Reflection.Typing.lookup_bvar g x == FStar.Pervasives.Native.None)
(ensures
((match Dependent... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.var",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.binding",
"Prims.list",
"DependentBoolRefinement.extend_env_l_lookup_bvar",
"Prims.unit",
"Prims.l_Forall",
"Prims.int",
"Prims.eq2",
... | [
"recursion"
] | false | false | true | false | false | let rec extend_env_l_lookup_bvar (g: R.env) (sg: src_env) (x: var)
: Lemma (requires (forall x. RT.lookup_bvar g x == None))
(ensures
(match lookup sg x with
| Some b -> RT.lookup_bvar (extend_env_l g sg) x == Some (elab_binding b)
| None -> RT.lookup_bvar (extend_env_l g sg) x == ... | match sg with
| [] -> ()
| hd :: tl -> extend_env_l_lookup_bvar g tl x | false |
DependentBoolRefinement.fst | DependentBoolRefinement.extend_env_l_lookup_fvar | val extend_env_l_lookup_fvar (g: R.env) (sg: src_env) (fv: R.fv)
: Lemma (ensures RT.lookup_fvar (extend_env_l g sg) fv == RT.lookup_fvar g fv)
[SMTPat (RT.lookup_fvar (extend_env_l g sg) fv)] | val extend_env_l_lookup_fvar (g: R.env) (sg: src_env) (fv: R.fv)
: Lemma (ensures RT.lookup_fvar (extend_env_l g sg) fv == RT.lookup_fvar g fv)
[SMTPat (RT.lookup_fvar (extend_env_l g sg) fv)] | let rec extend_env_l_lookup_fvar (g:R.env) (sg:src_env) (fv:R.fv)
: Lemma
(ensures
RT.lookup_fvar (extend_env_l g sg) fv ==
RT.lookup_fvar g fv)
[SMTPat (RT.lookup_fvar (extend_env_l g sg) fv)]
= match sg with
| [] -> ()
| hd::tl -> extend_env_l_lookup_fvar g tl fv | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 639,
"start_col": 0,
"start_line": 631
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g: FStar.Stubs.Reflection.Types.env ->
sg: DependentBoolRefinement.src_env ->
fv: FStar.Stubs.Reflection.Types.fv
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.lookup_fvar (DependentBoolRefinement.extend_env_l g sg) fv ==
FStar.Reflection.Typing.lookup_fvar g fv)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Stubs.Reflection.Types.env",
"DependentBoolRefinement.src_env",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"DependentBoolRefinement.binding",
"Prims.list",
"DependentBoolRefinement.extend_env_l_lookup_fvar",
"Prims.unit",
"Prims.l_Tru... | [
"recursion"
] | false | false | true | false | false | let rec extend_env_l_lookup_fvar (g: R.env) (sg: src_env) (fv: R.fv)
: Lemma (ensures RT.lookup_fvar (extend_env_l g sg) fv == RT.lookup_fvar g fv)
[SMTPat (RT.lookup_fvar (extend_env_l g sg) fv)] =
| match sg with
| [] -> ()
| hd :: tl -> extend_env_l_lookup_fvar g tl fv | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_open_commute | val elab_open_commute (e: src_exp) (x: var)
: Lemma (RT.open_term (elab_exp e) x == elab_exp (open_exp e x))
[SMTPat (RT.open_term (elab_exp e) x)] | val elab_open_commute (e: src_exp) (x: var)
: Lemma (RT.open_term (elab_exp e) x == elab_exp (open_exp e x))
[SMTPat (RT.open_term (elab_exp e) x)] | let elab_open_commute (e:src_exp) (x:var)
: Lemma (RT.open_term (elab_exp e) x == elab_exp (open_exp e x))
[SMTPat (RT.open_term (elab_exp e) x)]
= elab_open_commute' 0 e (EVar x);
RT.open_term_spec (elab_exp e) x | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 622,
"start_col": 0,
"start_line": 618
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.open_term (DependentBoolRefinement.elab_exp e) x ==
DependentBoolRefinement.elab_exp (DependentBoolRefinement.open_exp e x))
[SMTPat (FStar.Reflection.Typing.open... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"FStar.Reflection.Typing.open_term_spec",
"DependentBoolRefinement.elab_exp",
"Prims.unit",
"DependentBoolRefinement.elab_open_commute'",
"DependentBoolRefinement.EVar",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Stubs.Re... | [] | true | false | true | false | false | let elab_open_commute (e: src_exp) (x: var)
: Lemma (RT.open_term (elab_exp e) x == elab_exp (open_exp e x))
[SMTPat (RT.open_term (elab_exp e) x)] =
| elab_open_commute' 0 e (EVar x);
RT.open_term_spec (elab_exp e) x | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_create_impl | val heap_create_impl (ih:interop_heap) (mt:memTaint_t) : Ghost heap_impl
(requires True)
(ensures fun hi -> heap_get hi == heap_create_machine ih /\ heap_taint hi == mt) | val heap_create_impl (ih:interop_heap) (mt:memTaint_t) : Ghost heap_impl
(requires True)
(ensures fun hi -> heap_get hi == heap_create_machine ih /\ heap_taint hi == mt) | let heap_create_impl ih mt =
let vh = one_heaplet ih None in
let layout = {vl_inner = empty_vale_heap_layout_inner vh; vl_taint = mt;} in
{
vf_layout = layout;
vf_heap = vh;
vf_heaplets = empty_vale_heaplets vh;
} | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 46,
"start_col": 0,
"start_line": 39
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh
let heap_taint hi = hi.vf_layout.vl_taint
// Update heaplet k with mh', but only for the addresses that k owns (addres... | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ih: Vale.Interop.Heap_s.interop_heap -> mt: Vale.Arch.HeapTypes_s.memTaint_t
-> Prims.Ghost Vale.Arch.Heap.heap_impl | Prims.Ghost | [] | [] | [
"Vale.Interop.Heap_s.interop_heap",
"Vale.Arch.HeapTypes_s.memTaint_t",
"Vale.Arch.HeapImpl.Mkvale_full_heap",
"Vale.Arch.HeapImpl.empty_vale_heaplets",
"Vale.Arch.HeapImpl.vale_heap_layout",
"Vale.Arch.HeapImpl.Mkvale_heap_layout",
"Vale.Arch.HeapImpl.empty_vale_heap_layout_inner",
"Vale.Arch.HeapImp... | [] | false | false | false | false | false | let heap_create_impl ih mt =
| let vh = one_heaplet ih None in
let layout = { vl_inner = empty_vale_heap_layout_inner vh; vl_taint = mt } in
{ vf_layout = layout; vf_heap = vh; vf_heaplets = empty_vale_heaplets vh } | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty_open_commute | val elab_ty_open_commute (e: src_ty) (v: var)
: Lemma (RT.open_term (elab_ty e) v == elab_ty (open_ty e v))
[SMTPat (RT.open_term (elab_ty e) v)] | val elab_ty_open_commute (e: src_ty) (v: var)
: Lemma (RT.open_term (elab_ty e) v == elab_ty (open_ty e v))
[SMTPat (RT.open_term (elab_ty e) v)] | let elab_ty_open_commute (e:src_ty) (v:var)
: Lemma (RT.open_term (elab_ty e) v == elab_ty (open_ty e v))
[SMTPat (RT.open_term (elab_ty e) v)]
= elab_ty_open_commute' 0 e (EVar v);
RT.open_term_spec (elab_ty e) v | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 702,
"start_col": 0,
"start_line": 698
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.open_term (DependentBoolRefinement.elab_ty e) v ==
DependentBoolRefinement.elab_ty (DependentBoolRefinement.open_ty e v))
[SMTPat (FStar.Reflection.Typing.open_ter... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"FStar.Reflection.Typing.open_term_spec",
"DependentBoolRefinement.elab_ty",
"Prims.unit",
"DependentBoolRefinement.elab_ty_open_commute'",
"DependentBoolRefinement.EVar",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Stubs.R... | [] | true | false | true | false | false | let elab_ty_open_commute (e: src_ty) (v: var)
: Lemma (RT.open_term (elab_ty e) v == elab_ty (open_ty e v))
[SMTPat (RT.open_term (elab_ty e) v)] =
| elab_ty_open_commute' 0 e (EVar v);
RT.open_term_spec (elab_ty e) v | false |
Vale.Arch.Heap.fst | Vale.Arch.Heap.heap_upd | val heap_upd (hi:heap_impl) (mh':machine_heap) (mt':memTaint_t) : Pure heap_impl
(requires is_machine_heap_update (heap_get hi) mh')
(ensures fun hi -> heap_get hi == mh' /\ heap_taint hi == mt') | val heap_upd (hi:heap_impl) (mh':machine_heap) (mt':memTaint_t) : Pure heap_impl
(requires is_machine_heap_update (heap_get hi) mh')
(ensures fun hi -> heap_get hi == mh' /\ heap_taint hi == mt') | let heap_upd hi mh' mt' =
let h' = mi_heap_upd hi.vf_heap mh' in
let hs' = Map16.init vale_heap (heaplet_upd_f hi mh') in
{
vf_layout = {hi.vf_layout with vl_taint = mt'};
vf_heap = h';
vf_heaplets = hs';
} | {
"file_name": "vale/code/arch/Vale.Arch.Heap.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 29,
"start_col": 0,
"start_line": 22
} | module Vale.Arch.Heap
open FStar.Mul
open Vale.Interop
open Vale.Arch.HeapImpl
module Map16 = Vale.Lib.Map16
friend Vale.Arch.HeapImpl
let heap_impl = vale_full_heap
let heap_get hi = hi.vf_heap.mh
let heap_taint hi = hi.vf_layout.vl_taint
// Update heaplet k with mh', but only for the addresses that k owns (addres... | {
"checked_file": "/",
"dependencies": [
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.fsti.checked",
"Vale.Arch.HeapImpl.fst.checked",
"Vale.Arch.HeapImpl.fst.checked",
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
hi: Vale.Arch.Heap.heap_impl ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
mt': Vale.Arch.HeapTypes_s.memTaint_t
-> Prims.Pure Vale.Arch.Heap.heap_impl | Prims.Pure | [] | [] | [
"Vale.Arch.Heap.heap_impl",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.Arch.HeapTypes_s.memTaint_t",
"Vale.Arch.HeapImpl.Mkvale_full_heap",
"Vale.Arch.HeapImpl.Mkvale_heap_layout",
"Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout__item__vl_inner",
"Vale.Arch.HeapImpl.vale_heap_layout",
"Vale.Arch.Hea... | [] | false | false | false | false | false | let heap_upd hi mh' mt' =
| let h' = mi_heap_upd hi.vf_heap mh' in
let hs' = Map16.init vale_heap (heaplet_upd_f hi mh') in
{ vf_layout = { hi.vf_layout with vl_taint = mt' }; vf_heap = h'; vf_heaplets = hs' } | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty_close_commute | val elab_ty_close_commute (e: src_ty) (x: var)
: Lemma (RT.close_term (elab_ty e) x == elab_ty (close_ty e x))
[SMTPat (RT.close_term (elab_ty e) x)] | val elab_ty_close_commute (e: src_ty) (x: var)
: Lemma (RT.close_term (elab_ty e) x == elab_ty (close_ty e x))
[SMTPat (RT.close_term (elab_ty e) x)] | let elab_ty_close_commute (e:src_ty) (x:var)
: Lemma (RT.close_term (elab_ty e) x == elab_ty (close_ty e x))
[SMTPat (RT.close_term (elab_ty e) x)]
= RT.close_term_spec (elab_ty e) x;
elab_ty_close_commute' 0 e x | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 690,
"start_col": 0,
"start_line": 686
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_ty -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.close_term (DependentBoolRefinement.elab_ty e) x ==
DependentBoolRefinement.elab_ty (DependentBoolRefinement.close_ty e x))
[SMTPat (FStar.Reflection.Typing.close_... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"DependentBoolRefinement.elab_ty_close_commute'",
"Prims.unit",
"FStar.Reflection.Typing.close_term_spec",
"DependentBoolRefinement.elab_ty",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Stubs.Reflection.Types.term",
"FStar.... | [] | true | false | true | false | false | let elab_ty_close_commute (e: src_ty) (x: var)
: Lemma (RT.close_term (elab_ty e) x == elab_ty (close_ty e x))
[SMTPat (RT.close_term (elab_ty e) x)] =
| RT.close_term_spec (elab_ty e) x;
elab_ty_close_commute' 0 e x | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_open_b2t | val elab_open_b2t (e: src_exp) (x: var)
: Lemma (RT.open_term (r_b2t (elab_exp e)) x == r_b2t (elab_exp (open_exp e x))) | val elab_open_b2t (e: src_exp) (x: var)
: Lemma (RT.open_term (r_b2t (elab_exp e)) x == r_b2t (elab_exp (open_exp e x))) | let elab_open_b2t (e:src_exp) (x:var)
: Lemma (RT.open_term (r_b2t (elab_exp e)) x ==
r_b2t (elab_exp (open_exp e x)))
= RT.open_term_spec (r_b2t (elab_exp e)) x;
RT.open_term_spec (elab_exp e) x | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 708,
"start_col": 0,
"start_line": 704
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.open_term (DependentBoolRefinement.r_b2t (DependentBoolRefinement.elab_exp
e))
x ==
DependentBoolRefinement.r_b2t (DependentBoolRefinement.elab_exp (D... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"FStar.Reflection.Typing.open_term_spec",
"DependentBoolRefinement.elab_exp",
"Prims.unit",
"DependentBoolRefinement.r_b2t",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Stubs.Reflection.Types.term",
"FStar.Reflection.Typin... | [] | true | false | true | false | false | let elab_open_b2t (e: src_exp) (x: var)
: Lemma (RT.open_term (r_b2t (elab_exp e)) x == r_b2t (elab_exp (open_exp e x))) =
| RT.open_term_spec (r_b2t (elab_exp e)) x;
RT.open_term_spec (elab_exp e) x | false |
DependentBoolRefinement.fst | DependentBoolRefinement.soundness_lemma | val soundness_lemma (f: fstar_top_env) (sg: src_env{src_env_ok sg}) (se: src_exp) (st: src_ty)
: Lemma (requires src_typing f sg se st)
(ensures RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) | val soundness_lemma (f: fstar_top_env) (sg: src_env{src_env_ok sg}) (se: src_exp) (st: src_ty)
: Lemma (requires src_typing f sg se st)
(ensures RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) | let soundness_lemma (f:fstar_top_env)
(sg:src_env { src_env_ok sg })
(se:src_exp)
(st:src_ty)
: Lemma
(requires src_typing f sg se st)
(ensures RT.tot_typing (extend_env_l f sg)
(elab_exp se)
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 860,
"start_col": 0,
"start_line": 848
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: DependentBoolRefinement.fstar_top_env ->
sg: DependentBoolRefinement.src_env{DependentBoolRefinement.src_env_ok sg} ->
se: DependentBoolRefinement.src_exp ->
st: DependentBoolRefinement.src_ty
-> FStar.Pervasives.Lemma (requires DependentBoolRefinement.src_typing f sg se st)
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"Prims.b2t",
"DependentBoolRefinement.src_env_ok",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.src_ty",
"FStar.Squash.bind_squash",
"DependentBoolRefinement.src_typing",
"FStar.Reflection.Typing.tot_typing",
... | [] | false | false | true | false | false | let soundness_lemma (f: fstar_top_env) (sg: src_env{src_env_ok sg}) (se: src_exp) (st: src_ty)
: Lemma (requires src_typing f sg se st)
(ensures RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) =
| FStar.Squash.bind_squash #(src_typing f sg se st)
()
(fun dd -> FStar.Squash.return_squash (soundness dd)) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.closed_ty | val closed_ty (t: src_ty) : b: bool{b <==> ((freevars_ty t) `Set.equal` Set.empty)} | val closed_ty (t: src_ty) : b: bool{b <==> ((freevars_ty t) `Set.equal` Set.empty)} | let rec closed (s:src_exp)
: b:bool { b <==> (freevars s `Set.equal` Set.empty) }
= match s with
| EBool _
| EBVar _ -> true
| EVar m -> assert (m `Set.mem` freevars s); false
| EIf b e1 e2 -> closed b && closed e1 && closed e2
| ELam t e -> closed_ty t && closed e
| EApp e1 e2 -> closed e1... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 877,
"start_col": 0,
"start_line": 862
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty
-> b: Prims.bool{b <==> FStar.Set.equal (DependentBoolRefinement.freevars_ty t) FStar.Set.empty} | Prims.Tot | [
"total"
] | [
"closed",
"closed_ty"
] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.closed",
"Prims.op_AmpAmp",
"DependentBoolRefinement.closed_ty",
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"FStar.Set.equal",
"DependentBoolRefinement.var",
"DependentBoolRefinement.freevars_ty",
"FSt... | [
"mutual recursion"
] | false | false | false | false | false | let rec closed_ty (t: src_ty) : b: bool{b <==> ((freevars_ty t) `Set.equal` Set.empty)} =
| match t with
| TBool -> true
| TRefineBool e -> closed e
| TArrow t1 t2 -> closed_ty t1 && closed_ty t2 | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty_open_with_commute | val elab_ty_open_with_commute (e: src_ty) (v: src_exp)
: Lemma (RT.open_with (elab_ty e) (elab_exp v) == elab_ty (open_ty_with e v))
[SMTPat (RT.open_with (elab_ty e) (elab_exp v))] | val elab_ty_open_with_commute (e: src_ty) (v: src_exp)
: Lemma (RT.open_with (elab_ty e) (elab_exp v) == elab_ty (open_ty_with e v))
[SMTPat (RT.open_with (elab_ty e) (elab_exp v))] | let elab_ty_open_with_commute (e:src_ty) (v:src_exp)
: Lemma (RT.open_with (elab_ty e) (elab_exp v) == elab_ty (open_ty_with e v))
[SMTPat (RT.open_with (elab_ty e) (elab_exp v))]
= elab_ty_open_commute' 0 e v;
RT.open_with_spec (elab_ty e) (elab_exp v) | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 696,
"start_col": 0,
"start_line": 692
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_ty -> v: DependentBoolRefinement.src_exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.open_with (DependentBoolRefinement.elab_ty e)
(DependentBoolRefinement.elab_exp v) ==
DependentBoolRefinement.elab_ty (DependentBoolRefinement.open_ty_with... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_exp",
"FStar.Reflection.Typing.open_with_spec",
"DependentBoolRefinement.elab_ty",
"DependentBoolRefinement.elab_exp",
"Prims.unit",
"DependentBoolRefinement.elab_ty_open_commute'",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar... | [] | true | false | true | false | false | let elab_ty_open_with_commute (e: src_ty) (v: src_exp)
: Lemma (RT.open_with (elab_ty e) (elab_exp v) == elab_ty (open_ty_with e v))
[SMTPat (RT.open_with (elab_ty e) (elab_exp v))] =
| elab_ty_open_commute' 0 e v;
RT.open_with_spec (elab_ty e) (elab_exp v) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.main | val main (nm: string) (src: src_exp) : RT.dsl_tac_t | val main (nm: string) (src: src_exp) : RT.dsl_tac_t | let main (nm:string) (src:src_exp)
: RT.dsl_tac_t
= fun f ->
if closed src
then
let (| src_ty, _ |) = check f [] src in
soundness_lemma f [] src src_ty;
[RT.mk_checked_let f nm (elab_exp src) (elab_ty src_ty)]
else T.fail "Not locally nameless" | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 887,
"start_col": 0,
"start_line": 879
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | nm: Prims.string -> src: DependentBoolRefinement.src_exp -> FStar.Reflection.Typing.dsl_tac_t | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"DependentBoolRefinement.src_exp",
"FStar.Reflection.Typing.fstar_top_env",
"DependentBoolRefinement.closed",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_typing",
"Prims.Nil",
"FStar.Pervasives.Native.tuple2",
"DependentBoolRefinement.var",
"DependentBoolRefineme... | [] | false | false | false | true | false | let main (nm: string) (src: src_exp) : RT.dsl_tac_t =
| fun f ->
if closed src
then
let (| src_ty , _ |) = check f [] src in
soundness_lemma f [] src src_ty;
[RT.mk_checked_let f nm (elab_exp src) (elab_ty src_ty)]
else T.fail "Not locally nameless" | false |
DependentBoolRefinement.fst | DependentBoolRefinement.check_ok_ty | val check_ok_ty (t: src_ty) (sg: src_env) : b: bool{b <==> (ok_ty sg t)} | val check_ok_ty (t: src_ty) (sg: src_env) : b: bool{b <==> (ok_ty sg t)} | let rec check_ok_ty (t:src_ty) (sg:src_env)
: b:bool { b <==> (ok_ty sg t) }
= match t with
| TBool -> true
| TArrow t1 t2 ->
check_ok_ty t1 sg &&
check_ok_ty t2 sg
| TRefineBool e ->
check_ok e sg
and check_ok (e:src_exp) (sg:src_env)
: b:bool { b <==> ok sg e }
= match e with
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 472,
"start_col": 0,
"start_line": 455
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty -> sg: DependentBoolRefinement.src_env
-> b: Prims.bool{b <==> DependentBoolRefinement.ok_ty sg t} | Prims.Tot | [
"total"
] | [
"check_ok_ty",
"check_ok"
] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_env",
"Prims.op_AmpAmp",
"DependentBoolRefinement.check_ok_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.check_ok",
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"DependentBoolRefinement.ok_ty"
] | [
"mutual recursion"
] | false | false | false | false | false | let rec check_ok_ty (t: src_ty) (sg: src_env) : b: bool{b <==> (ok_ty sg t)} =
| match t with
| TBool -> true
| TArrow t1 t2 -> check_ok_ty t1 sg && check_ok_ty t2 sg
| TRefineBool e -> check_ok e sg | false |
DependentBoolRefinement.fst | DependentBoolRefinement.closed | val closed (s: src_exp) : b: bool{b <==> ((freevars s) `Set.equal` Set.empty)} | val closed (s: src_exp) : b: bool{b <==> ((freevars s) `Set.equal` Set.empty)} | let rec closed (s:src_exp)
: b:bool { b <==> (freevars s `Set.equal` Set.empty) }
= match s with
| EBool _
| EBVar _ -> true
| EVar m -> assert (m `Set.mem` freevars s); false
| EIf b e1 e2 -> closed b && closed e1 && closed e2
| ELam t e -> closed_ty t && closed e
| EApp e1 e2 -> closed e1... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 877,
"start_col": 0,
"start_line": 862
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: DependentBoolRefinement.src_exp
-> b: Prims.bool{b <==> FStar.Set.equal (DependentBoolRefinement.freevars s) FStar.Set.empty} | Prims.Tot | [
"total"
] | [
"closed",
"closed_ty"
] | [
"DependentBoolRefinement.src_exp",
"Prims.bool",
"DependentBoolRefinement.index",
"DependentBoolRefinement.var",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"FStar.Set.mem",
"DependentBoolRefinement.freevars",
"Prims.op_AmpAmp",
"DependentBoolRefinement.closed",
"DependentBoolRefinement.src_ty... | [
"mutual recursion"
] | false | false | false | false | false | let rec closed (s: src_exp) : b: bool{b <==> ((freevars s) `Set.equal` Set.empty)} =
| match s with
| EBool _ | EBVar _ -> true
| EVar m ->
assert (m `Set.mem` (freevars s));
false
| EIf b e1 e2 -> closed b && closed e1 && closed e2
| ELam t e -> closed_ty t && closed e
| EApp e1 e2 -> closed e1 && closed e2 | false |
RecordWithRefs.fst | RecordWithRefs.u8_pair_repr | val u8_pair_repr : Type0 | let u8_pair_repr = (U8.t & U8.t) | {
"file_name": "share/steel/examples/pulse/bug-reports/RecordWithRefs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "RecordWithRefs.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"FStar.UInt8.t"
] | [] | false | false | false | true | true | let u8_pair_repr =
| (U8.t & U8.t) | false | |
RecordWithRefs.fst | RecordWithRefs.fst | val fst (p: u8_pair_repr) : U8.t | val fst (p: u8_pair_repr) : U8.t | let fst (p:u8_pair_repr) : U8.t =
let (x, _) = p in x | {
"file_name": "share/steel/examples/pulse/bug-reports/RecordWithRefs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 31,
"start_col": 0,
"start_line": 30
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "RecordWithRefs.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: RecordWithRefs.u8_pair_repr -> FStar.UInt8.t | Prims.Tot | [
"total"
] | [] | [
"RecordWithRefs.u8_pair_repr",
"FStar.UInt8.t"
] | [] | false | false | false | true | false | let fst (p: u8_pair_repr) : U8.t =
| let x, _ = p in
x | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.normalize5_lemma | val normalize5_lemma: m:scale64_5 -> f:felem5 -> Lemma
(requires (let (m0,m1,m2,m3,m4) = m in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\
m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\
felem_fits5 f m))
(ensures (let r = normalize5 f in
as_nat5 r == as_nat5 f % S.prime /\
felem_fits5 r (1,1,1,1,1))) | val normalize5_lemma: m:scale64_5 -> f:felem5 -> Lemma
(requires (let (m0,m1,m2,m3,m4) = m in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\
m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\
felem_fits5 f m))
(ensures (let r = normalize5 f in
as_nat5 r == as_nat5 f % S.prime /\
felem_fits5 r (1,1,1,1,1))) | let normalize5_lemma m f =
L2.normalize5_lemma m f | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 90,
"start_col": 0,
"start_line": 89
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
(let _ = m in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 _ = _ in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Lemmas2.normalize5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let normalize5_lemma m f =
| L2.normalize5_lemma m f | false |
RecordWithRefs.fst | RecordWithRefs.u8_pair_pred | val u8_pair_pred (p: u8_pair) (v: u8_pair_repr) : vprop | val u8_pair_pred (p: u8_pair) (v: u8_pair_repr) : vprop | let u8_pair_pred (p:u8_pair) (v:u8_pair_repr) : vprop =
R.pts_to p.a (fst v) **
R.pts_to p.b (snd v) | {
"file_name": "share/steel/examples/pulse/bug-reports/RecordWithRefs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 37,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "RecordWithRefs.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: RecordWithRefs.u8_pair -> v: RecordWithRefs.u8_pair_repr -> Pulse.Lib.Core.vprop | Prims.Tot | [
"total"
] | [] | [
"RecordWithRefs.u8_pair",
"RecordWithRefs.u8_pair_repr",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Reference.pts_to",
"FStar.UInt8.t",
"RecordWithRefs.__proj__Mku8_pair__item__a",
"PulseCore.FractionalPermission.full_perm",
"RecordWithRefs.fst",
"RecordWithRefs.__proj__Mku8_pair__item__b",
"Record... | [] | false | false | false | true | false | let u8_pair_pred (p: u8_pair) (v: u8_pair_repr) : vprop =
| R.pts_to p.a (fst v) ** R.pts_to p.b (snd v) | false |
RecordWithRefs.fst | RecordWithRefs.snd | val snd (p: u8_pair_repr) : U8.t | val snd (p: u8_pair_repr) : U8.t | let snd (p:u8_pair_repr) : U8.t =
let (_, x) = p in x | {
"file_name": "share/steel/examples/pulse/bug-reports/RecordWithRefs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 33,
"start_col": 0,
"start_line": 32
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "RecordWithRefs.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: RecordWithRefs.u8_pair_repr -> FStar.UInt8.t | Prims.Tot | [
"total"
] | [] | [
"RecordWithRefs.u8_pair_repr",
"FStar.UInt8.t"
] | [] | false | false | false | true | false | let snd (p: u8_pair_repr) : U8.t =
| let _, x = p in
x | false |
Vale.Test.X64.Vale_memcpy.fsti | Vale.Test.X64.Vale_memcpy.va_ens_Memcpy | val va_ens_Memcpy
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(dst src: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | val va_ens_Memcpy
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(dst src: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | let va_ens_Memcpy (va_b0:va_code) (va_s0:va_state) (win:bool) (dst:buffer64) (src:buffer64)
(va_sM:va_state) (va_fM:va_fuel) : prop =
(va_req_Memcpy va_b0 va_s0 win dst src /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ Vale.X64.Memory.buffer_as_seq #Vale.X64.Memory.vuint64 (va_get_mem va_sM) ... | {
"file_name": "obj/Vale.Test.X64.Vale_memcpy.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 86,
"end_line": 37,
"start_col": 0,
"start_line": 29
} | module Vale.Test.X64.Vale_memcpy
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Memcpy
val va_code_Memcpy... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
dst: Vale.X64.Memory.buffer64 ->
src: Vale.X64.Memory.buffer64 ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Test.X64.Vale_memcpy.va_req_Memcpy",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Va... | [] | false | false | false | true | true | let va_ens_Memcpy
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(dst src: buffer64)
(va_sM: va_state)
(va_fM: va_fuel)
: prop =
| (va_req_Memcpy va_b0 va_s0 win dst src /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
Vale.X64.Memory.buffer_as_seq #Vale.X64.Memory.vuint64 (va_get_mem va_sM) dst ==
Vale.X64.Memory.buffer_as_seq #Vale.X64.Memory.vuint64 (va_get_mem va_sM) src /\
Vale.X64.Decls.modifies_mem (Vale.X64.Decls.loc_... | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.add5_lemma | val add5_lemma: m1:scale64_5 -> m2:scale64_5 -> f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 m1 /\ felem_fits5 f2 m2 /\ m1 +* m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = add5 f1 f2 in
as_nat5 r == as_nat5 f1 + as_nat5 f2 /\ felem_fits5 r (m1 +* m2))) | val add5_lemma: m1:scale64_5 -> m2:scale64_5 -> f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 m1 /\ felem_fits5 f2 m2 /\ m1 +* m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = add5 f1 f2 in
as_nat5 r == as_nat5 f1 + as_nat5 f2 /\ felem_fits5 r (m1 +* m2))) | let add5_lemma m1 m2 f1 f2 =
L1.add5_lemma m1 m2 f1 f2 | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 28,
"start_col": 0,
"start_line": 27
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
f1: Hacl.Spec.K256.Field52.Definitions.felem5 ->
f2: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f1 m1... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Lemmas1.add5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let add5_lemma m1 m2 f1 f2 =
| L1.add5_lemma m1 m2 f1 f2 | false |
Vale.Test.X64.Vale_memcpy.fsti | Vale.Test.X64.Vale_memcpy.va_req_Memcpy | val va_req_Memcpy (va_b0: va_code) (va_s0: va_state) (win: bool) (dst src: buffer64) : prop | val va_req_Memcpy (va_b0: va_code) (va_s0: va_state) (win: bool) (dst src: buffer64) : prop | let va_req_Memcpy (va_b0:va_code) (va_s0:va_state) (win:bool) (dst:buffer64) (src:buffer64) : prop =
(va_require_total va_b0 (va_code_Memcpy win) va_s0 /\ va_get_ok va_s0 /\
Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
Vale.X64.Decls.locs_disjoint ([Vale.X64.Decls.loc_buffer... | {
"file_name": "obj/Vale.Test.X64.Vale_memcpy.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 28,
"start_col": 0,
"start_line": 19
} | module Vale.Test.X64.Vale_memcpy
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Memcpy
val va_code_Memcpy... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
dst: Vale.X64.Memory.buffer64 ->
src: Vale.X64.Memory.buffer64
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Test.X64.Vale_memcpy.va_code_Memcpy",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.Memory.is_initial_heap",
"Vale.X64.Decls.va_get_mem_layo... | [] | false | false | false | true | true | let va_req_Memcpy (va_b0: va_code) (va_s0: va_state) (win: bool) (dst src: buffer64) : prop =
| (va_require_total va_b0 (va_code_Memcpy win) va_s0 /\ va_get_ok va_s0 /\
Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
Vale.X64.Decls.locs_disjoint ([
Vale.X64.Decls.loc_buffer #Vale.X64.Memory.vuint64 dst;
Vale.X64.Decls.loc_buffer #Vale.X64.Memory.vuint64 src
... | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.normalize_weak5_lemma | val normalize_weak5_lemma: m:scale64_5 -> f:felem5 -> Lemma
(requires (let (m0,m1,m2,m3,m4) = m in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\
m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\
felem_fits5 f m))
(ensures (let r = normalize_weak5 f in
as_nat5 r % S.prime == as_nat5 f % S.prime
/\ felem_fits5 r (1,1,1,1... | val normalize_weak5_lemma: m:scale64_5 -> f:felem5 -> Lemma
(requires (let (m0,m1,m2,m3,m4) = m in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\
m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\
felem_fits5 f m))
(ensures (let r = normalize_weak5 f in
as_nat5 r % S.prime == as_nat5 f % S.prime
/\ felem_fits5 r (1,1,1,1... | let normalize_weak5_lemma m f =
let r = normalize_weak5 f in
let (t0,t1,t2,t3,t4) = f in
L2.normalize_weak5_lemma m f;
assert (as_nat5 r == as_nat5 f - v t4 / pow2 48 * S.prime);
Math.Lemmas.lemma_mod_sub (as_nat5 f) S.prime (v t4 / pow2 48) | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 64,
"end_line": 86,
"start_col": 0,
"start_line": 81
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
(let _ = m in
(let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 _ = _ in
m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"FStar.Math.Lemmas.lemma_mod_sub",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.prime",
"Prims.op_Division",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.... | [] | false | false | true | false | false | let normalize_weak5_lemma m f =
| let r = normalize_weak5 f in
let t0, t1, t2, t3, t4 = f in
L2.normalize_weak5_lemma m f;
assert (as_nat5 r == as_nat5 f - (v t4 / pow2 48) * S.prime);
Math.Lemmas.lemma_mod_sub (as_nat5 f) S.prime (v t4 / pow2 48) | false |
Vale.Test.X64.Vale_memcpy.fsti | Vale.Test.X64.Vale_memcpy.va_wp_Memcpy | val va_wp_Memcpy
(win: bool)
(dst src: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_Memcpy
(win: bool)
(dst src: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_Memcpy (win:bool) (dst:buffer64) (src:buffer64) (va_s0:va_state) (va_k:(va_state -> unit
-> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0)
/\ Vale.X64.Decls.locs_disjoint ([Vale.X64.Decls.loc_buffer #Vale.X64.Memory.vuint64 dst;
V... | {
"file_name": "obj/Vale.Test.X64.Vale_memcpy.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 75,
"start_col": 0,
"start_line": 58
} | module Vale.Test.X64.Vale_memcpy
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Memcpy
val va_code_Memcpy... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
win: Prims.bool ->
dst: Vale.X64.Memory.buffer64 ->
src: Vale.X64.Memory.buffer64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.Memory.is_initial_heap",
"Vale.X64.Decls.va_get_mem_layout",
"Vale.X64.Decls.va_get_mem",
"Vale.X64.Decls.locs_disjoint",
"Prims.Cons",
"Vale.X... | [] | false | false | false | true | true | let va_wp_Memcpy
(win: bool)
(dst src: buffer64)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_get_ok va_s0 /\ Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
Vale.X64.Decls.locs_disjoint ([
Vale.X64.Decls.loc_buffer #Vale.X64.Memory.vuint64 dst;
Vale.X64.Decls.loc_buffer #Vale.X64.Memory.vuint64 src
]) /\
Vale.X64.Decls.validSrcAddrs64 (va_get_mem va... | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fadd5_lemma | val fadd5_lemma: m1:scale64_5 -> m2:scale64_5 -> f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 m1 /\ felem_fits5 f2 m2 /\ m1 +* m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = add5 f1 f2 in
feval5 r == (feval5 f1 + feval5 f2) % S.prime /\ felem_fits5 r (m1 +* m2))) | val fadd5_lemma: m1:scale64_5 -> m2:scale64_5 -> f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 m1 /\ felem_fits5 f2 m2 /\ m1 +* m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = add5 f1 f2 in
feval5 r == (feval5 f1 + feval5 f2) % S.prime /\ felem_fits5 r (m1 +* m2))) | let fadd5_lemma m1 m2 f1 f2 =
let r = add5 f1 f2 in
add5_lemma m1 m2 f1 f2;
assert (as_nat5 r == as_nat5 f1 + as_nat5 f2);
Math.Lemmas.modulo_distributivity (as_nat5 f1) (as_nat5 f2) S.prime | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 35,
"start_col": 0,
"start_line": 31
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
m2: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
f1: Hacl.Spec.K256.Field52.Definitions.felem5 ->
f2: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f1 m1... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"FStar.Math.Lemmas.modulo_distributivity",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Addition",
"Hacl.Sp... | [] | true | false | true | false | false | let fadd5_lemma m1 m2 f1 f2 =
| let r = add5 f1 f2 in
add5_lemma m1 m2 f1 f2;
assert (as_nat5 r == as_nat5 f1 + as_nat5 f2);
Math.Lemmas.modulo_distributivity (as_nat5 f1) (as_nat5 f2) S.prime | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fmul5_lemma1 | val fmul5_lemma1: a:felem5 -> b:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64) /\
felem_fits5 b (64,64,64,64,64))
(ensures (let res = fmul5 a b in
feval5 res == feval5 a * feval5 b % S.prime /\
felem_fits5 res (1,1,1,1,2))) | val fmul5_lemma1: a:felem5 -> b:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64) /\
felem_fits5 b (64,64,64,64,64))
(ensures (let res = fmul5 a b in
feval5 res == feval5 a * feval5 b % S.prime /\
felem_fits5 res (1,1,1,1,2))) | let fmul5_lemma1 a b =
let r = fmul5 a b in
L3.fmul5_lemma a b;
assert (as_nat5 r % S.prime == as_nat5 a * as_nat5 b % S.prime);
ML.lemma_mod_mul_distr (as_nat5 a) (as_nat5 b) S.prime | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 100,
"start_col": 0,
"start_line": 96
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Hacl.Spec.K256.Field52.Definitions.felem5 -> b: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 a (64, 64, 64, 64, 64) /\
Hacl.Spec.K256.Field52.Definitions.felem_fits5 b (64, 64, 64, 64, 64))
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.MathLemmas.lemma_mod_mul_distr",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spec.K256.Field52.Lemmas... | [] | true | false | true | false | false | let fmul5_lemma1 a b =
| let r = fmul5 a b in
L3.fmul5_lemma a b;
assert (as_nat5 r % S.prime == as_nat5 a * as_nat5 b % S.prime);
ML.lemma_mod_mul_distr (as_nat5 a) (as_nat5 b) S.prime | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.mul15_lemma | val mul15_lemma: m1:scale64_5 -> m2:nat -> f:felem5 -> c:uint64 -> Lemma
(requires felem_fits5 f m1 /\ v c <= m2 /\ m1 ** mk_nat5 m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = mul15 f c in
as_nat5 r == v c * as_nat5 f /\ felem_fits5 r (m1 ** mk_nat5 m2))) | val mul15_lemma: m1:scale64_5 -> m2:nat -> f:felem5 -> c:uint64 -> Lemma
(requires felem_fits5 f m1 /\ v c <= m2 /\ m1 ** mk_nat5 m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = mul15 f c in
as_nat5 r == v c * as_nat5 f /\ felem_fits5 r (m1 ** mk_nat5 m2))) | let mul15_lemma m1 m2 f c =
L1.mul15_lemma m1 m2 f c | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 39,
"start_col": 0,
"start_line": 38
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
m2: Prims.nat ->
f: Hacl.Spec.K256.Field52.Definitions.felem5 ->
c: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f m1 /\ Lib.IntTypes.v c <= m2 /\
m1 ** Hacl.Spec.K256.F... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Prims.nat",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"Hacl.Spec.K256.Field52.Lemmas1.mul15_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let mul15_lemma m1 m2 f c =
| L1.mul15_lemma m1 m2 f c | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fmul15_lemma | val fmul15_lemma: m1:scale64_5 -> m2:nat -> f:felem5 -> c:uint64 -> Lemma
(requires felem_fits5 f m1 /\ v c <= m2 /\ m1 ** mk_nat5 m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = mul15 f c in
feval5 r == v c * feval5 f % S.prime /\ felem_fits5 r (m1 ** mk_nat5 m2))) | val fmul15_lemma: m1:scale64_5 -> m2:nat -> f:felem5 -> c:uint64 -> Lemma
(requires felem_fits5 f m1 /\ v c <= m2 /\ m1 ** mk_nat5 m2 <=* (4096,4096,4096,4096,65536))
(ensures (let r = mul15 f c in
feval5 r == v c * feval5 f % S.prime /\ felem_fits5 r (m1 ** mk_nat5 m2))) | let fmul15_lemma m1 m2 f c =
let r = mul15 f c in
mul15_lemma m1 m2 f c;
assert (as_nat5 r == v c * as_nat5 f);
Math.Lemmas.lemma_mod_mul_distr_r (v c) (as_nat5 f) S.prime | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 46,
"start_col": 0,
"start_line": 42
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
m1: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
m2: Prims.nat ->
f: Hacl.Spec.K256.Field52.Definitions.felem5 ->
c: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f m1 /\ Lib.IntTypes.v c <= m2 /\
m1 ** Hacl.Spec.K256.F... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Prims.nat",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"FStar.Math.Lemmas.lemma_mod_mul_distr_r",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.pr... | [] | true | false | true | false | false | let fmul15_lemma m1 m2 f c =
| let r = mul15 f c in
mul15_lemma m1 m2 f c;
assert (as_nat5 r == v c * as_nat5 f);
Math.Lemmas.lemma_mod_mul_distr_r (v c) (as_nat5 f) S.prime | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fmul5_lemma | val fmul5_lemma: a:felem5 -> b:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64) /\
felem_fits5 b (64,64,64,64,64))
(ensures (let res = fmul5 a b in
as_nat5 res % S.prime == as_nat5 a * as_nat5 b % S.prime /\
felem_fits5 res (1,1,1,1,2))) | val fmul5_lemma: a:felem5 -> b:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64) /\
felem_fits5 b (64,64,64,64,64))
(ensures (let res = fmul5 a b in
as_nat5 res % S.prime == as_nat5 a * as_nat5 b % S.prime /\
felem_fits5 res (1,1,1,1,2))) | let fmul5_lemma a b =
L3.fmul5_lemma a b | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 94,
"start_col": 0,
"start_line": 93
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Hacl.Spec.K256.Field52.Definitions.felem5 -> b: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 a (64, 64, 64, 64, 64) /\
Hacl.Spec.K256.Field52.Definitions.felem_fits5 b (64, 64, 64, 64, 64))
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Lemmas3.fmul5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let fmul5_lemma a b =
| L3.fmul5_lemma a b | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.is_felem_lt_prime_minus_order_vartime5_lemma | val is_felem_lt_prime_minus_order_vartime5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures is_felem_lt_prime_minus_order_vartime5 f == (as_nat5 f < S.prime - S.q)) | val is_felem_lt_prime_minus_order_vartime5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures is_felem_lt_prime_minus_order_vartime5 f == (as_nat5 f < S.prime - S.q)) | let is_felem_lt_prime_minus_order_vartime5_lemma f =
assert_norm (S.prime - S.q =
0xda1722fc9baee + 0x1950b75fc4402 * pow52 + 0x1455123 * pow104) | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 67,
"end_line": 73,
"start_col": 0,
"start_line": 71
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1))
(ensures
Hacl.Spec.K256.Field52.is_felem_lt_prime_minus_order_vartime5 f ==
(Hacl.Spec.K256.Field52.Definitions.as_nat5 f <
Spec.K256.P... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Subtraction",
"Spec.K256.PointOps.prime",
"Spec.K256.PointOps.q",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Hacl.Spec.K256.Field52.Definitions.pow52",
"Hacl.Sp... | [] | true | false | true | false | false | let is_felem_lt_prime_minus_order_vartime5_lemma f =
| assert_norm (S.prime - S.q = 0xda1722fc9baee + 0x1950b75fc4402 * pow52 + 0x1455123 * pow104) | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_close_commute' | val elab_close_commute' (n: nat) (e: src_exp) (x: var)
: Lemma (ensures RT.subst_term (elab_exp e) [RT.ND x n] == elab_exp (close_exp' e x n))
(decreases e) | val elab_close_commute' (n: nat) (e: src_exp) (x: var)
: Lemma (ensures RT.subst_term (elab_exp e) [RT.ND x n] == elab_exp (close_exp' e x n))
(decreases e) | let rec elab_close_commute' (n:nat) (e:src_exp) (x:var)
: Lemma (ensures
RT.subst_term (elab_exp e) [ RT.ND x n ] ==
elab_exp (close_exp' e x n))
(decreases e)
= match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
elab_close_commut... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 683,
"start_col": 0,
"start_line": 650
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 8,
"initial_ifuel": 2,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> e: DependentBoolRefinement.src_exp -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.subst_term (DependentBoolRefinement.elab_exp e)
[FStar.Reflection.Typing.ND x n] ==
DependentBoolRefinement.elab_exp (DependentBoolRefinement.... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"elab_close_commute'",
"elab_ty_close_commute'"
] | [
"Prims.nat",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.var",
"Prims.bool",
"DependentBoolRefinement.index",
"DependentBoolRefinement.elab_close_commute'",
"Prims.unit",
"DependentBoolRefinement.src_ty",
"Prims.op_Addition",
"DependentBoolRefinement.elab_ty_close_commute'",
"Pri... | [
"mutual recursion"
] | false | false | true | false | false | let rec elab_close_commute' (n: nat) (e: src_exp) (x: var)
: Lemma (ensures RT.subst_term (elab_exp e) [RT.ND x n] == elab_exp (close_exp' e x n))
(decreases e) =
| match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
elab_close_commute' n e1 x;
elab_close_commute' n e2 x
| EIf b e1 e2 ->
elab_close_commute' n b x;
elab_close_commute' n e1 x;
elab_close_commute' n e2 x
| ELam t e ->
elab_ty_close_commute' n t x;
elab_close_commute' (n + 1) e x | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fsqr5_lemma1 | val fsqr5_lemma1: a:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64))
(ensures (let res = fsqr5 a in
feval5 res == feval5 a * feval5 a % S.prime /\
felem_fits5 res (1,1,1,1,2))) | val fsqr5_lemma1: a:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64))
(ensures (let res = fsqr5 a in
feval5 res == feval5 a * feval5 a % S.prime /\
felem_fits5 res (1,1,1,1,2))) | let fsqr5_lemma1 a =
let r = fsqr5 a in
L3.fsqr5_lemma a;
assert (as_nat5 r % S.prime == as_nat5 a * as_nat5 a % S.prime);
ML.lemma_mod_mul_distr (as_nat5 a) (as_nat5 a) S.prime | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 110,
"start_col": 0,
"start_line": 106
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 a (64, 64, 64, 64, 64))
(ensures
(let res = Hacl.Spec.K256.Field52.fsqr5 a in
Hacl.Spec.K256.Field52.Definitions.feval5 res ==
Hacl.Spec.K256.Field52.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.MathLemmas.lemma_mod_mul_distr",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spec.K256.Field52.Lemmas... | [] | true | false | true | false | false | let fsqr5_lemma1 a =
| let r = fsqr5 a in
L3.fsqr5_lemma a;
assert (as_nat5 r % S.prime == as_nat5 a * as_nat5 a % S.prime);
ML.lemma_mod_mul_distr (as_nat5 a) (as_nat5 a) S.prime | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty_open_commute' | val elab_ty_open_commute' (n: nat) (e: src_ty) (x: src_exp)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.DT n (elab_exp x)] == elab_ty (open_ty' e x n))
(decreases e) | val elab_ty_open_commute' (n: nat) (e: src_ty) (x: src_exp)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.DT n (elab_exp x)] == elab_ty (open_ty' e x n))
(decreases e) | let rec elab_open_commute' (n:nat) (e:src_exp) (x:src_exp)
: Lemma (ensures
RT.subst_term (elab_exp e) [ RT.DT n (elab_exp x) ] ==
elab_exp (open_exp' e x n))
(decreases e)
= match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
ela... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 615,
"start_col": 0,
"start_line": 582
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 8,
"initial_ifuel": 2,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> e: DependentBoolRefinement.src_ty -> x: DependentBoolRefinement.src_exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.subst_term (DependentBoolRefinement.elab_ty e)
[FStar.Reflection.Typing.DT n (DependentBoolRefinement.elab_exp x)] ==
DependentBoolRefineme... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"elab_open_commute'",
"elab_ty_open_commute'"
] | [
"Prims.nat",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.elab_ty_open_commute'",
"Prims.op_Addition",
"Prims.unit",
"DependentBoolRefinement.elab_open_commute'",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Stubs.Reflection.Types.term",
... | [
"mutual recursion"
] | false | false | true | false | false | let rec elab_ty_open_commute' (n: nat) (e: src_ty) (x: src_exp)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.DT n (elab_exp x)] == elab_ty (open_ty' e x n))
(decreases e) =
| match e with
| TBool -> ()
| TArrow t t' ->
elab_ty_open_commute' n t x;
elab_ty_open_commute' (n + 1) t' x
| TRefineBool e -> elab_open_commute' (n + 1) e x | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_open_commute' | val elab_open_commute' (n: nat) (e x: src_exp)
: Lemma
(ensures RT.subst_term (elab_exp e) [RT.DT n (elab_exp x)] == elab_exp (open_exp' e x n))
(decreases e) | val elab_open_commute' (n: nat) (e x: src_exp)
: Lemma
(ensures RT.subst_term (elab_exp e) [RT.DT n (elab_exp x)] == elab_exp (open_exp' e x n))
(decreases e) | let rec elab_open_commute' (n:nat) (e:src_exp) (x:src_exp)
: Lemma (ensures
RT.subst_term (elab_exp e) [ RT.DT n (elab_exp x) ] ==
elab_exp (open_exp' e x n))
(decreases e)
= match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
ela... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 615,
"start_col": 0,
"start_line": 582
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 8,
"initial_ifuel": 2,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> e: DependentBoolRefinement.src_exp -> x: DependentBoolRefinement.src_exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.subst_term (DependentBoolRefinement.elab_exp e)
[FStar.Reflection.Typing.DT n (DependentBoolRefinement.elab_exp x)] ==
DependentBoolRefine... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"elab_open_commute'",
"elab_ty_open_commute'"
] | [
"Prims.nat",
"DependentBoolRefinement.src_exp",
"Prims.bool",
"DependentBoolRefinement.index",
"DependentBoolRefinement.var",
"DependentBoolRefinement.elab_open_commute'",
"Prims.unit",
"DependentBoolRefinement.src_ty",
"Prims.op_Addition",
"DependentBoolRefinement.elab_ty_open_commute'",
"Prims... | [
"mutual recursion"
] | false | false | true | false | false | let rec elab_open_commute' (n: nat) (e x: src_exp)
: Lemma
(ensures RT.subst_term (elab_exp e) [RT.DT n (elab_exp x)] == elab_exp (open_exp' e x n))
(decreases e) =
| match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
elab_open_commute' n e1 x;
elab_open_commute' n e2 x
| EIf b e1 e2 ->
elab_open_commute' n b x;
elab_open_commute' n e1 x;
elab_open_commute' n e2 x
| ELam t e ->
elab_ty_open_commute' n t x;
elab_open_commute' (n + 1) e x | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.is_felem_eq_vartime5_lemma | val is_felem_eq_vartime5_lemma: f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 (1,1,1,1,1) /\ felem_fits5 f2 (1,1,1,1,1))
(ensures is_felem_eq_vartime5 f1 f2 == (as_nat5 f1 = as_nat5 f2)) | val is_felem_eq_vartime5_lemma: f1:felem5 -> f2:felem5 -> Lemma
(requires felem_fits5 f1 (1,1,1,1,1) /\ felem_fits5 f2 (1,1,1,1,1))
(ensures is_felem_eq_vartime5 f1 f2 == (as_nat5 f1 = as_nat5 f2)) | let is_felem_eq_vartime5_lemma f1 f2 =
if as_nat5 f1 = as_nat5 f2 then LD.as_nat_inj f1 f2 | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 77,
"start_col": 0,
"start_line": 76
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f1: Hacl.Spec.K256.Field52.Definitions.felem5 -> f2: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f1 (1, 1, 1, 1, 1) /\
Hacl.Spec.K256.Field52.Definitions.felem_fits5 f2 (1, 1, 1, 1, 1))
(ensures
Hacl.S... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Prims.op_Equality",
"Prims.nat",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.as_nat_inj",
"Prims.bool",
"Prims.unit"
] | [] | false | false | true | false | false | let is_felem_eq_vartime5_lemma f1 f2 =
| if as_nat5 f1 = as_nat5 f2 then LD.as_nat_inj f1 f2 | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fsqr5_lemma | val fsqr5_lemma: a:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64))
(ensures (let res = fsqr5 a in
as_nat5 res % S.prime == as_nat5 a * as_nat5 a % S.prime /\
felem_fits5 res (1,1,1,1,2))) | val fsqr5_lemma: a:felem5 -> Lemma
(requires
felem_fits5 a (64,64,64,64,64))
(ensures (let res = fsqr5 a in
as_nat5 res % S.prime == as_nat5 a * as_nat5 a % S.prime /\
felem_fits5 res (1,1,1,1,2))) | let fsqr5_lemma a =
L3.fsqr5_lemma a | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 104,
"start_col": 0,
"start_line": 103
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 a (64, 64, 64, 64, 64))
(ensures
(let res = Hacl.Spec.K256.Field52.fsqr5 a in
Hacl.Spec.K256.Field52.Definitions.as_nat5 res % Spec.K256.PointOps.prime ==
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Lemmas3.fsqr5_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let fsqr5_lemma a =
| L3.fsqr5_lemma a | false |
DependentBoolRefinement.fst | DependentBoolRefinement.elab_ty_close_commute' | val elab_ty_close_commute' (n: nat) (e: src_ty) (x: var)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.ND x n] == elab_ty (close_ty' e x n))
(decreases e) | val elab_ty_close_commute' (n: nat) (e: src_ty) (x: var)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.ND x n] == elab_ty (close_ty' e x n))
(decreases e) | let rec elab_close_commute' (n:nat) (e:src_exp) (x:var)
: Lemma (ensures
RT.subst_term (elab_exp e) [ RT.ND x n ] ==
elab_exp (close_exp' e x n))
(decreases e)
= match e with
| EBool _ -> ()
| EBVar _ -> ()
| EVar _ -> ()
| EApp e1 e2 ->
elab_close_commut... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 683,
"start_col": 0,
"start_line": 650
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 8,
"initial_ifuel": 2,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> e: DependentBoolRefinement.src_ty -> x: DependentBoolRefinement.var
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.subst_term (DependentBoolRefinement.elab_ty e)
[FStar.Reflection.Typing.ND x n] ==
DependentBoolRefinement.elab_ty (DependentBoolRefinement.clo... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"elab_close_commute'",
"elab_ty_close_commute'"
] | [
"Prims.nat",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.var",
"DependentBoolRefinement.elab_ty_close_commute'",
"Prims.op_Addition",
"Prims.unit",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.elab_close_commute'",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FSt... | [
"mutual recursion"
] | false | false | true | false | false | let rec elab_ty_close_commute' (n: nat) (e: src_ty) (x: var)
: Lemma (ensures RT.subst_term (elab_ty e) [RT.ND x n] == elab_ty (close_ty' e x n))
(decreases e) =
| match e with
| TBool -> ()
| TArrow t t' ->
elab_ty_close_commute' n t x;
elab_ty_close_commute' (n + 1) t' x
| TRefineBool e -> elab_close_commute' (n + 1) e x | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.is_felem_ge_prime_vartime5_lemma | val is_felem_ge_prime_vartime5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures is_felem_ge_prime_vartime5 f == (as_nat5 f >= S.prime)) | val is_felem_ge_prime_vartime5_lemma: f:felem5 -> Lemma
(requires felem_fits5 f (1,1,1,1,1))
(ensures is_felem_ge_prime_vartime5 f == (as_nat5 f >= S.prime)) | let is_felem_ge_prime_vartime5_lemma f =
let p =
(u64 0xffffefffffc2f,
u64 0xfffffffffffff,
u64 0xfffffffffffff,
u64 0xfffffffffffff,
u64 0xffffffffffff) in
assert_norm (S.prime = as_nat5 p);
assert_norm (0xffffefffffc2f <= max52);
assert_norm (0xfffffffffffff = max52);
assert_norm (0xfffff... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 68,
"start_col": 0,
"start_line": 53
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: Hacl.Spec.K256.Field52.Definitions.felem5
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f (1, 1, 1, 1, 1))
(ensures
Hacl.Spec.K256.Field52.is_felem_ge_prime_vartime5 f ==
(Hacl.Spec.K256.Field52.Definitions.as_nat5 f >= Spec.K256.PointOps.prime)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.lemma_as_nat_bound",
"Prims.unit",
"Prims._assert",
"Hacl.Spec.K256.Field52.Definitions.felem_fits5",
"FStar.Pervasives.Native.Mktuple5",
"Prims.nat",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equa... | [] | true | false | true | false | false | let is_felem_ge_prime_vartime5_lemma f =
| let p =
(u64 0xffffefffffc2f,
u64 0xfffffffffffff,
u64 0xfffffffffffff,
u64 0xfffffffffffff,
u64 0xffffffffffff)
in
assert_norm (S.prime = as_nat5 p);
assert_norm (0xffffefffffc2f <= max52);
assert_norm (0xfffffffffffff = max52);
assert_norm (0xffffffffffff = max48);
assert (felem_fits5 p (1, 1, 1, 1,... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.freevars_elab_exp | val freevars_elab_exp (e: src_exp) : Lemma ((freevars e) `Set.equal` (RT.freevars (elab_exp e))) | val freevars_elab_exp (e: src_exp) : Lemma ((freevars e) `Set.equal` (RT.freevars (elab_exp e))) | let rec freevars_elab_exp (e:src_exp)
: Lemma (freevars e `Set.equal` RT.freevars (elab_exp e))
= match e with
| EBool _
| EBVar _
| EVar _ -> ()
| ELam t e ->
freevars_elab_ty t;
freevars_elab_exp e
| EApp e1 e2 ->
freevars_elab_exp e1;
freevars_elab_exp ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 305,
"start_col": 0,
"start_line": 275
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: DependentBoolRefinement.src_exp
-> FStar.Pervasives.Lemma
(ensures
FStar.Set.equal (DependentBoolRefinement.freevars e)
(FStar.Reflection.Typing.freevars (DependentBoolRefinement.elab_exp e))) | FStar.Pervasives.Lemma | [
"lemma"
] | [
"freevars_elab_exp",
"freevars_elab_ty"
] | [
"DependentBoolRefinement.src_exp",
"Prims.bool",
"DependentBoolRefinement.index",
"DependentBoolRefinement.var",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.freevars_elab_exp",
"Prims.unit",
"DependentBoolRefinement.freevars_elab_ty",
"Prims.l_True",
"Prims.squash",
"FStar.Set.equ... | [
"mutual recursion"
] | false | false | true | false | false | let rec freevars_elab_exp (e: src_exp) : Lemma ((freevars e) `Set.equal` (RT.freevars (elab_exp e))) =
| match e with
| EBool _ | EBVar _ | EVar _ -> ()
| ELam t e ->
freevars_elab_ty t;
freevars_elab_exp e
| EApp e1 e2 ->
freevars_elab_exp e1;
freevars_elab_exp e2
| EIf b e1 e2 ->
freevars_elab_exp b;
freevars_elab_exp e1;
freevars_elab_exp e2 | false |
DependentBoolRefinement.fst | DependentBoolRefinement.freevars_elab_ty | val freevars_elab_ty (t: src_ty) : Lemma ((freevars_ty t) `Set.equal` (RT.freevars (elab_ty t))) | val freevars_elab_ty (t: src_ty) : Lemma ((freevars_ty t) `Set.equal` (RT.freevars (elab_ty t))) | let rec freevars_elab_exp (e:src_exp)
: Lemma (freevars e `Set.equal` RT.freevars (elab_exp e))
= match e with
| EBool _
| EBVar _
| EVar _ -> ()
| ELam t e ->
freevars_elab_ty t;
freevars_elab_exp e
| EApp e1 e2 ->
freevars_elab_exp e1;
freevars_elab_exp ... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 305,
"start_col": 0,
"start_line": 275
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: DependentBoolRefinement.src_ty
-> FStar.Pervasives.Lemma
(ensures
FStar.Set.equal (DependentBoolRefinement.freevars_ty t)
(FStar.Reflection.Typing.freevars (DependentBoolRefinement.elab_ty t))) | FStar.Pervasives.Lemma | [
"lemma"
] | [
"freevars_elab_exp",
"freevars_elab_ty"
] | [
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.freevars_elab_ty",
"Prims.unit",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.freevars_elab_exp",
"Prims.l_True",
"Prims.squash",
"FStar.Set.equal",
"DependentBoolRefinement.var",
"DependentBoolRefinement.freevars_ty",
"FS... | [
"mutual recursion"
] | false | false | true | false | false | let rec freevars_elab_ty (t: src_ty) : Lemma ((freevars_ty t) `Set.equal` (RT.freevars (elab_ty t))) =
| match t with
| TBool -> ()
| TArrow t1 t2 ->
freevars_elab_ty t1;
freevars_elab_ty t2
| TRefineBool e -> freevars_elab_exp e | false |
Vale.Test.X64.Vale_memcpy.fsti | Vale.Test.X64.Vale_memcpy.va_quick_Memcpy | val va_quick_Memcpy (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win)) | val va_quick_Memcpy (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win)) | let va_quick_Memcpy (win:bool) (dst:buffer64) (src:buffer64) : (va_quickCode unit (va_code_Memcpy
win)) =
(va_QProc (va_code_Memcpy win) ([va_Mod_mem_heaplet 1; va_Mod_mem_layout; va_Mod_reg64 rR9;
va_Mod_reg64 rRcx; va_Mod_reg64 rRax; va_Mod_mem]) (va_wp_Memcpy win dst src)
(va_wpProof_Memcpy win dst src)) | {
"file_name": "obj/Vale.Test.X64.Vale_memcpy.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 89,
"start_col": 0,
"start_line": 85
} | module Vale.Test.X64.Vale_memcpy
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
#set-options "--z3rlimit 20"
//-- Memcpy
val va_code_Memcpy... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsVector",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | win: Prims.bool -> dst: Vale.X64.Memory.buffer64 -> src: Vale.X64.Memory.buffer64
-> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.Test.X64.Vale_memcpy.va_code_Memcpy win) | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Vale.X64.Memory.buffer64",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Test.X64.Vale_memcpy.va_code_Memcpy",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_mem_heaplet",
"Vale.X64.QuickCode.va_Mod_mem_layout",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X... | [] | false | false | false | false | false | let va_quick_Memcpy (win: bool) (dst src: buffer64) : (va_quickCode unit (va_code_Memcpy win)) =
| (va_QProc (va_code_Memcpy win)
([
va_Mod_mem_heaplet 1;
va_Mod_mem_layout;
va_Mod_reg64 rR9;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRax;
va_Mod_mem
])
(va_wp_Memcpy win dst src)
(va_wpProof_Memcpy win dst src)) | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.sub5_lemma | val sub5_lemma (ma mb:scale64_5) (a b:felem5) (x:uint64) : Lemma
(requires (let xn = v x in
let (ma0,ma1,ma2,ma3,ma4) = ma in
let (mb0,mb1,mb2,mb3,mb4) = mb in 2 * xn <= 4096 /\
mb0 <= xn /\ mb1 <= xn /\ mb2 <= xn /\ mb3 <= xn /\ mb4 <= xn /\
ma0+2*xn <= 4096 /\ ma1+2*xn <= 4096 /\
ma2+2*xn <= 409... | val sub5_lemma (ma mb:scale64_5) (a b:felem5) (x:uint64) : Lemma
(requires (let xn = v x in
let (ma0,ma1,ma2,ma3,ma4) = ma in
let (mb0,mb1,mb2,mb3,mb4) = mb in 2 * xn <= 4096 /\
mb0 <= xn /\ mb1 <= xn /\ mb2 <= xn /\ mb3 <= xn /\ mb4 <= xn /\
ma0+2*xn <= 4096 /\ ma1+2*xn <= 4096 /\
ma2+2*xn <= 409... | let sub5_lemma ma mb a b x =
let (ma0,ma1,ma2,ma3,ma4) = ma in
let xn = v x in
let r = fnegate5 b x in
fnegate5_lemma mb b x;
let o = add5 a r in
add5_lemma ma (2*xn,2*xn,2*xn,2*xn,2*xn) a r | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 225,
"start_col": 0,
"start_line": 219
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ma: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
mb: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
a: Hacl.Spec.K256.Field52.Definitions.felem5 ->
b: Hacl.Spec.K256.Field52.Definitions.felem5 ->
x: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
(let xn = Lib.IntTypes.v... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"Prims.nat",
"Hacl.Spec.K256.Field52.Lemmas.add5_lemma",
"FStar.Pervasives.Native.Mktuple5",
"FStar.Mul.op_Star",
"Hacl.Spec.K256.Field52.add5",
"Prims.unit",
"Hacl.Spec.K256.Field52... | [] | false | false | true | false | false | let sub5_lemma ma mb a b x =
| let ma0, ma1, ma2, ma3, ma4 = ma in
let xn = v x in
let r = fnegate5 b x in
fnegate5_lemma mb b x;
let o = add5 a r in
add5_lemma ma (2 * xn, 2 * xn, 2 * xn, 2 * xn, 2 * xn) a r | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.fsub5_lemma | val fsub5_lemma (ma mb:scale64_5) (a b:felem5) (x:uint64) : Lemma
(requires (let xn = v x in
let (ma0,ma1,ma2,ma3,ma4) = ma in
let (mb0,mb1,mb2,mb3,mb4) = mb in 2 * xn <= 4096 /\
mb0 <= xn /\ mb1 <= xn /\ mb2 <= xn /\ mb3 <= xn /\ mb4 <= xn /\
ma0+2*xn <= 4096 /\ ma1+2*xn <= 4096 /\
ma2+2*xn <= 40... | val fsub5_lemma (ma mb:scale64_5) (a b:felem5) (x:uint64) : Lemma
(requires (let xn = v x in
let (ma0,ma1,ma2,ma3,ma4) = ma in
let (mb0,mb1,mb2,mb3,mb4) = mb in 2 * xn <= 4096 /\
mb0 <= xn /\ mb1 <= xn /\ mb2 <= xn /\ mb3 <= xn /\ mb4 <= xn /\
ma0+2*xn <= 4096 /\ ma1+2*xn <= 4096 /\
ma2+2*xn <= 40... | let fsub5_lemma ma mb a b x =
let r = fsub5 a b x in let xn = v x in
sub5_lemma ma mb a b x;
assert (as_nat5 r % S.prime = (as_nat5 a - as_nat5 b + 2 * xn * S.prime) % S.prime);
Math.Lemmas.lemma_mod_plus (as_nat5 a - as_nat5 b) (2 * xn) S.prime;
assert (as_nat5 r % S.prime = (as_nat5 a - as_nat5 b) % S.prime... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 234,
"start_col": 0,
"start_line": 228
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ma: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
mb: Hacl.Spec.K256.Field52.Definitions.scale64_5 ->
a: Hacl.Spec.K256.Field52.Definitions.felem5 ->
b: Hacl.Spec.K256.Field52.Definitions.felem5 ->
x: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
(let xn = Lib.IntTypes.v... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.K256.Field52.Definitions.scale64_5",
"Hacl.Spec.K256.Field52.Definitions.felem5",
"Lib.IntTypes.uint64",
"Hacl.Spec.K256.MathLemmas.lemma_mod_sub_distr",
"Hacl.Spec.K256.Field52.Definitions.as_nat5",
"Spec.K256.PointOps.prime",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"Prims.op_Equal... | [] | true | false | true | false | false | let fsub5_lemma ma mb a b x =
| let r = fsub5 a b x in
let xn = v x in
sub5_lemma ma mb a b x;
assert (as_nat5 r % S.prime = (as_nat5 a - as_nat5 b + (2 * xn) * S.prime) % S.prime);
Math.Lemmas.lemma_mod_plus (as_nat5 a - as_nat5 b) (2 * xn) S.prime;
assert (as_nat5 r % S.prime = (as_nat5 a - as_nat5 b) % S.prime);
ML.lemma_mod_sub_distr (as_nat5 a) ... | false |
Hacl.Spec.K256.Field52.Lemmas.fst | Hacl.Spec.K256.Field52.Lemmas.lemma_mul_sub | val lemma_mul_sub (mc:nat) (a b c:uint64) : Lemma
(requires
v a <= max52 /\ max52 <= v a * 2 /\ v c <= mc * max52 /\
mc <= v b /\ 2 * v b <= 4096)
(ensures (let r = a *. u64 2 *. b -. c in
v r = v a * 2 * v b - v c /\
felem_fits1 r (2 * v b))) | val lemma_mul_sub (mc:nat) (a b c:uint64) : Lemma
(requires
v a <= max52 /\ max52 <= v a * 2 /\ v c <= mc * max52 /\
mc <= v b /\ 2 * v b <= 4096)
(ensures (let r = a *. u64 2 *. b -. c in
v r = v a * 2 * v b - v c /\
felem_fits1 r (2 * v b))) | let lemma_mul_sub mc a b c =
let r = a *. u64 2 *. b -. c in
assert (v c <= mc * max52);
ML.lemma_ab_le_cd mc max52 (v b) (v a * 2);
assert (v c <= v a * 2 * v b);
assert (v a * 2 * v b - v c <= v a * 2 * v b);
Math.Lemmas.paren_mul_right (v a) 2 (v b);
ML.lemma_ab_le_cd (v a) (2 * v b) max52 4096;
ass... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 135,
"start_col": 0,
"start_line": 121
} | module Hacl.Spec.K256.Field52.Lemmas
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
module L1 = Hacl.Spec.K256.Field52.Lemmas1
module L2 = Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas3.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas2.fst.checked",
"Hacl.Spec.K256.Field52.Lemmas1.fst.che... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas3",
"short_module": "L3"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas2",
"short_module": "L2"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Lemmas1",
"short_module": "L1"
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | mc: Prims.nat -> a: Lib.IntTypes.uint64 -> b: Lib.IntTypes.uint64 -> c: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(requires
Lib.IntTypes.v a <= Hacl.Spec.K256.Field52.Definitions.max52 /\
Hacl.Spec.K256.Field52.Definitions.max52 <= Lib.IntTypes.v a * 2 /\
Lib.IntTypes.v c <= mc * Hac... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Lib.IntTypes.uint64",
"Prims._assert",
"Prims.b2t",
"Hacl.Spec.K256.Field52.Definitions.felem_fits1",
"FStar.Mul.op_Star",
"Lib.IntTypes.v",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.unit",
"Hacl.Spec.K256.MathLemmas.lemma_ab_le_cd",
"Hacl.Spec.K256.Field52.Definitions.max52... | [] | true | false | true | false | false | let lemma_mul_sub mc a b c =
| let r = a *. u64 2 *. b -. c in
assert (v c <= mc * max52);
ML.lemma_ab_le_cd mc max52 (v b) (v a * 2);
assert (v c <= (v a * 2) * v b);
assert ((v a * 2) * v b - v c <= (v a * 2) * v b);
Math.Lemmas.paren_mul_right (v a) 2 (v b);
ML.lemma_ab_le_cd (v a) (2 * v b) max52 4096;
assert_norm (4096 * max52 < pow2 64);
Math.... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.soundness | val soundness
(#f: fstar_top_env)
(#sg: src_env{src_env_ok sg})
(#se: src_exp)
(#st: src_ty)
(dd: src_typing f sg se st)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) (decreases (height dd)) | val soundness
(#f: fstar_top_env)
(#sg: src_env{src_env_ok sg})
(#se: src_exp)
(#st: src_ty)
(dd: src_typing f sg se st)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) (decreases (height dd)) | let rec soundness (#f:fstar_top_env)
(#sg:src_env { src_env_ok sg } )
(#se:src_exp)
(#st:src_ty)
(dd:src_typing f sg se st)
: GTot (RT.tot_typing (extend_env_l f sg)
(elab_exp se)
(elab_ty st))
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 846,
"start_col": 0,
"start_line": 710
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dd: DependentBoolRefinement.src_typing f sg se st
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (DependentBoolRefinement.extend_env_l f sg)
(DependentBoolRefinement.elab_exp se)
(DependentBoolRefinement.elab_ty st)) | Prims.GTot | [
"sometrivial",
""
] | [
"soundness",
"src_ty_ok_soundness"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"Prims.b2t",
"DependentBoolRefinement.src_env_ok",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_typing",
"FStar.Reflection.Typing.T_Const",
"DependentBoolRefinement.extend... | [
"mutual recursion"
] | false | false | false | false | false | let rec soundness
(#f: fstar_top_env)
(#sg: src_env{src_env_ok sg})
(#se: src_exp)
(#st: src_ty)
(dd: src_typing f sg se st)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_exp se) (elab_ty st)) (decreases (height dd)) =
| match dd with
| T_Bool _ true -> RT.T_Const _ _ _ RT.CT_True
| T_Bool _ false -> RT.T_Const _ _ _ RT.CT_False
| T_Var _ x -> RT.T_Var _ (R.pack_namedv (RT.make_namedv x))
| T_Lam _ t e t' x dt de ->
let de:RT.tot_typing (extend_env_l f ((x, Inl t) :: sg)) (elab_exp (open_exp e x)) (elab_ty t') =
soundness de
in... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.src_ty_ok_soundness | val src_ty_ok_soundness
(#f: fstar_top_env)
(sg: src_env{src_env_ok sg})
(t: src_ty)
(dt: src_ty_ok f sg t)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_ty t) (RT.tm_type RT.u_zero))
(decreases (t_height dt)) | val src_ty_ok_soundness
(#f: fstar_top_env)
(sg: src_env{src_env_ok sg})
(t: src_ty)
(dt: src_ty_ok f sg t)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_ty t) (RT.tm_type RT.u_zero))
(decreases (t_height dt)) | let rec soundness (#f:fstar_top_env)
(#sg:src_env { src_env_ok sg } )
(#se:src_exp)
(#st:src_ty)
(dd:src_typing f sg se st)
: GTot (RT.tot_typing (extend_env_l f sg)
(elab_exp se)
(elab_ty st))
... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 846,
"start_col": 0,
"start_line": 710
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
sg: DependentBoolRefinement.src_env{DependentBoolRefinement.src_env_ok sg} ->
t: DependentBoolRefinement.src_ty ->
dt: DependentBoolRefinement.src_ty_ok f sg t
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (DependentBoolRefinement.extend_env_l f sg)
(DependentBoolRefinement.elab_ty t)
... | Prims.GTot | [
"sometrivial",
""
] | [
"soundness",
"src_ty_ok_soundness"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"Prims.b2t",
"DependentBoolRefinement.src_env_ok",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_ty_ok",
"FStar.Reflection.Typing.T_FVar",
"DependentBoolRefinement.extend_env_l",
"FStar.Reflection.Typing.boo... | [
"mutual recursion"
] | false | false | false | false | false | let rec src_ty_ok_soundness
(#f: fstar_top_env)
(sg: src_env{src_env_ok sg})
(t: src_ty)
(dt: src_ty_ok f sg t)
: GTot (RT.tot_typing (extend_env_l f sg) (elab_ty t) (RT.tm_type RT.u_zero))
(decreases (t_height dt)) =
| match dt with
| OK_TBool _ -> RT.T_FVar _ RT.bool_fv
| OK_TArrow _ t1 t2 x ok_t1 ok_t2 ->
let t1_ok = src_ty_ok_soundness sg _ ok_t1 in
let t2_ok = src_ty_ok_soundness ((x, Inl t1) :: sg) _ ok_t2 in
freevars_elab_ty t2;
let arr_max =
RT.T_Arrow _
x
(elab_ty t1)
(elab_ty t2)
_
_... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.check | val check (f: fstar_top_env) (sg: src_env) (e: src_exp{ok sg e})
: T.Tac (t: src_ty & src_typing f sg e t) | val check (f: fstar_top_env) (sg: src_env) (e: src_exp{ok sg e})
: T.Tac (t: src_ty & src_typing f sg e t) | let rec check (f:fstar_top_env)
(sg:src_env)
(e:src_exp { ok sg e })
: T.Tac (t:src_ty &
src_typing f sg e t)
= match e with
| EBVar _ ->
T.fail "Not locally nameless"
| EBool b ->
(| TBool, T_Bool _ b |)
| EVar n ->
begin
match lookup... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 565,
"start_col": 0,
"start_line": 477
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: DependentBoolRefinement.fstar_top_env ->
sg: DependentBoolRefinement.src_env ->
e: DependentBoolRefinement.src_exp{DependentBoolRefinement.ok sg e}
-> FStar.Tactics.Effect.Tac
(Prims.dtuple2 DependentBoolRefinement.src_ty
(fun t -> DependentBoolRefinement.src_typing f sg e t)) | FStar.Tactics.Effect.Tac | [] | [
"check",
"check_ty"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_exp",
"DependentBoolRefinement.ok",
"DependentBoolRefinement.index",
"FStar.Tactics.V2.Derived.fail",
"Prims.dtuple2",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.src_typing",
"P... | [
"mutual recursion"
] | false | true | false | false | false | let rec check (f: fstar_top_env) (sg: src_env) (e: src_exp{ok sg e})
: T.Tac (t: src_ty & src_typing f sg e t) =
| match e with
| EBVar _ -> T.fail "Not locally nameless"
| EBool b -> (| TBool, T_Bool _ b |)
| EVar n ->
(match lookup_ty sg n with
| None -> T.fail "Ill-typed"
| Some t ->
let d = T_Var sg n in
(| t, d |))
| ELam t body ->
let t_ok = check_ty f sg t in
let x = fresh sg in
fresh_is_fresh sg;... | false |
DependentBoolRefinement.fst | DependentBoolRefinement.check_ty | val check_ty (f: fstar_top_env) (sg: src_env) (t: src_ty{ok_ty sg t}) : T.Tac (src_ty_ok f sg t) | val check_ty (f: fstar_top_env) (sg: src_env) (t: src_ty{ok_ty sg t}) : T.Tac (src_ty_ok f sg t) | let rec check (f:fstar_top_env)
(sg:src_env)
(e:src_exp { ok sg e })
: T.Tac (t:src_ty &
src_typing f sg e t)
= match e with
| EBVar _ ->
T.fail "Not locally nameless"
| EBool b ->
(| TBool, T_Bool _ b |)
| EVar n ->
begin
match lookup... | {
"file_name": "examples/dsls/dependent_bool_refinement/DependentBoolRefinement.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 565,
"start_col": 0,
"start_line": 477
} | module DependentBoolRefinement
module T = FStar.Tactics.V2
module R = FStar.Reflection.V2
open FStar.List.Tot
module L = FStar.List.Tot
#push-options "--z3cliopt 'smt.qi.eager_threshold=100' --z3cliopt 'smt.arith.nl=false'"
let var = nat
let index = nat
let tun = R.pack_ln R.Tv_Unknown
type src_exp =
| EBVar : ind... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Reflection.Typing.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.Typing",
"short_module": "RT"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.List.Tot",
"short_module": null
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 2,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: DependentBoolRefinement.fstar_top_env ->
sg: DependentBoolRefinement.src_env ->
t: DependentBoolRefinement.src_ty{DependentBoolRefinement.ok_ty sg t}
-> FStar.Tactics.Effect.Tac (DependentBoolRefinement.src_ty_ok f sg t) | FStar.Tactics.Effect.Tac | [] | [
"check",
"check_ty"
] | [
"DependentBoolRefinement.fstar_top_env",
"DependentBoolRefinement.src_env",
"DependentBoolRefinement.src_ty",
"DependentBoolRefinement.ok_ty",
"DependentBoolRefinement.OK_TBool",
"DependentBoolRefinement.src_ty_ok",
"DependentBoolRefinement.OK_TArrow",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",... | [
"mutual recursion"
] | false | true | false | false | false | let rec check_ty (f: fstar_top_env) (sg: src_env) (t: src_ty{ok_ty sg t}) : T.Tac (src_ty_ok f sg t) =
| match t with
| TBool -> OK_TBool _
| TArrow t t' ->
let t_ok = check_ty f sg t in
let x = fresh sg in
fresh_is_fresh sg;
open_ty_freevars t' (EVar x) 0;
let t'_ok = check_ty f ((x, Inl t) :: sg) (open_ty t' x) in
OK_TArrow _ _ _ x t_ok t'_ok
| TRefineBool e ->
let x = fresh sg in
fresh_is_fresh sg;
op... | false |
Benton2004.DDCC.Examples.fst | Benton2004.DDCC.Examples.d_op_singl | val d_op_singl
(#from #to: Type0)
(op: (from -> from -> Tot to))
(c1 c2: from)
(e1 e1' e2 e2': exp from)
(phi: sttype)
: Lemma (requires (eval_equiv phi (ns_singl c1) e1 e1' /\ eval_equiv phi (ns_singl c2) e2 e2'))
(ensures (eval_equiv phi (ns_singl (op c1 c2)) (eop op e1 e2) (eo... | val d_op_singl
(#from #to: Type0)
(op: (from -> from -> Tot to))
(c1 c2: from)
(e1 e1' e2 e2': exp from)
(phi: sttype)
: Lemma (requires (eval_equiv phi (ns_singl c1) e1 e1' /\ eval_equiv phi (ns_singl c2) e2 e2'))
(ensures (eval_equiv phi (ns_singl (op c1 c2)) (eop op e1 e2) (eo... | let d_op_singl
(#from #to: Type0)
(op: (from -> from -> Tot to))
(c1 c2: from)
(e1 e1' e2 e2': exp from)
(phi: sttype)
: Lemma
(requires (
eval_equiv phi (ns_singl c1) e1 e1' /\
eval_equiv phi (ns_singl c2) e2 e2'
))
(ensures (eval_equiv phi (ns_singl (op c1 c2)) (eop op e1 e2) (eop op e1' e2'))... | {
"file_name": "examples/rel/Benton2004.DDCC.Examples.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 77,
"end_line": 43,
"start_col": 0,
"start_line": 29
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"Benton2004.DDCC.fsti.checked"
],
"interface_file": false,
"source_file": "Benton2004.DDCC.Examples.fst"
} | [
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
op: (_: from -> _: from -> to) ->
c1: from ->
c2: from ->
e1: Benton2004.exp from ->
e1': Benton2004.exp from ->
e2: Benton2004.exp from ->
e2': Benton2004.exp from ->
phi: Benton2004.DDCC.sttype
-> FStar.Pervasives.Lemma
(requires
Benton2004.eval_equiv phi (Benton2004.D... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Benton2004.exp",
"Benton2004.DDCC.sttype",
"Benton2004.DDCC.d_op",
"Benton2004.DDCC.ns_singl",
"Prims.unit",
"Benton2004.DDCC.Examples.op_abs_singl",
"Prims.l_and",
"Benton2004.eval_equiv",
"Prims.squash",
"Benton2004.eop",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat... | [] | true | false | true | false | false | let d_op_singl
(#from #to: Type0)
(op: (from -> from -> Tot to))
(c1 c2: from)
(e1 e1' e2 e2': exp from)
(phi: sttype)
: Lemma (requires (eval_equiv phi (ns_singl c1) e1 e1' /\ eval_equiv phi (ns_singl c2) e2 e2'))
(ensures (eval_equiv phi (ns_singl (op c1 c2)) (eop op e1 e2) (eo... | op_abs_singl op c1 c2;
d_op op e1 e1' e2 e2' (ns_singl c1) (ns_singl c2) (ns_singl (op c1 c2)) phi | false |
Benton2004.DDCC.Examples.fst | Benton2004.DDCC.Examples.fig3_d2 | val fig3_d2 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | val fig3_d2 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | let fig3_d2
(x: var)
(phi: sttype)
(z: var)
: Lemma
(requires (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z
))
(ensures (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z /\
exec_equiv
(st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(st_cons (st_cons phi x ... | {
"file_name": "examples/rel/Benton2004.DDCC.Examples.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 90,
"start_col": 0,
"start_line": 63
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"Benton2004.DDCC.fsti.checked"
],
"interface_file": false,
"source_file": "Benton2004.DDCC.Examples.fst"
} | [
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Benton2004.var -> phi: Benton2004.DDCC.sttype -> z: Benton2004.var
-> FStar.Pervasives.Lemma
(requires Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z)
(ensures
Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z /\
Benton200... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Benton2004.var",
"Benton2004.DDCC.sttype",
"Prims._assert",
"Benton2004.DDCC.exec_equiv",
"Benton2004.DDCC.st_cons",
"Benton2004.DDCC.ns_singl",
"Prims.int",
"Benton2004.DDCC.ns_t",
"Benton2004.assign",
"Benton2004.eop",
"Prims.op_Addition",
"Benton2004.evar",
"Benton2004.const",
"Prims.u... | [] | true | false | true | false | false | let fig3_d2 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | d_op_singl op_Addition 7 1 (evar x) (evar x) (const 1) (const 1) (st_cons phi x (ns_singl 7));
assert (exec_equiv (st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(st_cons (st_cons phi x (ns_singl 7)) z (ns_singl 8))
(assign z (eop op_Addition (evar x) (const 1)))
(assign z (const 8))) | false |
Benton2004.DDCC.Examples.fst | Benton2004.DDCC.Examples.fig3_d1 | val fig3_d1 (x: var) (phi: sttype)
: Lemma (requires (x `st_fresh_in` phi))
(ensures
(x `st_fresh_in` phi /\
exec_equiv (st_cons phi x (ns_singl 3))
(st_cons phi x (ns_singl 7))
(ifthenelse (eop op_Equality (evar x) (const 3)) (assign x (const 7)) skip)
(a... | val fig3_d1 (x: var) (phi: sttype)
: Lemma (requires (x `st_fresh_in` phi))
(ensures
(x `st_fresh_in` phi /\
exec_equiv (st_cons phi x (ns_singl 3))
(st_cons phi x (ns_singl 7))
(ifthenelse (eop op_Equality (evar x) (const 3)) (assign x (const 7)) skip)
(a... | let fig3_d1
(x: var)
(phi: sttype)
: Lemma
(requires (
x `st_fresh_in` phi
))
(ensures (
x `st_fresh_in` phi /\
exec_equiv
(st_cons phi x (ns_singl 3))
(st_cons phi x (ns_singl 7))
(ifthenelse (eop op_Equality (evar x) (const 3)) (assign x (const 7)) skip)
(assign x (const ... | {
"file_name": "examples/rel/Benton2004.DDCC.Examples.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 102,
"end_line": 60,
"start_col": 0,
"start_line": 45
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"Benton2004.DDCC.fsti.checked"
],
"interface_file": false,
"source_file": "Benton2004.DDCC.Examples.fst"
} | [
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Benton2004.var -> phi: Benton2004.DDCC.sttype
-> FStar.Pervasives.Lemma (requires Benton2004.DDCC.st_fresh_in x phi)
(ensures
Benton2004.DDCC.st_fresh_in x phi /\
Benton2004.DDCC.exec_equiv (Benton2004.DDCC.st_cons phi x (Benton2004.DDCC.ns_singl 3))
(Benton2004.DDCC.st_cons phi x (... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Benton2004.var",
"Benton2004.DDCC.sttype",
"Benton2004.DDCC.Examples.d_op_singl",
"Prims.int",
"Prims.bool",
"Prims.op_Equality",
"Benton2004.evar",
"Benton2004.const",
"Benton2004.DDCC.st_cons",
"Benton2004.DDCC.ns_singl",
"Prims.unit",
"Benton2004.DDCC.st_fresh_in",
"Prims.squash",
"Pri... | [] | true | false | true | false | false | let fig3_d1 (x: var) (phi: sttype)
: Lemma (requires (x `st_fresh_in` phi))
(ensures
(x `st_fresh_in` phi /\
exec_equiv (st_cons phi x (ns_singl 3))
(st_cons phi x (ns_singl 7))
(ifthenelse (eop op_Equality (evar x) (const 3)) (assign x (const 7)) skip)
(a... | d_op_singl (op_Equality #int) 3 3 (evar x) (evar x) (const 3) (const 3) (st_cons phi x (ns_singl 3)) | false |
Benton2004.DDCC.Examples.fst | Benton2004.DDCC.Examples.fig3_d3 | val fig3_d3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | val fig3_d3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | let fig3_d3
(x: var)
(phi: sttype)
(z: var)
: Lemma
(requires (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z
))
(ensures (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z /\
exec_equiv
(st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ... | {
"file_name": "examples/rel/Benton2004.DDCC.Examples.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 120,
"start_col": 0,
"start_line": 92
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"Benton2004.DDCC.fsti.checked"
],
"interface_file": false,
"source_file": "Benton2004.DDCC.Examples.fst"
} | [
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Benton2004.var -> phi: Benton2004.DDCC.sttype -> z: Benton2004.var
-> FStar.Pervasives.Lemma
(requires Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z)
(ensures
Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z /\
Benton200... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Benton2004.var",
"Benton2004.DDCC.sttype",
"Benton2004.DDCC.d_su1'",
"Prims.unit",
"Benton2004.DDCC.d_assign",
"Benton2004.DDCC.st_cons",
"Benton2004.DDCC.ns_t",
"Prims.int",
"Benton2004.DDCC.ns_singl",
"Benton2004.const",
"Benton2004.DDCC.d_das",
"Benton2004.computation",
"Benton2004.assig... | [] | true | false | true | false | false | let fig3_d3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_sin... | let c = assign x (const 7) in
let c' = assign z (const 8) in
let c'' = c' in
let phi_ = st_cons (st_cons phi x (ns_singl 3)) z ns_t in
let phi' = st_cons (st_cons phi x ns_t) z ns_t in
let phi'' = st_cons (st_cons phi x ns_t) z (ns_singl 8) in
d_das x (const 7) (st_cons phi z ns_t) (ns_singl 3);
d_assign (st_cons phi x... | false |
Benton2004.DDCC.Examples.fst | Benton2004.DDCC.Examples.fig3 | val fig3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_singl ... | val fig3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_singl ... | let fig3
(x: var)
(phi: sttype)
(z: var)
: Lemma
(requires (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z
))
(ensures (
x `st_fresh_in` phi /\
z `st_fresh_in` phi /\
x <> z /\
exec_equiv
(st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_... | {
"file_name": "examples/rel/Benton2004.DDCC.Examples.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 151,
"start_col": 0,
"start_line": 122
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"Benton2004.DDCC.fsti.checked"
],
"interface_file": false,
"source_file": "Benton2004.DDCC.Examples.fst"
} | [
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_module": "Benton2004.DDCC",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Benton2004.var -> phi: Benton2004.DDCC.sttype -> z: Benton2004.var
-> FStar.Pervasives.Lemma
(requires Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z)
(ensures
Benton2004.DDCC.st_fresh_in x phi /\ Benton2004.DDCC.st_fresh_in z phi /\ x <> z /\
Benton200... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Benton2004.var",
"Benton2004.DDCC.sttype",
"Benton2004.DDCC.Examples.fig3_d3",
"Prims.unit",
"Benton2004.DDCC.Examples.fig3_d2",
"Benton2004.DDCC.d_csub",
"Benton2004.DDCC.st_cons",
"Benton2004.DDCC.ns_t",
"Prims.int",
"Benton2004.DDCC.ns_singl",
"Benton2004.ifthenelse",
"Benton2004.eop",
"... | [] | true | false | true | false | false | let fig3 (x: var) (phi: sttype) (z: var)
: Lemma (requires (x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z))
(ensures
(x `st_fresh_in` phi /\ z `st_fresh_in` phi /\ x <> z /\
exec_equiv (st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x ns_t) z (ns_singl ... | fig3_d1 x (st_cons phi z ns_t);
d_csub (st_cons (st_cons phi z ns_t) x (ns_singl 3))
(st_cons (st_cons phi z ns_t) x (ns_singl 7))
(st_cons (st_cons phi x (ns_singl 3)) z ns_t)
(st_cons (st_cons phi x (ns_singl 7)) z ns_t)
(ifthenelse (eop op_Equality (evar x) (const 3)) (assign x (const 7)) skip)
(assign x (... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.