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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.call_c_t | val call_c_t : Type0 | let call_c_t = IX64.as_lowstar_sig_t_weak_stdcall c dom [] _ _ (W.mk_prediction c dom [] (v c IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 102,
"end_line": 42,
"start_col": 0,
"start_line": 42
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.AsLowStar.Wrapper",
"short_module": "W"
},
{
"abbrev": true,
"full_... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.AsLowStar.Test.c",
"Vale.AsLowStar.Test.dom",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Vale.AsLowStar.Test.pre",
"Vale.AsLowStar.Wrapp... | [] | false | false | false | true | true | let call_c_t =
| IX64.as_lowstar_sig_t_weak_stdcall c dom [] _ _ (W.mk_prediction c dom [] (v c IA.win)) | false | |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.call_c | val call_c:call_c_t | val call_c:call_c_t | let call_c : call_c_t = IX64.wrap_weak_stdcall
c dom (W.mk_prediction c dom [] (v c IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 46,
"start_col": 0,
"start_line": 45
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.AsLowStar.Wrapper",
"short_module": "W"
},
{
"abbrev": true,
"full_... | {
"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 | Vale.AsLowStar.Test.call_c_t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.AsLowStar.Test.c",
"Vale.AsLowStar.Test.dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Test.pre",
"Vale.AsLowStar.Wrapper.post_rel_... | [] | false | false | false | true | false | let call_c:call_c_t =
| IX64.wrap_weak_stdcall c dom (W.mk_prediction c dom [] (v c IA.win)) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.dom | val dom:dom: list td {List.length dom <= 20} | val dom:dom: list td {List.length dom <= 20} | let (dom : list td{List.length dom <= 20}) =
let y = [t64_mod;t64_imm] in
assert_norm (List.length y = 2);
y | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.AsLowStar.Wrapper",
"short_module": "W"
},
{
"abbrev": true,
"full_... | {
"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 | dom: Prims.list Vale.Interop.Base.td {FStar.List.Tot.Base.length dom <= 20} | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.td",
"Prims.list",
"Prims.Cons",
"Vale.AsLowStar.Test.t64_mod",
"Vale.AsLowStar.Test.t64_imm",
"Prims.Nil"
] | [] | false | false | false | false | false | let dom:dom: list td {List.length dom <= 20} =
| let y = [t64_mod; t64_imm] in
assert_norm (List.length y = 2);
y | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_check_modulus | val bn_field_check_modulus: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len ->
res:bool{res <==> bn_mont_ctx_pre n} | val bn_field_check_modulus: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len ->
res:bool{res <==> bn_mont_ctx_pre n} | let bn_field_check_modulus #t #len n =
let m = BM.bn_check_modulus n in
BB.unsafe_bool_of_limb m | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 90,
"start_col": 0,
"start_line": 88
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 | n: Hacl.Spec.Bignum.Definitions.lbignum t len
-> res: Prims.bool{res <==> Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_pre n} | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.bn_len",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Base.unsafe_bool_of_limb",
"Hacl.Spec.Bignum.Definitions.limb",
"Prims.eq2",
"Prims.int",
"Lib.IntTypes.range",
"Lib.IntTypes.v",
"Lib.IntTypes.SEC",
"Prims.op_AmpAmp",
"... | [] | false | false | false | false | false | let bn_field_check_modulus #t #len n =
| let m = BM.bn_check_modulus n in
BB.unsafe_bool_of_limb m | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_Memcpy | val lowstar_Memcpy:lowstar_Memcpy_t | val lowstar_Memcpy:lowstar_Memcpy_t | let lowstar_Memcpy : lowstar_Memcpy_t =
IX64.wrap_weak_stdcall
code_Memcpy
vm_dom
(W.mk_prediction code_Memcpy vm_dom [] (vm_lemma code_Memcpy IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 128,
"start_col": 0,
"start_line": 124
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Test.X64.Vale_memcpy",
"short_module": "VM"
},
{
"abbrev": true,
... | {
"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 | Vale.AsLowStar.Test.lowstar_Memcpy_t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.AsLowStar.Test.code_Memcpy",
"Vale.AsLowStar.Test.vm_dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Test.vm_pre",
"Vale.AsLowStar.W... | [] | false | false | false | true | false | let lowstar_Memcpy:lowstar_Memcpy_t =
| IX64.wrap_weak_stdcall code_Memcpy
vm_dom
(W.mk_prediction code_Memcpy vm_dom [] (vm_lemma code_Memcpy IA.win)) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.aesni_dom | val aesni_dom:IX64.arity_ok_stdcall td | val aesni_dom:IX64.arity_ok_stdcall td | let aesni_dom : IX64.arity_ok_stdcall td = [] | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 188,
"start_col": 0,
"start_line": 188
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"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 | Vale.Interop.X64.arity_ok_stdcall Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Prims.Nil",
"Vale.Interop.Base.td"
] | [] | false | false | false | true | false | let aesni_dom:IX64.arity_ok_stdcall td =
| [] | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.from_mont_lemma_nonzero | val from_mont_lemma_nonzero: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\
0 < aM /\ aM < n /\
Euclid.is_prime n)
(ensures
(let a = M.from_mont pbits rLen n mu aM in
0 < a /\ a < n)) | val from_mont_lemma_nonzero: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\
0 < aM /\ aM < n /\
Euclid.is_prime n)
(ensures
(let a = M.from_mont pbits rLen n mu aM in
0 < a /\ a < n)) | let from_mont_lemma_nonzero pbits rLen n mu aM =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
let a = M.from_mont pbits rLen n mu aM in
M.from_mont_lemma pbits rLen n mu aM;
assert (a == aM * d % n);
assert (d <> 0);
Math.Lemmas.small_mod aM n;
assert (aM % n <> 0);
... | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 80,
"start_col": 0,
"start_line": 58
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
... | {
"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 | pbits: Prims.pos -> rLen: Prims.pos -> n: Prims.pos -> mu: Prims.nat -> aM: Prims.nat
-> FStar.Pervasives.Lemma
(requires
Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu /\ 0 < aM /\ aM < n /\
FStar.Math.Euclid.is_prime n)
(ensures
(let a = Hacl.Spec.Montgomery.Lemmas.from_mon... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims.unit",
"Prims._assert",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Hacl.Spec.Montgomery.Lemmas.from_mont",
"Hacl.Spec.Bignum.MontArithmetic.mul_nonzero_lemma",
"Prims.op_disEquality",
"Prims.op_Modulus",
"Prims.eq2",
"Prims.op_Minus",
... | [] | false | false | true | false | false | let from_mont_lemma_nonzero pbits rLen n mu aM =
| let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
let a = M.from_mont pbits rLen n mu aM in
M.from_mont_lemma pbits rLen n mu aM;
assert (a == aM * d % n);
assert (d <> 0);
Math.Lemmas.small_mod aM n;
assert (aM % n <> 0);
let d1 = - d in
assert (0 < d1 /\ d1 < n);
Math.Lemmas.lemma_mod_sub_1... | false |
LowParseWriters.LowParse.fsti | LowParseWriters.LowParse.valid_buffer | val valid_buffer (p: parser) (h: HS.mem) (b: B.buffer U8.t) : GTot Type0 | val valid_buffer (p: parser) (h: HS.mem) (b: B.buffer U8.t) : GTot Type0 | let valid_buffer
(p: parser)
(h: HS.mem)
(b: B.buffer U8.t)
: GTot Type0
= valid_pos p h b 0ul (B.len b) | {
"file_name": "examples/layeredeffects/LowParseWriters.LowParse.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 279,
"start_col": 0,
"start_line": 274
} | module LowParseWriters.LowParse
module HS = FStar.HyperStack
module B = LowStar.Buffer
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
type u8 : Type0 = U8.t
val parser' (t: Type0) : Type u#1
inline_for_extraction
noextract
noeq
type parser =
| Parser:
t: Type ->
p: parser' t ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"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 |
p: LowParseWriters.LowParse.parser ->
h: FStar.Monotonic.HyperStack.mem ->
b: LowStar.Buffer.buffer FStar.UInt8.t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParseWriters.LowParse.parser",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"LowParseWriters.LowParse.valid_pos",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.len",
"LowStar.Buffer.trivial_preorder"
] | [] | false | false | false | false | true | let valid_buffer (p: parser) (h: HS.mem) (b: B.buffer U8.t) : GTot Type0 =
| valid_pos p h b 0ul (B.len b) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.itest | val itest : x: Vale.AsLowStar.Test.ib64 -> Prims.unit | let itest (x:ib64) =
assert (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n TUInt8) / view_n TUInt64);
assert (V.buffer_length (as_vale_immbuffer x) == B.length x / 8) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 145,
"start_col": 0,
"start_line": 143
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Monotonic.Buffer",
"short_module": "MB"
},
{
"abbrev": true,
"... | {
"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 | x: Vale.AsLowStar.Test.ib64 -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.ib64",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.buffer_length",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.X64.MemoryAdapters.as_vale_immbuffer",
"Vale.Arch.HeapTypes_s.TUInt8",
"Prims.op_Division",
"LowStar.Monotonic.Buffer.length",
"Vale.Interop.Types.base_ty... | [] | false | false | false | true | false | let itest (x: ib64) =
| assert (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n TUInt8) / view_n TUInt64);
assert (V.buffer_length (as_vale_immbuffer x) == B.length x / 8) | false | |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.mul_nonzero_lemma | val mul_nonzero_lemma: n:pos{Euclid.is_prime n} -> x:int -> y:int -> Lemma
(requires x % n <> 0 /\ y % n <> 0)
(ensures x * y % n <> 0) | val mul_nonzero_lemma: n:pos{Euclid.is_prime n} -> x:int -> y:int -> Lemma
(requires x % n <> 0 /\ y % n <> 0)
(ensures x * y % n <> 0) | let mul_nonzero_lemma n x y =
mul_zero_lemma n x y | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 46,
"start_col": 0,
"start_line": 45
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
... | {
"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 | n: Prims.pos{FStar.Math.Euclid.is_prime n} -> x: Prims.int -> y: Prims.int
-> FStar.Pervasives.Lemma (requires x % n <> 0 /\ y % n <> 0) (ensures x * y % n <> 0) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"FStar.Math.Euclid.is_prime",
"Prims.int",
"Hacl.Spec.Bignum.MontArithmetic.mul_zero_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let mul_nonzero_lemma n x y =
| mul_zero_lemma n x y | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.empty_list | val empty_list (#a: _) : l: list a {List.length l = 0} | val empty_list (#a: _) : l: list a {List.length l = 0} | let empty_list #a : l:list a {List.length l = 0} = [] | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 185,
"start_col": 0,
"start_line": 185
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"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 | l: Prims.list a {FStar.List.Tot.Base.length l = 0} | Prims.Tot | [
"total"
] | [] | [
"Prims.Nil",
"Prims.list",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | false | false | let empty_list #a : l: list a {List.length l = 0} =
| [] | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_init | val bn_field_init: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len ->
Pure (bn_mont_ctx t)
(requires bn_mont_ctx_pre n)
(ensures fun k -> bn_mont_ctx_inv k /\ k.n == n /\ k.len == len) | val bn_field_init: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len ->
Pure (bn_mont_ctx t)
(requires bn_mont_ctx_pre n)
(ensures fun k -> bn_mont_ctx_inv k /\ k.n == n /\ k.len == len) | let bn_field_init #t #len n =
let nBits = bits t * BL.bn_get_top_index n in
BL.bn_low_bound_bits_lemma n;
BM.bn_precomp_r2_mod_n_lemma nBits n;
let r2 = BM.bn_precomp_r2_mod_n nBits n in
assert (bn_v r2 == pow2 (2 * bits t * len) % bn_v n);
let mu = BIL.mod_inv_limb n.[0] in
BIL.bn_mod_inv_limb_lemma n;... | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 107,
"start_col": 0,
"start_line": 93
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 | n: Hacl.Spec.Bignum.Definitions.lbignum t len
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.bn_len",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.MontArithmetic.Mkbn_mont_ctx",
"Prims.unit",
"Hacl.Spec.Bignum.Definitions.bn_eval_bound",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Addition... | [] | false | false | false | false | false | let bn_field_init #t #len n =
| let nBits = bits t * BL.bn_get_top_index n in
BL.bn_low_bound_bits_lemma n;
BM.bn_precomp_r2_mod_n_lemma nBits n;
let r2 = BM.bn_precomp_r2_mod_n nBits n in
assert (bn_v r2 == pow2 ((2 * bits t) * len) % bn_v n);
let mu = BIL.mod_inv_limb n.[ 0 ] in
BIL.bn_mod_inv_limb_lemma n;
assert ((1 + bn_v n * v mu) % pow2 (bits ... | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_aesni | val lowstar_aesni:lowstar_aesni_t | val lowstar_aesni:lowstar_aesni_t | let lowstar_aesni : lowstar_aesni_t =
IX64.wrap_weak_stdcall
(coerce code_aesni)
aesni_dom
(W.mk_prediction code_aesni aesni_dom [] (aesni_lemma code_aesni IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 252,
"start_col": 0,
"start_line": 248
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Vale.AsLowStar.Test.lowstar_aesni_t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.X64.MemoryAdapters.coerce",
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.Test.code_aesni",
"Vale.AsLowStar.Test.aesni_dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_re... | [] | false | false | false | true | false | let lowstar_aesni:lowstar_aesni_t =
| IX64.wrap_weak_stdcall (coerce code_aesni)
aesni_dom
(W.mk_prediction code_aesni aesni_dom [] (aesni_lemma code_aesni IA.win)) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.ta_dom | val ta_dom:ta_dom: list td {List.length ta_dom <= 20} | val ta_dom:ta_dom: list td {List.length ta_dom <= 20} | let (ta_dom:list td{List.length ta_dom <= 20}) =
let y = [t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm] in
assert_norm (List.length y = 8);
y | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 277,
"start_col": 0,
"start_line": 274
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | ta_dom: Prims.list Vale.Interop.Base.td {FStar.List.Tot.Base.length ta_dom <= 20} | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.td",
"Prims.list",
"Prims.Cons",
"Vale.AsLowStar.Test.t64_imm",
"Prims.Nil"
] | [] | false | false | false | false | false | let ta_dom:ta_dom: list td {List.length ta_dom <= 20} =
| let y = [t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm; t64_imm] in
assert_norm (List.length y = 8);
y | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.mul_zero_lemma | val mul_zero_lemma: n:pos{Euclid.is_prime n} -> x:int -> y:int ->
Lemma (x * y % n == 0 <==> (x % n == 0 \/ y % n == 0)) | val mul_zero_lemma: n:pos{Euclid.is_prime n} -> x:int -> y:int ->
Lemma (x * y % n == 0 <==> (x % n == 0 \/ y % n == 0)) | let mul_zero_lemma n x y =
assert (0 % n = 0);
if x % n = 0 then
Math.Lemmas.lemma_mod_mul_distr_l x y n
else
if y % n = 0 then
Math.Lemmas.lemma_mod_mul_distr_r x y n
else
if x * y % n = 0 then
Math.Fermat.mod_mult_congr n x 0 y
else () | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 39,
"start_col": 0,
"start_line": 29
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "FStar.Math.Euclid",
"short_module": "Euclid"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
... | {
"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 | n: Prims.pos{FStar.Math.Euclid.is_prime n} -> x: Prims.int -> y: Prims.int
-> FStar.Pervasives.Lemma (ensures x * y % n == 0 <==> x % n == 0 \/ y % n == 0) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.pos",
"FStar.Math.Euclid.is_prime",
"Prims.int",
"Prims.op_Equality",
"Prims.op_Modulus",
"FStar.Math.Lemmas.lemma_mod_mul_distr_l",
"Prims.bool",
"FStar.Math.Lemmas.lemma_mod_mul_distr_r",
"FStar.Mul.op_Star",
"FStar.Math.Fermat.mod_mult_congr",
"Prims.unit",
"Prims._assert",
"Prims.... | [] | false | false | true | false | false | let mul_zero_lemma n x y =
| assert (0 % n = 0);
if x % n = 0
then Math.Lemmas.lemma_mod_mul_distr_l x y n
else
if y % n = 0
then Math.Lemmas.lemma_mod_mul_distr_r x y n
else if x * y % n = 0 then Math.Fermat.mod_mult_congr n x 0 y | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.test | val test : x: Vale.AsLowStar.Test.b64 -> Prims.unit | let test (x:b64) =
assert (V.buffer_length (as_vale_buffer x) == (B.length x * view_n TUInt8) / view_n TUInt64);
assert (V.buffer_length (as_vale_buffer x) == B.length x / 8) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 142,
"start_col": 0,
"start_line": 140
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "M"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.Monotonic.Buffer",
"short_module": "MB"
},
{
"abbrev": true,
"... | {
"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 | x: Vale.AsLowStar.Test.b64 -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.b64",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.buffer_length",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.X64.MemoryAdapters.as_vale_buffer",
"Vale.Arch.HeapTypes_s.TUInt8",
"Prims.op_Division",
"LowStar.Monotonic.Buffer.length",
"Vale.Interop.Types.base_typ_as... | [] | false | false | false | true | false | let test (x: b64) =
| assert (V.buffer_length (as_vale_buffer x) == (B.length x * view_n TUInt8) / view_n TUInt64);
assert (V.buffer_length (as_vale_buffer x) == B.length x / 8) | false | |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_from_to_field_lemma | val bn_from_to_field_lemma: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> a:lbignum t k.len ->
Lemma (bn_v (bn_from_field k (bn_to_field k a)) == bn_v a % bn_v k.n) | val bn_from_to_field_lemma: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> a:lbignum t k.len ->
Lemma (bn_v (bn_from_field k (bn_to_field k a)) == bn_v a % bn_v k.n) | let bn_from_to_field_lemma #t k a =
bn_eval_bound a k.len;
M.from_to_mont_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v a) | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 122,
"start_col": 0,
"start_line": 120
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
a: Hacl.Spec.Bignum.Definitions.lbignum t (Mkbn_mont_ctx?.len k)
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.MontArithmetic.bn_from_field ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spec.Montgomery.Lemmas.from_to_mont_lemma",
"Lib.IntT... | [] | true | false | true | false | false | let bn_from_to_field_lemma #t k a =
| bn_eval_bound a k.len;
M.from_to_mont_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v a) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.vm_lemma | val vm_lemma : Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.vm_pre Vale.AsLowStar.Test.vm_post | let vm_lemma = as_t #(VSig.vale_sig_stdcall vm_pre vm_post) vm_lemma' | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 108,
"start_col": 0,
"start_line": 108
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Test.X64.Vale_memcpy",
"short_module": "VM"
},
{
"abbrev": true,
... | {
"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 | Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.vm_pre Vale.AsLowStar.Test.vm_post | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.AsLowStar.Test.vm_dom",
"Vale.AsLowStar.Test.vm_pre",
"Vale.AsLowStar.Test.vm_post",
"Vale.AsLowStar.Test.vm_lemma'"
] | [] | false | false | false | true | false | let vm_lemma =
| as_t #(VSig.vale_sig_stdcall vm_pre vm_post) vm_lemma' | false | |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_one | val bn_field_one: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun oneM ->
bn_v (bn_from_field k oneM) == 1) | val bn_field_one: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun oneM ->
bn_v (bn_from_field k oneM) == 1) | let bn_field_one #t k =
BM.bn_mont_one_lemma k.n k.mu k.r2;
M.from_mont_one_lemma (bits t) k.len (bn_v k.n) (v k.mu);
BM.bn_mont_one k.n k.mu r2 | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 152,
"start_col": 0,
"start_line": 149
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 | k: Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t {Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k}
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.Montgomery.bn_mont_one",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__it... | [] | false | false | false | false | false | let bn_field_one #t k =
| BM.bn_mont_one_lemma k.n k.mu k.r2;
M.from_mont_one_lemma (bits t) k.len (bn_v k.n) (v k.mu);
BM.bn_mont_one k.n k.mu r2 | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_ta_t | val lowstar_ta_t : Type0 | let lowstar_ta_t =
IX64.as_lowstar_sig_t_weak_stdcall
(coerce code_ta)
ta_dom
[]
_
_
(W.mk_prediction code_ta ta_dom [] (ta_lemma code_ta IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 386,
"start_col": 0,
"start_line": 379
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.X64.MemoryAdapters.coerce",
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.Test.code_ta",
"Vale.AsLowStar.Test.ta_dom",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Inte... | [] | false | false | false | true | true | let lowstar_ta_t =
| IX64.as_lowstar_sig_t_weak_stdcall (coerce code_ta)
ta_dom
[]
_
_
(W.mk_prediction code_ta ta_dom [] (ta_lemma code_ta IA.win)) | false | |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_mul | val bn_field_mul: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == bn_v (bn_from_field k aM) * bn_v (bn_from_field k bM) % bn_v k.n) | val bn_field_mul: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == bn_v (bn_from_field k aM) * bn_v (bn_from_field k bM) % bn_v k.n) | let bn_field_mul #t k aM bM =
BM.bn_mont_mul_lemma k.n k.mu aM bM;
M.from_mont_mul_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BM.bn_mont_mul k.n k.mu aM bM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 140,
"start_col": 0,
"start_line": 137
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k ->
bM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Hacl.Spec.Bignum.Montgomery.bn_mont_mul",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spe... | [] | false | false | false | false | false | let bn_field_mul #t k aM bM =
| BM.bn_mont_mul_lemma k.n k.mu aM bM;
M.from_mont_mul_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BM.bn_mont_mul k.n k.mu aM bM | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_add | val bn_field_add: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == (bn_v (bn_from_field k aM) + bn_v (bn_from_field k bM)) % bn_v k.n) | val bn_field_add: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == (bn_v (bn_from_field k aM) + bn_v (bn_from_field k bM)) % bn_v k.n) | let bn_field_add #t k aM bM =
BN.bn_add_mod_n_lemma k.n aM bM;
M.from_mont_add_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BN.bn_add_mod_n k.n aM bM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 128,
"start_col": 0,
"start_line": 125
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k ->
bM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Hacl.Spec.Bignum.bn_add_mod_n",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spec.Bignum.M... | [] | false | false | false | false | false | let bn_field_add #t k aM bM =
| BN.bn_add_mod_n_lemma k.n aM bM;
M.from_mont_add_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BN.bn_add_mod_n k.n aM bM | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_sub | val bn_field_sub: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == (bn_v (bn_from_field k aM) - bn_v (bn_from_field k bM)) % bn_v k.n) | val bn_field_sub: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k -> bM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == (bn_v (bn_from_field k aM) - bn_v (bn_from_field k bM)) % bn_v k.n) | let bn_field_sub #t k aM bM =
BN.bn_sub_mod_n_lemma k.n aM bM;
M.from_mont_sub_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BN.bn_sub_mod_n k.n aM bM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 134,
"start_col": 0,
"start_line": 131
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k ->
bM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Hacl.Spec.Bignum.bn_sub_mod_n",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spec.Bignum.M... | [] | false | false | false | false | false | let bn_field_sub #t k aM bM =
| BN.bn_sub_mod_n_lemma k.n aM bM;
M.from_mont_sub_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v bM);
BN.bn_sub_mod_n k.n aM bM | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_from_field | val bn_from_field: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (lbignum t k.len)
(requires True)
(ensures fun a -> bn_v a < bn_v k.n /\
bn_v a == M.from_mont (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM)) | val bn_from_field: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (lbignum t k.len)
(requires True)
(ensures fun a -> bn_v a < bn_v k.n /\
bn_v a == M.from_mont (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM)) | let bn_from_field #t k aM =
BM.bn_from_mont_lemma k.n k.mu aM;
BM.bn_from_mont k.n k.mu aM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 117,
"start_col": 0,
"start_line": 115
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.Definitions.lbignum t (Mkbn_mont_ctx?.len k)) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Hacl.Spec.Bignum.Montgomery.bn_from_mont",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Sp... | [] | false | false | false | false | false | let bn_from_field #t k aM =
| BM.bn_from_mont_lemma k.n k.mu aM;
BM.bn_from_mont k.n k.mu aM | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_ta | val lowstar_ta:lowstar_ta_t | val lowstar_ta:lowstar_ta_t | let lowstar_ta : lowstar_ta_t =
IX64.wrap_weak_stdcall
(coerce code_ta)
ta_dom
(W.mk_prediction code_ta ta_dom [] (ta_lemma code_ta IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 393,
"start_col": 0,
"start_line": 389
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Vale.AsLowStar.Test.lowstar_ta_t | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.X64.MemoryAdapters.coerce",
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.Test.code_ta",
"Vale.AsLowStar.Test.ta_dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdc... | [] | false | false | false | true | false | let lowstar_ta:lowstar_ta_t =
| IX64.wrap_weak_stdcall (coerce code_ta)
ta_dom
(W.mk_prediction code_ta ta_dom [] (ta_lemma code_ta IA.win)) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_aesni_t | val lowstar_aesni_t : Type0 | let lowstar_aesni_t =
IX64.as_lowstar_sig_t_weak_stdcall
(coerce code_aesni)
aesni_dom
empty_list
_
_
(W.mk_prediction code_aesni aesni_dom [] (aesni_lemma code_aesni IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 77,
"end_line": 245,
"start_col": 0,
"start_line": 238
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.X64.MemoryAdapters.coerce",
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.Test.code_aesni",
"Vale.AsLowStar.Test.aesni_dom",
"Vale.AsLowStar.Test.empty_list",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre... | [] | false | false | false | true | true | let lowstar_aesni_t =
| IX64.as_lowstar_sig_t_weak_stdcall (coerce code_aesni)
aesni_dom
empty_list
_
_
(W.mk_prediction code_aesni aesni_dom [] (aesni_lemma code_aesni IA.win)) | false | |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.aesni_Test | val aesni_Test: Prims.unit
-> Stack UInt64.t
(requires fun h0 -> True)
(ensures fun h0 ret_val h1 -> (UInt64.v ret_val) =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) | val aesni_Test: Prims.unit
-> Stack UInt64.t
(requires fun h0 -> True)
(ensures fun h0 ret_val h1 -> (UInt64.v ret_val) =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) | let aesni_Test ()
: Stack UInt64.t
(requires fun h0 -> True)
(ensures fun h0 ret_val h1 -> (UInt64.v ret_val) =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled)
// by (T.dump "A") (* in case you want to look at the VC *)
=
let (x, _) = lowstar_aesni_normal_t () in //This is a call to the interop wrapper
x | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 268,
"start_col": 0,
"start_line": 261
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | _: Prims.unit -> FStar.HyperStack.ST.Stack FStar.UInt64.t | FStar.HyperStack.ST.Stack | [] | [] | [
"Prims.unit",
"FStar.UInt64.t",
"FStar.Ghost.erased",
"Vale.Interop.X64.as_lowstar_sig_ret",
"Vale.Interop.X64.als_ret",
"Vale.AsLowStar.Test.lowstar_aesni_normal_t",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_True",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"FStar.UInt64.v",
... | [] | false | true | false | false | false | let aesni_Test ()
: Stack UInt64.t
(requires fun h0 -> True)
(ensures fun h0 ret_val h1 -> (UInt64.v ret_val) =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) =
| let x, _ = lowstar_aesni_normal_t () in
x | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.with_len | val with_len (l: list 'a)
: Pure (list 'a)
(requires True)
(ensures fun m -> m == l /\ List.length m == normalize_term (List.length l)) | val with_len (l: list 'a)
: Pure (list 'a)
(requires True)
(ensures fun m -> m == l /\ List.length m == normalize_term (List.length l)) | let with_len (l:list 'a)
: Pure (list 'a)
(requires True)
(ensures fun m -> m==l /\ List.length m == normalize_term (List.length l))
= l | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 210,
"start_col": 0,
"start_line": 206
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"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 | l: Prims.list 'a -> Prims.Pure (Prims.list 'a) | Prims.Pure | [] | [] | [
"Prims.list",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Pervasives.normalize_term"
] | [] | false | false | false | false | false | let with_len (l: list 'a)
: Pure (list 'a)
(requires True)
(ensures fun m -> m == l /\ List.length m == normalize_term (List.length l)) =
| l | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_to_field | val bn_to_field: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> a:lbignum t k.len ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun aM ->
bn_v aM == M.to_mont (bits t) k.len (bn_v k.n) (v k.mu) (bn_v a)) | val bn_to_field: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> a:lbignum t k.len ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun aM ->
bn_v aM == M.to_mont (bits t) k.len (bn_v k.n) (v k.mu) (bn_v a)) | let bn_to_field #t k a =
BM.bn_to_mont_lemma k.n k.mu k.r2 a;
BM.bn_to_mont k.n k.mu k.r2 a | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 112,
"start_col": 0,
"start_line": 110
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
a: Hacl.Spec.Bignum.Definitions.lbignum t (Mkbn_mont_ctx?.len k)
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spec.Bignum.Montgomery.bn_to_mont",
"Hacl.Spec.Bignum... | [] | false | false | false | false | false | let bn_to_field #t k a =
| BM.bn_to_mont_lemma k.n k.mu k.r2 a;
BM.bn_to_mont k.n k.mu k.r2 a | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_exp_vartime | val bn_field_exp_vartime: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> bn_field_exp_st t k | val bn_field_exp_vartime: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> bn_field_exp_st t k | let bn_field_exp_vartime #t k aM bBits b =
E.from_mont_exp_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v b);
ME.bn_exp_mont_vartime k.n k.mu aM bBits b | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 162,
"start_col": 0,
"start_line": 160
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 | k: Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t {Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k}
-> Hacl.Spec.Bignum.MontArithmetic.bn_field_exp_st t k | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.blocks0",
"Lib.IntTypes... | [] | false | false | false | false | false | let bn_field_exp_vartime #t k aM bBits b =
| E.from_mont_exp_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v b);
ME.bn_exp_mont_vartime k.n k.mu aM bBits b | false |
LowParseWriters.LowParse.fsti | LowParseWriters.LowParse.valid_frame | val valid_frame (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos pos': U32.t) (l: B.loc) (h': HS.mem)
: Lemma
(requires
(B.live h b /\ (valid_pos p h b pos pos' \/ valid_pos p h' b pos pos') /\ B.modifies l h h' /\
B.loc_disjoint l (B.loc_buffer_from_to b pos pos')))
(ensures
(v... | val valid_frame (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos pos': U32.t) (l: B.loc) (h': HS.mem)
: Lemma
(requires
(B.live h b /\ (valid_pos p h b pos pos' \/ valid_pos p h' b pos pos') /\ B.modifies l h h' /\
B.loc_disjoint l (B.loc_buffer_from_to b pos pos')))
(ensures
(v... | let valid_frame
(p: parser)
(h: HS.mem)
(b: B.buffer U8.t)
(pos: U32.t)
(pos' : U32.t)
(l: B.loc)
(h' : HS.mem)
: Lemma
(requires (
B.live h b /\
(valid_pos p h b pos pos' \/ valid_pos p h' b pos pos') /\
B.modifies l h h' /\
B.loc_disjoint l (B.loc_buffer_from_to b pos pos')
))
(ens... | {
"file_name": "examples/layeredeffects/LowParseWriters.LowParse.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 173,
"start_col": 0,
"start_line": 151
} | module LowParseWriters.LowParse
module HS = FStar.HyperStack
module B = LowStar.Buffer
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
type u8 : Type0 = U8.t
val parser' (t: Type0) : Type u#1
inline_for_extraction
noextract
noeq
type parser =
| Parser:
t: Type ->
p: parser' t ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"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 |
p: LowParseWriters.LowParse.parser ->
h: FStar.Monotonic.HyperStack.mem ->
b: LowStar.Buffer.buffer FStar.UInt8.t ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
l: LowStar.Monotonic.Buffer.loc ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowSt... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParseWriters.LowParse.parser",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.loc",
"FStar.Classical.move_requires",
"Prims.l_and",
"LowParseWriters.LowParse.valid_pos",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar... | [] | false | false | true | false | false | let valid_frame (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos pos': U32.t) (l: B.loc) (h': HS.mem)
: Lemma
(requires
(B.live h b /\ (valid_pos p h b pos pos' \/ valid_pos p h' b pos pos') /\ B.modifies l h h' /\
B.loc_disjoint l (B.loc_buffer_from_to b pos pos')))
(ensures
(v... | B.loc_buffer_mgsub_eq (B.trivial_preorder _) b pos (pos' `U32.sub` pos);
Classical.move_requires (valid_ext p h b pos pos' h' b pos) pos';
Classical.move_requires (valid_ext p h' b pos pos' h b pos) pos' | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.aesni_lemma | val aesni_lemma : Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.aesni_pre Vale.AsLowStar.Test.aesni_post | let aesni_lemma = as_t #(VSig.vale_sig_stdcall aesni_pre aesni_post) aesni_lemma' | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 232,
"start_col": 0,
"start_line": 232
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.aesni_pre Vale.AsLowStar.Test.aesni_post | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.AsLowStar.Test.aesni_dom",
"Vale.AsLowStar.Test.aesni_pre",
"Vale.AsLowStar.Test.aesni_post",
"Vale.AsLowStar.Test.aesni_lemma'"
] | [] | false | false | false | true | false | let aesni_lemma =
| as_t #(VSig.vale_sig_stdcall aesni_pre aesni_post) aesni_lemma' | false | |
Pulse.Soundness.fst | Pulse.Soundness.frame_soundness | val frame_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Frame? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | val frame_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Frame? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | let frame_soundness
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c{T_Frame? d})
(soundness:soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
let T_Frame _ e c frame frame_typing e_typing = d in
let r_e_typing = soundness _ _ _ e_typing in
LN.st_typing_ln e_typ... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 107,
"start_col": 0,
"start_line": 96
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: Pulse.Soundness.Common.stt_env ->
t: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp ->
d: Pulse.Typing.st_typing g t c {T_Frame? d} ->
soundness: Pulse.Soundness.Common.soundness_t d
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborat... | Prims.GTot | [
"sometrivial"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"Prims.b2t",
"Pulse.Typing.uu___is_T_Frame",
"Pulse.Soundness.Common.soundness_t",
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.comp_st",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_t... | [] | false | false | false | false | false | let frame_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Frame? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| let T_Frame _ e c frame frame_typing e_typing = d in
let r_e_typing = soundness _ _ _ e_typing in
LN.st_typing_ln e_typing;
Frame.elab_frame_typing g _ _ frame frame_typing r_e_typing | false |
Pulse.Soundness.fst | Pulse.Soundness.tabs_t | val tabs_t : d: 'a -> Type0 | let tabs_t (d:'a) =
#g:stt_env ->
#u:universe ->
#ty:term ->
q:option qualifier ->
ppname:ppname ->
t_typing:tot_typing g ty (tm_type u) { t_typing << d } ->
#body:st_term ->
#x:var { None? (lookup g x) /\ ~(x `Set.mem` freevars_st body) } ->
#c:comp ->
body_typing:st_typing (pu... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 83,
"end_line": 63,
"start_col": 0,
"start_line": 50
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: 'a -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.qualifier",
"Pulse.Syntax.Base.ppname",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Pure.tm_type",
"Prims.precedes",
"Pulse.Syntax.Base.st_term",
"Pulse.Syn... | [] | false | false | false | true | true | let tabs_t (d: 'a) =
|
#g: stt_env ->
#u: universe ->
#ty: term ->
q: option qualifier ->
ppname: ppname ->
t_typing: tot_typing g ty (tm_type u) {t_typing << d} ->
#body: st_term ->
#x: var{None? (lookup g x) /\ ~(x `Set.mem` (freevars_st body))} ->
#c: comp ->
body_typing: st_typing (push_binding g ... | false | |
LowParseWriters.LowParse.fsti | LowParseWriters.LowParse.valid_gsub_intro | val valid_gsub_intro (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ U32.v pos1 <= U32.v pos2 /\ U32.v pos2 <= U32.v len /\
valid_pos p h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2)))
(ensures
(... | val valid_gsub_intro (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ U32.v pos1 <= U32.v pos2 /\ U32.v pos2 <= U32.v len /\
valid_pos p h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2)))
(ensures
(... | let valid_gsub_intro
(p: parser)
(h: HS.mem)
(b: B.buffer U8.t)
(pos0 pos1 pos2: U32.t)
(len: U32.t)
: Lemma
(requires (
U32.v pos0 + U32.v len <= B.length b /\
U32.v pos1 <= U32.v pos2 /\
U32.v pos2 <= U32.v len /\
valid_pos p h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2)
))
(ensures ... | {
"file_name": "examples/layeredeffects/LowParseWriters.LowParse.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 93,
"end_line": 216,
"start_col": 0,
"start_line": 197
} | module LowParseWriters.LowParse
module HS = FStar.HyperStack
module B = LowStar.Buffer
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
type u8 : Type0 = U8.t
val parser' (t: Type0) : Type u#1
inline_for_extraction
noextract
noeq
type parser =
| Parser:
t: Type ->
p: parser' t ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"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 |
p: LowParseWriters.LowParse.parser ->
h: FStar.Monotonic.HyperStack.mem ->
b: LowStar.Buffer.buffer FStar.UInt8.t ->
pos0: FStar.UInt32.t ->
pos1: FStar.UInt32.t ->
pos2: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
FStar.UInt32.v pos0 + FStar.UI... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParseWriters.LowParse.parser",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"LowParseWriters.LowParse.valid_ext",
"FStar.UInt32.add",
"LowStar.Buffer.gsub",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Ad... | [] | true | false | true | false | false | let valid_gsub_intro (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ U32.v pos1 <= U32.v pos2 /\ U32.v pos2 <= U32.v len /\
valid_pos p h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2)))
(ensures
(... | valid_ext p h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2) h (B.gsub b pos0 len) pos1 pos2 | false |
LowParseWriters.LowParse.fsti | LowParseWriters.LowParse.valid_gsub_elim | val valid_gsub_elim (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ valid_pos p h (B.gsub b pos0 len) pos1 pos2 /\
B.live h b))
(ensures
(U32.v pos0 + U32.v pos2 <= B.length b /\ valid_pos p h (B.... | val valid_gsub_elim (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ valid_pos p h (B.gsub b pos0 len) pos1 pos2 /\
B.live h b))
(ensures
(U32.v pos0 + U32.v pos2 <= B.length b /\ valid_pos p h (B.... | let valid_gsub_elim
(p: parser)
(h: HS.mem)
(b: B.buffer U8.t)
(pos0 pos1 pos2: U32.t)
(len: U32.t)
: Lemma
(requires (
U32.v pos0 + U32.v len <= B.length b /\
valid_pos p h (B.gsub b pos0 len) pos1 pos2 /\
B.live h b
))
(ensures (
U32.v pos0 + U32.v pos2 <= B.length b /\
valid_pos p... | {
"file_name": "examples/layeredeffects/LowParseWriters.LowParse.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 93,
"end_line": 195,
"start_col": 0,
"start_line": 175
} | module LowParseWriters.LowParse
module HS = FStar.HyperStack
module B = LowStar.Buffer
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
type u8 : Type0 = U8.t
val parser' (t: Type0) : Type u#1
inline_for_extraction
noextract
noeq
type parser =
| Parser:
t: Type ->
p: parser' t ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"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 |
p: LowParseWriters.LowParse.parser ->
h: FStar.Monotonic.HyperStack.mem ->
b: LowStar.Buffer.buffer FStar.UInt8.t ->
pos0: FStar.UInt32.t ->
pos1: FStar.UInt32.t ->
pos2: FStar.UInt32.t ->
len: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(requires
FStar.UInt32.v pos0 + FStar.UI... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParseWriters.LowParse.parser",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"FStar.UInt32.t",
"LowParseWriters.LowParse.valid_ext",
"LowStar.Buffer.gsub",
"FStar.UInt32.add",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Ad... | [] | true | false | true | false | false | let valid_gsub_elim (p: parser) (h: HS.mem) (b: B.buffer U8.t) (pos0 pos1 pos2 len: U32.t)
: Lemma
(requires
(U32.v pos0 + U32.v len <= B.length b /\ valid_pos p h (B.gsub b pos0 len) pos1 pos2 /\
B.live h b))
(ensures
(U32.v pos0 + U32.v pos2 <= B.length b /\ valid_pos p h (B.... | valid_ext p h (B.gsub b pos0 len) pos1 pos2 h b (pos0 `U32.add` pos1) (pos0 `U32.add` pos2) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.vm_lemma' | val vm_lemma' (code: V.va_code) (_win: bool) (dst: b64) (src: ib64) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires vm_pre code dst src va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
... | val vm_lemma' (code: V.va_code) (_win: bool) (dst: b64) (src: ib64) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires vm_pre code dst src va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
... | let vm_lemma'
(code:V.va_code)
(_win:bool)
(dst:b64)
(src:ib64)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires
vm_pre code dst src va_s0)
(ensures (fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\
VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 105,
"start_col": 0,
"start_line": 83
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Test.X64.Vale_memcpy",
"short_module": "VM"
},
{
"abbrev": true,
... | {
"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 |
code: Vale.X64.Decls.va_code ->
_win: Prims.bool ->
dst: Vale.AsLowStar.Test.b64 ->
src: Vale.AsLowStar.Test.ib64 ->
va_s0: Vale.X64.Decls.va_state
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.AsLowStar.Test.b64",
"Vale.AsLowStar.Test.ib64",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal",
"Vale.Arch.HeapTypes_s.TUInt8",
"Vale.Arch... | [] | false | false | false | false | false | let vm_lemma' (code: V.va_code) (_win: bool) (dst: b64) (src: ib64) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires vm_pre code dst src va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
... | let va_s1, f = VM.va_lemma_Memcpy code va_s0 IA.win (as_vale_buffer dst) (as_vale_immbuffer src) in
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt64 dst;
(va_s1, f) | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.lowstar_ta_normal_t | val lowstar_ta_normal_t : Vale.Interop.Base.normal Vale.AsLowStar.Test.lowstar_ta_t | let lowstar_ta_normal_t //: normal lowstar_ta_t
= as_normal_t #lowstar_ta_t lowstar_ta | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 396,
"start_col": 0,
"start_line": 395
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Vale.Interop.Base.normal Vale.AsLowStar.Test.lowstar_ta_t | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.as_normal_t",
"Vale.AsLowStar.Test.lowstar_ta_t",
"Vale.AsLowStar.Test.lowstar_ta"
] | [] | false | false | false | true | false | let lowstar_ta_normal_t =
| as_normal_t #lowstar_ta_t lowstar_ta | false | |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_sqr | val bn_field_sqr: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == bn_v (bn_from_field k aM) * bn_v (bn_from_field k aM) % bn_v k.n) | val bn_field_sqr: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires True)
(ensures fun cM ->
bn_v (bn_from_field k cM) == bn_v (bn_from_field k aM) * bn_v (bn_from_field k aM) % bn_v k.n) | let bn_field_sqr #t k aM =
BM.bn_mont_sqr_lemma k.n k.mu aM;
M.from_mont_mul_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v aM);
BM.bn_mont_sqr k.n k.mu aM | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 146,
"start_col": 0,
"start_line": 143
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Hacl.Spec.Bignum.Montgomery.bn_mont_sqr",
"Hacl.Spec.Bignum.MontArithmetic.__proj__Mkbn_mont_ctx__item__len",
"Hacl.Spe... | [] | false | false | false | false | false | let bn_field_sqr #t k aM =
| BM.bn_mont_sqr_lemma k.n k.mu aM;
M.from_mont_mul_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v aM);
BM.bn_mont_sqr k.n k.mu aM | false |
LowParseWriters.LowParse.fsti | LowParseWriters.LowParse.buffer_contents | val buffer_contents (p: parser) (h: HS.mem) (b: B.buffer U8.t)
: Ghost (Parser?.t p) (requires (valid_buffer p h b)) (ensures (fun _ -> True)) | val buffer_contents (p: parser) (h: HS.mem) (b: B.buffer U8.t)
: Ghost (Parser?.t p) (requires (valid_buffer p h b)) (ensures (fun _ -> True)) | let buffer_contents
(p: parser)
(h: HS.mem)
(b: B.buffer U8.t)
: Ghost (Parser?.t p)
(requires (valid_buffer p h b))
(ensures (fun _ -> True))
= contents p h b 0ul (B.len b) | {
"file_name": "examples/layeredeffects/LowParseWriters.LowParse.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 288,
"start_col": 0,
"start_line": 281
} | module LowParseWriters.LowParse
module HS = FStar.HyperStack
module B = LowStar.Buffer
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
type u8 : Type0 = U8.t
val parser' (t: Type0) : Type u#1
inline_for_extraction
noextract
noeq
type parser =
| Parser:
t: Type ->
p: parser' t ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.HyperStack.ST.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"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 |
p: LowParseWriters.LowParse.parser ->
h: FStar.Monotonic.HyperStack.mem ->
b: LowStar.Buffer.buffer FStar.UInt8.t
-> Prims.Ghost (Parser?.t p) | Prims.Ghost | [] | [] | [
"LowParseWriters.LowParse.parser",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Buffer.buffer",
"FStar.UInt8.t",
"LowParseWriters.LowParse.contents",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.len",
"LowStar.Buffer.trivial_preorder",
"LowParseWriters.LowParse.__proj__Parser__item__t",
"Lo... | [] | false | false | false | false | false | let buffer_contents (p: parser) (h: HS.mem) (b: B.buffer U8.t)
: Ghost (Parser?.t p) (requires (valid_buffer p h b)) (ensures (fun _ -> True)) =
| contents p h b 0ul (B.len b) | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_exp_consttime | val bn_field_exp_consttime: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> bn_field_exp_st t k | val bn_field_exp_consttime: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> bn_field_exp_st t k | let bn_field_exp_consttime #t k aM bBits b =
E.from_mont_exp_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v b);
ME.bn_exp_mont_consttime k.n k.mu aM bBits b | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 157,
"start_col": 0,
"start_line": 155
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 | k: Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t {Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k}
-> Hacl.Spec.Bignum.MontArithmetic.bn_field_exp_st t k | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Lib.IntTypes.size_nat",
"Hacl.Spec.Bignum.Definitions.lbignum",
"Hacl.Spec.Bignum.Definitions.blocks0",
"Lib.IntTypes... | [] | false | false | false | false | false | let bn_field_exp_consttime #t k aM bBits b =
| E.from_mont_exp_lemma (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM) (bn_v b);
ME.bn_exp_mont_consttime k.n k.mu aM bBits b | false |
Pulse.Soundness.fst | Pulse.Soundness.stapp_soundness | val stapp_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_STApp? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | val stapp_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_STApp? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | let stapp_soundness
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c{T_STApp? d})
(soundness:soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
let T_STApp _ head formal q res arg head_typing arg_typing = d in
let r_head = elab_term head in
let r_arg = elab_term ... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 130,
"start_col": 0,
"start_line": 109
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: Pulse.Soundness.Common.stt_env ->
t: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp ->
d: Pulse.Typing.st_typing g t c {T_STApp? d} ->
soundness: Pulse.Soundness.Common.soundness_t d
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborat... | Prims.GTot | [
"sometrivial"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"Prims.b2t",
"Pulse.Typing.uu___is_T_STApp",
"Pulse.Soundness.Common.soundness_t",
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.... | [] | false | false | false | false | false | let stapp_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_STApp? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| let T_STApp _ head formal q res arg head_typing arg_typing = d in
let r_head = elab_term head in
let r_arg = elab_term arg in
let r_head_typing:RT.tot_typing _
r_head
(elab_term (tm_arrow (mk_binder_ppname formal ppname_default) q res)) =
tot_typing_soundness head_typing
in
let r_arg_typing = tot_typing_soundness... | false |
Pulse.Soundness.fst | Pulse.Soundness.soundness_lemma | val soundness_lemma
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c)
: Lemma (ensures RT.tot_typing (elab_env g)
(elab_st_typing d)
(elab_comp c)) | val soundness_lemma
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c)
: Lemma (ensures RT.tot_typing (elab_env g)
(elab_st_typing d)
(elab_comp c)) | let soundness_lemma
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c)
: Lemma (ensures RT.tot_typing (elab_env g)
(elab_st_typing d)
(elab_comp c))
= FStar.Squash.bind_squash
#(st_typing g t c)
()
(fun dd -> FStar.Squash.... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 64,
"end_line": 431,
"start_col": 0,
"start_line": 420
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: Pulse.Soundness.Common.stt_env ->
t: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp ->
d: Pulse.Typing.st_typing g t c
-> FStar.Pervasives.Lemma
(ensures
FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborate.Core.elab_st_typing d)
(Pulse.El... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"FStar.Squash.bind_squash",
"FStar.Reflection.Typing.tot_typing",
"Pulse.Typing.elab_env",
"Pulse.Elaborate.Core.elab_st_typing",
"Pulse.Elaborate.Pure.elab_comp",
"FStar.Squash.retur... | [] | false | false | true | false | false | let soundness_lemma (g: stt_env) (t: st_term) (c: comp) (d: st_typing g t c)
: Lemma (ensures RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| FStar.Squash.bind_squash #(st_typing g t c)
()
(fun dd -> FStar.Squash.return_squash (soundness g t c d)) | false |
Hacl.Spec.Bignum.MontArithmetic.fst | Hacl.Spec.Bignum.MontArithmetic.bn_field_inv | val bn_field_inv: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires 0 < bn_v aM /\ Euclid.is_prime (bn_v k.n))
(ensures fun aInvM ->
bn_v (bn_from_field k aInvM) * bn_v (bn_from_field k aM) % bn_v k.n == 1) | val bn_field_inv: #t:limb_t -> k:bn_mont_ctx t{bn_mont_ctx_inv k} -> aM:bn_mont_nat k ->
Pure (bn_mont_nat k)
(requires 0 < bn_v aM /\ Euclid.is_prime (bn_v k.n))
(ensures fun aInvM ->
bn_v (bn_from_field k aInvM) * bn_v (bn_from_field k aM) % bn_v k.n == 1) | let bn_field_inv #t k aM =
let n2 = BI.bn_mod_inv_prime_n2 k.n in
assert (bn_v n2 == bn_v k.n - 2);
let aInvM = bn_field_exp_vartime #t k aM (k.len * bits t) n2 in
assert (bn_v (bn_from_field k aInvM) == Lib.NatMod.pow_mod #(bn_v k.n) (bn_v (bn_from_field k aM)) (bn_v n2));
from_mont_lemma_nonzero (bits t) k.... | {
"file_name": "code/bignum/Hacl.Spec.Bignum.MontArithmetic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 173,
"start_col": 0,
"start_line": 165
} | module Hacl.Spec.Bignum.MontArithmetic
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Hacl.Spec.Bignum.Definitions
module M = Hacl.Spec.Montgomery.Lemmas
module BM = Hacl.Spec.Bignum.Montgomery
module BN = Hacl.Spec.Bignum
module BB = Hacl.Spec.Bignum.Base
module BL = Hacl.Spec.Bignum.Lib
module BIL = Hacl... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.Montgomery.Lemmas.fst.checked",
"Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"Hacl.Spec.Bignum.Montgomery.fsti.checked",
"Ha... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Bignum.MontExponentiation",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Exponentiation.Lemmas",
"short_module": "E"
},... | {
"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 |
k:
Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx t
{Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv k} ->
aM: Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k
-> Prims.Pure (Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat k) | Prims.Pure | [] | [] | [
"Hacl.Spec.Bignum.Definitions.limb_t",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_ctx_inv",
"Hacl.Spec.Bignum.MontArithmetic.bn_mont_nat",
"Prims.unit",
"Hacl.Spec.Bignum.ModInv.mod_inv_prime_lemma",
"Hacl.Spec.Bignum.Definitions.bn_v",
"Hacl.Spec.Bignum.Mo... | [] | false | false | false | false | false | let bn_field_inv #t k aM =
| let n2 = BI.bn_mod_inv_prime_n2 k.n in
assert (bn_v n2 == bn_v k.n - 2);
let aInvM = bn_field_exp_vartime #t k aM (k.len * bits t) n2 in
assert (bn_v (bn_from_field k aInvM) ==
Lib.NatMod.pow_mod #(bn_v k.n) (bn_v (bn_from_field k aM)) (bn_v n2));
from_mont_lemma_nonzero (bits t) k.len (bn_v k.n) (v k.mu) (bn_v aM)... | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.ta_lemma | val ta_lemma : Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.ta_pre Vale.AsLowStar.Test.ta_post | let ta_lemma = as_t #(VSig.vale_sig_stdcall ta_pre ta_post) ta_lemma' | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 373,
"start_col": 0,
"start_line": 373
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 | Vale.AsLowStar.ValeSig.vale_sig_stdcall Vale.AsLowStar.Test.ta_pre Vale.AsLowStar.Test.ta_post | Prims.Tot | [
"total"
] | [] | [
"Vale.AsLowStar.Test.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.AsLowStar.Test.ta_dom",
"Vale.AsLowStar.Test.ta_pre",
"Vale.AsLowStar.Test.ta_post",
"Vale.AsLowStar.Test.ta_lemma'"
] | [] | false | false | false | true | false | let ta_lemma =
| as_t #(VSig.vale_sig_stdcall ta_pre ta_post) ta_lemma' | false | |
Pulse.Soundness.fst | Pulse.Soundness.stequiv_soundness | val stequiv_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Equiv? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | val stequiv_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Equiv? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | let stequiv_soundness
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c{T_Equiv? d})
(soundness:soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
let T_Equiv _ e c c' e_typing equiv = d in
LN.st_typing_ln d;
LN.st_typing_ln e_typing;
let r_e_typing ... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 235,
"start_col": 0,
"start_line": 215
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: Pulse.Soundness.Common.stt_env ->
t: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp ->
d: Pulse.Typing.st_typing g t c {T_Equiv? d} ->
soundness: Pulse.Soundness.Common.soundness_t d
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborat... | Prims.GTot | [
"sometrivial"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"Prims.b2t",
"Pulse.Typing.uu___is_T_Equiv",
"Pulse.Soundness.Common.soundness_t",
"Pulse.Typing.Env.env",
"Pulse.Typing.st_equiv",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.univ... | [] | false | false | false | false | false | let stequiv_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Equiv? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| let T_Equiv _ e c c' e_typing equiv = d in
LN.st_typing_ln d;
LN.st_typing_ln e_typing;
let r_e_typing = soundness _ _ _ e_typing in
match equiv with
| ST_TotEquiv _ t1 t2 _ _ eq ->
let r_e_typing:RT.tot_typing (elab_env g) (elab_st_typing e_typing) (elab_term t1) = r_e_typing in
let eq = RT.Rel_equiv _ _ _ RT.R_Su... | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.aesni_lemma' | val aesni_lemma' (code: V.va_code) (_win: bool) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires aesni_pre code va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
aesni_post code va_s0 va... | val aesni_lemma' (code: V.va_code) (_win: bool) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires aesni_pre code va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
aesni_post code va_s0 va... | let aesni_lemma'
(code:V.va_code)
(_win:bool)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires
aesni_pre code va_s0)
(ensures (fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\
VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
aesni_post code va_s0 va... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 227,
"start_col": 0,
"start_line": 216
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Up",
"short_module": "LBV"
},
{
"abbrev":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"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 | code: Vale.X64.Decls.va_code -> _win: Prims.bool -> va_s0: Vale.X64.Decls.va_state
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.X64.Decls.va_state",
"Vale.Lib.X64.Cpuidstdcall.va_lemma_Check_aesni_stdcall",
"Vale.Interop.Assumptions.win",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Decls.va_fuel",
"Vale.AsLowStar.Test.aesni_pre",
"Prims.l_and",
"Vale.X64.Decls.eval_code",
"Va... | [] | false | false | false | false | false | let aesni_lemma' (code: V.va_code) (_win: bool) (va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires aesni_pre code va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code va_s0 f va_s1 /\ VSig.vale_calling_conventions_stdcall va_s0 va_s1 /\
aesni_post code va_s0 va... | VC.va_lemma_Check_aesni_stdcall code va_s0 IA.win | false |
Pulse.Soundness.fst | Pulse.Soundness.lift_soundness | val lift_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Lift? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | val lift_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Lift? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | let lift_soundness
(g:stt_env)
(t:st_term)
(c:comp)
(d:st_typing g t c{T_Lift? d})
(soundness:soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
LN.st_typing_ln d;
let T_Lift _ e c1 c2 e_typing lc = d in
LN.st_typing_ln e_typing;
match lc with
| Lift_STAtomic_ST ... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 93,
"start_col": 0,
"start_line": 66
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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: Pulse.Soundness.Common.stt_env ->
t: Pulse.Syntax.Base.st_term ->
c: Pulse.Syntax.Base.comp ->
d: Pulse.Typing.st_typing g t c {T_Lift? d} ->
soundness: Pulse.Soundness.Common.soundness_t d
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborate... | Prims.GTot | [
"sometrivial"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"Prims.b2t",
"Pulse.Typing.uu___is_T_Lift",
"Pulse.Soundness.Common.soundness_t",
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.comp_st",
"Pulse.Typing.lift_comp",
"Pulse.Syntax.Base.u... | [] | false | false | false | false | false | let lift_soundness
(g: stt_env)
(t: st_term)
(c: comp)
(d: st_typing g t c {T_Lift? d})
(soundness: soundness_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| LN.st_typing_ln d;
let T_Lift _ e c1 c2 e_typing lc = d in
LN.st_typing_ln e_typing;
match lc with
| Lift_STAtomic_ST _ _ ->
Lift.elab_lift_stt_atomic_st_typing g c1 c2 _ (soundness _ _ _ e_typing) lc
| Lift_Ghost_Neutral _ _ w ->
let (| reveal_a , reveal_a_typing |) = w in
Lift.elab_lift_ghost_neutral_typing g
... | false |
Steel.ST.HigherArray.fsti | Steel.ST.HigherArray.blit | val blit
(#t: _)
(#p0: perm)
(#s0 #s1: Ghost.erased (Seq.seq t))
(src: array t)
(idx_src: US.t)
(dst: array t)
(idx_dst len: US.t)
: ST unit
((pts_to src p0 s0) `star` (pts_to dst full_perm s1))
(fun _ ->
(pts_to src p0 s0)
`star`
(... | val blit
(#t: _)
(#p0: perm)
(#s0 #s1: Ghost.erased (Seq.seq t))
(src: array t)
(idx_src: US.t)
(dst: array t)
(idx_dst len: US.t)
: ST unit
((pts_to src p0 s0) `star` (pts_to dst full_perm s1))
(fun _ ->
(pts_to src p0 s0)
`star`
(... | let blit (#t:_) (#p0:perm) (#s0 #s1:Ghost.erased (Seq.seq t))
(src:array t)
(idx_src: US.t)
(dst:array t)
(idx_dst: US.t)
(len: US.t)
: ST unit
(pts_to src p0 s0 `star` pts_to dst full_perm s1)
(fun _ -> pts_to src p0 s0 `star` exists_ (fun s1' ->
... | {
"file_name": "lib/steel/Steel.ST.HigherArray.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 9,
"end_line": 547,
"start_col": 0,
"start_line": 521
} | (*
Copyright 2022 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": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.PtrdiffT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int.fsti.checked",
"FS... | [
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.PtrdiffT",
"short_module": "UP"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": true,
"full_module": "Stee... | {
"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 |
src: Steel.ST.HigherArray.array t ->
idx_src: FStar.SizeT.t ->
dst: Steel.ST.HigherArray.array t ->
idx_dst: FStar.SizeT.t ->
len: FStar.SizeT.t
-> Steel.ST.Effect.ST Prims.unit | Steel.ST.Effect.ST | [] | [] | [
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Steel.ST.HigherArray.array",
"FStar.SizeT.t",
"Steel.ST.HigherArray.ptr",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Steel.ST.HigherArray.offset",
"FStar.Ghost.reveal",
"Steel.ST.... | [] | false | true | false | false | false | let blit
(#t: _)
(#p0: perm)
(#s0 #s1: Ghost.erased (Seq.seq t))
(src: array t)
(idx_src: US.t)
(dst: array t)
(idx_dst len: US.t)
: ST unit
((pts_to src p0 s0) `star` (pts_to dst full_perm s1))
(fun _ ->
(pts_to src p0 s0)
`star`
(... | let (| p_src , len_src |) = src in
vpattern_rewrite #_ #_ #src (fun src -> pts_to src p0 _) (| p_src, len_src |);
let (| p_dst , len_dst |) = dst in
vpattern_rewrite #_ #_ #dst (fun dst -> pts_to dst full_perm _) (| p_dst, len_dst |);
blit_ptr p_src len_src idx_src p_dst len_dst idx_dst len;
let _ = elim_exists () in
e... | false |
Pulse.Soundness.fst | Pulse.Soundness.bind_soundness | val bind_soundness
(#g: stt_env)
(#t: st_term)
(#c: comp)
(d: st_typing g t c {T_Bind? d})
(soundness: soundness_t d)
(mk_t_abs: tabs_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | val bind_soundness
(#g: stt_env)
(#t: st_term)
(#c: comp)
(d: st_typing g t c {T_Bind? d})
(soundness: soundness_t d)
(mk_t_abs: tabs_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) | let bind_soundness
(#g:stt_env)
(#t:st_term)
(#c:comp)
(d:st_typing g t c{T_Bind? d})
(soundness: soundness_t d)
(mk_t_abs: tabs_t d)
: GTot (RT.tot_typing (elab_env g)
(elab_st_typing d)
(elab_comp c))
= let T_Bind _ e1 e2 c1 c2 _ x c e1_typing t_typing e... | {
"file_name": "lib/steel/pulse/Pulse.Soundness.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 85,
"end_line": 266,
"start_col": 0,
"start_line": 240
} | (*
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.Typing.LN.fsti.checked",
"Pulse.Typing.FV.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Steel.Wrapper.Typing.fsti.checked",
"Pulse.Soundness.WithLocalArray.fsti.checked",
"Pulse.Soundness.WithLocal.fsti.check... | [
{
"abbrev": true,
"full_module": "Pulse.Steel.Wrapper.Typing",
"short_module": "WT"
},
{
"abbrev": true,
"full_module": "Pulse.Elaborate.Pure",
"short_module": "EPure"
},
{
"abbrev": true,
"full_module": "Pulse.Typing",
"short_module": "Typing"
},
{
"abbrev": true... | {
"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 |
d: Pulse.Typing.st_typing g t c {T_Bind? d} ->
soundness: Pulse.Soundness.Common.soundness_t d ->
mk_t_abs: Pulse.Soundness.tabs_t d
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(Pulse.Elaborate.Core.elab_st_typing d)
(Pulse.Elaborate.Pure.elab_comp c)) | Prims.GTot | [
"sometrivial"
] | [] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp",
"Pulse.Typing.st_typing",
"Prims.b2t",
"Pulse.Typing.uu___is_T_Bind",
"Pulse.Soundness.Common.soundness_t",
"Pulse.Soundness.tabs_t",
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.comp_st",
"Pulse.Syntax.Base.b... | [] | false | false | false | false | false | let bind_soundness
(#g: stt_env)
(#t: st_term)
(#c: comp)
(d: st_typing g t c {T_Bind? d})
(soundness: soundness_t d)
(mk_t_abs: tabs_t d)
: GTot (RT.tot_typing (elab_env g) (elab_st_typing d) (elab_comp c)) =
| let T_Bind _ e1 e2 c1 c2 _ x c e1_typing t_typing e2_typing bc = d in
LN.st_typing_ln e1_typing;
LN.st_typing_ln e2_typing;
FV.st_typing_freevars_inv e1_typing x;
let r1_typing:RT.tot_typing _ _ (elab_comp c1) = soundness _ _ _ e1_typing in
let r2_typing:RT.tot_typing _
_
(elab_term (tm_arrow (null_binder (comp_res... | false |
LowParse.Low.Bytes.fst | LowParse.Low.Bytes.store_bytes | val store_bytes
(src: BY.bytes)
(src_from src_to: U32.t)
(#rrel #rel: _)
(dst: B.mbuffer byte rrel rel)
(dst_pos: U32.t)
: HST.Stack unit
(requires
(fun h ->
B.live h dst /\ U32.v src_from <= U32.v src_to /\ U32.v src_to <= BY.length src /\
U32.v d... | val store_bytes
(src: BY.bytes)
(src_from src_to: U32.t)
(#rrel #rel: _)
(dst: B.mbuffer byte rrel rel)
(dst_pos: U32.t)
: HST.Stack unit
(requires
(fun h ->
B.live h dst /\ U32.v src_from <= U32.v src_to /\ U32.v src_to <= BY.length src /\
U32.v d... | let store_bytes
(src: BY.bytes)
(src_from src_to: U32.t)
(#rrel #rel: _)
(dst: B.mbuffer byte rrel rel)
(dst_pos: U32.t)
: HST.Stack unit
(requires (fun h ->
B.live h dst /\
U32.v src_from <= U32.v src_to /\ U32.v src_to <= BY.length src /\
U32.v dst_pos + (U32.v src_to - U32.v src_from) <= B.le... | {
"file_name": "src/lowparse/LowParse.Low.Bytes.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 223,
"start_col": 0,
"start_line": 175
} | module LowParse.Low.Bytes
include LowParse.Spec.Bytes
include LowParse.Low.Combinators
include LowParse.Low.VLData
include LowParse.Low.VLGen
include LowParse.Low.Int
module U32 = FStar.UInt32
module HS = FStar.HyperStack
module B = LowStar.Monotonic.Buffer
module BF = LowStar.Buffer // for local variables in store_by... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Bytes.fst.checked",
"LowParse.Low.VLGen.fst.checked",
"LowParse.Low.VLData.fst.checked",
"LowParse.Low.Int.fsti.checked",
"LowParse.Low.... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer // for local variables in store_bytes",
"short_module": "BF"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
... | {
"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 |
src: FStar.Bytes.bytes ->
src_from: FStar.UInt32.t ->
src_to: FStar.UInt32.t ->
dst: LowStar.Monotonic.Buffer.mbuffer LowParse.Bytes.byte rrel rel ->
dst_pos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Bytes.bytes",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.srel",
"LowParse.Bytes.byte",
"LowStar.Monotonic.Buffer.mbuffer",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"C.Loops.do_while",
"FStar.Monotonic.HyperStack.mem",
"Prims.bool",
"Prims.l_and",
"LowStar.Monotonic.Buffer.modifie... | [] | false | true | false | false | false | let store_bytes
(src: BY.bytes)
(src_from src_to: U32.t)
(#rrel #rel: _)
(dst: B.mbuffer byte rrel rel)
(dst_pos: U32.t)
: HST.Stack unit
(requires
(fun h ->
B.live h dst /\ U32.v src_from <= U32.v src_to /\ U32.v src_to <= BY.length src /\
U32.v d... | let h0 = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
let bi = BF.alloca 0ul 1ul in
let h2 = HST.get () in
let len = src_to `U32.sub` src_from in
C.Loops.do_while (fun h stop ->
B.modifies (B.loc_union (B.loc_region_only true (HS.get_tip h1))
(B.loc_buffer_from_to dst dst_pos (dst_pos `U32.... | false |
Vale.AsLowStar.Test.fst | Vale.AsLowStar.Test.ta_lemma' | val ta_lemma'
(code: V.va_code)
(_win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: ib64)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires ta_pre code arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code ... | val ta_lemma'
(code: V.va_code)
(_win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: ib64)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires ta_pre code arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code ... | let ta_lemma'
(code:V.va_code)
(_win:bool)
(arg0:ib64)
(arg1:ib64)
(arg2:ib64)
(arg3:ib64)
(arg4:ib64)
(arg5:ib64)
(arg6:ib64)
(arg7:ib64)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires
ta_pre code arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 va_s0)
... | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 370,
"start_col": 0,
"start_line": 331
} | module Vale.AsLowStar.Test
open FStar.Mul
open Vale.Interop.Base
module ME = Vale.X64.Memory
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module LSig = Vale.AsLowStar.LowStarSig
module W = Vale.AsLowStar.Wrapper
module VS = Vale.X64.S... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Test.X64.Vale_memcpy.fsti.checked"... | [
{
"abbrev": true,
"full_module": "Vale.Test.X64.Args",
"short_module": "TA"
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.X64.Cpuidstdcall",
"short_module": "VC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
code: Vale.X64.Decls.va_code ->
_win: Prims.bool ->
arg0: Vale.AsLowStar.Test.ib64 ->
arg1: Vale.AsLowStar.Test.ib64 ->
arg2: Vale.AsLowStar.Test.ib64 ->
arg3: Vale.AsLowStar.Test.ib64 ->
arg4: Vale.AsLowStar.Test.ib64 ->
arg5: Vale.AsLowStar.Test.ib64 ->
arg6: Vale.AsLowStar.Test.i... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.AsLowStar.Test.ib64",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.vale_state",
"Vale.Test.X64.Args.va_lemma_Test",
"Vale.Interop.Assumptions.win",
"Vale.X6... | [] | false | false | false | false | false | let ta_lemma'
(code: V.va_code)
(_win: bool)
(arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7: ib64)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires ta_pre code arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code code ... | let va_s1, f =
TA.va_lemma_Test code va_s0 IA.win (as_vale_immbuffer arg0) (as_vale_immbuffer arg1)
(as_vale_immbuffer arg2) (as_vale_immbuffer arg3) (as_vale_immbuffer arg4)
(as_vale_immbuffer arg5) (as_vale_immbuffer arg6) (as_vale_immbuffer arg7)
in
va_s1, f | false |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.make_gctr_plain_BE | val make_gctr_plain_BE (p: seq nat8) : seq nat8 | val make_gctr_plain_BE (p: seq nat8) : seq nat8 | let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if length p < pow2_32 then p else empty | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 16,
"start_col": 0,
"start_line": 15
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 | p: FStar.Seq.Base.seq Vale.Def.Types_s.nat8 -> FStar.Seq.Base.seq Vale.Def.Types_s.nat8 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Vale.Def.Words_s.pow2_32",
"Prims.bool",
"FStar.Seq.Base.empty"
] | [] | false | false | false | true | false | let make_gctr_plain_BE (p: seq nat8) : seq nat8 =
| if length p < pow2_32 then p else empty | false |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.empty_seq_quad32 | val empty_seq_quad32:seq quad32 | val empty_seq_quad32:seq quad32 | let empty_seq_quad32 : seq quad32 = empty | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 | FStar.Seq.Base.seq Vale.Def.Types_s.quad32 | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.empty",
"Vale.Def.Types_s.quad32"
] | [] | false | false | false | true | false | let empty_seq_quad32:seq quad32 =
| empty | false |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.gctr_partial | val gctr_partial : _: Vale.AES.AES_common_s.algorithm ->
_: Prims.nat ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
_: Vale.Def.Types_s.quad32
-> Vale.Def.Prop_s.prop0 | let gctr_partial = opaque_make gctr_partial_def | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 58,
"start_col": 19,
"start_line": 58
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 |
_: Vale.AES.AES_common_s.algorithm ->
_: Prims.nat ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
_: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
_: Vale.Def.Types_s.quad32
-> Vale.Def.Prop_s.prop0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.AES.AES_common_s.algorithm",
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Vale.Def.Prop_s.prop0",
"Vale.AES.GCTR_BE.gctr_partial_def"
] | [] | false | false | false | true | false | let gctr_partial =
| opaque_make gctr_partial_def | false | |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.gctr_partial_reveal | val gctr_partial_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures Vale.AES.GCTR_BE.gctr_partial == Vale.AES.GCTR_BE.gctr_partial_def) | let gctr_partial_reveal = opaque_revealer (`%gctr_partial) gctr_partial gctr_partial_def | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 100,
"end_line": 59,
"start_col": 12,
"start_line": 59
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures Vale.AES.GCTR_BE.gctr_partial == Vale.AES.GCTR_BE.gctr_partial_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.AES.AES_common_s.algorithm",
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Vale.Def.Prop_s.prop0",
"Vale.AES.GCTR_BE.gctr_partial",
"Vale.AES.GCTR_BE.gctr_partial_def"
] | [] | true | false | true | false | false | let gctr_partial_reveal =
| opaque_revealer (`%gctr_partial) gctr_partial gctr_partial_def | false | |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.gctr_partial_def | val gctr_partial_def
(alg: algorithm)
(bound: nat)
(plain cipher: seq quad32)
(key: seq nat32)
(icb: quad32)
: prop0 | val gctr_partial_def
(alg: algorithm)
(bound: nat)
(plain cipher: seq quad32)
(key: seq nat32)
(icb: quad32)
: prop0 | let gctr_partial_def (alg:algorithm) (bound:nat) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : prop0 =
is_aes_key_word alg key /\
( let bound = min bound (min (length plain) (length cipher)) in
forall j . {:pattern (index cipher j)} 0 <= j /\ j < bound ==>
index cipher j == quad32_xor (index pl... | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 92,
"end_line": 57,
"start_col": 0,
"start_line": 53
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
bound: Prims.nat ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
icb: Vale.Def.Types_s.quad32
-> Vale.Def.Prop_s.prop0 | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Prims.l_and",
"Vale.AES.AES_BE_s.is_aes_key_word",
"Prims.l_Forall",
"Prims.int",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"FStar.Seq.Base.lengt... | [] | false | false | false | true | false | let gctr_partial_def
(alg: algorithm)
(bound: nat)
(plain cipher: seq quad32)
(key: seq nat32)
(icb: quad32)
: prop0 =
| is_aes_key_word alg key /\
(let bound = min bound (min (length plain) (length cipher)) in
forall j. {:pattern (index cipher j)}
0 <= j /\ j < bound ==>
index cipher j == quad32_xor (index plain j) (aes_encrypt_word alg key (inc32 icb j))) | false |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.partial_seq_agreement | val partial_seq_agreement : x: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
y: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
lo: Prims.nat ->
hi: Prims.nat
-> Prims.logical | let partial_seq_agreement (x y:seq quad32) (lo hi:nat) =
lo <= hi /\ hi <= length x /\ hi <= length y /\
(forall i . {:pattern (index x i) \/ (index y i)} lo <= i /\ i < hi ==> index x i == index y i) | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 30,
"start_col": 0,
"start_line": 28
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 |
x: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
y: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
lo: Prims.nat ->
hi: Prims.nat
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.l_Forall",
"Prims.int",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Prims.l_imp",
"Prims.eq2",
"FStar.Seq.Base.index",
"Prims.log... | [] | false | false | false | true | true | let partial_seq_agreement (x y: seq quad32) (lo hi: nat) =
| lo <= hi /\ hi <= length x /\ hi <= length y /\
(forall i. {:pattern (index x i)\/(index y i)} lo <= i /\ i < hi ==> index x i == index y i) | false | |
Vale.AES.GCTR_BE.fsti | Vale.AES.GCTR_BE.inc32lite | val inc32lite (cb: quad32) (i: int) : quad32 | val inc32lite (cb: quad32) (i: int) : quad32 | let inc32lite (cb:quad32) (i:int) : quad32 =
if 0 <= i && i < pow2_32 then
let sum = cb.lo0 + i in
let lo0 = if sum >= pow2_32 then sum - pow2_32 else sum in
Mkfour lo0 cb.lo1 cb.hi2 cb.hi3
else
Mkfour 42 42 42 42 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 24,
"start_col": 0,
"start_line": 18
} | module Vale.AES.GCTR_BE
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open FStar.Math.Lemmas
open Vale.Def.Words.Seq_s
let make_gctr_plain_BE (p:seq nat8) : seq nat8 =
if lengt... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Prop_s.fst.checked",
"Vale.Def.Opaque_s.fsti.checked",
"Vale.Arch.Types.fsti.checked",
"Vale.AES.GCTR_BE_s.fst.checked",
"Vale.AES.... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words.Seq_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCTR_BE_s",
"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 | cb: Vale.Def.Types_s.quad32 -> i: Prims.int -> Vale.Def.Types_s.quad32 | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.quad32",
"Prims.int",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Vale.Def.Words_s.pow2_32",
"Vale.Def.Words_s.Mkfour",
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.__proj__Mkfour__item__lo1",
"Vale.Def.Words_s.__proj__Mkfour__item__hi2",
"Vale.Def.Words... | [] | false | false | false | true | false | let inc32lite (cb: quad32) (i: int) : quad32 =
| if 0 <= i && i < pow2_32
then
let sum = cb.lo0 + i in
let lo0 = if sum >= pow2_32 then sum - pow2_32 else sum in
Mkfour lo0 cb.lo1 cb.hi2 cb.hi3
else Mkfour 42 42 42 42 | false |
Hacl.HPKE.Curve64_CP32_SHA512.fsti | Hacl.HPKE.Curve64_CP32_SHA512.vale_p | val vale_p : Prims.logical | let vale_p = Vale.X64.CPU_Features_s.(adx_enabled /\ bmi2_enabled) | {
"file_name": "code/hpke/Hacl.HPKE.Curve64_CP32_SHA512.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 13,
"start_col": 0,
"start_line": 13
} | module Hacl.HPKE.Curve64_CP32_SHA512
open Hacl.Impl.HPKE
module S = Spec.Agile.HPKE
module DH = Spec.Agile.DH
module AEAD = Spec.Agile.AEAD
module Hash = Spec.Agile.Hash
noextract unfold
let cs:S.ciphersuite = (DH.DH_Curve25519, Hash.SHA2_256, S.Seal AEAD.CHACHA20_POLY1305, Hash.SHA2_512) | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Spec.Agile.HPKE.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"Spec.Agile.DH.fst.checked",
"Spec.Agile.AEAD.fsti.checked",
"prims.fst.checked",
"Hacl.Impl.HPKE.fsti.checked",
"FStar.Pervasives.Native.fs... | [
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Spec.Agile.AEAD",
"short_module": "AEAD"
},
{
"abbrev": true,
"full_module": "Spec.Agile.DH",
"short_module": "DH"
},
{
"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 | Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Prims.l_and",
"Prims.b2t",
"Vale.X64.CPU_Features_s.adx_enabled",
"Vale.X64.CPU_Features_s.bmi2_enabled"
] | [] | false | false | false | true | true | let vale_p =
| let open Vale.X64.CPU_Features_s in adx_enabled /\ bmi2_enabled | false | |
DoublyLinkedList.fst | DoublyLinkedList.heap | val heap : Type | let heap = HS.mem | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 33,
"start_col": 7,
"start_line": 33
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem"
] | [] | false | false | false | true | true | let heap =
| HS.mem | false | |
DoublyLinkedList.fst | DoublyLinkedList.contains | val contains : h: FStar.Monotonic.HyperStack.mem -> b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> Type0 | let contains #a #rrel #rel h b = B.live #a #rrel #rel h b | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 64,
"end_line": 34,
"start_col": 7,
"start_line": 34
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h: FStar.Monotonic.HyperStack.mem -> b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"FStar.Monotonic.HyperStack.mem",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Monotonic.Buffer.live"
] | [] | false | false | false | false | true | let contains #a #rrel #rel h b =
| B.live #a #rrel #rel h b | false | |
DoublyLinkedList.fst | DoublyLinkedList.dll_contained | val dll_contained (#t: Type) (h0: heap) (d: dll t) : GTot Type0 | val dll_contained (#t: Type) (h0: heap) (d: dll t) : GTot Type0 | let dll_contained (#t:Type) (h0:heap) (d:dll t) : GTot Type0 =
h0 `contains` d.lhead /\
h0 `contains` d.ltail /\
nodelist_contained h0 d.nodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 172,
"start_col": 0,
"start_line": 169
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> d: DoublyLinkedList.dll t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.dll",
"Prims.l_and",
"DoublyLinkedList.contains",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkdll__item__lhead",
"DoublyLinkedList.__proj__Mkdll__item__ltail",
"DoublyLinkedList.nodelist_contained",
"FStar.Ghost... | [] | false | false | false | false | true | let dll_contained (#t: Type) (h0: heap) (d: dll t) : GTot Type0 =
| h0 `contains` d.lhead /\ h0 `contains` d.ltail /\ nodelist_contained h0 d.nodes | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_ghostly_connections | val fragment_ghostly_connections (#t: Type) (f: fragment t) : GTot Type0 | val fragment_ghostly_connections (#t: Type) (f: fragment t) : GTot Type0 | let rec fragment_ghostly_connections (#t:Type) (f:fragment t) : GTot Type0 =
fragment_for_each0 piece_ghostly_connections f | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 155,
"start_col": 0,
"start_line": 154
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.fragment t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.fragment",
"DoublyLinkedList.fragment_for_each0",
"DoublyLinkedList.piece_ghostly_connections"
] | [
"recursion"
] | false | false | false | false | true | let rec fragment_ghostly_connections (#t: Type) (f: fragment t) : GTot Type0 =
| fragment_for_each0 piece_ghostly_connections f | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_contained | val piece_contained (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | val piece_contained (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | let piece_contained (#t:Type) (h0:heap) (p:piece t) : GTot Type0 =
h0 `contains` p.phead /\
h0 `contains` p.ptail /\
nodelist_contained h0 p.pnodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 177,
"start_col": 0,
"start_line": 174
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.piece",
"Prims.l_and",
"DoublyLinkedList.contains",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkpiece__item__phead",
"DoublyLinkedList.__proj__Mkpiece__item__ptail",
"DoublyLinkedList.nodelist_contained",
"FStar... | [] | false | false | false | false | true | let piece_contained (#t: Type) (h0: heap) (p: piece t) : GTot Type0 =
| h0 `contains` p.phead /\ h0 `contains` p.ptail /\ nodelist_contained h0 p.pnodes | false |
DoublyLinkedList.fst | DoublyLinkedList.lemma_non_null | val lemma_non_null (#t: Type) (a: pointer_or_null t)
: Lemma (requires (a =!= null)) (ensures (len a = 1ul)) [SMTPat (len a)] | val lemma_non_null (#t: Type) (a: pointer_or_null t)
: Lemma (requires (a =!= null)) (ensures (len a = 1ul)) [SMTPat (len a)] | let lemma_non_null (#t:Type) (a:pointer_or_null t) :
Lemma
(requires (a =!= null))
(ensures (len a = 1ul))
[SMTPat (len a)] =
null_unique a | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 43,
"start_col": 0,
"start_line": 38
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | a: LowStar.Buffer.pointer_or_null t
-> FStar.Pervasives.Lemma (requires ~(a == LowStar.Buffer.null))
(ensures LowStar.Monotonic.Buffer.len a = 1ul)
[SMTPat (LowStar.Monotonic.Buffer.len a)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.Buffer.pointer_or_null",
"LowStar.Monotonic.Buffer.null_unique",
"LowStar.Buffer.trivial_preorder",
"Prims.unit",
"Prims.l_not",
"Prims.eq2",
"LowStar.Buffer.buffer",
"LowStar.Buffer.null",
"Prims.squash",
"Prims.b2t",
"Prims.op_Equality",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer... | [] | true | false | true | false | false | let lemma_non_null (#t: Type) (a: pointer_or_null t)
: Lemma (requires (a =!= null)) (ensures (len a = 1ul)) [SMTPat (len a)] =
| null_unique a | false |
DoublyLinkedList.fst | DoublyLinkedList.node_fp_f | val node_fp_f (#t: Type) (n: node t) : GTot Mod.loc | val node_fp_f (#t: Type) (n: node t) : GTot Mod.loc | let node_fp_f (#t:Type) (n:node t) : GTot Mod.loc =
Mod.loc_buffer n.flink | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 185,
"start_col": 0,
"start_line": 184
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | n: DoublyLinkedList.node t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.node",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mknode__item__flink",
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | false | false | let node_fp_f (#t: Type) (n: node t) : GTot Mod.loc =
| Mod.loc_buffer n.flink | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_contained | val fragment_contained (#t: Type) (h0: heap) (f: fragment t) : GTot Type0 | val fragment_contained (#t: Type) (h0: heap) (f: fragment t) : GTot Type0 | let rec fragment_contained (#t:Type) (h0:heap) (f:fragment t) : GTot Type0 =
fragment_for_each1 piece_contained h0 f | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 180,
"start_col": 0,
"start_line": 179
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> f: DoublyLinkedList.fragment t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.fragment",
"DoublyLinkedList.fragment_for_each1",
"DoublyLinkedList.piece_contained"
] | [
"recursion"
] | false | false | false | false | true | let rec fragment_contained (#t: Type) (h0: heap) (f: fragment t) : GTot Type0 =
| fragment_for_each1 piece_contained h0 f | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_fp_f | val piece_fp_f (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc | val piece_fp_f (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc | let piece_fp_f (#t:Type) (h0:heap) (p:piece t) : GTot Mod.loc =
Mod.loc_union // ghostly connections should give us this union for
// free, but still useful to have
(Mod.loc_union (Mod.loc_buffer (p.phead@h0).flink) (Mod.loc_buffer (p.ptail@h0).flink))
(nodelist_fp_f h0 p.pnodes) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 231,
"start_col": 0,
"start_line": 227
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.piece",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mknode__item__flink",
"DoublyLinkedList.op_At",
"DoublyLinkedList.__proj__Mkpiece__ite... | [] | false | false | false | false | false | let piece_fp_f (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc =
| Mod.loc_union (Mod.loc_union (Mod.loc_buffer (p.phead @ h0).flink)
(Mod.loc_buffer (p.ptail @ h0).flink))
(nodelist_fp_f h0 p.pnodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_contained | val nodelist_contained (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | val nodelist_contained (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | let rec nodelist_contained (#t:Type) (h0:heap) (nl:nodelist t) : GTot Type0 =
nodelist_contained0 h0 nl | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 167,
"start_col": 0,
"start_line": 166
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> nl: DoublyLinkedList.nodelist t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.nodelist_contained0"
] | [
"recursion"
] | false | false | false | false | true | let rec nodelist_contained (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 =
| nodelist_contained0 h0 nl | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_fp0 | val dll_fp0 (#t: Type) (d: dll t) : GTot Mod.loc | val dll_fp0 (#t: Type) (d: dll t) : GTot Mod.loc | let dll_fp0 (#t:Type) (d:dll t) : GTot Mod.loc =
Mod.loc_union // ghostly connections should give us this union for
// free, but still useful to have
(Mod.loc_union (Mod.loc_buffer d.lhead) (Mod.loc_buffer d.ltail))
(nodelist_fp0 d.nodes) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 206,
"start_col": 0,
"start_line": 202
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.dll t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.dll",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkdll__item__lhead",
"DoublyLinkedList.__proj__Mkdll__item__ltail",
"DoublyLinkedList.nodelist_fp0",
"FStar.Ghost... | [] | false | false | false | false | false | let dll_fp0 (#t: Type) (d: dll t) : GTot Mod.loc =
| Mod.loc_union (Mod.loc_union (Mod.loc_buffer d.lhead) (Mod.loc_buffer d.ltail))
(nodelist_fp0 d.nodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.node_fp_b | val node_fp_b (#t: Type) (n: node t) : GTot Mod.loc | val node_fp_b (#t: Type) (n: node t) : GTot Mod.loc | let node_fp_b (#t:Type) (n:node t) : GTot Mod.loc =
Mod.loc_buffer n.blink | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 187,
"start_col": 0,
"start_line": 186
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | n: DoublyLinkedList.node t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.node",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mknode__item__blink",
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | false | false | let node_fp_b (#t: Type) (n: node t) : GTot Mod.loc =
| Mod.loc_buffer n.blink | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_fp0 | val piece_fp0 (#t: Type) (p: piece t) : GTot Mod.loc | val piece_fp0 (#t: Type) (p: piece t) : GTot Mod.loc | let piece_fp0 (#t:Type) (p:piece t) : GTot Mod.loc =
Mod.loc_union // ghostly connections should give us this union for
// free, but still useful to have
(Mod.loc_union (Mod.loc_buffer p.phead) (Mod.loc_buffer p.ptail))
(nodelist_fp0 p.pnodes) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 226,
"start_col": 0,
"start_line": 222
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.piece t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.piece",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkpiece__item__phead",
"DoublyLinkedList.__proj__Mkpiece__item__ptail",
"DoublyLinkedList.nodelist_fp0",
"FStar... | [] | false | false | false | false | false | let piece_fp0 (#t: Type) (p: piece t) : GTot Mod.loc =
| Mod.loc_union (Mod.loc_union (Mod.loc_buffer p.phead) (Mod.loc_buffer p.ptail))
(nodelist_fp0 p.pnodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.node_aa | val node_aa (#t: Type) (n: node t) : GTot Type0 | val node_aa (#t: Type) (n: node t) : GTot Type0 | let node_aa (#t:Type) (n:node t) : GTot Type0 =
Mod.loc_disjoint (node_fp_f n) (node_fp_b n) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 312,
"start_col": 0,
"start_line": 311
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | n: DoublyLinkedList.node t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.node",
"LowStar.Monotonic.Buffer.loc_disjoint",
"DoublyLinkedList.node_fp_f",
"DoublyLinkedList.node_fp_b"
] | [] | false | false | false | false | true | let node_aa (#t: Type) (n: node t) : GTot Type0 =
| Mod.loc_disjoint (node_fp_f n) (node_fp_b n) | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_fp_b | val piece_fp_b (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc | val piece_fp_b (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc | let piece_fp_b (#t:Type) (h0:heap) (p:piece t) : GTot Mod.loc =
Mod.loc_union // ghostly connections should give us this union for
// free, but still useful to have
(Mod.loc_union (Mod.loc_buffer (p.phead@h0).blink) (Mod.loc_buffer (p.ptail@h0).blink))
(nodelist_fp_b h0 p.pnodes) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 236,
"start_col": 0,
"start_line": 232
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.piece",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"DoublyLinkedList.node",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mknode__item__blink",
"DoublyLinkedList.op_At",
"DoublyLinkedList.__proj__Mkpiece__ite... | [] | false | false | false | false | false | let piece_fp_b (#t: Type) (h0: heap) (p: piece t) : GTot Mod.loc =
| Mod.loc_union (Mod.loc_union (Mod.loc_buffer (p.phead @ h0).blink)
(Mod.loc_buffer (p.ptail @ h0).blink))
(nodelist_fp_b h0 p.pnodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_for_each0 | val fragment_for_each0 (#t: Type) (pr: (piece t -> GTot Type0)) (f: fragment t) : GTot Type0 | val fragment_for_each0 (#t: Type) (pr: (piece t -> GTot Type0)) (f: fragment t) : GTot Type0 | let fragment_for_each0 (#t:Type) (pr:piece t -> GTot Type0) (f:fragment t) : GTot Type0 =
match f with
| Frag0 -> True
| Frag1 p1 -> pr p1
| Frag2 p1 p2 -> pr p1 /\ pr p2
| Frag3 p1 p2 p3 -> pr p1 /\ pr p2 /\ pr p3 | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 121,
"start_col": 0,
"start_line": 116
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | pr: (_: DoublyLinkedList.piece t -> Prims.GTot Type0) -> f: DoublyLinkedList.fragment t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.piece",
"DoublyLinkedList.fragment",
"Prims.l_True",
"Prims.l_and"
] | [] | false | false | false | false | true | let fragment_for_each0 (#t: Type) (pr: (piece t -> GTot Type0)) (f: fragment t) : GTot Type0 =
| match f with
| Frag0 -> True
| Frag1 p1 -> pr p1
| Frag2 p1 p2 -> pr p1 /\ pr p2
| Frag3 p1 p2 p3 -> pr p1 /\ pr p2 /\ pr p3 | false |
DoublyLinkedList.fst | DoublyLinkedList.empty_list | val empty_list: #t:Type -> dll t | val empty_list: #t:Type -> dll t | let empty_list #t =
{ lhead = null ; ltail = null ; nodes = [] } | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 112,
"start_col": 0,
"start_line": 111
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | DoublyLinkedList.dll t | Prims.Tot | [
"total"
] | [] | [
"DoublyLinkedList.Mkdll",
"LowStar.Buffer.null",
"DoublyLinkedList.node",
"FStar.Ghost.hide",
"DoublyLinkedList.nodelist",
"Prims.Nil",
"LowStar.Buffer.pointer",
"DoublyLinkedList.dll"
] | [] | false | false | false | true | false | let empty_list #t =
| { lhead = null; ltail = null; nodes = [] } | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_aa | val dll_aa (#t: Type) (d: dll t) : GTot Type0 | val dll_aa (#t: Type) (d: dll t) : GTot Type0 | let dll_aa (#t:Type) (d:dll t) : GTot Type0 =
nodelist_aa d.nodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 331,
"start_col": 0,
"start_line": 330
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.dll t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.dll",
"DoublyLinkedList.nodelist_aa",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.__proj__Mkdll__item__nodes"
] | [] | false | false | false | false | true | let dll_aa (#t: Type) (d: dll t) : GTot Type0 =
| nodelist_aa d.nodes | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_aa | val nodelist_aa (#t: Type) (nl: nodelist t) : GTot Type0 | val nodelist_aa (#t: Type) (nl: nodelist t) : GTot Type0 | let nodelist_aa (#t:Type) (nl:nodelist t) : GTot Type0 =
nodelist_aa_l nl /\ nodelist_aa_r nl | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 328,
"start_col": 0,
"start_line": 327
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | nl: DoublyLinkedList.nodelist t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.nodelist",
"Prims.l_and",
"DoublyLinkedList.nodelist_aa_l",
"DoublyLinkedList.nodelist_aa_r"
] | [] | false | false | false | false | true | let nodelist_aa (#t: Type) (nl: nodelist t) : GTot Type0 =
| nodelist_aa_l nl /\ nodelist_aa_r nl | false |
DoublyLinkedList.fst | DoublyLinkedList.loc_equiv | val loc_equiv : a: LowStar.Monotonic.Buffer.loc -> b: LowStar.Monotonic.Buffer.loc -> Prims.logical | let loc_equiv (a b:Mod.loc) = Mod.loc_includes a b /\ Mod.loc_includes b a | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 277,
"start_col": 0,
"start_line": 277
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | a: LowStar.Monotonic.Buffer.loc -> b: LowStar.Monotonic.Buffer.loc -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.loc",
"Prims.l_and",
"LowStar.Monotonic.Buffer.loc_includes",
"Prims.logical"
] | [] | false | false | false | true | true | let loc_equiv (a b: Mod.loc) =
| Mod.loc_includes a b /\ Mod.loc_includes b a | false | |
DoublyLinkedList.fst | DoublyLinkedList.empty_node | val empty_node: #t:Type -> payload:t -> node t | val empty_node: #t:Type -> payload:t -> node t | let empty_node #t payload =
{ flink = null ; blink = null ; p = payload } | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"end_line": 106,
"start_col": 0,
"start_line": 105
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | payload: t -> DoublyLinkedList.node t | Prims.Tot | [
"total"
] | [] | [
"DoublyLinkedList.Mknode",
"LowStar.Buffer.null",
"DoublyLinkedList.node"
] | [] | false | false | false | true | false | let empty_node #t payload =
| { flink = null; blink = null; p = payload } | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_aa | val piece_aa (#t: Type) (p: piece t) : GTot Type0 | val piece_aa (#t: Type) (p: piece t) : GTot Type0 | let piece_aa (#t:Type) (p:piece t) : GTot Type0 =
nodelist_aa p.pnodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 334,
"start_col": 0,
"start_line": 333
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.piece t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.piece",
"DoublyLinkedList.nodelist_aa",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.__proj__Mkpiece__item__pnodes"
] | [] | false | false | false | false | true | let piece_aa (#t: Type) (p: piece t) : GTot Type0 =
| nodelist_aa p.pnodes | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_fp_b | val nodelist_fp_b (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc | val nodelist_fp_b (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc | let rec nodelist_fp_b (#t:Type) (h0:heap) (n:nodelist t) : GTot Mod.loc =
match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer (n@h0).blink) (nodelist_fp_b h0 ns) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 200,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> n: DoublyLinkedList.nodelist t
-> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.nodelist",
"LowStar.Monotonic.Buffer.loc_none",
"LowStar.Buffer.pointer",
"DoublyLinkedList.node",
"Prims.list",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkno... | [
"recursion"
] | false | false | false | false | false | let rec nodelist_fp_b (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc =
| match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer (n @ h0).blink) (nodelist_fp_b h0 ns) | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_length | val fragment_length (#t: Type) (f: fragment t) : GTot int | val fragment_length (#t: Type) (f: fragment t) : GTot int | let fragment_length (#t:Type) (f:fragment t) : GTot int =
match f with
| Frag0 -> 0
| Frag1 _ -> 1
| Frag2 _ _ -> 2
| Frag3 _ _ _ -> 3 | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 135,
"start_col": 0,
"start_line": 130
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.fragment t -> Prims.GTot Prims.int | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.fragment",
"DoublyLinkedList.piece",
"Prims.int"
] | [] | false | false | false | false | false | let fragment_length (#t: Type) (f: fragment t) : GTot int =
| match f with
| Frag0 -> 0
| Frag1 _ -> 1
| Frag2 _ _ -> 2
| Frag3 _ _ _ -> 3 | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_ghostly_connections | val dll_ghostly_connections (#t: Type) (d: dll t) : GTot Type0 | val dll_ghostly_connections (#t: Type) (d: dll t) : GTot Type0 | let dll_ghostly_connections (#t:Type) (d:dll t) : GTot Type0 =
let nodes = d.nodes in
match length nodes with
| 0 -> d.lhead == null /\ d.ltail == null
| _ -> d.lhead =!= null /\ d.ltail =!= null /\
d.lhead == hd nodes /\
d.ltail == last nodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 145,
"start_col": 0,
"start_line": 139
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.dll t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.dll",
"FStar.List.Tot.Base.length",
"LowStar.Buffer.pointer",
"DoublyLinkedList.node",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"Prims.l_and",
"Prims.eq2",
"LowStar.Buffer.buffer",
"DoublyLinkedList.__proj__Mkdll__item__lhead",
"LowStar.Buffer.null",
"DoublyLinkedLi... | [] | false | false | false | false | true | let dll_ghostly_connections (#t: Type) (d: dll t) : GTot Type0 =
| let nodes = d.nodes in
match length nodes with
| 0 -> d.lhead == null /\ d.ltail == null
| _ -> d.lhead =!= null /\ d.ltail =!= null /\ d.lhead == hd nodes /\ d.ltail == last nodes | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_aa0 | val fragment_aa0 (#t: Type) (f: fragment t) : GTot Type0 | val fragment_aa0 (#t: Type) (f: fragment t) : GTot Type0 | let rec fragment_aa0 (#t:Type) (f:fragment t) : GTot Type0 =
fragment_for_each0 piece_aa f | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 337,
"start_col": 0,
"start_line": 336
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.fragment t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.fragment",
"DoublyLinkedList.fragment_for_each0",
"DoublyLinkedList.piece_aa"
] | [
"recursion"
] | false | false | false | false | true | let rec fragment_aa0 (#t: Type) (f: fragment t) : GTot Type0 =
| fragment_for_each0 piece_aa f | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_contained0 | val nodelist_contained0 (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | val nodelist_contained0 (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | let rec nodelist_contained0 (#t:Type) (h0:heap) (nl:nodelist t) : GTot Type0 =
match nl with
| [] -> True
| n :: ns -> h0 `contains` n /\ nodelist_contained0 h0 ns | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 165,
"start_col": 0,
"start_line": 162
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> nl: DoublyLinkedList.nodelist t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.nodelist",
"Prims.l_True",
"LowStar.Buffer.pointer",
"DoublyLinkedList.node",
"Prims.list",
"Prims.l_and",
"DoublyLinkedList.contains",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.nodelist_contained0"
] | [
"recursion"
] | false | false | false | false | true | let rec nodelist_contained0 (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 =
| match nl with
| [] -> True
| n :: ns -> h0 `contains` n /\ nodelist_contained0 h0 ns | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_fp0 | val nodelist_fp0 (#t: Type) (n: nodelist t) : GTot Mod.loc | val nodelist_fp0 (#t: Type) (n: nodelist t) : GTot Mod.loc | let rec nodelist_fp0 (#t:Type) (n:nodelist t) : GTot Mod.loc =
match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer n) (nodelist_fp0 ns) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 192,
"start_col": 0,
"start_line": 189
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | n: DoublyLinkedList.nodelist t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.nodelist",
"LowStar.Monotonic.Buffer.loc_none",
"LowStar.Buffer.pointer",
"DoublyLinkedList.node",
"Prims.list",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.nodelist_fp0",
"LowStar.Monotonic.Buf... | [
"recursion"
] | false | false | false | false | false | let rec nodelist_fp0 (#t: Type) (n: nodelist t) : GTot Mod.loc =
| match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer n) (nodelist_fp0 ns) | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_aa | val fragment_aa (#t: Type) (f: fragment t) : GTot Type0 | val fragment_aa (#t: Type) (f: fragment t) : GTot Type0 | let fragment_aa (#t:Type) (f:fragment t) : GTot Type0 =
fragment_aa0 f /\ fragment_aa_lr f | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 347,
"start_col": 0,
"start_line": 346
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.fragment t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.fragment",
"Prims.l_and",
"DoublyLinkedList.fragment_aa0",
"DoublyLinkedList.fragment_aa_lr"
] | [] | false | false | false | false | true | let fragment_aa (#t: Type) (f: fragment t) : GTot Type0 =
| fragment_aa0 f /\ fragment_aa_lr f | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_for_each1 | val fragment_for_each1 (#t #u: Type) (pr: (u -> piece t -> GTot Type0)) (v: u) (f: fragment t)
: GTot Type0 | val fragment_for_each1 (#t #u: Type) (pr: (u -> piece t -> GTot Type0)) (v: u) (f: fragment t)
: GTot Type0 | let fragment_for_each1 (#t:Type) (#u:Type) (pr:u -> piece t -> GTot Type0) (v:u) (f:fragment t) : GTot Type0 =
match f with
| Frag0 -> True
| Frag1 p1 -> pr v p1
| Frag2 p1 p2 -> pr v p1 /\ pr v p2
| Frag3 p1 p2 p3 -> pr v p1 /\ pr v p2 /\ pr v p3 | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 128,
"start_col": 0,
"start_line": 123
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 |
pr: (_: u244 -> _: DoublyLinkedList.piece t -> Prims.GTot Type0) ->
v: u244 ->
f: DoublyLinkedList.fragment t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.piece",
"DoublyLinkedList.fragment",
"Prims.l_True",
"Prims.l_and"
] | [] | false | false | false | false | true | let fragment_for_each1 (#t #u: Type) (pr: (u -> piece t -> GTot Type0)) (v: u) (f: fragment t)
: GTot Type0 =
| match f with
| Frag0 -> True
| Frag1 p1 -> pr v p1
| Frag2 p1 p2 -> pr v p1 /\ pr v p2
| Frag3 p1 p2 p3 -> pr v p1 /\ pr v p2 /\ pr v p3 | false |
DoublyLinkedList.fst | DoublyLinkedList.loc_includes_union_l_dll_fp0 | val loc_includes_union_l_dll_fp0 (#t: Type) (s1 s2: loc) (d: dll t)
: Lemma (requires (loc_includes s1 (dll_fp0 d) \/ loc_includes s2 (dll_fp0 d)))
(ensures (loc_includes (loc_union s1 s2) (dll_fp0 d)))
[SMTPat (loc_includes (loc_union s1 s2) (dll_fp0 d))] | val loc_includes_union_l_dll_fp0 (#t: Type) (s1 s2: loc) (d: dll t)
: Lemma (requires (loc_includes s1 (dll_fp0 d) \/ loc_includes s2 (dll_fp0 d)))
(ensures (loc_includes (loc_union s1 s2) (dll_fp0 d)))
[SMTPat (loc_includes (loc_union s1 s2) (dll_fp0 d))] | let loc_includes_union_l_dll_fp0 (#t: Type) (s1 s2:loc) (d:dll t) :
Lemma
(requires (loc_includes s1 (dll_fp0 d) \/ loc_includes s2 (dll_fp0 d)))
(ensures (loc_includes (loc_union s1 s2) (dll_fp0 d)))
[SMTPat (loc_includes (loc_union s1 s2) (dll_fp0 d))] =
loc_includes_union_l s1 s2 (dll_fp0 d) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 259,
"start_col": 0,
"start_line": 254
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | s1: LowStar.Monotonic.Buffer.loc -> s2: LowStar.Monotonic.Buffer.loc -> d: DoublyLinkedList.dll t
-> FStar.Pervasives.Lemma
(requires
LowStar.Monotonic.Buffer.loc_includes s1 (DoublyLinkedList.dll_fp0 d) \/
LowStar.Monotonic.Buffer.loc_includes s2 (DoublyLinkedList.dll_fp0 d))
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.Monotonic.Buffer.loc",
"DoublyLinkedList.dll",
"LowStar.Monotonic.Buffer.loc_includes_union_l",
"DoublyLinkedList.dll_fp0",
"Prims.unit",
"Prims.l_or",
"LowStar.Monotonic.Buffer.loc_includes",
"Prims.squash",
"LowStar.Monotonic.Buffer.loc_union",
"Prims.Cons",
"FStar.Pervasives.pattern"... | [] | true | false | true | false | false | let loc_includes_union_l_dll_fp0 (#t: Type) (s1 s2: loc) (d: dll t)
: Lemma (requires (loc_includes s1 (dll_fp0 d) \/ loc_includes s2 (dll_fp0 d)))
(ensures (loc_includes (loc_union s1 s2) (dll_fp0 d)))
[SMTPat (loc_includes (loc_union s1 s2) (dll_fp0 d))] =
| loc_includes_union_l s1 s2 (dll_fp0 d) | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_fp_b | val dll_fp_b (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc | val dll_fp_b (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc | let dll_fp_b (#t:Type) (h0:heap) (d:dll t) : GTot Mod.loc =
let a = if g_is_null d.lhead then Mod.loc_none else Mod.loc_buffer (d.lhead^@h0).blink in
let b = if g_is_null d.ltail then Mod.loc_none else Mod.loc_buffer (d.ltail^@h0).blink in
Mod.loc_union // ghostly connections should give us this union for
... | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 220,
"start_col": 0,
"start_line": 214
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> d: DoublyLinkedList.dll t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.dll",
"LowStar.Monotonic.Buffer.loc_union",
"DoublyLinkedList.nodelist_fp_b",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.__proj__Mkdll__item__nodes",
"LowStar.Monotonic.Buffer.loc",
"LowStar.Monotonic.Buffer.g_is_null",
"DoublyLi... | [] | false | false | false | false | false | let dll_fp_b (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc =
| let a = if g_is_null d.lhead then Mod.loc_none else Mod.loc_buffer (d.lhead ^@ h0).blink in
let b = if g_is_null d.ltail then Mod.loc_none else Mod.loc_buffer (d.ltail ^@ h0).blink in
Mod.loc_union (Mod.loc_union a b) (nodelist_fp_b h0 d.nodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_valid | val piece_valid (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | val piece_valid (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | let piece_valid (#t:Type) (h0:heap) (p:piece t) : GTot Type0 =
piece_ghostly_connections p /\
piece_contained h0 p /\
piece_aa p /\
piece_conn h0 p | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 401,
"start_col": 0,
"start_line": 397
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.piece",
"Prims.l_and",
"DoublyLinkedList.piece_ghostly_connections",
"DoublyLinkedList.piece_contained",
"DoublyLinkedList.piece_aa",
"DoublyLinkedList.piece_conn"
] | [] | false | false | false | false | true | let piece_valid (#t: Type) (h0: heap) (p: piece t) : GTot Type0 =
| piece_ghostly_connections p /\ piece_contained h0 p /\ piece_aa p /\ piece_conn h0 p | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_fp_f | val dll_fp_f (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc | val dll_fp_f (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc | let dll_fp_f (#t:Type) (h0:heap) (d:dll t) : GTot Mod.loc =
let a = if g_is_null d.lhead then Mod.loc_none else Mod.loc_buffer (d.lhead^@h0).flink in
let b = if g_is_null d.ltail then Mod.loc_none else Mod.loc_buffer (d.ltail^@h0).flink in
Mod.loc_union // ghostly connections should give us this union for
... | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 213,
"start_col": 0,
"start_line": 207
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> d: DoublyLinkedList.dll t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.dll",
"LowStar.Monotonic.Buffer.loc_union",
"DoublyLinkedList.nodelist_fp_f",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.__proj__Mkdll__item__nodes",
"LowStar.Monotonic.Buffer.loc",
"LowStar.Monotonic.Buffer.g_is_null",
"DoublyLi... | [] | false | false | false | false | false | let dll_fp_f (#t: Type) (h0: heap) (d: dll t) : GTot Mod.loc =
| let a = if g_is_null d.lhead then Mod.loc_none else Mod.loc_buffer (d.lhead ^@ h0).flink in
let b = if g_is_null d.ltail then Mod.loc_none else Mod.loc_buffer (d.ltail ^@ h0).flink in
Mod.loc_union (Mod.loc_union a b) (nodelist_fp_f h0 d.nodes) | false |
DoublyLinkedList.fst | DoublyLinkedList.dll_valid | val dll_valid (#t: Type) (h0: heap) (d: dll t) : GTot Type0 | val dll_valid (#t: Type) (h0: heap) (d: dll t) : GTot Type0 | let dll_valid (#t:Type) (h0:heap) (d:dll t) : GTot Type0 =
dll_ghostly_connections d /\
dll_contained h0 d /\
dll_aa d /\
dll_conn h0 d | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 395,
"start_col": 0,
"start_line": 391
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> d: DoublyLinkedList.dll t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.dll",
"Prims.l_and",
"DoublyLinkedList.dll_ghostly_connections",
"DoublyLinkedList.dll_contained",
"DoublyLinkedList.dll_aa",
"DoublyLinkedList.dll_conn"
] | [] | false | false | false | false | true | let dll_valid (#t: Type) (h0: heap) (d: dll t) : GTot Type0 =
| dll_ghostly_connections d /\ dll_contained h0 d /\ dll_aa d /\ dll_conn h0 d | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_fp_f | val nodelist_fp_f (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc | val nodelist_fp_f (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc | let rec nodelist_fp_f (#t:Type) (h0:heap) (n:nodelist t) : GTot Mod.loc =
match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer (n@h0).flink) (nodelist_fp_f h0 ns) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 196,
"start_col": 0,
"start_line": 193
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> n: DoublyLinkedList.nodelist t
-> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.nodelist",
"LowStar.Monotonic.Buffer.loc_none",
"LowStar.Buffer.pointer",
"DoublyLinkedList.node",
"Prims.list",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc_buffer",
"LowStar.Buffer.trivial_preorder",
"DoublyLinkedList.__proj__Mkno... | [
"recursion"
] | false | false | false | false | false | let rec nodelist_fp_f (#t: Type) (h0: heap) (n: nodelist t) : GTot Mod.loc =
| match n with
| [] -> Mod.loc_none
| n :: ns -> Mod.loc_union (Mod.loc_buffer (n @ h0).flink) (nodelist_fp_f h0 ns) | false |
DoublyLinkedList.fst | DoublyLinkedList.nodelist_valid | val nodelist_valid (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | val nodelist_valid (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 | let nodelist_valid (#t:Type) (h0:heap) (nl:nodelist t) : GTot Type0 =
nodelist_contained h0 nl /\
nodelist_aa nl /\
nodelist_conn h0 nl | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 389,
"start_col": 0,
"start_line": 386
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> nl: DoublyLinkedList.nodelist t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.nodelist",
"Prims.l_and",
"DoublyLinkedList.nodelist_contained",
"DoublyLinkedList.nodelist_aa",
"DoublyLinkedList.nodelist_conn"
] | [] | false | false | false | false | true | let nodelist_valid (#t: Type) (h0: heap) (nl: nodelist t) : GTot Type0 =
| nodelist_contained h0 nl /\ nodelist_aa nl /\ nodelist_conn h0 nl | false |
DoublyLinkedList.fst | DoublyLinkedList.piece_conn | val piece_conn (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | val piece_conn (#t: Type) (h0: heap) (p: piece t) : GTot Type0 | let piece_conn (#t:Type) (h0:heap) (p:piece t) : GTot Type0 =
nodelist_conn h0 p.pnodes | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 373,
"start_col": 0,
"start_line": 372
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 | h0: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.heap",
"DoublyLinkedList.piece",
"DoublyLinkedList.nodelist_conn",
"FStar.Ghost.reveal",
"DoublyLinkedList.nodelist",
"DoublyLinkedList.__proj__Mkpiece__item__pnodes"
] | [] | false | false | false | false | true | let piece_conn (#t: Type) (h0: heap) (p: piece t) : GTot Type0 =
| nodelist_conn h0 p.pnodes | false |
DoublyLinkedList.fst | DoublyLinkedList.fragment_fp0 | val fragment_fp0 (#t: Type) (f: fragment t) : GTot Mod.loc | val fragment_fp0 (#t: Type) (f: fragment t) : GTot Mod.loc | let rec fragment_fp0 (#t:Type) (f:fragment t) : GTot Mod.loc =
match f with
| Frag0 -> Mod.loc_none
| Frag1 p1 -> piece_fp0 p1
| Frag2 p1 p2 -> Mod.loc_union (piece_fp0 p1) (piece_fp0 p2)
| Frag3 p1 p2 p3 -> Mod.loc_union (piece_fp0 p1) (Mod.loc_union (piece_fp0 p2) (piece_fp0 p3)) | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 96,
"end_line": 243,
"start_col": 0,
"start_line": 238
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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: DoublyLinkedList.fragment t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"DoublyLinkedList.fragment",
"LowStar.Monotonic.Buffer.loc_none",
"DoublyLinkedList.piece",
"DoublyLinkedList.piece_fp0",
"LowStar.Monotonic.Buffer.loc_union",
"LowStar.Monotonic.Buffer.loc"
] | [
"recursion"
] | false | false | false | false | false | let rec fragment_fp0 (#t: Type) (f: fragment t) : GTot Mod.loc =
| match f with
| Frag0 -> Mod.loc_none
| Frag1 p1 -> piece_fp0 p1
| Frag2 p1 p2 -> Mod.loc_union (piece_fp0 p1) (piece_fp0 p2)
| Frag3 p1 p2 p3 -> Mod.loc_union (piece_fp0 p1) (Mod.loc_union (piece_fp0 p2) (piece_fp0 p3)) | false |
DoublyLinkedList.fst | DoublyLinkedList.loc_equiv_trans | val loc_equiv_trans (a b c: Mod.loc)
: Lemma (requires (loc_equiv a b /\ loc_equiv b c))
(ensures (loc_equiv a c))
[SMTPat (loc_equiv a b); SMTPat (loc_equiv b c); SMTPat (loc_equiv a c)] | val loc_equiv_trans (a b c: Mod.loc)
: Lemma (requires (loc_equiv a b /\ loc_equiv b c))
(ensures (loc_equiv a c))
[SMTPat (loc_equiv a b); SMTPat (loc_equiv b c); SMTPat (loc_equiv a c)] | let loc_equiv_trans (a b c:Mod.loc) :
Lemma
(requires (loc_equiv a b /\ loc_equiv b c))
(ensures (loc_equiv a c))
[SMTPat (loc_equiv a b);
SMTPat (loc_equiv b c);
SMTPat (loc_equiv a c)] =
Mod.loc_includes_trans a b c;
Mod.loc_includes_trans c b a | {
"file_name": "examples/doublylinkedlist/DoublyLinkedList.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 287,
"start_col": 0,
"start_line": 279
} | (*
Copyright 2008-2019 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",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.c... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": true,
"full_modul... | {
"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 |
a: LowStar.Monotonic.Buffer.loc ->
b: LowStar.Monotonic.Buffer.loc ->
c: LowStar.Monotonic.Buffer.loc
-> FStar.Pervasives.Lemma
(requires DoublyLinkedList.loc_equiv a b /\ DoublyLinkedList.loc_equiv b c)
(ensures DoublyLinkedList.loc_equiv a c)
[
SMTPat (DoublyLinkedList.loc_equ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.Monotonic.Buffer.loc",
"LowStar.Monotonic.Buffer.loc_includes_trans",
"Prims.unit",
"Prims.l_and",
"DoublyLinkedList.loc_equiv",
"Prims.squash",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.logical",
"Prims.Nil"
] | [] | true | false | true | false | false | let loc_equiv_trans (a b c: Mod.loc)
: Lemma (requires (loc_equiv a b /\ loc_equiv b c))
(ensures (loc_equiv a c))
[SMTPat (loc_equiv a b); SMTPat (loc_equiv b c); SMTPat (loc_equiv a c)] =
| Mod.loc_includes_trans a b c;
Mod.loc_includes_trans c b a | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.