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.X64.Leakage.fst | Vale.X64.Leakage.monotone_decreases_count | val monotone_decreases_count (ts ts': analysis_taints)
: Lemma (requires taintstate_monotone ts ts' /\ not (eq_leakage_taints ts.lts ts'.lts))
(ensures count_publics ts' < count_publics ts) | val monotone_decreases_count (ts ts': analysis_taints)
: Lemma (requires taintstate_monotone ts ts' /\ not (eq_leakage_taints ts.lts ts'.lts))
(ensures count_publics ts' < count_publics ts) | let monotone_decreases_count (ts ts':analysis_taints) : Lemma
(requires taintstate_monotone ts ts' /\ not (eq_leakage_taints ts.lts ts'.lts))
(ensures count_publics ts' < count_publics ts)
=
let regs1 = ts'.lts.regTaint in
let regs2 = ts.lts.regTaint in
if count_public_registers regs1 n_reg_files >= count_p... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 182,
"start_col": 0,
"start_line": 173
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 | ts: Vale.X64.Leakage_Helpers.analysis_taints -> ts': Vale.X64.Leakage_Helpers.analysis_taints
-> FStar.Pervasives.Lemma
(requires
Vale.X64.Leakage.taintstate_monotone ts ts' /\
Prims.op_Negation (Vale.X64.Leakage.eq_leakage_taints (AnalysisTaints?.lts ts)
(AnalysisTaints?.lts ts'))... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Leakage_Helpers.analysis_taints",
"Prims.op_GreaterThanOrEqual",
"Vale.X64.Leakage.count_public_registers",
"Vale.X64.Machine_s.n_reg_files",
"Prims._assert",
"FStar.FunctionalExtensionality.feq",
"Vale.X64.Machine_s.reg",
"Vale.Arch.HeapTypes_s.taint",
"Prims.unit",
"Vale.X64.Leakage.le... | [] | false | false | true | false | false | let monotone_decreases_count (ts ts': analysis_taints)
: Lemma (requires taintstate_monotone ts ts' /\ not (eq_leakage_taints ts.lts ts'.lts))
(ensures count_publics ts' < count_publics ts) =
| let regs1 = ts'.lts.regTaint in
let regs2 = ts.lts.regTaint in
if count_public_registers regs1 n_reg_files >= count_public_registers regs2 n_reg_files
then
(lemma_count_public_registers regs1 regs2 n_reg_files;
assert (FStar.FunctionalExtensionality.feq regs1 regs2)) | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.lemma_code_leakage_free | val lemma_code_leakage_free: (ts:analysis_taints) -> (code:S.code) -> Lemma
(let b, ts' = check_if_code_consumes_fixed_time code ts in
(b2t b ==> isConstantTime code ts.lts /\ isLeakageFree code ts.lts ts'.lts)) | val lemma_code_leakage_free: (ts:analysis_taints) -> (code:S.code) -> Lemma
(let b, ts' = check_if_code_consumes_fixed_time code ts in
(b2t b ==> isConstantTime code ts.lts /\ isLeakageFree code ts.lts ts'.lts)) | let lemma_code_leakage_free ts code = FStar.Classical.forall_intro_3 (lemma_code_explicit_leakage_free ts code) | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 111,
"end_line": 437,
"start_col": 0,
"start_line": 437
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 | ts: Vale.X64.Leakage_Helpers.analysis_taints -> code: Vale.X64.Machine_Semantics_s.code
-> FStar.Pervasives.Lemma
(ensures
(let _ = Vale.X64.Leakage.check_if_code_consumes_fixed_time code ts in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ b ts' = _ in
b ==>
Vale.X64.Leakage_s.isCo... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Leakage_Helpers.analysis_taints",
"Vale.X64.Machine_Semantics_s.code",
"FStar.Classical.forall_intro_3",
"Vale.X64.Machine_Semantics_s.machine_state",
"Prims.nat",
"Vale.X64.Leakage.check_if_code_consumes_fixed_time",
"Prims.bool",
"Prims.l_imp",
"Prims.b2t",
"Prims.l_and",
"Vale.X64.L... | [] | false | false | true | false | false | let lemma_code_leakage_free ts code =
| FStar.Classical.forall_intro_3 (lemma_code_explicit_leakage_free ts code) | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.combine_analysis_taints | val combine_analysis_taints (ts1 ts2: analysis_taints)
: (ts:
analysis_taints
{ taintstate_monotone ts1 ts /\ taintstate_monotone ts2 ts /\
ts.lts == combine_leakage_taints ts1.lts ts2.lts }) | val combine_analysis_taints (ts1 ts2: analysis_taints)
: (ts:
analysis_taints
{ taintstate_monotone ts1 ts /\ taintstate_monotone ts2 ts /\
ts.lts == combine_leakage_taints ts1.lts ts2.lts }) | let combine_analysis_taints (ts1:analysis_taints) (ts2:analysis_taints)
: (ts:analysis_taints{taintstate_monotone ts1 ts /\ taintstate_monotone ts2 ts /\ ts.lts == combine_leakage_taints ts1.lts ts2.lts})
=
let AnalysisTaints (LeakageTaints rs1_old fs1 c1 o1) rts1 = ts1 in
let AnalysisTaints (LeakageTaints rs2_... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 120,
"start_col": 0,
"start_line": 101
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 | ts1: Vale.X64.Leakage_Helpers.analysis_taints -> ts2: Vale.X64.Leakage_Helpers.analysis_taints
-> ts:
Vale.X64.Leakage_Helpers.analysis_taints
{ Vale.X64.Leakage.taintstate_monotone ts1 ts /\ Vale.X64.Leakage.taintstate_monotone ts2 ts /\
AnalysisTaints?.lts ts ==
Vale.X64.Leakage.combine_le... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Leakage_Helpers.analysis_taints",
"Vale.X64.Leakage_s.reg_taint",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Leakage_Helpers.regmap",
"Vale.X64.Leakage_Helpers.is_map_of",
"Vale.X64.Leakage_s.__proj__LeakageTaints__item__regTaint",
"Vale.X64.Leakage_s.LeakageTaints",
"Vale.X64.Leakage_Helpers.... | [] | false | false | false | false | false | let combine_analysis_taints (ts1 ts2: analysis_taints)
: (ts:
analysis_taints
{ taintstate_monotone ts1 ts /\ taintstate_monotone ts2 ts /\
ts.lts == combine_leakage_taints ts1.lts ts2.lts }) =
| let AnalysisTaints (LeakageTaints rs1_old fs1 c1 o1) rts1 = ts1 in
let AnalysisTaints (LeakageTaints rs2_old fs2 c2 o2) rts2 = ts2 in
let rts1 = ts1.rts in
let rts2 = ts2.rts in
let rs1 = map_to_regs rts1 in
let rs2 = map_to_regs rts2 in
assert (FStar.FunctionalExtensionality.feq rs1 rs1_old);
assert (FStar.FunctionalE... | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.check_if_code_is_leakage_free | val check_if_code_is_leakage_free (code:S.code) (ts:analysis_taints) (public_return:bool) : bool | val check_if_code_is_leakage_free (code:S.code) (ts:analysis_taints) (public_return:bool) : bool | let check_if_code_is_leakage_free code ts public_return =
let b, ts' = check_if_code_consumes_fixed_time code ts in
if public_return then
b && Public? (Vale.Lib.MapTree.sel ts'.rts reg_Rax)
else b | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 454,
"start_col": 0,
"start_line": 450
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 |
code: Vale.X64.Machine_Semantics_s.code ->
ts: Vale.X64.Leakage_Helpers.analysis_taints ->
public_return: Prims.bool
-> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Leakage_Helpers.analysis_taints",
"Prims.bool",
"Prims.op_AmpAmp",
"Vale.Arch.HeapTypes_s.uu___is_Public",
"Vale.Lib.MapTree.sel",
"Vale.X64.Machine_s.reg",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Leakage_Helpers.__proj__AnalysisTaints__item__rts",
"... | [] | false | false | false | true | false | let check_if_code_is_leakage_free code ts public_return =
| let b, ts' = check_if_code_consumes_fixed_time code ts in
if public_return then b && Public? (Vale.Lib.MapTree.sel ts'.rts reg_Rax) else b | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.lemma_count_public_registers_file | val lemma_count_public_registers_file
(regs1 regs2: reg_taint)
(rf: reg_file_id)
(k: nat{k <= n_regs rf})
: Lemma
(requires
taintstate_monotone_regs regs2 regs1 /\
count_public_registers_file regs1 rf k >= count_public_registers_file regs2 rf k)
(ensures
count_p... | val lemma_count_public_registers_file
(regs1 regs2: reg_taint)
(rf: reg_file_id)
(k: nat{k <= n_regs rf})
: Lemma
(requires
taintstate_monotone_regs regs2 regs1 /\
count_public_registers_file regs1 rf k >= count_public_registers_file regs2 rf k)
(ensures
count_p... | let rec lemma_count_public_registers_file (regs1 regs2:reg_taint) (rf:reg_file_id) (k:nat{k <= n_regs rf}) : Lemma
(requires
taintstate_monotone_regs regs2 regs1 /\
count_public_registers_file regs1 rf k >= count_public_registers_file regs2 rf k
)
(ensures
count_public_registers_file regs1 rf k == cou... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 72,
"end_line": 138,
"start_col": 0,
"start_line": 128
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 |
regs1: Vale.X64.Leakage_s.reg_taint ->
regs2: Vale.X64.Leakage_s.reg_taint ->
rf: Vale.X64.Machine_s.reg_file_id ->
k: Prims.nat{k <= Vale.X64.Machine_s.n_regs rf}
-> FStar.Pervasives.Lemma
(requires
Vale.X64.Leakage.taintstate_monotone_regs regs2 regs1 /\
Vale.X64.Leakage.count... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Leakage_s.reg_taint",
"Vale.X64.Machine_s.reg_file_id",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Vale.X64.Machine_s.n_regs",
"Prims.op_GreaterThan",
"Vale.X64.Leakage.lemma_count_public_registers_file",
"Prims.op_Subtraction",
"Prims.bool",
"Prims.unit",
"Prims.l_and",
... | [
"recursion"
] | false | false | true | false | false | let rec lemma_count_public_registers_file
(regs1 regs2: reg_taint)
(rf: reg_file_id)
(k: nat{k <= n_regs rf})
: Lemma
(requires
taintstate_monotone_regs regs2 regs1 /\
count_public_registers_file regs1 rf k >= count_public_registers_file regs2 rf k)
(ensures
cou... | if k > 0 then lemma_count_public_registers_file regs1 regs2 rf (k - 1) | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.mk_analysis_taints | val mk_analysis_taints (win:bool) (nbr_args:nat) : analysis_taints | val mk_analysis_taints (win:bool) (nbr_args:nat) : analysis_taints | let mk_analysis_taints win nbr_args : analysis_taints =
let regTaint r =
if win then
if r = reg_Rsp then Public else
if r = reg_Rcx && nbr_args >= 1 then Public else
if r = reg_Rdx && nbr_args >= 2 then Public else
if r = reg_R8 && nbr_args >= 3 then Public else
if r = reg_R9 && nb... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 479,
"start_col": 0,
"start_line": 457
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 | win: Prims.bool -> nbr_args: Prims.nat -> Vale.X64.Leakage_Helpers.analysis_taints | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Prims.nat",
"Vale.X64.Leakage_Helpers.AnalysisTaints",
"Vale.X64.Leakage_s.leakage_taints",
"Vale.X64.Leakage_s.LeakageTaints",
"Vale.X64.Leakage_Helpers.map_to_regs",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.Leakage_Helpers.regmap",
"Vale.X64.Leakage_Helpers.is_map_of",
"Vale.X64.... | [] | false | false | false | true | false | let mk_analysis_taints win nbr_args : analysis_taints =
| let regTaint r =
if win
then
if r = reg_Rsp
then Public
else
if r = reg_Rcx && nbr_args >= 1
then Public
else
if r = reg_Rdx && nbr_args >= 2
then Public
else
if r = reg_R8 && nbr_args >= 3
then Public
else if r = reg_R9 && nbr_args... | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.check_if_code_is_leakage_free' | val check_if_code_is_leakage_free': (code:S.code) -> (ts:analysis_taints) -> (tsExpected:analysis_taints) -> (b:bool{b ==> isLeakageFree code ts.lts tsExpected.lts
/\ b ==> isConstantTime code ts.lts}) | val check_if_code_is_leakage_free': (code:S.code) -> (ts:analysis_taints) -> (tsExpected:analysis_taints) -> (b:bool{b ==> isLeakageFree code ts.lts tsExpected.lts
/\ b ==> isConstantTime code ts.lts}) | let check_if_code_is_leakage_free' code ts tsExpected =
let b, ts' = check_if_code_consumes_fixed_time code ts in
if b then
publicTaintsAreAsExpected ts' tsExpected
else
b | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 448,
"start_col": 0,
"start_line": 443
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 |
code: Vale.X64.Machine_Semantics_s.code ->
ts: Vale.X64.Leakage_Helpers.analysis_taints ->
tsExpected: Vale.X64.Leakage_Helpers.analysis_taints
-> b:
Prims.bool
{ b ==>
Vale.X64.Leakage_s.isLeakageFree code
(AnalysisTaints?.lts ts)
(AnalysisTaints?.lts tsExpected) /\... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_Semantics_s.code",
"Vale.X64.Leakage_Helpers.analysis_taints",
"Prims.bool",
"Vale.X64.Leakage_Helpers.publicTaintsAreAsExpected",
"Prims.l_imp",
"Prims.b2t",
"Prims.l_and",
"Vale.X64.Leakage_s.isLeakageFree",
"Vale.X64.Leakage_Helpers.__proj__AnalysisTaints__item__lts",
"Vale.X6... | [] | false | false | false | false | false | let check_if_code_is_leakage_free' code ts tsExpected =
| let b, ts' = check_if_code_consumes_fixed_time code ts in
if b then publicTaintsAreAsExpected ts' tsExpected else b | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.lemma_loop_taintstate_monotone | val lemma_loop_taintstate_monotone (ts:analysis_taints) (code:S.code{While? code}) : Lemma
(requires True)
(ensures (let _, ts' = check_if_loop_consumes_fixed_time code ts in
taintstate_monotone ts ts'))
(decreases %[count_publics ts]) | val lemma_loop_taintstate_monotone (ts:analysis_taints) (code:S.code{While? code}) : Lemma
(requires True)
(ensures (let _, ts' = check_if_loop_consumes_fixed_time code ts in
taintstate_monotone ts ts'))
(decreases %[count_publics ts]) | let rec lemma_loop_taintstate_monotone ts code =
let ts = normalize_taints ts in
let While pred body = code in
let b, ts' = check_if_code_consumes_fixed_time body ts in
let combined_ts = combine_analysis_taints ts ts' in
if eq_leakage_taints combined_ts.lts ts.lts then ()
else (
monotone_decreases_count... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 328,
"start_col": 0,
"start_line": 317
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 | ts: Vale.X64.Leakage_Helpers.analysis_taints -> code: Vale.X64.Machine_Semantics_s.code{While? code}
-> FStar.Pervasives.Lemma
(ensures
(let _ = Vale.X64.Leakage.check_if_loop_consumes_fixed_time code ts in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ _ ts' = _ in
Vale.X64.Leakage.t... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Vale.X64.Leakage_Helpers.analysis_taints",
"Vale.X64.Machine_Semantics_s.code",
"Prims.b2t",
"Vale.X64.Machine_s.uu___is_While",
"Vale.X64.Bytes_Code_s.instruction_t",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.X64.Bytes_Code_s.ocmp",
"Vale.X64.Machine_s.precode",
"Prims.bool",
"Vale.... | [
"recursion"
] | false | false | true | false | false | let rec lemma_loop_taintstate_monotone ts code =
| let ts = normalize_taints ts in
let While pred body = code in
let b, ts' = check_if_code_consumes_fixed_time body ts in
let combined_ts = combine_analysis_taints ts ts' in
if eq_leakage_taints combined_ts.lts ts.lts
then ()
else
(monotone_decreases_count ts combined_ts;
let b, ts_fin = check_if_loop_consumes_fixe... | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.union_t | val union_t
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 | val union_t
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 | let union_t (#tf: Type0) (n: string) (#tn: Type0) (# [solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn))) (fields: field_description_t tf) : Tot Type0
= union_t0 tn #tf n fields | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 19,
"start_col": 0,
"start_line": 18
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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: Prims.string -> fields: Steel.ST.C.Types.Fields.field_description_t tf -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.squash",
"FStar.Pervasives.norm",
"Steel.C.Typestring.norm_typestring",
"Prims.eq2",
"Steel.C.Typestring.mk_string_t",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Union.union_t0"
] | [] | false | false | false | false | true | let union_t
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 =
| union_t0 tn #tf n fields | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.define_union | val define_union
(n: string)
(#tf #tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 | val define_union
(n: string)
(#tf #tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 | let define_union (n: string) (#tf: Type0) (#tn: Type0) (#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn))) (fields: field_description_t tf) : Tot Type0
= define_union0 tn #tf n fields | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 12,
"start_col": 0,
"start_line": 11
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0 | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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: Prims.string -> fields: Steel.ST.C.Types.Fields.field_description_t tf -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.squash",
"FStar.Pervasives.norm",
"Steel.C.Typestring.norm_typestring",
"Prims.eq2",
"Steel.C.Typestring.mk_string_t",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Union.define_union0"
] | [] | false | false | false | false | true | let define_union
(n: string)
(#tf #tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot Type0 =
| define_union0 tn #tf n fields | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.union | val union
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot (typedef (union_t0 tn n fields)) | val union
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot (typedef (union_t0 tn n fields)) | let union (#tf: Type0) (n: string) (#tn: Type0) (# [solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn))) (fields: field_description_t tf) : Tot (typedef (union_t0 tn n fields))
= union0 tn #tf n fields | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 81,
"start_col": 0,
"start_line": 80
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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: Prims.string -> fields: Steel.ST.C.Types.Fields.field_description_t tf
-> Steel.ST.C.Types.Base.typedef (Steel.ST.C.Types.Union.union_t0 tn n fields) | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.squash",
"FStar.Pervasives.norm",
"Steel.C.Typestring.norm_typestring",
"Prims.eq2",
"Steel.C.Typestring.mk_string_t",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Union.union0",
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Union.union_t0"
] | [] | false | false | false | false | false | let union
(#tf: Type0)
(n: string)
(#tn: Type0)
(#[solve_mk_string_t ()] prf: squash (norm norm_typestring (mk_string_t n == tn)))
(fields: field_description_t tf)
: Tot (typedef (union_t0 tn n fields)) =
| union0 tn #tf n fields | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.monotone_ok_eval_while | val monotone_ok_eval_while: (code:S.code{While? code}) -> (fuel:nat) -> (s:S.machine_state) -> Lemma
(requires True)
(ensures (
let While cond body = code in
let (s1, b1) = machine_eval_ocmp s cond in
let r1 = machine_eval_code code fuel s in
Some? r1 /\ (Some?.v r1).S.ms_ok ==> s1.S.ms_ok)) | val monotone_ok_eval_while: (code:S.code{While? code}) -> (fuel:nat) -> (s:S.machine_state) -> Lemma
(requires True)
(ensures (
let While cond body = code in
let (s1, b1) = machine_eval_ocmp s cond in
let r1 = machine_eval_code code fuel s in
Some? r1 /\ (Some?.v r1).S.ms_ok ==> s1.S.ms_ok)) | let monotone_ok_eval_while code fuel s =
let While cond body = code in
let (s1, b) = machine_eval_ocmp s cond in
let r1 = machine_eval_while cond body fuel s in
if fuel = 0 then () else
if not b then () else
match machine_eval_code body (fuel - 1) s1 with
| None -> ()
| Some s ->
if not s.S.ms_ok th... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 308,
"start_col": 0,
"start_line": 298
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 2,
"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.Machine_Semantics_s.code{While? code} ->
fuel: Prims.nat ->
s: Vale.X64.Machine_Semantics_s.machine_state
-> FStar.Pervasives.Lemma
(ensures
(let _ = code in
(let Vale.X64.Machine_s.While #_ #_ cond _ = _ in
let _ = Vale.X64.Leakage.machine_eval_ocmp s cond in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.X64.Machine_Semantics_s.code",
"Prims.b2t",
"Vale.X64.Machine_s.uu___is_While",
"Vale.X64.Bytes_Code_s.instruction_t",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.X64.Bytes_Code_s.ocmp",
"Prims.nat",
"Vale.X64.Machine_Semantics_s.machine_state",
"Vale.X64.Machine_s.precode",
"Prim... | [] | false | false | true | false | false | let monotone_ok_eval_while code fuel s =
| let While cond body = code in
let s1, b = machine_eval_ocmp s cond in
let r1 = machine_eval_while cond body fuel s in
if fuel = 0
then ()
else
if not b
then ()
else
match machine_eval_code body (fuel - 1) s1 with
| None -> ()
| Some s ->
if not s.S.ms_ok
then ()
else
(monoton... | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.full_union_set_field_elim | val full_union_set_field_elim
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (union0 tn n fields) (union_set_field tn n fields field v)))
(ensures (full (fields.fd_typedef field) v)) | val full_union_set_field_elim
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (union0 tn n fields) (union_set_field tn n fields field v)))
(ensures (full (fields.fd_typedef field) v)) | let full_union_set_field_elim
(#tn: Type0)
(#tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma
(requires (
full (union0 tn n fields) (union_set_field tn n fields field v)
))
(ensures (
full (fields.fd_typedef field) v
))
= ful... | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 209,
"start_col": 0,
"start_line": 195
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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 | field: Steel.ST.C.Types.Fields.field_t fields -> v: Mkfield_description_t?.fd_type fields field
-> FStar.Pervasives.Lemma
(requires
Steel.ST.C.Types.Base.full (Steel.ST.C.Types.Union.union0 tn n fields)
(Steel.ST.C.Types.Union.union_set_field tn n fields field v))
(ensures Steel.ST.C.Typ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Fields.field_t",
"Steel.ST.C.Types.Fields.__proj__Mkfield_description_t__item__fd_type",
"Steel.ST.C.Types.Union.full_union",
"Steel.ST.C.Types.Union.union_set_field",
"Prims.unit",
"Steel.ST.C.Types.Base.full",
"Steel.... | [] | true | false | true | false | false | let full_union_set_field_elim
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (union0 tn n fields) (union_set_field tn n fields field v)))
(ensures (full (fields.fd_typedef field) v)) =
| full_union (union_set_field tn n fields field v) field | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.full_union_set_field_intro | val full_union_set_field_intro
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (fields.fd_typedef field) v))
(ensures (full (union0 tn n fields) (union_set_field tn n fields field v))) | val full_union_set_field_intro
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (fields.fd_typedef field) v))
(ensures (full (union0 tn n fields) (union_set_field tn n fields field v))) | let full_union_set_field_intro
(#tn: Type0)
(#tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma
(requires (full (fields.fd_typedef field) v))
(ensures (
full (union0 tn n fields) (union_set_field tn n fields field v)
))
= full_union... | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 193,
"start_col": 0,
"start_line": 181
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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 | field: Steel.ST.C.Types.Fields.field_t fields -> v: Mkfield_description_t?.fd_type fields field
-> FStar.Pervasives.Lemma
(requires Steel.ST.C.Types.Base.full (Mkfield_description_t?.fd_typedef fields field) v)
(ensures
Steel.ST.C.Types.Base.full (Steel.ST.C.Types.Union.union0 tn n fields)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Fields.field_t",
"Steel.ST.C.Types.Fields.__proj__Mkfield_description_t__item__fd_type",
"Steel.ST.C.Types.Union.full_union",
"Steel.ST.C.Types.Union.union_set_field",
"Prims.unit",
"Steel.ST.C.Types.Base.full",
"Steel.... | [] | true | false | true | false | false | let full_union_set_field_intro
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires (full (fields.fd_typedef field) v))
(ensures (full (union0 tn n fields) (union_set_field tn n fields field v))) =
| full_union (union_set_field tn n fields field v) field | false |
Steel.ST.C.Types.Union.fsti | Steel.ST.C.Types.Union.full_union_set_field | val full_union_set_field
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires True)
(ensures
(full (union0 tn n fields) (union_set_field tn n fields field v) <==>
full (fields.fd_type... | val full_union_set_field
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires True)
(ensures
(full (union0 tn n fields) (union_set_field tn n fields field v) <==>
full (fields.fd_type... | let full_union_set_field
(#tn: Type0)
(#tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma
(requires True)
(ensures (
full (union0 tn n fields) (union_set_field tn n fields field v) <==> full (fields.fd_typedef field) v
))
[SMTPat ... | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 80,
"end_line": 225,
"start_col": 0,
"start_line": 211
} | module Steel.ST.C.Types.Union
open Steel.ST.Util
include Steel.ST.C.Types.Fields
open Steel.C.Typestring
module P = Steel.FractionalPermission
[@@noextract_to "krml"] // primitive
val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0
inline_for_extraction [@@noextract_to ... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.Fields.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.C.Typestring.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classic... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.C.Typestring",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types.Fields",
"short_module": null
},
{
"abbrev": f... | {
"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 | field: Steel.ST.C.Types.Fields.field_t fields -> v: Mkfield_description_t?.fd_type fields field
-> FStar.Pervasives.Lemma
(ensures
Steel.ST.C.Types.Base.full (Steel.ST.C.Types.Union.union0 tn n fields)
(Steel.ST.C.Types.Union.union_set_field tn n fields field v) <==>
Steel.ST.C.Types.B... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.string",
"Steel.ST.C.Types.Fields.field_description_t",
"Steel.ST.C.Types.Fields.field_t",
"Steel.ST.C.Types.Fields.__proj__Mkfield_description_t__item__fd_type",
"FStar.Classical.move_requires",
"Steel.ST.C.Types.Base.full",
"Steel.ST.C.Types.Union.union_t0",
"Steel.ST.C.Types.Union.union0",
... | [] | false | false | true | false | false | let full_union_set_field
(#tn #tf: Type0)
(#n: string)
(#fields: field_description_t tf)
(field: field_t fields)
(v: fields.fd_type field)
: Lemma (requires True)
(ensures
(full (union0 tn n fields) (union_set_field tn n fields field v) <==>
full (fields.fd_type... | Classical.move_requires (full_union_set_field_intro #tn #tf #n #fields field) v;
Classical.move_requires (full_union_set_field_elim #tn #tf #n #fields field) v | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.no_repeats | val no_repeats (l: list var) : Type0 | val no_repeats (l: list var) : Type0 | let rec no_repeats (l:list var) : Type0 =
match l with
| [] -> True
| x::tl -> (~ (L.memP x tl)) /\ no_repeats tl | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 47,
"end_line": 36,
"start_col": 0,
"start_line": 33
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | l: Prims.list Pulse.Syntax.Base.var -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Pulse.Syntax.Base.var",
"Prims.l_True",
"Prims.l_and",
"Prims.l_not",
"FStar.List.Tot.Base.memP",
"Pulse.Checker.Prover.Substs.no_repeats"
] | [
"recursion"
] | false | false | false | true | true | let rec no_repeats (l: list var) : Type0 =
| match l with
| [] -> True
| x :: tl -> (~(L.memP x tl)) /\ no_repeats tl | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ln_ss_t | val ln_ss_t (s:ss_t) : bool | val ln_ss_t (s:ss_t) : bool | let ln_ss_t (s:ss_t) =
List.Tot.for_all (fun x -> ln (Map.sel s.m x)) s.l | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 52,
"end_line": 70,
"start_col": 0,
"start_line": 69
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Pulse.Checker.Prover.Substs.ss_t -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"FStar.List.Tot.Base.for_all",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Naming.ln",
"FStar.Map.sel",
"Pulse.Syntax.Base.term",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__m",
"Prims.bool",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l"
] | [] | false | false | false | true | false | let ln_ss_t (s: ss_t) =
| List.Tot.for_all (fun x -> ln (Map.sel s.m x)) s.l | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.as_map | val as_map (ss:ss_t) : Map.t var term | val as_map (ss:ss_t) : Map.t var term | let as_map (ss:ss_t) = ss.m | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 27,
"end_line": 72,
"start_col": 0,
"start_line": 72
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | ss: Pulse.Checker.Prover.Substs.ss_t -> FStar.Map.t Pulse.Syntax.Base.var Pulse.Syntax.Base.term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__m",
"FStar.Map.t",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Base.term"
] | [] | false | false | false | true | false | let as_map (ss: ss_t) =
| ss.m | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.remove_map | val remove_map : m: Pulse.Checker.Prover.Substs.ss_map -> x: Pulse.Syntax.Base.var
-> FStar.Map.t Pulse.Syntax.Base.var Pulse.Syntax.Base.term | let remove_map (m:ss_map) (x:var) =
Map.restrict (Set.complement (Set.singleton x)) (Map.upd m x tm_unknown) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 74,
"end_line": 45,
"start_col": 0,
"start_line": 44
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | m: Pulse.Checker.Prover.Substs.ss_map -> x: Pulse.Syntax.Base.var
-> FStar.Map.t Pulse.Syntax.Base.var Pulse.Syntax.Base.term | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_map",
"Pulse.Syntax.Base.var",
"FStar.Map.restrict",
"Pulse.Syntax.Base.term",
"FStar.Set.complement",
"FStar.Set.singleton",
"FStar.Map.upd",
"Pulse.Syntax.Base.tm_unknown",
"FStar.Map.t"
] | [] | false | false | false | true | false | let remove_map (m: ss_map) (x: var) =
| Map.restrict (Set.complement (Set.singleton x)) (Map.upd m x tm_unknown) | false | |
Vale.X64.Leakage.fst | Vale.X64.Leakage.monotone_ok_eval_block | val monotone_ok_eval_block: (codes:S.codes) -> (fuel:nat) -> (s:S.machine_state) -> Lemma
(requires True)
(ensures (let s' = machine_eval_codes codes fuel s in
Some? s' /\ (Some?.v s').S.ms_ok ==> s.S.ms_ok))
(decreases %[codes;1]) | val monotone_ok_eval_block: (codes:S.codes) -> (fuel:nat) -> (s:S.machine_state) -> Lemma
(requires True)
(ensures (let s' = machine_eval_codes codes fuel s in
Some? s' /\ (Some?.v s').S.ms_ok ==> s.S.ms_ok))
(decreases %[codes;1]) | let rec monotone_ok_eval code fuel s =
match code with
| Ins ins -> reveal_opaque (`%S.machine_eval_code_ins) S.machine_eval_code_ins
| Block block -> monotone_ok_eval_block block fuel s
| IfElse ifCond ifTrue ifFalse ->
let (st, b) = machine_eval_ocmp s ifCond in
if b then monotone_ok_eval ifTrue fuel ... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 288,
"start_col": 0,
"start_line": 266
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 2,
"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 |
codes: Vale.X64.Machine_Semantics_s.codes ->
fuel: Prims.nat ->
s: Vale.X64.Machine_Semantics_s.machine_state
-> FStar.Pervasives.Lemma
(ensures
(let s' = Vale.X64.Leakage.machine_eval_codes codes fuel s in
Some? s' /\ Mkmachine_state?.ms_ok (Some?.v s') ==> Mkmachine_state?.ms_ok... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [
"monotone_ok_eval",
"monotone_ok_eval_block"
] | [
"Vale.X64.Machine_Semantics_s.codes",
"Prims.nat",
"Vale.X64.Machine_Semantics_s.machine_state",
"Vale.X64.Bytes_Code_s.code_t",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Prims.list",
"Vale.X64.Leakage.monotone_ok_eval",
"Prims.unit",
"FStar.Pervasives.Native.uu___is_None",
"Prims.bool",
... | [
"mutual recursion"
] | false | false | true | false | false | let rec monotone_ok_eval_block block fuel s =
| match block with
| [] -> ()
| hd :: tl ->
let s' = machine_eval_code hd fuel s in
if None? s' then () else monotone_ok_eval_block tl fuel (Some?.v s');
monotone_ok_eval hd fuel s | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.empty | val empty : ss_t | val empty : ss_t | let empty = { l = []; m = Map.const_on Set.empty tm_unknown } | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 74,
"start_col": 0,
"start_line": 74
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | Pulse.Checker.Prover.Substs.ss_t | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.Mkss_t",
"Prims.Nil",
"Pulse.Syntax.Base.var",
"FStar.Map.const_on",
"Pulse.Syntax.Base.term",
"FStar.Set.empty",
"Pulse.Syntax.Base.tm_unknown"
] | [] | false | false | false | true | false | let empty =
| { l = []; m = Map.const_on Set.empty tm_unknown } | false |
Hacl.Impl.Frodo.KEM.Decaps.fst | Hacl.Impl.Frodo.KEM.Decaps.get_bpp_cp_matrices | val get_bpp_cp_matrices:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> mu_decode:lbytes (bytes_mu a)
-> seed_se:lbytes (crypto_bytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> bpp_matrix:matrix_t params_nbar (params_n a)
-> cp_matrix:matrix_t params_nbar params_nbar
-> Stack unit
... | val get_bpp_cp_matrices:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> mu_decode:lbytes (bytes_mu a)
-> seed_se:lbytes (crypto_bytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> bpp_matrix:matrix_t params_nbar (params_n a)
-> cp_matrix:matrix_t params_nbar params_nbar
-> Stack unit
... | let get_bpp_cp_matrices a gen_a mu_decode seed_se sk bpp_matrix cp_matrix =
push_frame ();
let sp_matrix = matrix_create params_nbar (params_n a) in
let ep_matrix = matrix_create params_nbar (params_n a) in
let epp_matrix = matrix_create params_nbar params_nbar in
get_sp_ep_epp_matrices a seed_se sp_matrix ... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Decaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 144,
"start_col": 0,
"start_line": 136
} | module Hacl.Impl.Frodo.KEM.Decaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.KEM.Encaps
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open ... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Decaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"L... | [
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Decaps",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
mu_decode: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) ->
seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
sk: Hacl.Impl.Matrix.lbytes (Hac... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_mu",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_secretkeybytes",
"Hacl.Impl.Matrix.matrix_t",
"Hac... | [] | false | true | false | false | false | let get_bpp_cp_matrices a gen_a mu_decode seed_se sk bpp_matrix cp_matrix =
| push_frame ();
let sp_matrix = matrix_create params_nbar (params_n a) in
let ep_matrix = matrix_create params_nbar (params_n a) in
let epp_matrix = matrix_create params_nbar params_nbar in
get_sp_ep_epp_matrices a seed_se sp_matrix ep_matrix epp_matrix;
get_bpp_cp_matrices_ a gen_a mu_decode sk bpp_matrix cp_matrix sp_... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.fv_eq | val fv_eq : fv -> fv -> Tot bool | val fv_eq : fv -> fv -> Tot bool | let fv_eq fv1 fv2 =
let n1 = inspect_fv fv1 in
let n2 = inspect_fv fv2 in
n1 = n2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 23,
"start_col": 0,
"start_line": 20
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fv1: FStar.Stubs.Reflection.Types.fv -> fv2: FStar.Stubs.Reflection.Types.fv -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.fv",
"Prims.op_Equality",
"FStar.Stubs.Reflection.Types.name",
"FStar.Stubs.Reflection.V1.Builtins.inspect_fv",
"Prims.bool"
] | [] | false | false | false | true | false | let fv_eq fv1 fv2 =
| let n1 = inspect_fv fv1 in
let n2 = inspect_fv fv2 in
n1 = n2 | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.is_dom | val is_dom (l: ss_dom) (m: ss_map) : Type0 | val is_dom (l: ss_dom) (m: ss_map) : Type0 | let rec is_dom (l:ss_dom) (m:ss_map) : Type0 =
match l with
| [] -> Set.equal (Map.domain m) Set.empty
| x::tl ->
Map.contains m x /\ is_dom tl (remove_map m x) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 51,
"start_col": 0,
"start_line": 47
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | l: Pulse.Checker.Prover.Substs.ss_dom -> m: Pulse.Checker.Prover.Substs.ss_map -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_dom",
"Pulse.Checker.Prover.Substs.ss_map",
"FStar.Set.equal",
"Pulse.Syntax.Base.var",
"FStar.Map.domain",
"Pulse.Syntax.Base.term",
"FStar.Set.empty",
"Prims.list",
"Prims.l_and",
"Prims.b2t",
"FStar.Map.contains",
"Pulse.Checker.Prover.Substs.is_dom",
"Puls... | [
"recursion"
] | false | false | false | true | true | let rec is_dom (l: ss_dom) (m: ss_map) : Type0 =
| match l with
| [] -> Set.equal (Map.domain m) Set.empty
| x :: tl -> Map.contains m x /\ is_dom tl (remove_map m x) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.tail | val tail (ss: ss_t{Cons? ss.l}) : ss_t | val tail (ss: ss_t{Cons? ss.l}) : ss_t | let tail (ss:ss_t { Cons? ss.l }) : ss_t =
{ l = L.tl ss.l; m = remove_map ss.m (L.hd ss.l) } | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 92,
"start_col": 0,
"start_line": 91
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | ss: Pulse.Checker.Prover.Substs.ss_t{Cons? (Mkss_t?.l ss)} -> Pulse.Checker.Prover.Substs.ss_t | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"Prims.b2t",
"Prims.uu___is_Cons",
"Pulse.Syntax.Base.var",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Checker.Prover.Substs.Mkss_t",
"FStar.List.Tot.Base.tl",
"Pulse.Checker.Prover.Substs.remove_map",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t... | [] | false | false | false | false | false | let tail (ss: ss_t{Cons? ss.l}) : ss_t =
| { l = L.tl ss.l; m = remove_map ss.m (L.hd ss.l) } | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.coerce_eq | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x} | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x} | let coerce_eq (#a #b:Type) (x:a) (_:squash (a == b)) : y:b {y == x} = x | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 71,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> _: Prims.squash (a == b) -> y: b{y == x} | Prims.Tot | [
"total"
] | [] | [
"Prims.squash",
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce_eq (#a: Type) (#b: Type) (x: a) (_: squash (a == b)) : y: b{y == x} =
| x | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.fv_eq_name | val fv_eq_name : fv -> name -> Tot bool | val fv_eq_name : fv -> name -> Tot bool | let fv_eq_name fv n =
let fvn = inspect_fv fv in
fvn = n | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 29,
"start_col": 0,
"start_line": 27
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | fv: FStar.Stubs.Reflection.Types.fv -> n: FStar.Stubs.Reflection.Types.name -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.fv",
"FStar.Stubs.Reflection.Types.name",
"Prims.op_Equality",
"FStar.Stubs.Reflection.V1.Builtins.inspect_fv",
"Prims.bool"
] | [] | false | false | false | true | false | let fv_eq_name fv n =
| let fvn = inspect_fv fv in
fvn = n | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.push | val push (ss:ss_t) (x:var { ~ (contains ss x) }) (t:term) : ss_t | val push (ss:ss_t) (x:var { ~ (contains ss x) }) (t:term) : ss_t | let push (ss:ss_t) (x:var { ~ (contains ss x) }) (t:term) : ss_t =
is_dom_push ss.l ss.m x t;
{ l = x::ss.l;
m = Map.upd ss.m x t } | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 89,
"start_col": 0,
"start_line": 85
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 |
ss: Pulse.Checker.Prover.Substs.ss_t ->
x: Pulse.Syntax.Base.var{~(Pulse.Checker.Prover.Substs.contains ss x)} ->
t: Pulse.Syntax.Base.term
-> Pulse.Checker.Prover.Substs.ss_t | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Syntax.Base.var",
"Prims.l_not",
"Prims.b2t",
"Pulse.Checker.Prover.Substs.contains",
"Pulse.Syntax.Base.term",
"Pulse.Checker.Prover.Substs.Mkss_t",
"Prims.Cons",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"FStar.Map.upd",
"Pulse.Checker.Pr... | [] | false | false | false | false | false | let push (ss: ss_t) (x: var{~(contains ss x)}) (t: term) : ss_t =
| is_dom_push ss.l ss.m x t;
{ l = x :: ss.l; m = Map.upd ss.m x t } | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.push_ss | val push_ss (ss1:ss_t) (ss2:ss_t { Set.disjoint (dom ss1) (dom ss2) }) : ss_t | val push_ss (ss1:ss_t) (ss2:ss_t { Set.disjoint (dom ss1) (dom ss2) }) : ss_t | let rec push_ss (ss1:ss_t) (ss2:ss_t { Set.disjoint (dom ss1) (dom ss2) })
: Tot ss_t (decreases L.length ss2.l) =
match ss2.l with
| [] -> ss1
| x::tl ->
push_ss (push ss1 x (Map.sel ss2.m x)) (tail ss2) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 99,
"start_col": 0,
"start_line": 94
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 |
ss1: Pulse.Checker.Prover.Substs.ss_t ->
ss2:
Pulse.Checker.Prover.Substs.ss_t
{ FStar.Set.disjoint (Pulse.Checker.Prover.Substs.dom ss1)
(Pulse.Checker.Prover.Substs.dom ss2) }
-> Prims.Tot Pulse.Checker.Prover.Substs.ss_t | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"FStar.Set.disjoint",
"Pulse.Syntax.Base.var",
"Pulse.Checker.Prover.Substs.dom",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Prims.list",
"Pulse.Checker.Prover.Substs.push_ss",
"Pulse.Checker.Prover.Substs.push",
"FStar.Map.sel",
"Pulse.Syntax.Base.... | [
"recursion"
] | false | false | false | false | false | let rec push_ss (ss1: ss_t) (ss2: ss_t{Set.disjoint (dom ss1) (dom ss2)})
: Tot ss_t (decreases L.length ss2.l) =
| match ss2.l with
| [] -> ss1
| x :: tl -> push_ss (push ss1 x (Map.sel ss2.m x)) (tail ss2) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.is_dom_mem | val is_dom_mem (l: ss_dom) (m: ss_map)
: Lemma (requires is_dom l m)
(ensures
forall (x: var). {:pattern L.memP x l\/Map.contains m x} L.memP x l <==> Map.contains m x)
[SMTPat (is_dom l m)] | val is_dom_mem (l: ss_dom) (m: ss_map)
: Lemma (requires is_dom l m)
(ensures
forall (x: var). {:pattern L.memP x l\/Map.contains m x} L.memP x l <==> Map.contains m x)
[SMTPat (is_dom l m)] | let rec is_dom_mem (l:ss_dom) (m:ss_map)
: Lemma
(requires is_dom l m)
(ensures forall (x:var).{:pattern L.memP x l \/ Map.contains m x}
L.memP x l <==> Map.contains m x)
[SMTPat (is_dom l m)] =
match l with
| [] -> ()
| y::tl -> is_dom_mem tl (remove_map m y) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 61,
"start_col": 0,
"start_line": 53
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | l: Pulse.Checker.Prover.Substs.ss_dom -> m: Pulse.Checker.Prover.Substs.ss_map
-> FStar.Pervasives.Lemma (requires Pulse.Checker.Prover.Substs.is_dom l m)
(ensures
forall (x: Pulse.Syntax.Base.var).
{:pattern FStar.List.Tot.Base.memP x l\/FStar.Map.contains m x}
FStar.List.Tot.Base.m... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_dom",
"Pulse.Checker.Prover.Substs.ss_map",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.is_dom_mem",
"Pulse.Checker.Prover.Substs.remove_map",
"Prims.unit",
"Pulse.Checker.Prover.Substs.is_dom",
"Prims.squash",
"Prims.l_Forall",
"Prims.l_if... | [
"recursion"
] | false | false | true | false | false | let rec is_dom_mem (l: ss_dom) (m: ss_map)
: Lemma (requires is_dom l m)
(ensures
forall (x: var). {:pattern L.memP x l\/Map.contains m x} L.memP x l <==> Map.contains m x)
[SMTPat (is_dom l m)] =
| match l with
| [] -> ()
| y :: tl -> is_dom_mem tl (remove_map m y) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.is_dom_push | val is_dom_push (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{~(Map.contains m x)}) (t: term)
: Lemma (is_dom (x :: l) (Map.upd m x t)) | val is_dom_push (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{~(Map.contains m x)}) (t: term)
: Lemma (is_dom (x :: l) (Map.upd m x t)) | let is_dom_push
(l:ss_dom)
(m:ss_map { is_dom l m })
(x:var { ~ (Map.contains m x ) })
(t:term)
: Lemma (is_dom (x::l) (Map.upd m x t)) =
assert (Map.equal (remove_map (Map.upd m x t) x) m) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 83,
"start_col": 0,
"start_line": 76
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 |
l: Pulse.Checker.Prover.Substs.ss_dom ->
m: Pulse.Checker.Prover.Substs.ss_map{Pulse.Checker.Prover.Substs.is_dom l m} ->
x: Pulse.Syntax.Base.var{~(FStar.Map.contains m x)} ->
t: Pulse.Syntax.Base.term
-> FStar.Pervasives.Lemma
(ensures Pulse.Checker.Prover.Substs.is_dom (x :: l) (FStar.Map.upd ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_dom",
"Pulse.Checker.Prover.Substs.ss_map",
"Pulse.Checker.Prover.Substs.is_dom",
"Pulse.Syntax.Base.var",
"Prims.l_not",
"Prims.b2t",
"FStar.Map.contains",
"Pulse.Syntax.Base.term",
"Prims._assert",
"FStar.Map.equal",
"Pulse.Checker.Prover.Substs.remove_map",
"... | [] | true | false | true | false | false | let is_dom_push (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{~(Map.contains m x)}) (t: term)
: Lemma (is_dom (x :: l) (Map.upd m x t)) =
| assert (Map.equal (remove_map (Map.upd m x t) x) m) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.diff | val diff (ss1 ss2:ss_t) : ss:ss_t { Set.disjoint (dom ss) (dom ss2) } | val diff (ss1 ss2:ss_t) : ss:ss_t { Set.disjoint (dom ss) (dom ss2) } | let diff ss1 ss2 = diff_aux ss1 ss2 empty | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 41,
"end_line": 120,
"start_col": 0,
"start_line": 120
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | ss1: Pulse.Checker.Prover.Substs.ss_t -> ss2: Pulse.Checker.Prover.Substs.ss_t
-> ss:
Pulse.Checker.Prover.Substs.ss_t
{ FStar.Set.disjoint (Pulse.Checker.Prover.Substs.dom ss)
(Pulse.Checker.Prover.Substs.dom ss2) } | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.diff_aux",
"Pulse.Checker.Prover.Substs.empty",
"FStar.Set.disjoint",
"Pulse.Syntax.Base.var",
"Pulse.Checker.Prover.Substs.dom"
] | [] | false | false | false | false | false | let diff ss1 ss2 =
| diff_aux ss1 ss2 empty | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.list_to_string | val list_to_string : #a : Type -> (a -> Tac string) -> list a -> Tac string | val list_to_string : #a : Type -> (a -> Tac string) -> list a -> Tac string | let list_to_string #a f ls =
(Tactics.Util.fold_left (fun s x -> s ^ " (" ^ f x ^ ");") "[" ls) ^ "]" | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 74,
"end_line": 58,
"start_col": 0,
"start_line": 57
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> FStar.Tactics.Effect.Tac Prims.string) -> ls: Prims.list a
-> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"Prims.list",
"Prims.op_Hat",
"FStar.Tactics.Util.fold_left"
] | [] | false | true | false | false | false | let list_to_string #a f ls =
| (Tactics.Util.fold_left (fun s x -> s ^ " (" ^ f x ^ ");") "[" ls) ^ "]" | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.remove_l | val remove_l (l: ss_dom) (x: var{L.memP x l})
: Pure ss_dom
(requires True)
(ensures fun r -> forall (y: var). L.memP y r <==> (L.memP y l /\ y =!= x)) | val remove_l (l: ss_dom) (x: var{L.memP x l})
: Pure ss_dom
(requires True)
(ensures fun r -> forall (y: var). L.memP y r <==> (L.memP y l /\ y =!= x)) | let rec remove_l (l:ss_dom) (x:var { L.memP x l })
: Pure ss_dom
(requires True)
(ensures fun r -> forall (y:var). L.memP y r <==> (L.memP y l /\ y =!= x)) =
match l with
| [] -> assert False; []
| y::tl ->
if y = x then tl
else y::(remove_l tl x) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 27,
"end_line": 151,
"start_col": 0,
"start_line": 143
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | l: Pulse.Checker.Prover.Substs.ss_dom -> x: Pulse.Syntax.Base.var{FStar.List.Tot.Base.memP x l}
-> Prims.Pure Pulse.Checker.Prover.Substs.ss_dom | Prims.Pure | [] | [] | [
"Pulse.Checker.Prover.Substs.ss_dom",
"Pulse.Syntax.Base.var",
"FStar.List.Tot.Base.memP",
"Prims.Nil",
"Prims.unit",
"Prims._assert",
"Prims.l_False",
"Prims.list",
"Prims.op_Equality",
"Prims.bool",
"Prims.Cons",
"Pulse.Checker.Prover.Substs.remove_l",
"Prims.l_True",
"Prims.l_Forall",
... | [
"recursion"
] | false | false | false | false | false | let rec remove_l (l: ss_dom) (x: var{L.memP x l})
: Pure ss_dom
(requires True)
(ensures fun r -> forall (y: var). L.memP y r <==> (L.memP y l /\ y =!= x)) =
| match l with
| [] ->
assert False;
[]
| y :: tl -> if y = x then tl else y :: (remove_l tl x) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.opt_mk_app_norm | val opt_mk_app_norm : env -> option term -> list term -> Tac (option term) | val opt_mk_app_norm : env -> option term -> list term -> Tac (option term) | let opt_mk_app_norm e opt_t params =
opt_tapply (fun t -> mk_app_norm e t params) opt_t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 71,
"start_col": 0,
"start_line": 70
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
opt_t: FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term ->
params: Prims.list FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.InteractiveHelpers.Base.opt_tapply",
"FStar.InteractiveHelpers.Base.mk_app_norm"
] | [] | false | true | false | false | false | let opt_mk_app_norm e opt_t params =
| opt_tapply (fun t -> mk_app_norm e t params) opt_t | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_comp | val ss_comp (c:comp) (ss:ss_t) : comp | val ss_comp (c:comp) (ss:ss_t) : comp | let rec ss_comp (c:comp) (ss:ss_t)
: Tot comp (decreases L.length ss.l) =
match ss.l with
| [] -> c
| y::tl ->
let c = subst_comp c [ NT y (Map.sel ss.m y) ] in
ss_comp c (tail ss) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 200,
"start_col": 0,
"start_line": 194
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | c: Pulse.Syntax.Base.comp -> ss: Pulse.Checker.Prover.Substs.ss_t
-> Prims.Tot Pulse.Syntax.Base.comp | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_comp",
"Pulse.Checker.Prover.Substs.tail",
"Pulse.Syntax.Naming.subst_comp",
"Prims.Cons",
"Pulse.Syntax.Namin... | [
"recursion"
] | false | false | false | true | false | let rec ss_comp (c: comp) (ss: ss_t) : Tot comp (decreases L.length ss.l) =
| match ss.l with
| [] -> c
| y :: tl ->
let c = subst_comp c [NT y (Map.sel ss.m y)] in
ss_comp c (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.mk_app_norm | val mk_app_norm : env -> term -> list term -> Tac term | val mk_app_norm : env -> term -> list term -> Tac term | let mk_app_norm e t params =
let t1 = mk_e_app t params in
let t2 = norm_term_env e [] t1 in
t2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 67,
"start_col": 0,
"start_line": 64
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
t: FStar.Stubs.Reflection.Types.term ->
params: Prims.list FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Stubs.Tactics.V1.Builtins.norm_term_env",
"Prims.Nil",
"FStar.Pervasives.norm_step",
"FStar.Reflection.V1.Derived.mk_e_app"
] | [] | false | true | false | false | false | let mk_app_norm e t params =
| let t1 = mk_e_app t params in
let t2 = norm_term_env e [] t1 in
t2 | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_binder | val ss_binder (b:binder) (ss:ss_t) : binder | val ss_binder (b:binder) (ss:ss_t) : binder | let rec ss_binder (b:binder) (ss:ss_t)
: Tot binder (decreases L.length ss.l) =
match ss.l with
| [] -> b
| y::tl ->
let b = subst_binder b [ NT y (Map.sel ss.m y) ] in
ss_binder b (tail ss) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 25,
"end_line": 208,
"start_col": 0,
"start_line": 202
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Pulse.Syntax.Base.binder -> ss: Pulse.Checker.Prover.Substs.ss_t
-> Prims.Tot Pulse.Syntax.Base.binder | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Syntax.Base.binder",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_binder",
"Pulse.Checker.Prover.Substs.tail",
"Pulse.Syntax.Naming.subst_binder",
"Prims.Cons",
"Pulse.Syntax... | [
"recursion"
] | false | false | false | true | false | let rec ss_binder (b: binder) (ss: ss_t) : Tot binder (decreases L.length ss.l) =
| match ss.l with
| [] -> b
| y :: tl ->
let b = subst_binder b [NT y (Map.sel ss.m y)] in
ss_binder b (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bv_eq | val bv_eq : bv -> bv -> Tot bool | val bv_eq : bv -> bv -> Tot bool | let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: the fact that no two different binders
* have the same name and index is an invariant which must be enforced -
* and actually we could limit ourselves to checking the index *)
bvv1.bv_... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 17,
"start_col": 0,
"start_line": 11
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *) | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | bv1: FStar.Stubs.Reflection.Types.bv -> bv2: FStar.Stubs.Reflection.Types.bv -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.Stubs.Reflection.Types.bv",
"Prims.op_Equality",
"Prims.nat",
"FStar.Stubs.Reflection.V1.Data.__proj__Mkbv_view__item__bv_index",
"FStar.Stubs.Reflection.V1.Data.bv_view",
"Prims.precedes",
"FStar.Stubs.Reflection.V1.Builtins.inspect_bv",
"Prims.bool"
] | [] | false | false | false | true | false | let bv_eq (bv1 bv2: bv) =
| let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
bvv1.bv_index = bvv2.bv_index | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_st_term | val ss_st_term (t:st_term) (ss:ss_t) : st_term | val ss_st_term (t:st_term) (ss:ss_t) : st_term | let rec ss_st_term (t:st_term) (ss:ss_t) : Tot st_term (decreases L.length ss.l) =
match ss.l with
| [] -> t
| y::tl ->
let t = subst_st_term t [ NT y (Map.sel ss.m y) ] in
ss_st_term t (tail ss) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 184,
"start_col": 0,
"start_line": 179
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.st_term -> ss: Pulse.Checker.Prover.Substs.ss_t
-> Prims.Tot Pulse.Syntax.Base.st_term | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_st_term",
"Pulse.Checker.Prover.Substs.tail",
"Pulse.Syntax.Naming.subst_st_term",
"Prims.Cons",
"Pulse.Syn... | [
"recursion"
] | false | false | false | true | false | let rec ss_st_term (t: st_term) (ss: ss_t) : Tot st_term (decreases L.length ss.l) =
| match ss.l with
| [] -> t
| y :: tl ->
let t = subst_st_term t [NT y (Map.sel ss.m y)] in
ss_st_term t (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.print_binders_info | val print_binders_info (full: bool) (e: env) : Tac unit | val print_binders_info (full: bool) (e: env) : Tac unit | let print_binders_info (full : bool) (e:env) : Tac unit =
iter (print_binder_info full) (binders_of_env e) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 108,
"start_col": 0,
"start_line": 107
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | full: Prims.bool -> e: FStar.Stubs.Reflection.Types.env -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.env",
"FStar.Tactics.Util.iter",
"FStar.Stubs.Reflection.Types.binder",
"FStar.InteractiveHelpers.Base.print_binder_info",
"FStar.Stubs.Reflection.V1.Builtins.binders_of_env",
"Prims.unit"
] | [] | false | true | false | false | false | let print_binders_info (full: bool) (e: env) : Tac unit =
| iter (print_binder_info full) (binders_of_env e) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_st_comp | val ss_st_comp (s:st_comp) (ss:ss_t) : st_comp | val ss_st_comp (s:st_comp) (ss:ss_t) : st_comp | let rec ss_st_comp (s:st_comp) (ss:ss_t)
: Tot st_comp (decreases L.length ss.l) =
match ss.l with
| [] -> s
| y::tl ->
let s = subst_st_comp s [ NT y (Map.sel ss.m y) ] in
ss_st_comp s (tail ss) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 192,
"start_col": 0,
"start_line": 186
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Pulse.Syntax.Base.st_comp -> ss: Pulse.Checker.Prover.Substs.ss_t
-> Prims.Tot Pulse.Syntax.Base.st_comp | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Syntax.Base.st_comp",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_st_comp",
"Pulse.Checker.Prover.Substs.tail",
"Pulse.Syntax.Naming.subst_st_comp",
"Prims.Cons",
"Pulse.Syn... | [
"recursion"
] | false | false | false | true | false | let rec ss_st_comp (s: st_comp) (ss: ss_t) : Tot st_comp (decreases L.length ss.l) =
| match ss.l with
| [] -> s
| y :: tl ->
let s = subst_st_comp s [NT y (Map.sel ss.m y)] in
ss_st_comp s (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.mfail | val mfail : str: Prims.string -> FStar.Tactics.Effect.Tac _ | let mfail str =
raise (MetaAnalysis str) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 128,
"start_col": 0,
"start_line": 127
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | str: Prims.string -> FStar.Tactics.Effect.Tac _ | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"FStar.Tactics.Effect.raise",
"FStar.InteractiveHelpers.Base.MetaAnalysis"
] | [] | false | true | false | false | false | let mfail str =
| raise (MetaAnalysis str) | false | |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.print_dbg | val print_dbg : bool -> string -> Tac unit | val print_dbg : bool -> string -> Tac unit | let print_dbg debug s =
if debug then print s | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 134,
"start_col": 0,
"start_line": 133
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | debug: Prims.bool -> s: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"Prims.string",
"FStar.Stubs.Tactics.V1.Builtins.print",
"Prims.unit"
] | [] | false | true | false | false | false | let print_dbg debug s =
| if debug then print s | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_term | val ss_term (t:term) (ss:ss_t) : term | val ss_term (t:term) (ss:ss_t) : term | let rec ss_term (t:term) (ss:ss_t) : Tot term (decreases L.length ss.l) =
match ss.l with
| [] -> t
| y::tl ->
let t = subst_term t [ NT y (Map.sel ss.m y) ] in
ss_term t (tail ss) | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 177,
"start_col": 0,
"start_line": 172
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.term -> ss: Pulse.Checker.Prover.Substs.ss_t
-> Prims.Tot Pulse.Syntax.Base.term | Prims.Tot | [
"",
"total"
] | [] | [
"Pulse.Syntax.Base.term",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_term",
"Pulse.Checker.Prover.Substs.tail",
"Pulse.Syntax.Naming.subst_term",
"Prims.Cons",
"Pulse.Syntax.Namin... | [
"recursion"
] | false | false | false | true | false | let rec ss_term (t: term) (ss: ss_t) : Tot term (decreases L.length ss.l) =
| match ss.l with
| [] -> t
| y :: tl ->
let t = subst_term t [NT y (Map.sel ss.m y)] in
ss_term t (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.opt_apply | val opt_apply (#a #b : Type) (f : a -> Tot b) (x : option a) : Tot (option b) | val opt_apply (#a #b : Type) (f : a -> Tot b) (x : option a) : Tot (option b) | let opt_apply #a #b f x =
match x with
| None -> None
| Some x' -> Some (f x') | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 36,
"start_col": 0,
"start_line": 33
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> b) -> x: FStar.Pervasives.Native.option a -> FStar.Pervasives.Native.option b | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.Some"
] | [] | false | false | false | true | false | let opt_apply #a #b f x =
| match x with
| None -> None
| Some x' -> Some (f x') | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.opt_tapply | val opt_tapply (#a #b : Type) (f : a -> Tac b) (x : option a) : Tac (option b) | val opt_tapply (#a #b : Type) (f : a -> Tac b) (x : option a) : Tac (option b) | let opt_tapply #a #b f x =
match x with
| None -> None
| Some x' -> Some (f x') | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 42,
"start_col": 0,
"start_line": 39
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> FStar.Tactics.Effect.Tac b) -> x: FStar.Pervasives.Native.option a
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option b) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.Some"
] | [] | false | true | false | false | false | let opt_tapply #a #b f x =
| match x with
| None -> None
| Some x' -> Some (f x') | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.term_construct | val term_construct (t : term) : Tac string | val term_construct (t : term) : Tac string | let term_construct (t : term) : Tac string =
term_view_construct (inspect t) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 160,
"start_col": 0,
"start_line": 159
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.term_view_construct",
"Prims.string",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Tactics.V1.Builtins.inspect"
] | [] | false | true | false | false | false | let term_construct (t: term) : Tac string =
| term_view_construct (inspect t) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.term_view_construct | val term_view_construct (t : term_view) : Tac string | val term_view_construct (t : term_view) : Tac string | let term_view_construct (t : term_view) : Tac string =
match t with
| Tv_Var _ -> "Tv_Var"
| Tv_BVar _ -> "Tv_BVar"
| Tv_FVar _ -> "Tv_FVar"
| Tv_App _ _ -> "Tv_App"
| Tv_Abs _ _ -> "Tv_Abs"
| Tv_Arrow _ _ -> "Tv_Arrow"
| Tv_Type _ -> "Tv_Type"
| Tv_Refine _ _ _ -> "Tv_Refine"
| Tv_Const _ -> "Tv_Co... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 155,
"start_col": 0,
"start_line": 139
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Stubs.Reflection.V1.Data.term_view -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Data.argv",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.Types.univer... | [] | false | true | false | false | false | let term_view_construct (t: term_view) : Tac string =
| match t with
| Tv_Var _ -> "Tv_Var"
| Tv_BVar _ -> "Tv_BVar"
| Tv_FVar _ -> "Tv_FVar"
| Tv_App _ _ -> "Tv_App"
| Tv_Abs _ _ -> "Tv_Abs"
| Tv_Arrow _ _ -> "Tv_Arrow"
| Tv_Type _ -> "Tv_Type"
| Tv_Refine _ _ _ -> "Tv_Refine"
| Tv_Const _ -> "Tv_Const"
| Tv_Uvar _ _ -> "Tv_Uvar"
| Tv_Let _ _ _ _ _ _ -> "Tv_Let"
| Tv_Match... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.filter_ascriptions | val filter_ascriptions : bool -> term -> Tac term | val filter_ascriptions : bool -> term -> Tac term | let filter_ascriptions dbg t =
print_dbg dbg ("[> filter_ascriptions: " ^ term_view_construct t ^ ": " ^ term_to_string t );
visit_tm (fun t ->
match inspect t with
| Tv_AscribedT e _ _ _
| Tv_AscribedC e _ _ _ -> e
| _ -> t) t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 178,
"start_col": 0,
"start_line": 172
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dbg: Prims.bool -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.Tactics.Visit.visit_tm",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.V1.Data.term_view",
"FStar.Stubs.Tactics.V1.Builtins.inspect",
"Prims.unit",
"FStar.InteractiveHelpers.Base.print_dbg",
... | [] | false | true | false | false | false | let filter_ascriptions dbg t =
| print_dbg dbg ("[> filter_ascriptions: " ^ term_view_construct t ^ ": " ^ term_to_string t);
visit_tm (fun t ->
match inspect t with
| Tv_AscribedT e _ _ _ | Tv_AscribedC e _ _ _ -> e
| _ -> t)
t | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.option_to_string | val option_to_string : (#a : Type) -> (a -> Tac string) -> option a -> Tac string | val option_to_string : (#a : Type) -> (a -> Tac string) -> option a -> Tac string | let option_to_string #a f x =
match x with
| None -> "None"
| Some x' -> "Some (" ^ f x' ^ ")" | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 48,
"start_col": 0,
"start_line": 45
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> FStar.Tactics.Effect.Tac Prims.string) -> x: FStar.Pervasives.Native.option a
-> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"FStar.Pervasives.Native.option",
"Prims.op_Hat"
] | [] | false | true | false | false | false | let option_to_string #a f x =
| match x with
| None -> "None"
| Some x' -> "Some (" ^ f x' ^ ")" | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.opt_cons | val opt_cons (#a: Type) (opt_x: option a) (ls: list a) : Tot (list a) | val opt_cons (#a: Type) (opt_x: option a) (ls: list a) : Tot (list a) | let opt_cons (#a : Type) (opt_x : option a) (ls : list a) : Tot (list a) =
match opt_x with
| Some x -> x :: ls
| None -> ls | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 54,
"start_col": 0,
"start_line": 51
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | opt_x: FStar.Pervasives.Native.option a -> ls: Prims.list a -> Prims.list a | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.option",
"Prims.list",
"Prims.Cons"
] | [] | false | false | false | true | false | let opt_cons (#a: Type) (opt_x: option a) (ls: list a) : Tot (list a) =
| match opt_x with
| Some x -> x :: ls
| None -> ls | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.prettify_term | val prettify_term : bool -> term -> Tac term | val prettify_term : bool -> term -> Tac term | let prettify_term dbg t = filter_ascriptions dbg t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 186,
"start_col": 0,
"start_line": 186
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dbg: Prims.bool -> t: FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.filter_ascriptions"
] | [] | false | true | false | false | false | let prettify_term dbg t =
| filter_ascriptions dbg t | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bind_map_push | val bind_map_push : m: FStar.InteractiveHelpers.Base.bind_map a -> b: FStar.Stubs.Reflection.Types.bv -> x: a
-> Prims.list (FStar.Stubs.Reflection.Types.bv * a) | let bind_map_push (#a:Type) (m:bind_map a) (b:bv) (x:a) = (b,x)::m | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 196,
"start_col": 0,
"start_line": 196
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: FStar.InteractiveHelpers.Base.bind_map a -> b: FStar.Stubs.Reflection.Types.bv -> x: a
-> Prims.list (FStar.Stubs.Reflection.Types.bv * a) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.bind_map",
"FStar.Stubs.Reflection.Types.bv",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"Prims.list"
] | [] | false | false | false | true | false | let bind_map_push (#a: Type) (m: bind_map a) (b: bv) (x: a) =
| (b, x) :: m | false | |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_st_comp_commutes | val ss_st_comp_commutes (s:st_comp) (ss:ss_t)
: Lemma (ensures
ss_st_comp s ss ==
{ s with res = ss_term s.res ss;
pre = ss_term s.pre ss;
post = ss_term s.post ss; }) // no shifting required
[SMTPat (ss_st_comp s ss)] | val ss_st_comp_commutes (s:st_comp) (ss:ss_t)
: Lemma (ensures
ss_st_comp s ss ==
{ s with res = ss_term s.res ss;
pre = ss_term s.pre ss;
post = ss_term s.post ss; }) // no shifting required
[SMTPat (ss_st_comp s ss)] | let rec ss_st_comp_commutes (s:st_comp) (ss:ss_t)
: Lemma (ensures
ss_st_comp s ss ==
{ s with res = ss_term s.res ss;
pre = ss_term s.pre ss;
post = ss_term s.post ss; }) // no shifting required
(decreases L.length ss.l)
[SMTP... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 86,
"end_line": 229,
"start_col": 0,
"start_line": 219
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Pulse.Syntax.Base.st_comp -> ss: Pulse.Checker.Prover.Substs.ss_t
-> FStar.Pervasives.Lemma
(ensures
Pulse.Checker.Prover.Substs.ss_st_comp s ss ==
Pulse.Syntax.Base.Mkst_comp (Mkst_comp?.u s)
(Pulse.Checker.Prover.Substs.ss_term (Mkst_comp?.res s) ss)
(Pulse.Checker.Prove... | FStar.Pervasives.Lemma | [
"",
"lemma"
] | [] | [
"Pulse.Syntax.Base.st_comp",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_st_comp_commutes",
"Pulse.Syntax.Naming.subst_st_comp",
"Prims.Cons",
"Pulse.Syntax.Naming.subst_elt",
"Pul... | [
"recursion"
] | false | false | true | false | false | let rec ss_st_comp_commutes (s: st_comp) (ss: ss_t)
: Lemma
(ensures
ss_st_comp s ss ==
{ s with res = ss_term s.res ss; pre = ss_term s.pre ss; post = ss_term s.post ss })
(decreases L.length ss.l)
[SMTPat (ss_st_comp s ss)] =
| match ss.l with
| [] -> ()
| y :: tl -> ss_st_comp_commutes (subst_st_comp s [NT y (Map.sel ss.m y)]) (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.get_bind_map | val get_bind_map (e: genv) : bind_map (typ & bool & term) | val get_bind_map (e: genv) : bind_map (typ & bool & term) | let get_bind_map (e:genv) : bind_map (typ & bool & term) = e.bmap | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 239,
"start_col": 0,
"start_line": 239
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.InteractiveHelpers.Base.genv
-> FStar.InteractiveHelpers.Base.bind_map ((FStar.Stubs.Reflection.Types.typ * Prims.bool) *
FStar.Stubs.Reflection.Types.term) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.InteractiveHelpers.Base.__proj__Mkgenv__item__bmap",
"FStar.InteractiveHelpers.Base.bind_map",
"FStar.Pervasives.Native.tuple3",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let get_bind_map (e: genv) : bind_map (typ & bool & term) =
| e.bmap | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.get_env | val get_env (e: genv) : env | val get_env (e: genv) : env | let get_env (e:genv) : env = e.env | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 238,
"start_col": 0,
"start_line": 238
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.InteractiveHelpers.Base.genv -> FStar.Stubs.Reflection.Types.env | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.InteractiveHelpers.Base.__proj__Mkgenv__item__env",
"FStar.Stubs.Reflection.Types.env"
] | [] | false | false | false | true | false | let get_env (e: genv) : env =
| e.env | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.push_as_map | val push_as_map (ss1 ss2:ss_t)
: Lemma (requires Set.disjoint (dom ss1) (dom ss2))
(ensures as_map (push_ss ss1 ss2) == Map.concat (as_map ss1) (as_map ss2))
[SMTPat (as_map (push_ss ss1 ss2))] | val push_as_map (ss1 ss2:ss_t)
: Lemma (requires Set.disjoint (dom ss1) (dom ss2))
(ensures as_map (push_ss ss1 ss2) == Map.concat (as_map ss1) (as_map ss2))
[SMTPat (as_map (push_ss ss1 ss2))] | let push_as_map (ss1 ss2:ss_t)
: Lemma (requires Set.disjoint (dom ss1) (dom ss2))
(ensures Map.equal (as_map (push_ss ss1 ss2))
(Map.concat (as_map ss1) (as_map ss2)))
(decreases L.length ss2.l)
[SMTPat (as_map (push_ss ss1 ss2))] =
let rec aux (ss1 ss2:s... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 140,
"start_col": 0,
"start_line": 123
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | ss1: Pulse.Checker.Prover.Substs.ss_t -> ss2: Pulse.Checker.Prover.Substs.ss_t
-> FStar.Pervasives.Lemma
(requires
FStar.Set.disjoint (Pulse.Checker.Prover.Substs.dom ss1)
(Pulse.Checker.Prover.Substs.dom ss2))
(ensures
Pulse.Checker.Prover.Substs.as_map (Pulse.Checker.Prover.Sub... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_t",
"Prims.unit",
"FStar.List.Tot.Base.length",
"Pulse.Syntax.Base.var",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"FStar.Set.disjoint",
"Pulse.Checker.Prover.Substs.dom",
"Prims.squash",
"FStar.Map.equal",
"Pulse.Syntax.Base.term",
"Pulse.Checker.Pro... | [] | false | false | true | false | false | let push_as_map (ss1 ss2: ss_t)
: Lemma (requires Set.disjoint (dom ss1) (dom ss2))
(ensures Map.equal (as_map (push_ss ss1 ss2)) (Map.concat (as_map ss1) (as_map ss2)))
(decreases L.length ss2.l)
[SMTPat (as_map (push_ss ss1 ss2))] =
| let rec aux (ss1 ss2: ss_t)
: Lemma (requires Set.disjoint (dom ss1) (dom ss2))
(ensures Map.equal (as_map (push_ss ss1 ss2)) (Map.concat (as_map ss1) (as_map ss2)))
(decreases L.length ss2.l)
[SMTPat ()] =
match ss2.l with
| [] -> ()
| x :: tl -> aux (push ss1 x (Map.sel ss2.m x)) (tail ss2... | false |
MerkleTree.Low.fst | MerkleTree.Low.mt_verify | val mt_verify:
#hsz:Ghost.erased hash_size_t ->
#hash_spec:MTS.hash_fun_t #(U32.v hsz) ->
mt:const_mt_p ->
k:uint64_t ->
j:uint64_t ->
mtr:HH.rid ->
p:const_path_p ->
rt:hash #hsz ->
HST.ST bool
(requires (fun h0 ->
let mt = CB.cast mt in
let p = CB.cast p in
let mtv0 = B.get h0 mt 0... | val mt_verify:
#hsz:Ghost.erased hash_size_t ->
#hash_spec:MTS.hash_fun_t #(U32.v hsz) ->
mt:const_mt_p ->
k:uint64_t ->
j:uint64_t ->
mtr:HH.rid ->
p:const_path_p ->
rt:hash #hsz ->
HST.ST bool
(requires (fun h0 ->
let mt = CB.cast mt in
let p = CB.cast p in
let mtv0 = B.get h0 mt 0... | let mt_verify #_ #hash_spec mt k j mtr p rt =
let ncmt = CB.cast mt in
let ncp = CB.cast p in
let mtv = !*ncmt in
let hash_size = MT?.hash_size mtv in
let hrg = hreg hash_size in
let k = split_offset (MT?.offset mtv) k in
let j = split_offset (MT?.offset mtv) j in
let hh0 = HST.get () in
let nrid = HS... | {
"file_name": "src/MerkleTree.Low.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 3,
"end_line": 3005,
"start_col": 0,
"start_line": 2976
} | module MerkleTree.Low
open EverCrypt.Helpers
open FStar.All
open FStar.Integers
open FStar.Mul
open LowStar.Buffer
open LowStar.BufferOps
open LowStar.Vector
open LowStar.Regional
open LowStar.RVector
open LowStar.Regional.Instances
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MHS = FStar.Mo... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.fst.checked",
"MerkleTree.Low.VectorExtras.fst.checked",
"MerkleTree.Low.Hashfunctions.fst.checked",
"MerkleTree.Low.Datastructures.fst.checked",
"LowStar.Vector.fst.checked"... | [
{
"abbrev": false,
"full_module": "MerkleTree.Low.VectorExtras",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.Low.Hashfunctions",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.Low.Datastructures",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
mt: MerkleTree.Low.const_mt_p ->
k: EverCrypt.Helpers.uint64_t ->
j: EverCrypt.Helpers.uint64_t ->
mtr: FStar.Monotonic.HyperHeap.rid ->
p: MerkleTree.Low.const_path_p ->
rt: MerkleTree.Low.Datastructures.hash
-> FStar.HyperStack.ST.ST Prims.bool | FStar.HyperStack.ST.ST | [] | [] | [
"FStar.Ghost.erased",
"MerkleTree.Low.Datastructures.hash_size_t",
"MerkleTree.Spec.hash_fun_t",
"FStar.UInt32.v",
"FStar.Ghost.reveal",
"MerkleTree.Low.const_mt_p",
"EverCrypt.Helpers.uint64_t",
"FStar.Monotonic.HyperHeap.rid",
"MerkleTree.Low.const_path_p",
"MerkleTree.Low.Datastructures.hash",
... | [] | false | true | false | false | false | let mt_verify #_ #hash_spec mt k j mtr p rt =
| let ncmt = CB.cast mt in
let ncp = CB.cast p in
let mtv = !*ncmt in
let hash_size = MT?.hash_size mtv in
let hrg = hreg hash_size in
let k = split_offset (MT?.offset mtv) k in
let j = split_offset (MT?.offset mtv) j in
let hh0 = HST.get () in
let nrid = HST.new_region (B.frameOf rt) in
let ih = rg_alloc hrg nrid in
let... | false |
Vale.X64.Leakage.fst | Vale.X64.Leakage.check_if_loop_consumes_fixed_time | val check_if_loop_consumes_fixed_time (code:S.code{While? code}) (ts:analysis_taints) : Tot (bool & analysis_taints)
(decreases %[code; count_publics ts; 0]) | val check_if_loop_consumes_fixed_time (code:S.code{While? code}) (ts:analysis_taints) : Tot (bool & analysis_taints)
(decreases %[code; count_publics ts; 0]) | let rec check_if_block_consumes_fixed_time (block:S.codes) (ts:analysis_taints) : bool & analysis_taints =
match block with
| [] -> true, ts
| hd::tl -> let fixedTime, ts_int = check_if_code_consumes_fixed_time hd ts in
if (not fixedTime) then fixedTime, ts_int
else check_if_block_consumes_fixed_time tl t... | {
"file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 251,
"start_col": 0,
"start_line": 192
} | module Vale.X64.Leakage
open FStar.Mul
open Vale.X64.Machine_s
module S = Vale.X64.Machine_Semantics_s
open Vale.X64.Leakage_s
open Vale.X64.Leakage_Helpers
open Vale.X64.Leakage_Ins
unfold let machine_eval_ocmp = S.machine_eval_ocmp
unfold let machine_eval_code = S.machine_eval_code
unfold let machine_eval_codes = S.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Leakage_s.fst.checked",
"Vale.X64.Leakage_Ins.fsti.checked",
"Vale.X64.Leakage_Helpers.fst.checked",
"Vale.Lib.MapTree.fsti.checked",
"prims.fst.checked",
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Ins",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_Helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Leakage_s",
"short_module": null
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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.Machine_Semantics_s.code{While? code} -> ts: Vale.X64.Leakage_Helpers.analysis_taints
-> Prims.Tot (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints) | Prims.Tot | [
"total",
""
] | [
"check_if_block_consumes_fixed_time",
"check_if_code_consumes_fixed_time",
"check_if_loop_consumes_fixed_time"
] | [
"Vale.X64.Machine_Semantics_s.code",
"Prims.b2t",
"Vale.X64.Machine_s.uu___is_While",
"Vale.X64.Bytes_Code_s.instruction_t",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.X64.Bytes_Code_s.ocmp",
"Vale.X64.Leakage_Helpers.analysis_taints",
"Vale.X64.Machine_s.precode",
"Vale.Arch.HeapTypes_s... | [
"mutual recursion"
] | false | false | false | false | false | let rec check_if_loop_consumes_fixed_time c (ts: analysis_taints) : (bool & analysis_taints) =
| let ts = normalize_taints ts in
let While pred body = c in
let o1 = operand_taint 0 (S.get_fst_ocmp pred) ts in
let o2 = operand_taint 0 (S.get_snd_ocmp pred) ts in
let predTaint = merge_taint o1 o2 in
if (Secret? predTaint)
then false, ts
else
let o1Public = operand_does_not_use_secrets (S.get_fst_ocmp pred) ts in
... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_binder | val genv_push_binder (ge: genv) (b: binder) (abs: bool) (t: option term) : Tac genv | val genv_push_binder (ge: genv) (b: binder) (abs: bool) (t: option term) : Tac genv | let genv_push_binder (ge:genv) (b:binder) (abs:bool) (t:option term) : Tac genv =
genv_push_bv ge (bv_of_binder b) (binder_sort b) abs t | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 282,
"start_col": 0,
"start_line": 281
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge: FStar.InteractiveHelpers.Base.genv ->
b: FStar.Stubs.Reflection.Types.binder ->
abs: Prims.bool ->
t: FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.InteractiveHelpers.Base.genv | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.binder",
"Prims.bool",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.genv_push_bv",
"FStar.Reflection.V1.Derived.bv_of_binder",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Tacti... | [] | false | true | false | false | false | let genv_push_binder (ge: genv) (b: binder) (abs: bool) (t: option term) : Tac genv =
| genv_push_bv ge (bv_of_binder b) (binder_sort b) abs t | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_get | val genv_get (ge: genv) (b: bv) : Tot (option (typ & bool & term)) | val genv_get (ge: genv) (b: bv) : Tot (option (typ & bool & term)) | let genv_get (ge:genv) (b:bv) : Tot (option (typ & bool & term)) =
bind_map_get ge.bmap b | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 262,
"start_col": 0,
"start_line": 261
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> b: FStar.Stubs.Reflection.Types.bv
-> FStar.Pervasives.Native.option ((FStar.Stubs.Reflection.Types.typ * Prims.bool) *
FStar.Stubs.Reflection.Types.term) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.bv",
"FStar.InteractiveHelpers.Base.bind_map_get",
"FStar.Pervasives.Native.tuple3",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.__proj__Mkgenv__item__bmap",
... | [] | false | false | false | true | false | let genv_get (ge: genv) (b: bv) : Tot (option (typ & bool & term)) =
| bind_map_get ge.bmap b | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_to_string | val genv_to_string : genv -> Tac string | val genv_to_string : genv -> Tac string | let genv_to_string ge =
let binder_to_string (b : binder) : Tac string =
abv_to_string (bv_of_binder b) ^ "\n"
in
let binders_str = map binder_to_string (binders_of_env ge.env) in
let bmap_elem_to_string (e : bv & (typ & bool & term)) : Tac string =
let bv, (_sort, abs, t) = e in
"(" ^ abv_to_string... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 259,
"start_col": 0,
"start_line": 244
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.op_Hat",
"Prims.list",
"Prims.string",
"FStar.List.Tot.Base.fold_left",
"FStar.Tactics.Util.map",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.InteractiveHelpers.Base.abv_to_string",
"... | [] | false | true | false | false | false | let genv_to_string ge =
| let binder_to_string (b: binder) : Tac string = abv_to_string (bv_of_binder b) ^ "\n" in
let binders_str = map binder_to_string (binders_of_env ge.env) in
let bmap_elem_to_string (e: bv & (typ & bool & term)) : Tac string =
let bv, (_sort, abs, t) = e in
"(" ^ abv_to_string bv ^ " -> (" ^ string_of_bool abs ^ ", " ... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.binder_is_shadowed | val binder_is_shadowed (ge: genv) (b: binder) : Tot bool | val binder_is_shadowed (ge: genv) (b: binder) : Tot bool | let binder_is_shadowed (ge : genv) (b : binder) : Tot bool =
bv_is_shadowed ge (bv_of_binder b) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 289,
"start_col": 0,
"start_line": 288
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> b: FStar.Stubs.Reflection.Types.binder -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.binder",
"FStar.InteractiveHelpers.Base.bv_is_shadowed",
"FStar.Reflection.V1.Derived.bv_of_binder",
"Prims.bool"
] | [] | false | false | false | true | false | let binder_is_shadowed (ge: genv) (b: binder) : Tot bool =
| bv_is_shadowed ge (bv_of_binder b) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.find_shadowed_binders | val find_shadowed_binders (ge: genv) (bl: list binder) : Tot (list (binder & bool)) | val find_shadowed_binders (ge: genv) (bl: list binder) : Tot (list (binder & bool)) | let find_shadowed_binders (ge : genv) (bl : list binder) : Tot (list (binder & bool)) =
List.Tot.map (fun b -> b, binder_is_shadowed ge b) bl | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"end_line": 295,
"start_col": 0,
"start_line": 294
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> bl: Prims.list FStar.Stubs.Reflection.Types.binder
-> Prims.list (FStar.Stubs.Reflection.Types.binder * Prims.bool) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Stubs.Reflection.Types.binder",
"FStar.List.Tot.Base.map",
"FStar.Pervasives.Native.tuple2",
"Prims.bool",
"FStar.Pervasives.Native.Mktuple2",
"FStar.InteractiveHelpers.Base.binder_is_shadowed"
] | [] | false | false | false | true | false | let find_shadowed_binders (ge: genv) (bl: list binder) : Tot (list (binder & bool)) =
| List.Tot.map (fun b -> b, binder_is_shadowed ge b) bl | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.find_shadowed_bvs | val find_shadowed_bvs (ge: genv) (bl: list bv) : Tot (list (bv & bool)) | val find_shadowed_bvs (ge: genv) (bl: list bv) : Tot (list (bv & bool)) | let find_shadowed_bvs (ge : genv) (bl : list bv) : Tot (list (bv & bool)) =
List.Tot.map (fun b -> b, bv_is_shadowed ge b) bl | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 51,
"end_line": 292,
"start_col": 0,
"start_line": 291
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> bl: Prims.list FStar.Stubs.Reflection.Types.bv
-> Prims.list (FStar.Stubs.Reflection.Types.bv * Prims.bool) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.list",
"FStar.Stubs.Reflection.Types.bv",
"FStar.List.Tot.Base.map",
"FStar.Pervasives.Native.tuple2",
"Prims.bool",
"FStar.Pervasives.Native.Mktuple2",
"FStar.InteractiveHelpers.Base.bv_is_shadowed"
] | [] | false | false | false | true | false | let find_shadowed_bvs (ge: genv) (bl: list bv) : Tot (list (bv & bool)) =
| List.Tot.map (fun b -> b, bv_is_shadowed ge b) bl | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.is_permutation | val is_permutation (nts:nt_substs) (ss:ss_t) : Type0 | val is_permutation (nts:nt_substs) (ss:ss_t) : Type0 | let rec is_permutation (nts:nt_substs) (ss:ss_t) : Type0 =
match nts, ss.l with
| [], [] -> True
| (NT x e)::nts_rest, _::_ ->
Map.contains ss.m x /\
Map.sel ss.m x == e /\
is_permutation nts_rest ({l=remove_l ss.l x; m=remove_map ss.m x})
| _ -> False | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 280,
"start_col": 0,
"start_line": 273
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | nts: Pulse.Checker.Prover.Substs.nt_substs -> ss: Pulse.Checker.Prover.Substs.ss_t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Pulse.Checker.Prover.Substs.nt_substs",
"Pulse.Checker.Prover.Substs.ss_t",
"FStar.Pervasives.Native.Mktuple2",
"Prims.list",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax.Base.var",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Prims.l_True",
"Pulse.Syntax.Base.term",
"Prims.l_and",
... | [
"recursion"
] | false | false | false | true | true | let rec is_permutation (nts: nt_substs) (ss: ss_t) : Type0 =
| match nts, ss.l with
| [], [] -> True
| NT x e :: nts_rest, _ :: _ ->
Map.contains ss.m x /\ Map.sel ss.m x == e /\
is_permutation nts_rest ({ l = remove_l ss.l x; m = remove_map ss.m x })
| _ -> False | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_fresh_binder | val genv_push_fresh_binder (ge: genv) (basename: string) (ty: typ) : Tac (genv & binder) | val genv_push_fresh_binder (ge: genv) (basename: string) (ty: typ) : Tac (genv & binder) | let genv_push_fresh_binder (ge : genv) (basename : string) (ty : typ) : Tac (genv & binder) =
let b = fresh_binder ge.env basename ty in
(* TODO: we can have a shortcircuit push (which performs less checks) *)
let ge' = genv_push_binder ge b true None in
ge', b | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 335,
"start_col": 0,
"start_line": 331
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge: FStar.InteractiveHelpers.Base.genv ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
(FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.Types.binder) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.tuple2",
"FStar.InteractiveHelpers.Base.genv_push_binder",
"FStar.Pervasives.Native.None",
"FStar.Stubs.Reflec... | [] | false | true | false | false | false | let genv_push_fresh_binder (ge: genv) (basename: string) (ty: typ) : Tac (genv & binder) =
| let b = fresh_binder ge.env basename ty in
let ge' = genv_push_binder ge b true None in
ge', b | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_abstract_bvs | val genv_abstract_bvs : genv -> Tot (list (bv & typ)) | val genv_abstract_bvs : genv -> Tot (list (bv & typ)) | let genv_abstract_bvs ge =
List.Tot.concatMap
(fun (bv, (ty, abs, _)) -> if abs then [bv,ty] else []) ge.bmap | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 67,
"end_line": 310,
"start_col": 0,
"start_line": 308
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv
-> Prims.list (FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.List.Tot.Base.concatMap",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Pervasives.Native.tuple3",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"Prims.Cons",
"FStar.Pervasives.Nativ... | [] | false | false | false | true | false | let genv_abstract_bvs ge =
| List.Tot.concatMap (fun (bv, (ty, abs, _)) -> if abs then [bv, ty] else []) ge.bmap | false |
Test.Vectors.Chacha20Poly1305.fst | Test.Vectors.Chacha20Poly1305.input7 | val input7:(b: B.buffer UInt8.t {B.length b = 512 /\ B.recallable b /\ B.disjoint b aad7}) | val input7:(b: B.buffer UInt8.t {B.length b = 512 /\ B.recallable b /\ B.disjoint b aad7}) | let input7: (b: B.buffer UInt8.t { B.length b = 512 /\ B.recallable b /\ B.disjoint b aad7 }) =
B.recall aad7;[@inline_let] let l = [ 0xc3uy; 0x09uy; 0x94uy; 0x62uy; 0xe6uy; 0x46uy; 0x2euy; 0x10uy; 0xbeuy; 0x00uy; 0xe4uy; 0xfcuy; 0xf3uy; 0x40uy; 0xa3uy; 0xe2uy; 0x0fuy; 0xc2uy; 0x8buy; 0x28uy; 0xdcuy; 0xbauy; 0xb4u... | {
"file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 314,
"start_col": 0,
"start_line": 311
} | module Test.Vectors.Chacha20Poly1305
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) =
[@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_fil... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | b:
LowStar.Buffer.buffer FStar.UInt8.t
{ LowStar.Monotonic.Buffer.length b = 512 /\ LowStar.Monotonic.Buffer.recallable b /\
LowStar.Monotonic.Buffer.disjoint b Test.Vectors.Chacha20Poly1305.aad7 } | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length"... | [] | false | false | false | false | false | let input7:(b: B.buffer UInt8.t {B.length b = 512 /\ B.recallable b /\ B.disjoint b aad7}) =
| B.recall aad7;
[@@ inline_let ]let l =
[
0xc3uy; 0x09uy; 0x94uy; 0x62uy; 0xe6uy; 0x46uy; 0x2euy; 0x10uy; 0xbeuy; 0x00uy; 0xe4uy; 0xfcuy;
0xf3uy; 0x40uy; 0xa3uy; 0xe2uy; 0x0fuy; 0xc2uy; 0x8buy; 0x28uy; 0xdcuy; 0xbauy; 0xb4uy; 0x3cuy;
0xe4uy; 0x21uy; 0x58uy; 0x61uy; 0xcduy; 0x8buy; 0xcduy; 0xfbuy; 0xacuy; 0... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.fresh_bv | val fresh_bv (e: env) (basename: string) : Tac bv | val fresh_bv (e: env) (basename: string) : Tac bv | let fresh_bv (e : env) (basename : string) : Tac bv =
let binders = binders_of_env e in
let binder_names = Tactics.map name_of_binder binders in
_fresh_bv binder_names basename 0 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 325,
"start_col": 0,
"start_line": 322
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: FStar.Stubs.Reflection.Types.env -> basename: Prims.string
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.bv | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.string",
"FStar.InteractiveHelpers.Base._fresh_bv",
"FStar.Stubs.Reflection.Types.bv",
"Prims.list",
"FStar.Tactics.Util.map",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Tactics.V1.Derived.name_of_binder",
"FStar.Stubs.Reflection.Types.binders",
"FStar... | [] | false | true | false | false | false | let fresh_bv (e: env) (basename: string) : Tac bv =
| let binders = binders_of_env e in
let binder_names = Tactics.map name_of_binder binders in
_fresh_bv binder_names basename 0 | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bv_is_shadowed | val bv_is_shadowed (ge: genv) (bv: bv) : Tot bool | val bv_is_shadowed (ge: genv) (bv: bv) : Tot bool | let bv_is_shadowed (ge : genv) (bv : bv) : Tot bool =
List.Tot.existsb (fun (b,_) -> bv_eq bv b) ge.svars | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 286,
"start_col": 0,
"start_line": 285
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> bv: FStar.Stubs.Reflection.Types.bv -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.bv",
"FStar.List.Tot.Base.existsb",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.typ",
"FStar.InteractiveHelpers.Base.bv_eq",
"Prims.bool",
"FStar.InteractiveHelpers.Base.__proj__Mkgenv__item__svars"
] | [] | false | false | false | true | false | let bv_is_shadowed (ge: genv) (bv: bv) : Tot bool =
| List.Tot.existsb (fun (b, _) -> bv_eq bv b) ge.svars | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.binder_is_abstract | val binder_is_abstract : genv -> binder -> Tot bool | val binder_is_abstract : genv -> binder -> Tot bool | let binder_is_abstract ge b =
bv_is_abstract ge (bv_of_binder b) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 305,
"start_col": 0,
"start_line": 304
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> b: FStar.Stubs.Reflection.Types.binder -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.binder",
"FStar.InteractiveHelpers.Base.bv_is_abstract",
"FStar.Reflection.V1.Derived.bv_of_binder",
"Prims.bool"
] | [] | false | false | false | true | false | let binder_is_abstract ge b =
| bv_is_abstract ge (bv_of_binder b) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.fresh_binder | val fresh_binder (e: env) (basename: string) (ty: typ) : Tac binder | val fresh_binder (e: env) (basename: string) (ty: typ) : Tac binder | let fresh_binder (e : env) (basename : string) (ty : typ) : Tac binder =
let bv = fresh_bv e basename in
mk_binder bv ty | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 329,
"start_col": 0,
"start_line": 327
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.binder | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Reflection.V1.Derived.mk_binder",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.Types.bv",
"FStar.InteractiveHelpers.Base.fresh_bv"
] | [] | false | true | false | false | false | let fresh_binder (e: env) (basename: string) (ty: typ) : Tac binder =
| let bv = fresh_bv e basename in
mk_binder bv ty | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.unzip | val unzip (#a #b: _) (l: list (a & b)) : Tot (list a & list b) | val unzip (#a #b: _) (l: list (a & b)) : Tot (list a & list b) | let rec unzip #a #b (l : list (a & b)) : Tot (list a & list b) =
match l with
| [] -> ([],[])
| (hd1,hd2)::tl ->
let (tl1,tl2) = unzip tl in
(hd1::tl1,hd2::tl2) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 79,
"start_col": 0,
"start_line": 74
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list (a * b) -> Prims.list a * Prims.list b | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"Prims.Nil",
"Prims.Cons",
"FStar.InteractiveHelpers.Base.unzip"
] | [
"recursion"
] | false | false | false | true | false | let rec unzip #a #b (l: list (a & b)) : Tot (list a & list b) =
| match l with
| [] -> ([], [])
| (hd1, hd2) :: tl ->
let tl1, tl2 = unzip tl in
(hd1 :: tl1, hd2 :: tl2) | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.ss_comp_commutes | val ss_comp_commutes (c:comp) (ss:ss_t)
: Lemma (ensures
(let r = ss_comp c ss in
(C_Tot? c ==> r == C_Tot (ss_term (comp_res c) ss)) /\
(C_ST? c ==> r == C_ST (ss_st_comp (st_comp_of_comp c) ss)) /\
(C_STAtomic? c ==> r == C_STAtomic (ss_term (comp_inames c) ss)... | val ss_comp_commutes (c:comp) (ss:ss_t)
: Lemma (ensures
(let r = ss_comp c ss in
(C_Tot? c ==> r == C_Tot (ss_term (comp_res c) ss)) /\
(C_ST? c ==> r == C_ST (ss_st_comp (st_comp_of_comp c) ss)) /\
(C_STAtomic? c ==> r == C_STAtomic (ss_term (comp_inames c) ss)... | let rec ss_comp_commutes (c:comp) (ss:ss_t)
: Lemma (ensures
(let r = ss_comp c ss in
(C_Tot? c ==> r == C_Tot (ss_term (comp_res c) ss)) /\
(C_ST? c ==> r == C_ST (ss_st_comp (st_comp_of_comp c) ss)) /\
(C_STAtomic? c ==> r == C_STAtomic (ss_term (comp_inames c)... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 80,
"end_line": 244,
"start_col": 0,
"start_line": 231
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | c: Pulse.Syntax.Base.comp -> ss: Pulse.Checker.Prover.Substs.ss_t
-> FStar.Pervasives.Lemma
(ensures
(let r = Pulse.Checker.Prover.Substs.ss_comp c ss in
(C_Tot? c ==>
r ==
Pulse.Syntax.Base.C_Tot
(Pulse.Checker.Prover.Substs.ss_term (Pulse.Syntax.Base.comp_... | FStar.Pervasives.Lemma | [
"",
"lemma"
] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Checker.Prover.Substs.ss_t",
"Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l",
"Pulse.Syntax.Base.var",
"Prims.list",
"Pulse.Checker.Prover.Substs.ss_comp_commutes",
"Pulse.Syntax.Naming.subst_comp",
"Prims.Cons",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Syntax... | [
"recursion"
] | false | false | true | false | false | let rec ss_comp_commutes (c: comp) (ss: ss_t)
: Lemma
(ensures
(let r = ss_comp c ss in
(C_Tot? c ==> r == C_Tot (ss_term (comp_res c) ss)) /\
(C_ST? c ==> r == C_ST (ss_st_comp (st_comp_of_comp c) ss)) /\
(C_STAtomic? c ==>
r ==
C_STAtomic (ss_ter... | match ss.l with
| [] -> ()
| y :: tl -> ss_comp_commutes (subst_comp c [NT y (Map.sel ss.m y)]) (tail ss) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.print_binder_info | val print_binder_info (full: bool) (b: binder) : Tac unit | val print_binder_info (full: bool) (b: binder) : Tac unit | let print_binder_info (full : bool) (b : binder) : Tac unit =
let open inspect_binder b <: binder_view in
let qual_str = match binder_qual with
| Q_Implicit -> "Implicit"
| Q_Explicit -> "Explicit"
| Q_Meta t -> "Meta: " ^ term_to_string t
in
let bview = inspect_bv binder_bv in
if full then
pr... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 105,
"start_col": 0,
"start_line": 87
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | full: Prims.bool -> b: FStar.Stubs.Reflection.Types.binder -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.bool",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.V1.Builtins.inspect_binder",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.V1.Data.aqualv",
"Prims.list",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Tactics.V1.Builtin... | [] | false | true | false | false | false | let print_binder_info (full: bool) (b: binder) : Tac unit =
| let open inspect_binder b as
binder_view
in
let qual_str =
match binder_qual with
| Q_Implicit -> "Implicit"
| Q_Explicit -> "Explicit"
| Q_Meta t -> "Meta: " ^ term_to_string t
in
let bview = inspect_bv binder_bv in
if full
then
print ("> print_binder_info:" ^
"\n- name: " ^
(name_of_binder b) ^
... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_fresh_bv | val genv_push_fresh_bv (ge: genv) (basename: string) (ty: typ) : Tac (genv & bv) | val genv_push_fresh_bv (ge: genv) (basename: string) (ty: typ) : Tac (genv & bv) | let genv_push_fresh_bv (ge : genv) (basename : string) (ty : typ) : Tac (genv & bv) =
let ge', b = genv_push_fresh_binder ge basename ty in
ge', bv_of_binder b | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 345,
"start_col": 0,
"start_line": 343
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge: FStar.InteractiveHelpers.Base.genv ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac (FStar.InteractiveHelpers.Base.genv * FStar.Stubs.Reflection.Types.bv) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Reflection.V1.Derived.bv_of_binder",
"FStar.Pervasives.Native.tuple2",
"FStar.InteractiveHelp... | [] | false | true | false | false | false | let genv_push_fresh_bv (ge: genv) (basename: string) (ty: typ) : Tac (genv & bv) =
| let ge', b = genv_push_fresh_binder ge basename ty in
ge', bv_of_binder b | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.is_dom_remove | val is_dom_remove (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{Map.contains m x})
: Lemma (is_dom (remove_l l x) (remove_map m x))
[SMTPat (remove_l l x); SMTPat (remove_map m x)] | val is_dom_remove (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{Map.contains m x})
: Lemma (is_dom (remove_l l x) (remove_map m x))
[SMTPat (remove_l l x); SMTPat (remove_map m x)] | let rec is_dom_remove
(l:ss_dom)
(m:ss_map { is_dom l m })
(x:var { Map.contains m x })
: Lemma (is_dom (remove_l l x) (remove_map m x))
[SMTPat (remove_l l x); SMTPat (remove_map m x)] =
match l with
| [] -> ()
| y::tl ->
if x = y then ()
else let t_y = Map.sel m y in
let m1 ... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 44,
"end_line": 170,
"start_col": 0,
"start_line": 153
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 |
l: Pulse.Checker.Prover.Substs.ss_dom ->
m: Pulse.Checker.Prover.Substs.ss_map{Pulse.Checker.Prover.Substs.is_dom l m} ->
x: Pulse.Syntax.Base.var{FStar.Map.contains m x}
-> FStar.Pervasives.Lemma
(ensures
Pulse.Checker.Prover.Substs.is_dom (Pulse.Checker.Prover.Substs.remove_l l x)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Pulse.Checker.Prover.Substs.ss_dom",
"Pulse.Checker.Prover.Substs.ss_map",
"Pulse.Checker.Prover.Substs.is_dom",
"Pulse.Syntax.Base.var",
"Prims.b2t",
"FStar.Map.contains",
"Pulse.Syntax.Base.term",
"Prims.list",
"Prims.op_Equality",
"Prims.bool",
"Prims._assert",
"FStar.Map.equal",
"FStar.... | [
"recursion"
] | false | false | true | false | false | let rec is_dom_remove (l: ss_dom) (m: ss_map{is_dom l m}) (x: var{Map.contains m x})
: Lemma (is_dom (remove_l l x) (remove_map m x))
[SMTPat (remove_l l x); SMTPat (remove_map m x)] =
| match l with
| [] -> ()
| y :: tl ->
if x = y
then ()
else
let t_y = Map.sel m y in
let m1 = remove_map m y in
is_dom_remove tl m1 x;
assert (is_dom (remove_l tl x) (remove_map m1 x));
is_dom_push (remove_l tl x) (remove_map m1 x) y t_y;
assert (Map.equal (Map.upd (remove_map m1 x) y t_y) ... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.acomp_to_string | val acomp_to_string (c: comp) : Tac string | val acomp_to_string (c: comp) : Tac string | let acomp_to_string (c:comp) : Tac string =
match inspect_comp c with
| C_Total ret ->
"C_Total (" ^ term_to_string ret ^ ")"
| C_GTotal ret ->
"C_GTotal (" ^ term_to_string ret ^ ")"
| C_Lemma pre post patterns ->
"C_Lemma (" ^ term_to_string pre ^ ") (" ^ term_to_string post ^ ")"
| C_Eff us eff... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 86,
"end_line": 124,
"start_col": 0,
"start_line": 110
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: FStar.Stubs.Reflection.Types.comp -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.comp",
"FStar.Stubs.Reflection.V1.Builtins.inspect_comp",
"FStar.Stubs.Reflection.Types.typ",
"Prims.op_Hat",
"Prims.string",
"FStar.Stubs.Tactics.V1.Builtins.term_to_string",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V1.Data.universes",
"FStar.Stubs.... | [] | false | true | false | false | false | let acomp_to_string (c: comp) : Tac string =
| match inspect_comp c with
| C_Total ret -> "C_Total (" ^ term_to_string ret ^ ")"
| C_GTotal ret -> "C_GTotal (" ^ term_to_string ret ^ ")"
| C_Lemma pre post patterns -> "C_Lemma (" ^ term_to_string pre ^ ") (" ^ term_to_string post ^ ")"
| C_Eff us eff_name result eff_args _ ->
let eff_arg_to_string (a: term) : Tac... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bind_map_get | val bind_map_get (#a: Type) (m: bind_map a) (b: bv) : Tot (option a) | val bind_map_get (#a: Type) (m: bind_map a) (b: bv) : Tot (option a) | let rec bind_map_get (#a:Type) (m:bind_map a) (b:bv) : Tot (option a) =
match m with
| [] -> None
| (b', x)::m' ->
if compare_bv b b' = Order.Eq then Some x else bind_map_get m' b | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 202,
"start_col": 0,
"start_line": 198
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: FStar.InteractiveHelpers.Base.bind_map a -> b: FStar.Stubs.Reflection.Types.bv
-> FStar.Pervasives.Native.option a | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.bind_map",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Pervasives.Native.None",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.op_Equality",
"FStar.Order.order",
"FStar.Stubs.Reflection.V1.Builtins.compare_bv",
"FStar.Order.Eq",
"FStar.Pervasives.Native.Some",
... | [
"recursion"
] | false | false | false | true | false | let rec bind_map_get (#a: Type) (m: bind_map a) (b: bv) : Tot (option a) =
| match m with
| [] -> None
| (b', x) :: m' -> if compare_bv b b' = Order.Eq then Some x else bind_map_get m' b | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.push_fresh_var | val push_fresh_var : env -> string -> typ -> Tac (term & binder & env) | val push_fresh_var : env -> string -> typ -> Tac (term & binder & env) | let push_fresh_var e0 basename ty =
let e1, b1 = push_fresh_binder e0 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
v1, b1, e1 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 351,
"start_col": 0,
"start_line": 348
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e0: FStar.Stubs.Reflection.Types.env ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
((FStar.Stubs.Reflection.Types.term * FStar.Stubs.Reflection.Types.binder) *
FStar.Stubs.Reflection.Types.env) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple3",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.tuple3",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.V1... | [] | false | true | false | false | false | let push_fresh_var e0 basename ty =
| let e1, b1 = push_fresh_binder e0 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
v1, b1, e1 | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.push_fresh_binder | val push_fresh_binder (e: env) (basename: string) (ty: typ) : Tac (env & binder) | val push_fresh_binder (e: env) (basename: string) (ty: typ) : Tac (env & binder) | let push_fresh_binder (e : env) (basename : string) (ty : typ) : Tac (env & binder) =
let b = fresh_binder e basename ty in
let e' = push_binder e b in
e', b | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 341,
"start_col": 0,
"start_line": 338
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
(FStar.Stubs.Reflection.Types.env * FStar.Stubs.Reflection.Types.binder) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Stubs.Reflection.V1.Builtins.push_binder",
"FStar.Pervasives.Native.tuple2",
"FStar.InteractiveHelpers.Base.fresh_binder"
] | [] | false | true | false | false | false | let push_fresh_binder (e: env) (basename: string) (ty: typ) : Tac (env & binder) =
| let b = fresh_binder e basename ty in
let e' = push_binder e b in
e', b | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.norm_apply_subst | val norm_apply_subst : env -> term -> list ((bv & typ) & term) -> Tac term | val norm_apply_subst : env -> term -> list ((bv & typ) & term) -> Tac term | let norm_apply_subst e t subst =
let bl, vl = unzip subst in
let bl = List.Tot.map (fun (bv,ty) -> mk_binder bv ty) bl in
let t1 = mk_abs bl t in
let t2 = mk_e_app t1 vl in
norm_term_env e [] t2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 391,
"start_col": 0,
"start_line": 386
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
t: FStar.Stubs.Reflection.Types.term ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Tactics.V1.Builtins.norm_term_env",
"Prims.Nil",
"FStar.Pervasives.norm_step",
"FStar.Reflect... | [] | false | true | false | false | false | let norm_apply_subst e t subst =
| let bl, vl = unzip subst in
let bl = List.Tot.map (fun (bv, ty) -> mk_binder bv ty) bl in
let t1 = mk_abs bl t in
let t2 = mk_e_app t1 vl in
norm_term_env e [] t2 | false |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.nt_substs_st_comp_commutes | val nt_substs_st_comp_commutes (s:st_comp) (nts:nt_substs)
: Lemma (ensures
nt_subst_st_comp s nts ==
{ s with res = nt_subst_term s.res nts;
pre = nt_subst_term s.pre nts;
post = nt_subst_term s.post nts; }) // no shifting required
[SMT... | val nt_substs_st_comp_commutes (s:st_comp) (nts:nt_substs)
: Lemma (ensures
nt_subst_st_comp s nts ==
{ s with res = nt_subst_term s.res nts;
pre = nt_subst_term s.pre nts;
post = nt_subst_term s.post nts; }) // no shifting required
[SMT... | let rec nt_substs_st_comp_commutes (s:st_comp) (nts:nt_substs)
: Lemma (ensures
nt_subst_st_comp s nts ==
{ s with res = nt_subst_term s.res nts;
pre = nt_subst_term s.pre nts;
post = nt_subst_term s.post nts; }) // no shifting required
... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 89,
"end_line": 256,
"start_col": 0,
"start_line": 246
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Pulse.Syntax.Base.st_comp -> nts: Pulse.Checker.Prover.Substs.nt_substs
-> FStar.Pervasives.Lemma
(ensures
Pulse.Checker.Prover.Substs.nt_subst_st_comp s nts ==
Pulse.Syntax.Base.Mkst_comp (Mkst_comp?.u s)
(Pulse.Checker.Prover.Substs.nt_subst_term (Mkst_comp?.res s) nts)
... | FStar.Pervasives.Lemma | [
"",
"lemma"
] | [] | [
"Pulse.Syntax.Base.st_comp",
"Pulse.Checker.Prover.Substs.nt_substs",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Base.term",
"Prims.list",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Checker.Prover.Substs.nt_substs_st_comp_commutes",
"Pulse.Checker.Prover.Substs.nt_subst_st_comp",
"Prims.Cons",
"Pulse.Syn... | [
"recursion"
] | false | false | true | false | false | let rec nt_substs_st_comp_commutes (s: st_comp) (nts: nt_substs)
: Lemma
(ensures
nt_subst_st_comp s nts ==
{
s with
res = nt_subst_term s.res nts;
pre = nt_subst_term s.pre nts;
post = nt_subst_term s.post nts
}) (decreases nts) [SMTPat (nt_subs... | match nts with
| [] -> ()
| NT x e :: nts_tl -> nt_substs_st_comp_commutes (nt_subst_st_comp s [NT x e]) nts_tl | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.push_two_fresh_vars | val push_two_fresh_vars : env -> string -> typ -> Tac (term & binder & term & binder & env) | val push_two_fresh_vars : env -> string -> typ -> Tac (term & binder & term & binder & env) | let push_two_fresh_vars e0 basename ty =
let e1, b1 = push_fresh_binder e0 basename ty in
let e2, b2 = push_fresh_binder e1 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
let v2 = pack (Tv_Var (bv_of_binder b2)) in
v1, b1, v2, b2, e2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 365,
"start_col": 0,
"start_line": 360
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e0: FStar.Stubs.Reflection.Types.env ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
((((FStar.Stubs.Reflection.Types.term * FStar.Stubs.Reflection.Types.binder) *
FStar.Stubs.Reflection.Types.term) *
FStar.Stubs.Reflection.Types.binder) *
... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple5",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.tuple5",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.V1... | [] | false | true | false | false | false | let push_two_fresh_vars e0 basename ty =
| let e1, b1 = push_fresh_binder e0 basename ty in
let e2, b2 = push_fresh_binder e1 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
let v2 = pack (Tv_Var (bv_of_binder b2)) in
v1, b1, v2, b2, e2 | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_fresh_var | val genv_push_fresh_var : genv -> string -> typ -> Tac (term & binder & genv) | val genv_push_fresh_var : genv -> string -> typ -> Tac (term & binder & genv) | let genv_push_fresh_var ge0 basename ty =
let ge1, b1 = genv_push_fresh_binder ge0 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
v1, b1, ge1 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 357,
"start_col": 0,
"start_line": 354
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge0: FStar.InteractiveHelpers.Base.genv ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
((FStar.Stubs.Reflection.Types.term * FStar.Stubs.Reflection.Types.binder) *
FStar.InteractiveHelpers.Base.genv) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple3",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.tuple3",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.... | [] | false | true | false | false | false | let genv_push_fresh_var ge0 basename ty =
| let ge1, b1 = genv_push_fresh_binder ge0 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
v1, b1, ge1 | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_two_fresh_vars | val genv_push_two_fresh_vars : genv -> string -> typ -> Tac (term & binder & term & binder & genv) | val genv_push_two_fresh_vars : genv -> string -> typ -> Tac (term & binder & term & binder & genv) | let genv_push_two_fresh_vars ge0 basename ty =
let ge1, b1 = genv_push_fresh_binder ge0 basename ty in
let ge2, b2 = genv_push_fresh_binder ge1 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
let v2 = pack (Tv_Var (bv_of_binder b2)) in
v1, b1, v2, b2, ge2 | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 373,
"start_col": 0,
"start_line": 368
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge0: FStar.InteractiveHelpers.Base.genv ->
basename: Prims.string ->
ty: FStar.Stubs.Reflection.Types.typ
-> FStar.Tactics.Effect.Tac
((((FStar.Stubs.Reflection.Types.term * FStar.Stubs.Reflection.Types.binder) *
FStar.Stubs.Reflection.Types.term) *
FStar.Stubs.Reflection.Types.binder) *
... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.string",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Stubs.Reflection.Types.binder",
"FStar.Pervasives.Native.Mktuple5",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.tuple5",
"FStar.Stubs.Tactics.V1.Builtins.pack",
"FStar.Stubs.Reflection.... | [] | false | true | false | false | false | let genv_push_two_fresh_vars ge0 basename ty =
| let ge1, b1 = genv_push_fresh_binder ge0 basename ty in
let ge2, b2 = genv_push_fresh_binder ge1 basename ty in
let v1 = pack (Tv_Var (bv_of_binder b1)) in
let v2 = pack (Tv_Var (bv_of_binder b2)) in
v1, b1, v2, b2, ge2 | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.apply_subst_in_comp | val apply_subst_in_comp : e: FStar.Stubs.Reflection.Types.env ->
c: FStar.Stubs.Reflection.Types.comp ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.comp | let apply_subst_in_comp = norm_apply_subst_in_comp | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 585,
"start_col": 0,
"start_line": 585
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
c: FStar.Stubs.Reflection.Types.comp ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.comp | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.norm_apply_subst_in_comp"
] | [] | false | true | false | false | false | let apply_subst_in_comp =
| norm_apply_subst_in_comp | false | |
Pulse.Checker.Prover.Substs.fst | Pulse.Checker.Prover.Substs.nt_subst_comp_commutes | val nt_subst_comp_commutes (c:comp) (nts:nt_substs)
: Lemma (ensures
(let r = nt_subst_comp c nts in
(C_Tot? c ==> r == C_Tot (nt_subst_term (comp_res c) nts)) /\
(C_ST? c ==> r == C_ST (nt_subst_st_comp (st_comp_of_comp c) nts)) /\
(C_STAtomic? c ==> r == C_STAt... | val nt_subst_comp_commutes (c:comp) (nts:nt_substs)
: Lemma (ensures
(let r = nt_subst_comp c nts in
(C_Tot? c ==> r == C_Tot (nt_subst_term (comp_res c) nts)) /\
(C_ST? c ==> r == C_ST (nt_subst_st_comp (st_comp_of_comp c) nts)) /\
(C_STAtomic? c ==> r == C_STAt... | let rec nt_subst_comp_commutes (c:comp) (nts:nt_substs)
: Lemma (ensures
(let r = nt_subst_comp c nts in
(C_Tot? c ==> r == C_Tot (nt_subst_term (comp_res c) nts)) /\
(C_ST? c ==> r == C_ST (nt_subst_st_comp (st_comp_of_comp c) nts)) /\
(C_STAtomic? c ==> r == C_... | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 82,
"end_line": 271,
"start_col": 0,
"start_line": 258
} | (*
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.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checker.Pure.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Typing.Env",
"short_module": "Env"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
... | {
"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 | c: Pulse.Syntax.Base.comp -> nts: Pulse.Checker.Prover.Substs.nt_substs
-> FStar.Pervasives.Lemma
(ensures
(let r = Pulse.Checker.Prover.Substs.nt_subst_comp c nts in
(C_Tot? c ==>
r ==
Pulse.Syntax.Base.C_Tot
(Pulse.Checker.Prover.Substs.nt_subst_term (Puls... | FStar.Pervasives.Lemma | [
"",
"lemma"
] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Checker.Prover.Substs.nt_substs",
"Pulse.Syntax.Base.var",
"Pulse.Syntax.Base.term",
"Prims.list",
"Pulse.Syntax.Naming.subst_elt",
"Pulse.Checker.Prover.Substs.nt_subst_comp_commutes",
"Pulse.Checker.Prover.Substs.nt_subst_comp",
"Prims.Cons",
"Pulse.Syntax.Naming... | [
"recursion"
] | false | false | true | false | false | let rec nt_subst_comp_commutes (c: comp) (nts: nt_substs)
: Lemma
(ensures
(let r = nt_subst_comp c nts in
(C_Tot? c ==> r == C_Tot (nt_subst_term (comp_res c) nts)) /\
(C_ST? c ==> r == C_ST (nt_subst_st_comp (st_comp_of_comp c) nts)) /\
(C_STAtomic? c ==>
r ... | match nts with
| [] -> ()
| NT x e :: nts_tl -> nt_subst_comp_commutes (nt_subst_comp c [NT x e]) nts_tl | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bind_map_get_from_name | val bind_map_get_from_name (#a: Type) (m: bind_map a) (name: string) : Tac (option (bv & a)) | val bind_map_get_from_name (#a: Type) (m: bind_map a) (name: string) : Tac (option (bv & a)) | let rec bind_map_get_from_name (#a:Type) (m:bind_map a) (name:string) :
Tac (option (bv & a)) =
match m with
| [] -> None
| (b', x)::m' ->
let b'v = inspect_bv b' in
if unseal b'v.bv_ppname = name then Some (b', x) else bind_map_get_from_name m' name | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 88,
"end_line": 210,
"start_col": 0,
"start_line": 204
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: FStar.InteractiveHelpers.Base.bind_map a -> name: Prims.string
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option (FStar.Stubs.Reflection.Types.bv * a)) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.bind_map",
"Prims.string",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Pervasives.Native.option",
"Prims.list",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.Mktuple2",
"Prims.bool",
"FStar.... | [
"recursion"
] | false | true | false | false | false | let rec bind_map_get_from_name (#a: Type) (m: bind_map a) (name: string) : Tac (option (bv & a)) =
| match m with
| [] -> None
| (b', x) :: m' ->
let b'v = inspect_bv b' in
if unseal b'v.bv_ppname = name then Some (b', x) else bind_map_get_from_name m' name | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.apply_subst | val apply_subst : e: FStar.Stubs.Reflection.Types.env ->
t: FStar.Stubs.Reflection.Types.term ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | let apply_subst = norm_apply_subst | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 584,
"start_col": 0,
"start_line": 584
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
t: FStar.Stubs.Reflection.Types.term ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.norm_apply_subst"
] | [] | false | true | false | false | false | let apply_subst =
| norm_apply_subst | false | |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_push_bv | val genv_push_bv (ge: genv) (b: bv) (sort: typ) (abs: bool) (t: option term) : Tac genv | val genv_push_bv (ge: genv) (b: bv) (sort: typ) (abs: bool) (t: option term) : Tac genv | let genv_push_bv (ge:genv) (b:bv) (sort:typ) (abs:bool) (t:option term) : Tac genv =
let br = mk_binder b sort in
let sv = genv_get_from_name ge (name_of_bv b) in
let svars' = if Some? sv then fst (Some?.v sv) :: ge.svars else ge.svars in
let e' = push_binder ge.env br in
let tm = if Some? t then Some?.v t el... | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 279,
"start_col": 0,
"start_line": 272
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ge: FStar.InteractiveHelpers.Base.genv ->
b: FStar.Stubs.Reflection.Types.bv ->
sort: FStar.Stubs.Reflection.Types.typ ->
abs: Prims.bool ->
t: FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term
-> FStar.Tactics.Effect.Tac FStar.InteractiveHelpers.Base.genv | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.term",
"FStar.InteractiveHelpers.Base.mk_genv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasiv... | [] | false | true | false | false | false | let genv_push_bv (ge: genv) (b: bv) (sort: typ) (abs: bool) (t: option term) : Tac genv =
| let br = mk_binder b sort in
let sv = genv_get_from_name ge (name_of_bv b) in
let svars' = if Some? sv then fst (Some?.v sv) :: ge.svars else ge.svars in
let e' = push_binder ge.env br in
let tm = if Some? t then Some?.v t else pack (Tv_Var b) in
let bmap' = bind_map_push ge.bmap b (sort, abs, tm) in
mk_genv e' bmap' s... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.genv_get_from_name | val genv_get_from_name (ge: genv) (name: string) : Tac (option ((bv & typ) & (bool & term))) | val genv_get_from_name (ge: genv) (name: string) : Tac (option ((bv & typ) & (bool & term))) | let genv_get_from_name (ge:genv) (name:string) : Tac (option ((bv & typ) & (bool & term))) =
(* tweak return a bit to include sort *)
match bind_map_get_from_name ge.bmap name with
| None -> None
| Some (bv, (sort, b, x)) -> Some ((bv, sort), (b, x)) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 268,
"start_col": 0,
"start_line": 264
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> name: Prims.string
-> FStar.Tactics.Effect.Tac
(FStar.Pervasives.Native.option ((FStar.Stubs.Reflection.Types.bv *
FStar.Stubs.Reflection.Types.typ) *
(Prims.bool * FStar.Stubs.Reflection.Types.term))) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"Prims.string",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Stubs.Reflection.Types.term",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native... | [] | false | true | false | false | false | let genv_get_from_name (ge: genv) (name: string) : Tac (option ((bv & typ) & (bool & term))) =
| match bind_map_get_from_name ge.bmap name with
| None -> None
| Some (bv, (sort, b, x)) -> Some ((bv, sort), (b, x)) | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.bv_is_abstract | val bv_is_abstract : genv -> bv -> Tot bool | val bv_is_abstract : genv -> bv -> Tot bool | let bv_is_abstract ge bv =
match genv_get ge bv with
| None -> false
| Some (_, abs, _) -> abs | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 301,
"start_col": 0,
"start_line": 298
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ge: FStar.InteractiveHelpers.Base.genv -> bv: FStar.Stubs.Reflection.Types.bv -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"FStar.InteractiveHelpers.Base.genv",
"FStar.Stubs.Reflection.Types.bv",
"FStar.InteractiveHelpers.Base.genv_get",
"FStar.Stubs.Reflection.Types.typ",
"Prims.bool",
"FStar.Stubs.Reflection.Types.term"
] | [] | false | false | false | true | false | let bv_is_abstract ge bv =
| match genv_get ge bv with
| None -> false
| Some (_, abs, _) -> abs | false |
Test.Vectors.Chacha20Poly1305.fst | Test.Vectors.Chacha20Poly1305.input8 | val input8:(b: B.buffer UInt8.t {B.length b = 513 /\ B.recallable b /\ B.disjoint b aad8}) | val input8:(b: B.buffer UInt8.t {B.length b = 513 /\ B.recallable b /\ B.disjoint b aad8}) | let input8: (b: B.buffer UInt8.t { B.length b = 513 /\ B.recallable b /\ B.disjoint b aad8 }) =
B.recall aad8;[@inline_let] let l = [ 0xe6uy; 0xc3uy; 0xdbuy; 0x63uy; 0x55uy; 0x15uy; 0xe3uy; 0x5buy; 0xb7uy; 0x4buy; 0x27uy; 0x8buy; 0x5auy; 0xdduy; 0xc2uy; 0xe8uy; 0x3auy; 0x6buy; 0xd7uy; 0x81uy; 0x96uy; 0x35uy; 0x97u... | {
"file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 354,
"start_col": 0,
"start_line": 351
} | module Test.Vectors.Chacha20Poly1305
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) =
[@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_fil... | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSt... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | b:
LowStar.Buffer.buffer FStar.UInt8.t
{ LowStar.Monotonic.Buffer.length b = 513 /\ LowStar.Monotonic.Buffer.recallable b /\
LowStar.Monotonic.Buffer.disjoint b Test.Vectors.Chacha20Poly1305.aad8 } | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length"... | [] | false | false | false | false | false | let input8:(b: B.buffer UInt8.t {B.length b = 513 /\ B.recallable b /\ B.disjoint b aad8}) =
| B.recall aad8;
[@@ inline_let ]let l =
[
0xe6uy; 0xc3uy; 0xdbuy; 0x63uy; 0x55uy; 0x15uy; 0xe3uy; 0x5buy; 0xb7uy; 0x4buy; 0x27uy; 0x8buy;
0x5auy; 0xdduy; 0xc2uy; 0xe8uy; 0x3auy; 0x6buy; 0xd7uy; 0x81uy; 0x96uy; 0x35uy; 0x97uy; 0xcauy;
0xd7uy; 0x68uy; 0xe8uy; 0xefuy; 0xceuy; 0xabuy; 0xdauy; 0x09uy; 0x6euy; 0... | false |
FStar.InteractiveHelpers.Base.fst | FStar.InteractiveHelpers.Base.opt_apply_subst | val opt_apply_subst : env -> option term -> list ((bv & typ) & term) -> Tac (option term) | val opt_apply_subst : env -> option term -> list ((bv & typ) & term) -> Tac (option term) | let opt_apply_subst e opt_t subst =
match opt_t with
| None -> None
| Some t -> Some (apply_subst e t subst) | {
"file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 591,
"start_col": 0,
"start_line": 588
} | module FStar.InteractiveHelpers.Base
open FStar.List
open FStar.Tactics
open FStar.Mul
#push-options "--z3rlimit 15 --fuel 0 --ifuel 1"
(*** Utilities *)
val bv_eq : bv -> bv -> Tot bool
let bv_eq (bv1 bv2 : bv) =
let bvv1 = inspect_bv bv1 in
let bvv2 = inspect_bv bv2 in
(* We don't check for type equality: th... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.Util.fst.checked",
"FStar.Tactics.fst.checked",
"FStar.Sealed.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Order.fst.checked",
"FStar.Mul.fst.checked",
"F... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
e: FStar.Stubs.Reflection.Types.env ->
opt_t: FStar.Pervasives.Native.option FStar.Stubs.Reflection.Types.term ->
subst:
Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) *
FStar.Stubs.Reflection.Types.term)
-> FStar.Tactics.Effect.Tac (FStar.Pervasives.Nati... | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Stubs.Reflection.Types.env",
"FStar.Pervasives.Native.option",
"FStar.Stubs.Reflection.Types.term",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Stubs.Reflection.Types.bv",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.Some",
"FStar.I... | [] | false | true | false | false | false | let opt_apply_subst e opt_t subst =
| match opt_t with
| None -> None
| Some t -> Some (apply_subst e t subst) | false |
Spec.Frodo.Sample.fst | Spec.Frodo.Sample.frodo_sample_f | val frodo_sample_f:
a:frodo_alg
-> t:uint16
-> i:size_nat{i < cdf_table_len a}
-> res:nat{res = 0 \/ res = 1} | val frodo_sample_f:
a:frodo_alg
-> t:uint16
-> i:size_nat{i < cdf_table_len a}
-> res:nat{res = 0 \/ res = 1} | let frodo_sample_f a t i =
if v t > v (cdf_table a).[i] then 1 else 0 | {
"file_name": "specs/frodo/Spec.Frodo.Sample.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 26,
"start_col": 0,
"start_line": 25
} | module Spec.Frodo.Sample
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
open Spec.Frodo.Lemmas
open Spec.Frodo.Params
module LSeq = Lib.Sequence
module Matrix = Spec.Matrix
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val frodo_sampl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.Lemmas.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "Matrix"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Frodo.Params.frodo_alg ->
t: Lib.IntTypes.uint16 ->
i: Lib.IntTypes.size_nat{i < Spec.Frodo.Params.cdf_table_len a}
-> res: Prims.nat{res = 0 \/ res = 1} | Prims.Tot | [
"total"
] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Lib.IntTypes.uint16",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.Frodo.Params.cdf_table_len",
"Prims.op_GreaterThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U16",
"Lib.IntTypes.SEC",
"Lib.Sequence.op_String_Access",
"Spec.Frodo.Params.cdf_table",
... | [] | false | false | false | false | false | let frodo_sample_f a t i =
| if v t > v (cdf_table a).[ i ] then 1 else 0 | false |
Spec.Frodo.Sample.fst | Spec.Frodo.Sample.frodo_sample_res | val frodo_sample_res:
a:frodo_alg
-> sign:uint16{v sign <= 1}
-> e:nat{e < cdf_table_len a}
-> uint16 | val frodo_sample_res:
a:frodo_alg
-> sign:uint16{v sign <= 1}
-> e:nat{e < cdf_table_len a}
-> uint16 | let frodo_sample_res a r0 e =
let open FStar.Math.Lib in
let e = (powx (-1) (v r0)) * e in
assert_norm (powx (-1) 1 == -1);
assert_norm (powx (-1) 0 == 1);
assert (-cdf_table_len a < e /\ e < cdf_table_len a);
u16 (e % modulus U16) | {
"file_name": "specs/frodo/Spec.Frodo.Sample.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 53,
"start_col": 0,
"start_line": 47
} | module Spec.Frodo.Sample
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
open Spec.Frodo.Lemmas
open Spec.Frodo.Params
module LSeq = Lib.Sequence
module Matrix = Spec.Matrix
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val frodo_sampl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.Lemmas.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "Matrix"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Frodo.Params.frodo_alg ->
sign: Lib.IntTypes.uint16{Lib.IntTypes.v sign <= 1} ->
e: Prims.nat{e < Spec.Frodo.Params.cdf_table_len a}
-> Lib.IntTypes.uint16 | Prims.Tot | [
"total"
] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Lib.IntTypes.uint16",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U16",
"Lib.IntTypes.SEC",
"Prims.nat",
"Prims.op_LessThan",
"Spec.Frodo.Params.cdf_table_len",
"Lib.IntTypes.u16",
"Prims.op_Modulus",
"Lib.IntTypes.modulus",
"Pri... | [] | false | false | false | false | false | let frodo_sample_res a r0 e =
| let open FStar.Math.Lib in
let e = (powx (- 1) (v r0)) * e in
assert_norm (powx (- 1) 1 == - 1);
assert_norm (powx (- 1) 0 == 1);
assert (- cdf_table_len a < e /\ e < cdf_table_len a);
u16 (e % modulus U16) | false |
MerkleTree.Low.fst | MerkleTree.Low.construct_rhs | val construct_rhs:
#hsz:hash_size_t ->
#hash_spec:Ghost.erased (MTS.hash_fun_t #(U32.v hsz)) ->
lv:uint32_t{lv <= merkle_tree_size_lg} ->
hs:hash_vv hsz {V.size_of hs = merkle_tree_size_lg} ->
rhs:hash_vec #hsz {V.size_of rhs = merkle_tree_size_lg} ->
i:index_t ->
j:index_t{i <= j && (U32.v j) < pow2 (32 ... | val construct_rhs:
#hsz:hash_size_t ->
#hash_spec:Ghost.erased (MTS.hash_fun_t #(U32.v hsz)) ->
lv:uint32_t{lv <= merkle_tree_size_lg} ->
hs:hash_vv hsz {V.size_of hs = merkle_tree_size_lg} ->
rhs:hash_vec #hsz {V.size_of rhs = merkle_tree_size_lg} ->
i:index_t ->
j:index_t{i <= j && (U32.v j) < pow2 (32 ... | let rec construct_rhs #hsz #hash_spec lv hs rhs i j acc actd hash_fun =
let hh0 = HST.get () in
if j = 0ul then begin
assert (RV.rv_inv hh0 hs);
assert (mt_safe_elts #hsz hh0 lv hs i j);
mt_safe_elts_spec #hsz hh0 lv hs 0ul 0ul;
assert (MTH.hs_wf_elts #(U32.v hsz)
(U32.v ... | {
"file_name": "src/MerkleTree.Low.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 5,
"end_line": 1509,
"start_col": 0,
"start_line": 1354
} | module MerkleTree.Low
open EverCrypt.Helpers
open FStar.All
open FStar.Integers
open FStar.Mul
open LowStar.Buffer
open LowStar.BufferOps
open LowStar.Vector
open LowStar.Regional
open LowStar.RVector
open LowStar.Regional.Instances
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module MHS = FStar.Mo... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.fst.checked",
"MerkleTree.Low.VectorExtras.fst.checked",
"MerkleTree.Low.Hashfunctions.fst.checked",
"MerkleTree.Low.Datastructures.fst.checked",
"LowStar.Vector.fst.checked"... | [
{
"abbrev": false,
"full_module": "MerkleTree.Low.VectorExtras",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.Low.Hashfunctions",
"short_module": null
},
{
"abbrev": false,
"full_module": "MerkleTree.Low.Datastructures",
"short_module": null
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"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 |
lv: LowStar.Vector.uint32_t{lv <= MerkleTree.Low.merkle_tree_size_lg} ->
hs:
MerkleTree.Low.Datastructures.hash_vv hsz
{LowStar.Vector.size_of hs = MerkleTree.Low.merkle_tree_size_lg} ->
rhs:
MerkleTree.Low.Datastructures.hash_vec
{LowStar.Vector.size_of rhs = MerkleTree.Low.mer... | FStar.HyperStack.ST.ST | [
""
] | [] | [
"MerkleTree.Low.Datastructures.hash_size_t",
"FStar.Ghost.erased",
"MerkleTree.Spec.hash_fun_t",
"FStar.UInt32.v",
"LowStar.Vector.uint32_t",
"Prims.b2t",
"FStar.Integers.op_Less_Equals",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"MerkleTree.Low.merkle_tree_size_lg",
"MerkleTree.Low.Datas... | [
"recursion"
] | false | true | false | false | false | let rec construct_rhs #hsz #hash_spec lv hs rhs i j acc actd hash_fun =
| let hh0 = HST.get () in
if j = 0ul
then
(assert (RV.rv_inv hh0 hs);
assert (mt_safe_elts #hsz hh0 lv hs i j);
mt_safe_elts_spec #hsz hh0 lv hs 0ul 0ul;
assert (MTH.hs_wf_elts #(U32.v hsz) (U32.v lv) (RV.as_seq hh0 hs) (U32.v i) (U32.v j));
let hh1 = HST.get () in
assert (MTH.construct_rhs #(U32.v ... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.