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
Steel.Effect.Common.fst
Steel.Effect.Common.star_congruence
val star_congruence (p1 p2 p3 p4:vprop) : Lemma (requires p1 `equiv` p3 /\ p2 `equiv` p4) (ensures (p1 `star` p2) `equiv` (p3 `star` p4))
val star_congruence (p1 p2 p3 p4:vprop) : Lemma (requires p1 `equiv` p3 /\ p2 `equiv` p4) (ensures (p1 `star` p2) `equiv` (p3 `star` p4))
let star_congruence p1 p2 p3 p4 = Mem.star_congruence (hp_of p1) (hp_of p2) (hp_of p3) (hp_of p4)
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 97, "end_line": 112, "start_col": 0, "start_line": 112 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
p1: Steel.Effect.Common.vprop -> p2: Steel.Effect.Common.vprop -> p3: Steel.Effect.Common.vprop -> p4: Steel.Effect.Common.vprop -> FStar.Pervasives.Lemma (requires Steel.Effect.Common.equiv p1 p3 /\ Steel.Effect.Common.equiv p2 p4) (ensures Steel.Effect.Common.equiv (Steel.Effect...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.star_congruence", "Steel.Effect.Common.hp_of", "Prims.unit" ]
[]
true
false
true
false
false
let star_congruence p1 p2 p3 p4 =
Mem.star_congruence (hp_of p1) (hp_of p2) (hp_of p3) (hp_of p4)
false
Steel.Effect.Common.fst
Steel.Effect.Common.vrefine_sel
val vrefine_sel (v: vprop) (p: (normal (t_of v) -> Tot prop)) : Tot (selector (vrefine_t v p) (vrefine_hp v p))
val vrefine_sel (v: vprop) (p: (normal (t_of v) -> Tot prop)) : Tot (selector (vrefine_t v p) (vrefine_hp v p))
let vrefine_sel v p = assert (sel_depends_only_on (vrefine_sel' v p)); assert (sel_depends_only_on_core (vrefine_sel' v p)); vrefine_sel' v p
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 135, "start_col": 0, "start_line": 131 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.prop) -> Steel.Effect.Common.selector (Steel.Effect.Common.vrefine_t v p) (Steel.Effect.Common.vrefine_hp v p)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Effect.Common.vrefine_sel'", "Prims.unit", "Prims._assert", "Steel.Effect.Common.sel_depends_only_on_core", "Steel.Effect.Common.vrefine_t", "Steel.Effect.Common.vrefine_hp", "Steel.Effect...
[]
false
false
false
false
false
let vrefine_sel v p =
assert (sel_depends_only_on (vrefine_sel' v p)); assert (sel_depends_only_on_core (vrefine_sel' v p)); vrefine_sel' v p
false
Steel.Effect.Common.fst
Steel.Effect.Common.vrefine_hp
val vrefine_hp (v: vprop) (p: (normal (t_of v) -> Tot prop)) : Tot (slprop u#1)
val vrefine_hp (v: vprop) (p: (normal (t_of v) -> Tot prop)) : Tot (slprop u#1)
let vrefine_hp v p = refine_slprop (hp_of v) (vrefine_am v p)
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 119, "start_col": 0, "start_line": 117 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.prop) -> Steel.Memory.slprop
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.refine_slprop", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.vrefine_am", "Steel.Memory.slprop" ]
[]
false
false
false
false
false
let vrefine_hp v p =
refine_slprop (hp_of v) (vrefine_am v p)
false
Steel.Effect.Common.fst
Steel.Effect.Common.vdep_sel'
val vdep_sel' (v: vprop) (p: (t_of v -> Tot vprop)) : Tot (selector' (vdep_t v p) (vdep_hp v p))
val vdep_sel' (v: vprop) (p: (t_of v -> Tot vprop)) : Tot (selector' (vdep_t v p) (vdep_hp v p))
let vdep_sel' (v: vprop) (p: t_of v -> Tot vprop) : Tot (selector' (vdep_t v p) (vdep_hp v p)) = fun (m: Mem.hmem (vdep_hp v p)) -> interp_vdep_hp v p m; let x = sel_of v m in let y = sel_of (p (sel_of v m)) m in (| x, y |)
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 183, "start_col": 0, "start_line": 174 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> Steel.Effect.Common.selector' (Steel.Effect.Common.vdep_t v p) (Steel.Effect.Common.vdep_hp v p)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Memory.hmem", "Steel.Effect.Common.vdep_hp", "Prims.Mkdtuple2", "Steel.Effect.Common.vdep_payload", "Steel.Effect.Common.sel_of", "Prims.unit", "Steel.Effect.Common.interp_vdep_hp", "Steel.Effect.Common.vdep_t", "Steel.Effect.Common...
[]
false
false
false
false
false
let vdep_sel' (v: vprop) (p: (t_of v -> Tot vprop)) : Tot (selector' (vdep_t v p) (vdep_hp v p)) =
fun (m: Mem.hmem (vdep_hp v p)) -> interp_vdep_hp v p m; let x = sel_of v m in let y = sel_of (p (sel_of v m)) m in (| x, y |)
false
Steel.Effect.Common.fst
Steel.Effect.Common.cm_identity
val cm_identity (x:vprop) : Lemma ((emp `star` x) `equiv` x)
val cm_identity (x:vprop) : Lemma ((emp `star` x) `equiv` x)
let cm_identity x = Mem.emp_unit (hp_of x); Mem.star_commutative (hp_of x) Mem.emp
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 109, "start_col": 0, "start_line": 107 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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: Steel.Effect.Common.vprop -> FStar.Pervasives.Lemma (ensures Steel.Effect.Common.equiv (Steel.Effect.Common.star Steel.Effect.Common.emp x) x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.star_commutative", "Steel.Effect.Common.hp_of", "Steel.Memory.emp", "Prims.unit", "Steel.Memory.emp_unit" ]
[]
true
false
true
false
false
let cm_identity x =
Mem.emp_unit (hp_of x); Mem.star_commutative (hp_of x) Mem.emp
false
Steel.Effect.Common.fst
Steel.Effect.Common.vrefine_am
val vrefine_am (v: vprop) (p: (t_of v -> Tot prop)) : Tot (a_mem_prop (hp_of v))
val vrefine_am (v: vprop) (p: (t_of v -> Tot prop)) : Tot (a_mem_prop (hp_of v))
let vrefine_am (v: vprop) (p: (t_of v -> Tot prop)) : Tot (a_mem_prop (hp_of v)) = fun h -> p (sel_of v h)
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 115, "start_col": 0, "start_line": 114 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Prims.prop) -> Steel.Memory.a_mem_prop (Steel.Effect.Common.hp_of v)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.hmem", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.sel_of", "Steel.Memory.a_mem_prop" ]
[]
false
false
false
false
false
let vrefine_am (v: vprop) (p: (t_of v -> Tot prop)) : Tot (a_mem_prop (hp_of v)) =
fun h -> p (sel_of v h)
false
FStar.OrdMap.fst
FStar.OrdMap.map_t
val map_t : k: Prims.eqtype -> v: Type -> f: FStar.OrdSet.cmp k -> d: FStar.OrdSet.ordset k f -> Type
let map_t (k:eqtype) (v:Type) (f:cmp k) (d:ordset k f) = g:F.restricted_t k (fun _ -> option v){forall x. mem x d == Some? (g x)}
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 74, "end_line": 23, "start_col": 0, "start_line": 22 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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
k: Prims.eqtype -> v: Type -> f: FStar.OrdSet.cmp k -> d: FStar.OrdSet.ordset k f -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdSet.ordset", "FStar.FunctionalExtensionality.restricted_t", "FStar.Pervasives.Native.option", "Prims.l_Forall", "Prims.eq2", "Prims.bool", "FStar.OrdSet.mem", "FStar.Pervasives.Native.uu___is_Some" ]
[]
false
false
false
false
true
let map_t (k: eqtype) (v: Type) (f: cmp k) (d: ordset k f) =
g: F.restricted_t k (fun _ -> option v) {forall x. mem x d == Some? (g x)}
false
Steel.Effect.Common.fst
Steel.Effect.Common.vdep_sel
val vdep_sel (v: vprop) (p: ( (t_of v) -> Tot vprop)) : Tot (selector (vdep_t v p) (vdep_hp v p))
val vdep_sel (v: vprop) (p: ( (t_of v) -> Tot vprop)) : Tot (selector (vdep_t v p) (vdep_hp v p))
let vdep_sel v p = Classical.forall_intro_2 (Classical.move_requires_2 (fun (m0 m1: mem) -> (join_commutative m0) m1)); vdep_sel' v p
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 188, "start_col": 0, "start_line": 185 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> Steel.Effect.Common.selector (Steel.Effect.Common.vdep_t v p) (Steel.Effect.Common.vdep_hp v p)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Effect.Common.vdep_sel'", "Prims.unit", "FStar.Classical.forall_intro_2", "Steel.Memory.mem", "Prims.l_imp", "Steel.Memory.disjoint", "Prims.l_and", "Prims.eq2", "Steel.Memory.join", "FStar.Classical.move_requires_2", "Steel.Mem...
[]
false
false
false
false
false
let vdep_sel v p =
Classical.forall_intro_2 (Classical.move_requires_2 (fun (m0: mem) (m1: mem) -> (join_commutative m0) m1)); vdep_sel' v p
false
FStar.OrdMap.fst
FStar.OrdMap.empty
val empty : #key:eqtype -> #value:Type -> #f:cmp key -> Tot (ordmap key value f)
val empty : #key:eqtype -> #value:Type -> #f:cmp key -> Tot (ordmap key value f)
let empty (#k:eqtype) (#v:Type) #f = let d = OrdSet.empty in let g = F.on_dom k (fun x -> None) in Mk_map d g
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 32, "start_col": 0, "start_line": 29 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.OrdMap.ordmap key value f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.Mk_map", "FStar.FunctionalExtensionality.restricted_t", "FStar.Pervasives.Native.option", "FStar.FunctionalExtensionality.on_dom", "FStar.Pervasives.Native.None", "FStar.OrdSet.ordset", "FStar.OrdSet.empty", "FStar.OrdMap.ordmap" ]
[]
false
false
false
false
false
let empty (#k: eqtype) (#v: Type) #f =
let d = OrdSet.empty in let g = F.on_dom k (fun x -> None) in Mk_map d g
false
Steel.ST.Array.fst
Steel.ST.Array.ptrdiff
val ptrdiff (#t:_) (#p0 #p1:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (a0:array t) (a1:array t) : ST UP.t (pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (base (ptr_of a0) == base (ptr_of a1) /\ UP.fits (offset (ptr_of a0) - offset (ptr_of a1...
val ptrdiff (#t:_) (#p0 #p1:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (a0:array t) (a1:array t) : ST UP.t (pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 p1 s1) (base (ptr_of a0) == base (ptr_of a1) /\ UP.fits (offset (ptr_of a0) - offset (ptr_of a1...
let ptrdiff #_ #p0 #p1 #s0 #s1 a0 a1 = rewrite (pts_to a0 _ _) (H.pts_to a0 p0 (seq_map raise s0)); rewrite (pts_to a1 _ _) (H.pts_to a1 p1 (seq_map raise s1)); let res = H.ptrdiff a0 a1 in rewrite (H.pts_to a1 _ _) (pts_to a1 _ _); rewrite (H.pts_to a0 _ _) (pts_to a0 _ _); ...
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 556, "start_col": 0, "start_line": 542 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.che...
[ { "abbrev": true, "full_module": "Steel.ST.Reference", "short_module": "R" }, { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a0: Steel.ST.Array.array t -> a1: Steel.ST.Array.array t -> Steel.ST.Effect.ST FStar.PtrdiffT.t
Steel.ST.Effect.ST
[]
[]
[ "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Steel.ST.Array.array", "Steel.ST.Util.return", "FStar.PtrdiffT.t", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.Effect.Common.VStar", "Steel.ST.Array.pts_to", "FStar.Ghost....
[]
false
true
false
false
false
let ptrdiff #_ #p0 #p1 #s0 #s1 a0 a1 =
rewrite (pts_to a0 _ _) (H.pts_to a0 p0 (seq_map raise s0)); rewrite (pts_to a1 _ _) (H.pts_to a1 p1 (seq_map raise s1)); let res = H.ptrdiff a0 a1 in rewrite (H.pts_to a1 _ _) (pts_to a1 _ _); rewrite (H.pts_to a0 _ _) (pts_to a0 _ _); return res
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.op_String_Access
val op_String_Access : s: Lib.Sequence.lseq a len -> i: (n: Prims.nat{n <= Prims.pow2 32 - 1}){i < len} -> r: a{r == FStar.Seq.Base.index (Lib.Sequence.to_seq s) i}
let op_String_Access #a #len = LSeq.index #a #len
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 46, "start_col": 0, "start_line": 46 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
s: Lib.Sequence.lseq a len -> i: (n: Prims.nat{n <= Prims.pow2 32 - 1}){i < len} -> r: a{r == FStar.Seq.Base.index (Lib.Sequence.to_seq s) i}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.Sequence.index", "Lib.Sequence.lseq", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "Prims.op_LessThan", "Prims.eq2", "FStar.Seq.Base.index", "Lib.Sequence.to_seq" ]
[]
false
false
false
false
false
let ( .[] ) #a #len =
LSeq.index #a #len
false
FStar.OrdMap.fst
FStar.OrdMap.insert
val insert : x: a -> s: FStar.OrdSet.ordset a f -> FStar.OrdSet.ordset a f
let insert (#a:eqtype) (#f:cmp a) (x:a) (s:ordset a f) = union #a #f (singleton #a #f x) s
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 90, "end_line": 40, "start_col": 0, "start_line": 40 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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 -> s: FStar.OrdSet.ordset a f -> FStar.OrdSet.ordset a f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdSet.ordset", "FStar.OrdSet.union", "FStar.OrdSet.singleton" ]
[]
false
false
false
false
false
let insert (#a: eqtype) (#f: cmp a) (x: a) (s: ordset a f) =
union #a #f (singleton #a #f x) s
false
FStar.OrdMap.fst
FStar.OrdMap.const_on
val const_on: #key:eqtype -> #value:Type -> #f:cmp key -> d:ordset key f -> x:value -> Tot (ordmap key value f)
val const_on: #key:eqtype -> #value:Type -> #f:cmp key -> d:ordset key f -> x:value -> Tot (ordmap key value f)
let const_on (#k:eqtype) (#v:Type) #f d x = let g = F.on_dom k (fun y -> if mem y d then Some x else None) in Mk_map d g
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 36, "start_col": 0, "start_line": 34 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: FStar.OrdSet.ordset key f -> x: value -> FStar.OrdMap.ordmap key value f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdSet.ordset", "FStar.OrdMap.Mk_map", "FStar.FunctionalExtensionality.restricted_t", "FStar.Pervasives.Native.option", "FStar.FunctionalExtensionality.on_dom", "FStar.OrdSet.mem", "FStar.Pervasives.Native.Some", "Prims.bool", "FStar.Pervasives.Native.N...
[]
false
false
false
false
false
let const_on (#k: eqtype) (#v: Type) #f d x =
let g = F.on_dom k (fun y -> if mem y d then Some x else None) in Mk_map d g
false
FStar.OrdMap.fst
FStar.OrdMap.contains
val contains: #key:eqtype -> #value:Type -> #f:cmp key -> key -> ordmap key value f -> Tot bool
val contains: #key:eqtype -> #value:Type -> #f:cmp key -> key -> ordmap key value f -> Tot bool
let contains (#k:eqtype) (#v:Type) #f x m = mem x (Mk_map?.d m)
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 47, "start_col": 0, "start_line": 47 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: key -> m: FStar.OrdMap.ordmap key value f -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.mem", "FStar.OrdMap.__proj__Mk_map__item__d", "Prims.bool" ]
[]
false
false
false
false
false
let contains (#k: eqtype) (#v: Type) #f x m =
mem x (Mk_map?.d m)
false
Steel.Effect.Common.fst
Steel.Effect.Common.vrefine_sel'
val vrefine_sel' (v: vprop) (p: (t_of v -> Tot prop)) : Tot (selector' (vrefine_t v p) (vrefine_hp v p))
val vrefine_sel' (v: vprop) (p: (t_of v -> Tot prop)) : Tot (selector' (vrefine_t v p) (vrefine_hp v p))
let vrefine_sel' (v: vprop) (p: (t_of v -> Tot prop)) : Tot (selector' (vrefine_t v p) (vrefine_hp v p)) = fun (h: Mem.hmem (vrefine_hp v p)) -> interp_refine_slprop (hp_of v) (vrefine_am v p) h; sel_of v h
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 129, "start_col": 0, "start_line": 125 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Prims.prop) -> Steel.Effect.Common.selector' (Steel.Effect.Common.vrefine_t v p) (Steel.Effect.Common.vrefine_hp v p)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Prims.prop", "Steel.Memory.hmem", "Steel.Effect.Common.vrefine_hp", "Steel.Effect.Common.sel_of", "Prims.unit", "Steel.Memory.interp_refine_slprop", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.vrefine_am", "Steel.Effect.Common.vrefi...
[]
false
false
false
false
false
let vrefine_sel' (v: vprop) (p: (t_of v -> Tot prop)) : Tot (selector' (vrefine_t v p) (vrefine_hp v p)) =
fun (h: Mem.hmem (vrefine_hp v p)) -> interp_refine_slprop (hp_of v) (vrefine_am v p) h; sel_of v h
false
FStar.OrdMap.fst
FStar.OrdMap.select
val select : #key:eqtype -> #value:Type -> #f:cmp key -> k:key -> m:ordmap key value f -> Tot (option value)
val select : #key:eqtype -> #value:Type -> #f:cmp key -> k:key -> m:ordmap key value f -> Tot (option value)
let select (#k:eqtype) (#v:Type) #f x m = (Mk_map?.m m) x
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 38, "start_col": 0, "start_line": 38 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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
k: key -> m: FStar.OrdMap.ordmap key value f -> FStar.Pervasives.Native.option value
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdMap.__proj__Mk_map__item__m", "FStar.Pervasives.Native.option" ]
[]
false
false
false
false
false
let select (#k: eqtype) (#v: Type) #f x m =
(Mk_map?.m m) x
false
Steel.Effect.Common.fst
Steel.Effect.Common.interp_vdep_hp
val interp_vdep_hp (v: vprop) (p: ( (t_of v) -> Tot vprop)) (m: mem) : Lemma (interp (vdep_hp v p) m <==> (interp (hp_of v) m /\ interp (hp_of v `Mem.star` hp_of (p (sel_of v m))) m))
val interp_vdep_hp (v: vprop) (p: ( (t_of v) -> Tot vprop)) (m: mem) : Lemma (interp (vdep_hp v p) m <==> (interp (hp_of v) m /\ interp (hp_of v `Mem.star` hp_of (p (sel_of v m))) m))
let interp_vdep_hp v p m = interp_sdep (hp_of v) (vdep_hp_payload v p) m; let left = interp (vdep_hp v p) m in let right = interp (hp_of v) m /\ interp (hp_of v `Mem.star` hp_of (p (sel_of v m))) m in let f () : Lemma (requires left) (ensures right) = interp_star (hp_of v) (hp_of (p (sel_of v m)))...
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 172, "start_col": 0, "start_line": 153 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> m: Steel.Memory.mem -> FStar.Pervasives.Lemma (ensures Steel.Memory.interp (Steel.Effect.Common.vdep_hp v p) m <==> Steel.Memory.interp (Steel.Effect.Common.hp_of v) m /\ Steel.Memory....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Memory.mem", "FStar.Classical.move_requires", "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "Steel.Memory.interp_star", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.sel_of", "Prims.logical", "Prims....
[]
false
false
true
false
false
let interp_vdep_hp v p m =
interp_sdep (hp_of v) (vdep_hp_payload v p) m; let left = interp (vdep_hp v p) m in let right = interp (hp_of v) m /\ interp ((hp_of v) `Mem.star` (hp_of (p (sel_of v m)))) m in let f () : Lemma (requires left) (ensures right) = interp_star (hp_of v) (hp_of (p (sel_of v m))) m in let g () : Lemma (requires right) (en...
false
FStar.OrdMap.fst
FStar.OrdMap.dom
val dom : #key:eqtype -> #value:Type -> #f:cmp key -> m:ordmap key value f -> Tot (ordset key f)
val dom : #key:eqtype -> #value:Type -> #f:cmp key -> m:ordmap key value f -> Tot (ordset key f)
let dom (#k:eqtype) (#v:Type) #f m = (Mk_map?.d m)
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 49, "start_col": 0, "start_line": 49 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: FStar.OrdMap.ordmap key value f -> FStar.OrdSet.ordset key f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdMap.__proj__Mk_map__item__d", "FStar.OrdSet.ordset" ]
[]
false
false
false
false
false
let dom (#k: eqtype) (#v: Type) #f m =
(Mk_map?.d m)
false
Steel.Effect.Common.fst
Steel.Effect.Common.vrewrite_sel
val vrewrite_sel (v: vprop) (#t: Type) (f: (normal (t_of v) -> GTot t)) : Tot (selector t (normal (hp_of v)))
val vrewrite_sel (v: vprop) (#t: Type) (f: (normal (t_of v) -> GTot t)) : Tot (selector t (normal (hp_of v)))
let vrewrite_sel v #t f = (fun (h: Mem.hmem (normal (hp_of v))) -> f ((normal (sel_of v) <: selector' _ _) h))
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 86, "end_line": 198, "start_col": 0, "start_line": 195 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> f: (_: Steel.Effect.Common.normal (Steel.Effect.Common.t_of v) -> Prims.GTot t) -> Steel.Effect.Common.selector t (Steel.Effect.Common.normal (Steel.Effect.Common.hp_of v))
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Steel.Memory.hmem", "Steel.Memory.slprop", "Steel.Effect.Common.hp_of", "Steel.Effect.Common.selector'", "Steel.Effect.Common.sel_of" ]
[]
false
false
false
false
false
let vrewrite_sel v #t f =
(fun (h: Mem.hmem (normal (hp_of v))) -> f ((normal (sel_of v) <: selector' _ _) h))
false
FStar.OrdMap.fst
FStar.OrdMap.remove
val remove : #key:eqtype -> #value:Type -> #f:cmp key -> key -> ordmap key value f -> Tot (ordmap key value f)
val remove : #key:eqtype -> #value:Type -> #f:cmp key -> key -> ordmap key value f -> Tot (ordmap key value f)
let remove (#k:eqtype) (#v:Type) #f x m = let s' = remove x (Mk_map?.d m) in let g' = F.on_dom k (fun x' -> if x' = x then None else (Mk_map?.m m) x') in Mk_map s' g'
{ "file_name": "ulib/experimental/FStar.OrdMap.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 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: key -> m: FStar.OrdMap.ordmap key value f -> FStar.OrdMap.ordmap key value f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdMap.Mk_map", "FStar.FunctionalExtensionality.restricted_t", "FStar.Pervasives.Native.option", "FStar.FunctionalExtensionality.on_dom", "Prims.op_Equality", "FStar.Pervasives.Native.None", "Prims.bool", "FStar.OrdMap.__proj__Mk_...
[]
false
false
false
false
false
let remove (#k: eqtype) (#v: Type) #f x m =
let s' = remove x (Mk_map?.d m) in let g' = F.on_dom k (fun x' -> if x' = x then None else (Mk_map?.m m) x') in Mk_map s' g'
false
FStar.OrdMap.fst
FStar.OrdMap.update
val update : #key:eqtype -> #value:Type -> #f:cmp key -> key -> value -> m:ordmap key value f -> Tot (ordmap key value f)
val update : #key:eqtype -> #value:Type -> #f:cmp key -> key -> value -> m:ordmap key value f -> Tot (ordmap key value f)
let update (#k:eqtype) (#v:Type) #f x y m = let s' = insert x (Mk_map?.d m) in let g' = F.on_dom k (fun (x':k) -> if x' = x then Some y else (Mk_map?.m m) x') in Mk_map s' g'
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 45, "start_col": 0, "start_line": 42 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: key -> y: value -> m: FStar.OrdMap.ordmap key value f -> FStar.OrdMap.ordmap key value f
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdMap.Mk_map", "FStar.FunctionalExtensionality.restricted_t", "FStar.Pervasives.Native.option", "FStar.FunctionalExtensionality.on_dom", "Prims.op_Equality", "FStar.Pervasives.Native.Some", "Prims.bool", "FStar.OrdMap.__proj__Mk_...
[]
false
false
false
false
false
let update (#k: eqtype) (#v: Type) #f x y m =
let s' = insert x (Mk_map?.d m) in let g' = F.on_dom k (fun (x': k) -> if x' = x then Some y else (Mk_map?.m m) x') in Mk_map s' g'
false
Steel.Effect.Common.fst
Steel.Effect.Common.emp_unit_variant
val emp_unit_variant (p:vprop) : Lemma (ensures can_be_split p (p `star` emp))
val emp_unit_variant (p:vprop) : Lemma (ensures can_be_split p (p `star` emp))
let emp_unit_variant p = Mem.emp_unit (hp_of p)
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 207, "start_col": 0, "start_line": 207 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": false, "full_module": "FStar.Reflection.V2.Derived.Lemmas", "short_module": null }, { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> FStar.Pervasives.Lemma (ensures Steel.Effect.Common.can_be_split p (Steel.Effect.Common.star p Steel.Effect.Common.emp) )
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.emp_unit", "Steel.Effect.Common.hp_of", "Prims.unit" ]
[]
true
false
true
false
false
let emp_unit_variant p =
Mem.emp_unit (hp_of p)
false
Steel.Effect.Common.fst
Steel.Effect.Common.vdep_sel_eq
val vdep_sel_eq (v: vprop) (p: ( (t_of v) -> Tot vprop)) (m: Mem.hmem (vdep_hp v p)) : Lemma ( interp (hp_of v) m /\ begin let x = sel_of v m in interp (hp_of (p x)) m /\ vdep_sel v p m == (| x, sel_of (p x) m |) end )
val vdep_sel_eq (v: vprop) (p: ( (t_of v) -> Tot vprop)) (m: Mem.hmem (vdep_hp v p)) : Lemma ( interp (hp_of v) m /\ begin let x = sel_of v m in interp (hp_of (p x)) m /\ vdep_sel v p m == (| x, sel_of (p x) m |) end )
let vdep_sel_eq v p m = Classical.forall_intro_2 (Classical.move_requires_2 (fun (m0 m1: mem) -> (join_commutative m0) m1)); ()
{ "file_name": "lib/steel/Steel.Effect.Common.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 193, "start_col": 0, "start_line": 190 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Semantics.Instantiate.fsti.checked", "Steel.Semantics.Hoare.MST.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.PropositionalExtensionality.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "FStar.Algebra.CommMonoid.Equiv", "short_module": "CE" }, { "abbrev": false, "full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }...
{ "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
v: Steel.Effect.Common.vprop -> p: (_: Steel.Effect.Common.t_of v -> Steel.Effect.Common.vprop) -> m: Steel.Memory.hmem (Steel.Effect.Common.vdep_hp v p) -> FStar.Pervasives.Lemma (ensures Steel.Memory.interp (Steel.Effect.Common.hp_of v) m /\ (let x = Steel.Effect.Common.sel_of v m in ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Effect.Common.t_of", "Steel.Memory.hmem", "Steel.Effect.Common.vdep_hp", "Prims.unit", "FStar.Classical.forall_intro_2", "Steel.Memory.mem", "Prims.l_imp", "Steel.Memory.disjoint", "Prims.l_and", "Prims.eq2", "Steel.Memory.join", "FStar.Classical.move_requ...
[]
false
false
true
false
false
let vdep_sel_eq v p m =
Classical.forall_intro_2 (Classical.move_requires_2 (fun (m0: mem) (m1: mem) -> (join_commutative m0) m1)); ()
false
FStar.OrdMap.fst
FStar.OrdMap.choose
val choose : #key:eqtype -> #value:Type -> #f:cmp key -> ordmap key value f -> Tot (option (key * value))
val choose : #key:eqtype -> #value:Type -> #f:cmp key -> ordmap key value f -> Tot (option (key * value))
let choose (#k:eqtype) (#v:Type) #f m = match OrdSet.choose (Mk_map?.d m) with | None -> None | Some x -> Some (x, Some?.v ((Mk_map?.m m) x))
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 59, "start_col": 0, "start_line": 56 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: FStar.OrdMap.ordmap key value f -> FStar.Pervasives.Native.option (key * value)
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.choose", "FStar.OrdMap.__proj__Mk_map__item__d", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.__proj__Some__ite...
[]
false
false
false
false
false
let choose (#k: eqtype) (#v: Type) #f m =
match OrdSet.choose (Mk_map?.d m) with | None -> None | Some x -> Some (x, Some?.v ((Mk_map?.m m) x))
false
FStar.OrdMap.fst
FStar.OrdMap.size
val size : #key:eqtype -> #value:Type -> #f:cmp key -> ordmap key value f -> Tot nat
val size : #key:eqtype -> #value:Type -> #f:cmp key -> ordmap key value f -> Tot nat
let size (#k:eqtype) (#v:Type) #f m = OrdSet.size (Mk_map?.d m)
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 61, "start_col": 0, "start_line": 61 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: FStar.OrdMap.ordmap key value f -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.size", "FStar.OrdMap.__proj__Mk_map__item__d", "Prims.nat" ]
[]
false
false
false
false
false
let size (#k: eqtype) (#v: Type) #f m =
OrdSet.size (Mk_map?.d m)
false
LList2.fst
LList2.pllist_get
val pllist_get (#l: Ghost.erased (list U32.t)) (p: ref (scalar (ptr cell))) : STT (ptr cell) (pllist p l) (fun pc -> (pts_to p (mk_scalar (Ghost.reveal pc))) `star` (llist pc l))
val pllist_get (#l: Ghost.erased (list U32.t)) (p: ref (scalar (ptr cell))) : STT (ptr cell) (pllist p l) (fun pc -> (pts_to p (mk_scalar (Ghost.reveal pc))) `star` (llist pc l))
let pllist_get (#l: Ghost.erased (list U32.t)) (p: ref (scalar (ptr cell))) : STT (ptr cell) (pllist p l) (fun pc -> pts_to p (mk_scalar (Ghost.reveal pc)) `star` llist pc l) = rewrite (pllist p l) (pllist0 p l); let _ = gen_elim () in let pc = read p in vpattern_rewrite (fun x -> llist x l) pc; ret...
{ "file_name": "share/steel/examples/steelc/LList2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 11, "end_line": 116, "start_col": 0, "start_line": 106 }
module LList2 open Steel.ST.GenElim open Steel.ST.C.Types open Steel.ST.C.Types.Struct.Aux open Steel.ST.C.Types.UserStruct // hides Struct module U32 = FStar.UInt32 noeq type cell_t = { hd: scalar_t U32.t; tl: scalar_t (ptr_gen cell_t); } noextract inline_for_extraction [@@ norm_field_attr] let cell_struct_def ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.GenElim.fsti.checked", "Steel.ST.C.Types.UserStruct.fsti.checked", "Steel.ST.C.Types.Struct.Aux.fsti.checked", "Steel.ST.C.Types.fst.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Set.fsti.checked", "FStar.Pervasi...
[ { "abbrev": false, "full_module": "Steel.ST.C.Types.UserStruct // hides Struct", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.UserStruct", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Scalar.scalar (Steel.ST.C.Types.Base.ptr LList2.cell )) -> Steel.ST.Effect.STT (Steel.ST.C.Types.Base.ptr LList2.cell)
Steel.ST.Effect.STT
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "FStar.UInt32.t", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Scalar.scalar_t", "Steel.ST.C.Types.Base.ptr", "LList2.cell_t", "LList2.cell", "Steel.ST.C.Types.Scalar.scalar", "Steel.ST.Util.return", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.ina...
[]
false
true
false
false
false
let pllist_get (#l: Ghost.erased (list U32.t)) (p: ref (scalar (ptr cell))) : STT (ptr cell) (pllist p l) (fun pc -> (pts_to p (mk_scalar (Ghost.reveal pc))) `star` (llist pc l)) =
rewrite (pllist p l) (pllist0 p l); let _ = gen_elim () in let pc = read p in vpattern_rewrite (fun x -> llist x l) pc; return pc
false
FStar.OrdMap.fst
FStar.OrdMap.eq_lemma
val eq_lemma: #k:eqtype -> #v:Type -> #f:cmp k -> m1:ordmap k v f -> m2:ordmap k v f -> Lemma (requires (equal m1 m2)) (ensures (m1 == m2)) [SMTPat (equal m1 m2)]
val eq_lemma: #k:eqtype -> #v:Type -> #f:cmp k -> m1:ordmap k v f -> m2:ordmap k v f -> Lemma (requires (equal m1 m2)) (ensures (m1 == m2)) [SMTPat (equal m1 m2)]
let eq_lemma (#k:eqtype) (#v:Type) #f m1 m2 = let Mk_map s1 g1 = m1 in let Mk_map s2 g2 = m2 in let _ = cut (feq g1 g2) in let _ = OrdSet.eq_lemma s1 s2 in ()
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 4, "end_line": 73, "start_col": 0, "start_line": 68 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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
m1: FStar.OrdMap.ordmap k v f -> m2: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (requires FStar.OrdMap.equal m1 m2) (ensures m1 == m2) [SMTPat (FStar.OrdMap.equal m1 m2)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.unit", "FStar.OrdSet.eq_lemma", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option" ]
[]
false
false
true
false
false
let eq_lemma (#k: eqtype) (#v: Type) #f m1 m2 =
let Mk_map s1 g1 = m1 in let Mk_map s2 g2 = m2 in let _ = cut (feq g1 g2) in let _ = OrdSet.eq_lemma s1 s2 in ()
false
FStar.OrdMap.fst
FStar.OrdMap.equal
val equal (#k:eqtype) (#v:Type) (#f:cmp k) (m1:ordmap k v f) (m2:ordmap k v f) : prop
val equal (#k:eqtype) (#v:Type) (#f:cmp k) (m1:ordmap k v f) (m2:ordmap k v f) : prop
let equal (#k:eqtype) (#v:Type) (#f:cmp k) (m1:ordmap k v f) (m2:ordmap k v f) = forall x. select #k #v #f x m1 == select #k #v #f x m2
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 64, "start_col": 0, "start_line": 63 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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
m1: FStar.OrdMap.ordmap k v f -> m2: FStar.OrdMap.ordmap k v f -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "Prims.l_Forall", "Prims.eq2", "FStar.Pervasives.Native.option", "FStar.OrdMap.select", "Prims.prop" ]
[]
false
false
false
false
true
let equal (#k: eqtype) (#v: Type) (#f: cmp k) (m1 m2: ordmap k v f) =
forall x. select #k #v #f x m1 == select #k #v #f x m2
false
FStar.OrdMap.fst
FStar.OrdMap.upd_order
val upd_order: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> y:v -> x':k -> y':v -> m:ordmap k v f -> Lemma (requires (x =!= x')) (ensures (equal (update #k #v #f x y (update #k #v #f x' y' m)) (update #k #v #f x' y' (update #k #v ...
val upd_order: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> y:v -> x':k -> y':v -> m:ordmap k v f -> Lemma (requires (x =!= x')) (ensures (equal (update #k #v #f x y (update #k #v #f x' y' m)) (update #k #v #f x' y' (update #k #v ...
let upd_order (#k:eqtype) (#v:Type) #f x y x' y' m = let (Mk_map s1 g1) = update #k #v #f x' y' (update #k #v #f x y m) in let (Mk_map s2 g2) = update #k #v #f x y (update #k #v #f x' y' m) in cut (feq g1 g2)
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 78, "start_col": 0, "start_line": 75 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: k -> y: v -> x': k -> y': v -> m: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (requires ~(x == x')) (ensures FStar.OrdMap.equal (FStar.OrdMap.update x y (FStar.OrdMap.update x' y' m)) (FStar.OrdMap.update x' y' (FStar.OrdMap.update x y m))) [SMTPat (FStar.OrdMap.update x y (FS...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option", "Prims.unit", "FStar.OrdMap.update" ]
[]
false
false
true
false
false
let upd_order (#k: eqtype) (#v: Type) #f x y x' y' m =
let Mk_map s1 g1 = update #k #v #f x' y' (update #k #v #f x y m) in let Mk_map s2 g2 = update #k #v #f x y (update #k #v #f x' y' m) in cut (feq g1 g2)
false
FStar.OrdMap.fst
FStar.OrdMap.dom_empty_helper
val dom_empty_helper: #k:eqtype -> #v:Type -> #f:cmp k -> m:ordmap k v f -> Lemma (requires (True)) (ensures ((dom #k #v #f m = OrdSet.empty) ==> (m == empty #k #v #f)))
val dom_empty_helper: #k:eqtype -> #v:Type -> #f:cmp k -> m:ordmap k v f -> Lemma (requires (True)) (ensures ((dom #k #v #f m = OrdSet.empty) ==> (m == empty #k #v #f)))
let dom_empty_helper (#k:eqtype) (#v:Type) #f m = let (Mk_map s g) = m in if (not (s = OrdSet.empty)) then () else let (Mk_map s' g') = empty #k #v #f in cut (feq g g')
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 119, "start_col": 0, "start_line": 114 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (ensures FStar.OrdMap.dom m = FStar.OrdSet.empty ==> m == FStar.OrdMap.empty)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.op_Negation", "Prims.op_Equality", "FStar.OrdSet.empty", "Prims.bool", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option", "Prims.unit", "FStar.Or...
[]
false
false
true
false
false
let dom_empty_helper (#k: eqtype) (#v: Type) #f m =
let Mk_map s g = m in if (not (s = OrdSet.empty)) then () else let Mk_map s' g' = empty #k #v #f in cut (feq g g')
false
FStar.OrdMap.fst
FStar.OrdMap.eq_remove
val eq_remove: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> m:ordmap k v f -> Lemma (requires (not (contains #k #v #f x m))) (ensures (equal m (remove #k #v #f x m))) [SMTPat (remove #k #v #f x m)]
val eq_remove: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> m:ordmap k v f -> Lemma (requires (not (contains #k #v #f x m))) (ensures (equal m (remove #k #v #f x m))) [SMTPat (remove #k #v #f x m)]
let eq_remove (#k:eqtype) (#v:Type) #f x m = let (Mk_map s g) = m in let m' = remove #k #v #f x m in let (Mk_map s' g') = m' in let _ = cut (feq g g') in ()
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 4, "end_line": 106, "start_col": 0, "start_line": 101 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: k -> m: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (requires Prims.op_Negation (FStar.OrdMap.contains x m)) (ensures FStar.OrdMap.equal m (FStar.OrdMap.remove x m)) [SMTPat (FStar.OrdMap.remove x m)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.unit", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option", "FStar.OrdMap.remove" ]
[]
false
false
true
false
false
let eq_remove (#k: eqtype) (#v: Type) #f x m =
let Mk_map s g = m in let m' = remove #k #v #f x m in let Mk_map s' g' = m' in let _ = cut (feq g g') in ()
false
FStar.OrdMap.fst
FStar.OrdMap.upd_same_k
val upd_same_k: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> y:v -> y':v -> m:ordmap k v f -> Lemma (requires (True)) (ensures (equal (update #k #v #f x y (update #k #v #f x y' m)) (update #k #v #f x y m))) [SMTPat (update #k #v #f x y (updat...
val upd_same_k: #k:eqtype -> #v:Type -> #f:cmp k -> x:k -> y:v -> y':v -> m:ordmap k v f -> Lemma (requires (True)) (ensures (equal (update #k #v #f x y (update #k #v #f x y' m)) (update #k #v #f x y m))) [SMTPat (update #k #v #f x y (updat...
let upd_same_k (#k:eqtype) (#v:Type) #f x y y' m = let (Mk_map s1 g1) = update #k #v #f x y m in let (Mk_map s2 g2) = update #k #v #f x y (update #k #v #f x y' m) in cut (feq g1 g2)
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 83, "start_col": 0, "start_line": 80 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: k -> y: v -> y': v -> m: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (ensures FStar.OrdMap.equal (FStar.OrdMap.update x y (FStar.OrdMap.update x y' m)) (FStar.OrdMap.update x y m)) [SMTPat (FStar.OrdMap.update x y (FStar.OrdMap.update x y' m))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option", "Prims.unit", "FStar.OrdMap.update" ]
[]
false
false
true
false
false
let upd_same_k (#k: eqtype) (#v: Type) #f x y y' m =
let Mk_map s1 g1 = update #k #v #f x y m in let Mk_map s2 g2 = update #k #v #f x y (update #k #v #f x y' m) in cut (feq g1 g2)
false
FStar.OrdMap.fst
FStar.OrdMap.choose_m
val choose_m: #k:eqtype -> #v:Type -> #f:cmp k -> m:ordmap k v f -> Lemma (requires (~ (equal m (empty #k #v #f)))) (ensures (Some? (choose #k #v #f m) /\ (select #k #v #f (fst (Some?.v (choose #k #v #f m))) m == Some (sn...
val choose_m: #k:eqtype -> #v:Type -> #f:cmp k -> m:ordmap k v f -> Lemma (requires (~ (equal m (empty #k #v #f)))) (ensures (Some? (choose #k #v #f m) /\ (select #k #v #f (fst (Some?.v (choose #k #v #f m))) m == Some (sn...
let choose_m (#k:eqtype) (#v:Type) #f m = dom_empty_helper #k #v #f m; let c = choose #k #v #f m in match c with | None -> () | Some (x, y) -> let m' = remove #k #v #f x m in let (Mk_map s' g') = m' in let (Mk_map s'' g'') = update #k #v #f x y m' in cut (feq (Mk_map?.m m) g...
{ "file_name": "ulib/experimental/FStar.OrdMap.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 130, "start_col": 0, "start_line": 121 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.OrdSet.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": true, "source_file": "FStar.OrdMap.fst" }
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar.FunctionalExtensionality", "short_module": null }, { "abbrev": false, "full_module": "FStar.OrdSet", "short_module": null }, { "abbre...
{ "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: FStar.OrdMap.ordmap k v f -> FStar.Pervasives.Lemma (requires ~(FStar.OrdMap.equal m FStar.OrdMap.empty)) (ensures Some? (FStar.OrdMap.choose m) /\ FStar.OrdMap.select (FStar.Pervasives.Native.fst (Some?.v (FStar.OrdMap.choose m))) m == FStar.Pervasives.Native.Some (FStar.Pervasives.N...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.OrdSet.cmp", "FStar.OrdMap.ordmap", "FStar.OrdSet.ordset", "FStar.OrdMap.map_t", "Prims.cut", "FStar.FunctionalExtensionality.feq", "FStar.Pervasives.Native.option", "FStar.OrdMap.__proj__Mk_map__item__m", "Prims.unit", "FStar.OrdMap.update", "FStar.OrdMap.remove", "FS...
[]
false
false
true
false
false
let choose_m (#k: eqtype) (#v: Type) #f m =
dom_empty_helper #k #v #f m; let c = choose #k #v #f m in match c with | None -> () | Some (x, y) -> let m' = remove #k #v #f x m in let Mk_map s' g' = m' in let Mk_map s'' g'' = update #k #v #f x y m' in cut (feq (Mk_map?.m m) g'')
false
CQueue.fst
CQueue.queue_is_empty
val queue_is_empty (#a: Type) (x: t a) (l: Ghost.erased (v a)) : Steel bool (queue x l) (fun _ -> queue x l) (requires (fun _ -> True)) (ensures (fun _ res _ -> res == Nil? (datas l) ))
val queue_is_empty (#a: Type) (x: t a) (l: Ghost.erased (v a)) : Steel bool (queue x l) (fun _ -> queue x l) (requires (fun _ -> True)) (ensures (fun _ res _ -> res == Nil? (datas l) ))
let queue_is_empty #a x l = let head0 = elim_queue_head x l in let head = read (cllist_head x) in let res = ccell_ptrvalue_is_null head in llist_fragment_head_is_nil l (cllist_head x) head0; intro_queue_head x l head0; return res
{ "file_name": "share/steel/examples/steel/CQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 1331, "start_col": 0, "start_line": 1325 }
module CQueue open CQueue.LList #set-options "--ide_id_info_off" //Re-define squash, since this module explicitly //replies on proving equalities of the form `t_of v == squash p` //which are delicate in the presence of optimizations that //unfold `Prims.squash (p /\ q)`to _:unit{p /\ q} //See Issue #2496 let squash (...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "CQueue.LList.fsti.checked" ], "interface_file": true, "source...
[ { "abbrev": false, "full_module": "CQueue.LList", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: CQueue.t a -> l: FStar.Ghost.erased (CQueue.v a) -> Steel.Effect.Steel Prims.bool
Steel.Effect.Steel
[]
[]
[ "CQueue.t", "FStar.Ghost.erased", "CQueue.v", "Steel.Effect.Atomic.return", "Prims.bool", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.Effect.Common.vdep", "Steel.Reference.vptrp", "CQueue.Cell.ccell_ptrvalue", "CQueue.LList.cllist_head", "Steel.Frac...
[]
false
true
false
false
false
let queue_is_empty #a x l =
let head0 = elim_queue_head x l in let head = read (cllist_head x) in let res = ccell_ptrvalue_is_null head in llist_fragment_head_is_nil l (cllist_head x) head0; intro_queue_head x l head0; return res
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.state_inv_t
val state_inv_t: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> Type0
val state_inv_t: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> Type0
let state_inv_t #s h ctx = felem_fits h (gsub ctx 0ul (nlimb s)) (2, 2, 2, 2, 2) /\ F32xN.load_precompute_r_post #(width s) h (gsub ctx (nlimb s) (precomplen s))
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 79, "end_line": 54, "start_col": 0, "start_line": 52 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
h: FStar.Monotonic.HyperStack.mem -> ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.poly1305_ctx", "Prims.l_and", "Hacl.Impl.Poly1305.Fields.felem_fits", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305.Fields.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntType...
[]
false
false
false
false
true
let state_inv_t #s h ctx =
felem_fits h (gsub ctx 0ul (nlimb s)) (2, 2, 2, 2, 2) /\ F32xN.load_precompute_r_post #(width s) h (gsub ctx (nlimb s) (precomplen s))
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.as_get_r
val as_get_r: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> GTot S.felem
val as_get_r: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> GTot S.felem
let as_get_r #s h ctx = (feval h (gsub ctx (nlimb s) (nlimb s))).[0]
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 50, "start_col": 0, "start_line": 50 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
h: FStar.Monotonic.HyperStack.mem -> ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> Prims.GTot Spec.Poly1305.felem
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.poly1305_ctx", "Hacl.Impl.Poly1305.op_String_Access", "Spec.Poly1305.felem", "Hacl.Impl.Poly1305.Fields.width", "Hacl.Impl.Poly1305.Fields.feval", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305....
[]
false
false
false
false
false
let as_get_r #s h ctx =
(feval h (gsub ctx (nlimb s) (nlimb s))).[ 0 ]
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update
val poly1305_update: #s:field_spec -> poly1305_update_st s
val poly1305_update: #s:field_spec -> poly1305_update_st s
let poly1305_update #s = match s with | M32 -> poly1305_update32 | _ -> poly1305_update_128_256 #s
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 584, "start_col": 0, "start_line": 581 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
Hacl.Impl.Poly1305.poly1305_update_st s
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_update32", "Hacl.Impl.Poly1305.poly1305_update_128_256", "Hacl.Impl.Poly1305.poly1305_update_st" ]
[]
false
false
false
false
false
let poly1305_update #s =
match s with | M32 -> poly1305_update32 | _ -> poly1305_update_128_256 #s
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.as_get_acc
val as_get_acc: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> GTot S.felem
val as_get_acc: #s:field_spec -> h:mem -> ctx:poly1305_ctx s -> GTot S.felem
let as_get_acc #s h ctx = (feval h (gsub ctx 0ul (nlimb s))).[0]
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 48, "start_col": 0, "start_line": 48 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
h: FStar.Monotonic.HyperStack.mem -> ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> Prims.GTot Spec.Poly1305.felem
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.poly1305_ctx", "Hacl.Impl.Poly1305.op_String_Access", "Spec.Poly1305.felem", "Hacl.Impl.Poly1305.Fields.width", "Hacl.Impl.Poly1305.Fields.feval", "Lib.Buffer.gsub", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305....
[]
false
false
false
false
false
let as_get_acc #s h ctx =
(feval h (gsub ctx 0ul (nlimb s))).[ 0 ]
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.get_precomp_r
val get_precomp_r (#s: _) (ctx: poly1305_ctx s) : Stack (precomp_r s) (requires fun h -> live h ctx) (ensures fun h0 pre h1 -> h0 == h1 /\ live h1 pre /\ pre == gsub ctx (nlimb s) (precomplen s))
val get_precomp_r (#s: _) (ctx: poly1305_ctx s) : Stack (precomp_r s) (requires fun h -> live h ctx) (ensures fun h0 pre h1 -> h0 == h1 /\ live h1 pre /\ pre == gsub ctx (nlimb s) (precomplen s))
let get_precomp_r #s (ctx:poly1305_ctx s) : Stack (precomp_r s) (requires fun h -> live h ctx) (ensures fun h0 pre h1 -> h0 == h1 /\ live h1 pre /\ pre == gsub ctx (nlimb s) (precomplen s)) = sub ctx (nlimb s) (precomplen s)
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 42, "start_col": 0, "start_line": 39 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> FStar.HyperStack.ST.Stack (Hacl.Impl.Poly1305.Fields.precomp_r s)
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.Buffer.sub", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305.Fields.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Poly1305.Fields.nlimb", "Hacl.Impl.Poly1305.Fields.precomplen", "Lib.Bu...
[]
false
true
false
false
false
let get_precomp_r #s (ctx: poly1305_ctx s) : Stack (precomp_r s) (requires fun h -> live h ctx) (ensures fun h0 pre h1 -> h0 == h1 /\ live h1 pre /\ pre == gsub ctx (nlimb s) (precomplen s)) =
sub ctx (nlimb s) (precomplen s)
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_encode_block
val poly1305_encode_block: #s:field_spec -> f:felem s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (feval h1 f).[0] == S.encode 16 (as_seq h0 b))
val poly1305_encode_block: #s:field_spec -> f:felem s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (feval h1 f).[0] == S.encode 16 (as_seq h0 b))
let poly1305_encode_block #s f b = load_felem_le f b; set_bit128 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 152, "start_col": 0, "start_line": 150 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
f: Hacl.Impl.Poly1305.Fields.felem s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Poly1305.Fields.set_bit128", "Prims.unit", "Hacl.Impl.Poly1305.Fields.load_felem_le" ]
[]
false
true
false
false
false
let poly1305_encode_block #s f b =
load_felem_le f b; set_bit128 f
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.get_acc
val get_acc (#s: _) (ctx: poly1305_ctx s) : Stack (felem s) (requires fun h -> live h ctx) (ensures fun h0 acc h1 -> h0 == h1 /\ live h1 acc /\ acc == gsub ctx 0ul (nlimb s))
val get_acc (#s: _) (ctx: poly1305_ctx s) : Stack (felem s) (requires fun h -> live h ctx) (ensures fun h0 acc h1 -> h0 == h1 /\ live h1 acc /\ acc == gsub ctx 0ul (nlimb s))
let get_acc #s (ctx:poly1305_ctx s) : Stack (felem s) (requires fun h -> live h ctx) (ensures fun h0 acc h1 -> h0 == h1 /\ live h1 acc /\ acc == gsub ctx 0ul (nlimb s)) = sub ctx 0ul (nlimb s)
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 35, "start_col": 0, "start_line": 32 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> FStar.HyperStack.ST.Stack (Hacl.Impl.Poly1305.Fields.felem s)
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.Buffer.sub", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305.Fields.limb", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Poly1305.Fields.nlimb", "Hacl.Impl.Poly1305.Fields.precomplen", "FStar....
[]
false
true
false
false
false
let get_acc #s (ctx: poly1305_ctx s) : Stack (felem s) (requires fun h -> live h ctx) (ensures fun h0 acc h1 -> h0 == h1 /\ live h1 acc /\ acc == gsub ctx 0ul (nlimb s)) =
sub ctx 0ul (nlimb s)
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_encode_blocks
val poly1305_encode_blocks: #s:field_spec -> f:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ feval h1 f == Vec.load_blocks #(width s) (as_s...
val poly1305_encode_blocks: #s:field_spec -> f:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ feval h1 f == Vec.load_blocks #(width s) (as_s...
let poly1305_encode_blocks #s f b = load_felems_le f b; set_bit128 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 170, "start_col": 0, "start_line": 168 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
f: Hacl.Impl.Poly1305.Fields.felem s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Poly1305.Fields.blocklen s) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl.Poly1305.Fields.blocklen", "Hacl.Impl.Poly1305.Fields.set_bit128", "Prims.unit", "Hacl.Impl.Poly1305.Fields.load_felems_le" ]
[]
false
true
false
false
false
let poly1305_encode_blocks #s f b =
load_felems_le f b; set_bit128 f
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_encode_r
val poly1305_encode_r: #s:field_spec -> p:precomp_r s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h b /\ live h p /\ disjoint b p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ F32xN.load_precompute_r_post #(width s) h1 p /\ (feval h1 (gsub p 0ul 5ul)).[0] == S.poly1...
val poly1305_encode_r: #s:field_spec -> p:precomp_r s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h b /\ live h p /\ disjoint b p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ F32xN.load_precompute_r_post #(width s) h1 p /\ (feval h1 (gsub p 0ul 5ul)).[0] == S.poly1...
let poly1305_encode_r #s p b = let lo = uint_from_bytes_le (sub b 0ul 8ul) in let hi = uint_from_bytes_le (sub b 8ul 8ul) in let mask0 = u64 0x0ffffffc0fffffff in let mask1 = u64 0x0ffffffc0ffffffc in let lo = lo &. mask0 in let hi = hi &. mask1 in load_precompute_r p lo hi
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 223, "start_col": 0, "start_line": 216 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
p: Hacl.Impl.Poly1305.Fields.precomp_r s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.precomp_r", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Poly1305.Fields.load_precompute_r", "Prims.unit", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Amp_D...
[]
false
true
false
false
false
let poly1305_encode_r #s p b =
let lo = uint_from_bytes_le (sub b 0ul 8ul) in let hi = uint_from_bytes_le (sub b 8ul 8ul) in let mask0 = u64 0x0ffffffc0fffffff in let mask1 = u64 0x0ffffffc0ffffffc in let lo = lo &. mask0 in let hi = hi &. mask1 in load_precompute_r p lo hi
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update32
val poly1305_update32: poly1305_update_st M32
val poly1305_update32: poly1305_update_st M32
let poly1305_update32 ctx len text = let pre = get_precomp_r ctx in let acc = get_acc ctx in poly1305_update_scalar #M32 len text pre acc
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 565, "start_col": 0, "start_line": 562 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
Hacl.Impl.Poly1305.poly1305_update_st Hacl.Impl.Poly1305.Fields.M32
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.poly1305_ctx", "Hacl.Impl.Poly1305.Fields.M32", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl.Poly1305.poly1305_update_scalar", "Prims.unit", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.get_acc", "Hacl.Impl.Poly1305.Fields.precomp_r", ...
[]
false
false
false
true
false
let poly1305_update32 ctx len text =
let pre = get_precomp_r ctx in let acc = get_acc ctx in poly1305_update_scalar #M32 len text pre acc
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.pow_one
val pow_one (k:nat) : Lemma (pow 1 k == 1)
val pow_one (k:nat) : Lemma (pow 1 k == 1)
let rec pow_one = function | 0 -> () | k -> pow_one (k - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 22, "start_col": 0, "start_line": 20 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow 1 k == 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.int", "FStar.Math.Fermat.pow_one", "Prims.op_Subtraction", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec pow_one =
function | 0 -> () | k -> pow_one (k - 1)
false
CQueue.fst
CQueue.intro_queue_head
val intro_queue_head (#opened: _) (#a: Type) (x: t a) (l: Ghost.erased (list a)) (hd: Ghost.erased (ccell_ptrvalue a)) : SteelGhost unit opened (vptr (cllist_head x) `star` llist_fragment_head l (cllist_head x) hd `star` vptr (cllist_tail x)) (fun _ -> queue_head x l) (fun h -> ( let frag ...
val intro_queue_head (#opened: _) (#a: Type) (x: t a) (l: Ghost.erased (list a)) (hd: Ghost.erased (ccell_ptrvalue a)) : SteelGhost unit opened (vptr (cllist_head x) `star` llist_fragment_head l (cllist_head x) hd `star` vptr (cllist_tail x)) (fun _ -> queue_head x l) (fun h -> ( let frag ...
let intro_queue_head #_ #a x l hd = let ptl = gget (llist_fragment_head l (cllist_head x) hd) in intro_vrefine (vptr (cllist_tail x)) (queue_head_refine x l hd ptl); assert_norm (vptr (cllist_tail x) `vrefine` queue_head_refine x l hd ptl == queue_head_dep1 x l hd ptl); intro_vdep (llist_fragment_...
{ "file_name": "share/steel/examples/steel/CQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 1225, "start_col": 0, "start_line": 1210 }
module CQueue open CQueue.LList #set-options "--ide_id_info_off" //Re-define squash, since this module explicitly //replies on proving equalities of the form `t_of v == squash p` //which are delicate in the presence of optimizations that //unfold `Prims.squash (p /\ q)`to _:unit{p /\ q} //See Issue #2496 let squash (...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "CQueue.LList.fsti.checked" ], "interface_file": true, "source...
[ { "abbrev": false, "full_module": "CQueue.LList", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: CQueue.t a -> l: FStar.Ghost.erased (Prims.list a) -> hd: FStar.Ghost.erased (CQueue.Cell.ccell_ptrvalue a) -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "CQueue.t", "FStar.Ghost.erased", "Prims.list", "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Atomic.intro_vdep", "Steel.Reference.vptr", "CQueue.LList.cllist_head", "Steel.Effect.Common.vdep", "CQueue.llist_fragment_head", "FStar.Ghost.reveal", "CQueue.queue_head_dep1", ...
[]
false
true
false
false
false
let intro_queue_head #_ #a x l hd =
let ptl = gget (llist_fragment_head l (cllist_head x) hd) in intro_vrefine (vptr (cllist_tail x)) (queue_head_refine x l hd ptl); assert_norm ((vptr (cllist_tail x)) `vrefine` (queue_head_refine x l hd ptl) == queue_head_dep1 x l hd ptl); intro_vdep (llist_fragment_head l (cllist_head x) hd) ((vptr (cllis...
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update1
val poly1305_update1: (#s:field_spec) -> poly1305_update1_st s
val poly1305_update1: (#s:field_spec) -> poly1305_update1_st s
let poly1305_update1 #s ctx text = let pre = get_precomp_r ctx in let acc = get_acc ctx in update1 pre text acc
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 264, "start_col": 0, "start_line": 261 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
Hacl.Impl.Poly1305.poly1305_update1_st s
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Poly1305.update1", "Prims.unit", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.get_acc", "Hacl.Impl.Poly1305.Fields.precomp_r", "...
[]
false
false
false
false
false
let poly1305_update1 #s ctx text =
let pre = get_precomp_r ctx in let acc = get_acc ctx in update1 pre text acc
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.pow_zero
val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k)
val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k)
let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 25, "end_line": 17, "start_col": 0, "start_line": 14 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow ///
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Prims.pos -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow 0 k == 0) (decreases k)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "Prims.int", "FStar.Math.Fermat.pow_zero", "Prims.op_Subtraction", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec pow_zero k =
match k with | 1 -> () | _ -> pow_zero (k - 1)
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update1_f
val poly1305_update1_f: #s:field_spec -> p:precomp_r s -> nb:size_t -> len:size_t{v nb == v len / 16} -> text:lbuffer uint8 len -> i:size_t{v i < v nb} -> acc:felem s -> Stack unit (requires fun h -> live h p /\ live h text /\ live h acc /\ disjoint acc p /\ disjoint acc text /\ felem_fi...
val poly1305_update1_f: #s:field_spec -> p:precomp_r s -> nb:size_t -> len:size_t{v nb == v len / 16} -> text:lbuffer uint8 len -> i:size_t{v i < v nb} -> acc:felem s -> Stack unit (requires fun h -> live h p /\ live h text /\ live h acc /\ disjoint acc p /\ disjoint acc text /\ felem_fi...
let poly1305_update1_f #s pre nb len text i acc= assert ((v i + 1) * 16 <= v nb * 16); let block = sub #_ #_ #len text (i *! 16ul) 16ul in update1 #s pre block acc
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 347, "start_col": 0, "start_line": 344 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
p: Hacl.Impl.Poly1305.Fields.precomp_r s -> nb: Lib.IntTypes.size_t -> len: Lib.IntTypes.size_t{Lib.IntTypes.v nb == Lib.IntTypes.v len / 16} -> text: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> i: Lib.IntTypes.size_t{Lib.IntTypes.v i < Lib.IntTypes.v nb} -> acc: Hacl.Impl.Poly1305.Fields.fele...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.precomp_r", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_Division", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_LessThan", "Hacl...
[]
false
true
false
false
false
let poly1305_update1_f #s pre nb len text i acc =
assert ((v i + 1) * 16 <= v nb * 16); let block = sub #_ #_ #len text (i *! 16ul) 16ul in update1 #s pre block acc
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.binomial_lt
val binomial_lt (n:nat) (k:nat{n < k}) : Lemma (binomial n k = 0)
val binomial_lt (n:nat) (k:nat{n < k}) : Lemma (binomial n k = 0)
let rec binomial_lt n k = match n, k with | _, 0 -> () | 0, _ -> () | _ -> binomial_lt (n - 1) k; binomial_lt (n - 1) (k - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 78, "start_col": 0, "start_line": 74 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> k: Prims.nat{n < k} -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.binomial n k = 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Pervasives.Native.Mktuple2", "Prims.int", "FStar.Pervasives.Native.tuple2", "FStar.Math.Fermat.binomial_lt", "Prims.op_Subtraction", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec binomial_lt n k =
match n, k with | _, 0 -> () | 0, _ -> () | _ -> binomial_lt (n - 1) k; binomial_lt (n - 1) (k - 1)
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum
val sum: a:nat -> b:nat{a <= b} -> f:((i:nat{a <= i /\ i <= b}) -> int) -> Tot int (decreases (b - a))
val sum: a:nat -> b:nat{a <= b} -> f:((i:nat{a <= i /\ i <= b}) -> int) -> Tot int (decreases (b - a))
let rec sum a b f = if a = b then f a else f a + sum (a + 1) b f
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 145, "start_col": 0, "start_line": 144 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> Prims.Tot Prims.int
Prims.Tot
[ "total", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.op_Equality", "Prims.bool", "Prims.op_Addition", "FStar.Math.Fermat.sum" ]
[ "recursion" ]
false
false
false
false
false
let rec sum a b f =
if a = b then f a else f a + sum (a + 1) b f
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.binomial
val binomial (n k:nat) : nat
val binomial (n k:nat) : nat
let rec binomial n k = match n, k with | _, 0 -> 1 | 0, _ -> 0 | _, _ -> binomial (n - 1) k + binomial (n - 1) (k - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 68, "start_col": 0, "start_line": 64 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> k: Prims.nat -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.Pervasives.Native.Mktuple2", "Prims.int", "Prims.op_Addition", "FStar.Math.Fermat.binomial", "Prims.op_Subtraction" ]
[ "recursion" ]
false
false
false
true
false
let rec binomial n k =
match n, k with | _, 0 -> 1 | 0, _ -> 0 | _, _ -> binomial (n - 1) k + binomial (n - 1) (k - 1)
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.factorial
val factorial: nat -> pos
val factorial: nat -> pos
let rec factorial = function | 0 -> 1 | n -> n * factorial (n - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 93, "start_col": 0, "start_line": 91 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.nat -> Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.int", "FStar.Mul.op_Star", "FStar.Math.Fermat.factorial", "Prims.op_Subtraction", "Prims.pos" ]
[ "recursion" ]
false
false
false
true
false
let rec factorial =
function | 0 -> 1 | n -> n * factorial (n - 1)
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.binomial_n
val binomial_n (n:nat) : Lemma (binomial n n == 1)
val binomial_n (n:nat) : Lemma (binomial n n == 1)
let rec binomial_n n = match n with | 0 -> () | _ -> binomial_lt n (n + 1); binomial_n (n - 1)
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 84, "start_col": 0, "start_line": 81 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.binomial n n == 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.int", "FStar.Math.Fermat.binomial_n", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Fermat.binomial_lt", "Prims.op_Addition" ]
[ "recursion" ]
false
false
true
false
false
let rec binomial_n n =
match n with | 0 -> () | _ -> binomial_lt n (n + 1); binomial_n (n - 1)
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.ctx_inv_zeros
val ctx_inv_zeros: #s:field_spec -> ctx:poly1305_ctx s -> h:mem -> Lemma (requires as_seq h ctx == Lib.Sequence.create (v (nlimb s +! precomplen s)) (limb_zero s)) (ensures state_inv_t #s h ctx)
val ctx_inv_zeros: #s:field_spec -> ctx:poly1305_ctx s -> h:mem -> Lemma (requires as_seq h ctx == Lib.Sequence.create (v (nlimb s +! precomplen s)) (limb_zero s)) (ensures state_inv_t #s h ctx)
let ctx_inv_zeros #s ctx h = // ctx = [acc_b; r_b; r_b5; rn_b; rn_b5] let acc_b = gsub ctx 0ul (nlimb s) in as_seq_gsub h ctx 0ul (nlimb s); LSeq.eq_intro (feval h acc_b) (LSeq.create (width s) 0); assert (felem_fits h acc_b (2, 2, 2, 2, 2)); let precomp_b = gsub ctx (nlimb s) (precomplen s) in LSeq.eq_i...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 132, "start_col": 0, "start_line": 123 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Lib.Buffer.as_seq h ctx == Lib.Sequence.create (Lib.IntTypes.v (Hacl.Impl.Poly1305.Fields.nlimb s +! Hacl.Impl.Poly1305.Fields.precomplen s)) (Hacl.Impl.Poly1...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.precomp_inv_zeros", "Prims.unit", "Lib.Sequence.eq_intro", "Hacl.Impl.Poly1305.Fields.limb", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Poly1...
[]
true
false
true
false
false
let ctx_inv_zeros #s ctx h =
let acc_b = gsub ctx 0ul (nlimb s) in as_seq_gsub h ctx 0ul (nlimb s); LSeq.eq_intro (feval h acc_b) (LSeq.create (width s) 0); assert (felem_fits h acc_b (2, 2, 2, 2, 2)); let precomp_b = gsub ctx (nlimb s) (precomplen s) in LSeq.eq_intro (as_seq h precomp_b) (Lib.Sequence.create (v (precomplen s)) (limb_zero s)); pre...
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_scale
val sum_scale (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) (k:int) : Lemma (ensures k * sum a b f == sum a b (fun i -> k * f i)) (decreases (b - a))
val sum_scale (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) (k:int) : Lemma (ensures k * sum a b f == sum a b (fun i -> k * f i)) (decreases (b - a))
let rec sum_scale a b f k = if a = b then () else begin sum_scale (a + 1) b f k; sum_extensionality (a + 1) b (fun (i:nat{a <= i /\ i <= b}) -> k * f i) (fun (i:nat{a + 1 <= i /\ i <= b}) -> k * f i) end
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 190, "start_col": 0, "start_line": 182 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> k: Prims.int -> FStar.Pervasives.Lemma (ensures k * FStar.Math.Fermat.sum a b f == FStar.Math.Fermat.sum a b (fun i -> k * f i)) (decreases b - a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.sum_extensionality", "Prims.op_Addition", "FStar.Mul.op_Star", "Prims.unit", "FStar.Math.Fermat.sum_scale" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_scale a b f k =
if a = b then () else (sum_scale (a + 1) b f k; sum_extensionality (a + 1) b (fun (i: nat{a <= i /\ i <= b}) -> k * f i) (fun (i: nat{a + 1 <= i /\ i <= b}) -> k * f i))
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_const
val sum_const (a:nat) (b:nat{a <= b}) (k:int) : Lemma (ensures sum a b (fun i -> k) == k * (b - a + 1)) (decreases (b - a))
val sum_const (a:nat) (b:nat{a <= b}) (k:int) : Lemma (ensures sum a b (fun i -> k) == k * (b - a + 1)) (decreases (b - a))
let rec sum_const a b k = if a = b then () else begin sum_const (a + 1) b k; sum_extensionality (a + 1) b (fun (i:nat{a <= i /\ i <= b}) -> k) (fun (i:nat{a + 1 <= i /\ i <= b}) -> k) end
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 177, "start_col": 0, "start_line": 169 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> k: Prims.int -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.sum a b (fun _ -> k) == k * (b - a + 1)) (decreases b - a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.sum_extensionality", "Prims.op_Addition", "Prims.l_and", "Prims.unit", "FStar.Math.Fermat.sum_const" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_const a b k =
if a = b then () else (sum_const (a + 1) b k; sum_extensionality (a + 1) b (fun (i: nat{a <= i /\ i <= b}) -> k) (fun (i: nat{a + 1 <= i /\ i <= b}) -> k))
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.pow_mod
val pow_mod (p:pos) (a:int) (k:nat) : Lemma (pow a k % p == pow (a % p) k % p)
val pow_mod (p:pos) (a:int) (k:nat) : Lemma (pow a k % p == pow (a % p) k % p)
let rec pow_mod p a k = if k = 0 then () else calc (==) { pow a k % p; == { } a * pow a (k - 1) % p; == { lemma_mod_mul_distr_r a (pow a (k - 1)) p } (a * (pow a (k - 1) % p)) % p; == { pow_mod p a (k - 1) } (a * (pow (a % p) (k - 1) % p)) % p; == { lemma_mod_mul_...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 57, "start_col": 0, "start_line": 40 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.pos -> a: Prims.int -> k: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a k % p == FStar.Math.Fermat.pow (a % p) k % p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.int", "Prims.nat", "Prims.op_Equality", "Prims.bool", "FStar.Calc.calc_finish", "Prims.eq2", "Prims.op_Modulus", "FStar.Math.Fermat.pow", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Mul.op_Star", "Prims.op_Subtr...
[ "recursion" ]
false
false
true
false
false
let rec pow_mod p a k =
if k = 0 then () else calc ( == ) { pow a k % p; ( == ) { () } a * pow a (k - 1) % p; ( == ) { lemma_mod_mul_distr_r a (pow a (k - 1)) p } (a * (pow a (k - 1) % p)) % p; ( == ) { pow_mod p a (k - 1) } (a * (pow (a % p) (k - 1) % p)) % p; ( == ) { lemma_mod_mul_distr_r a (pow (a % p) (k...
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_extensionality
val sum_extensionality (a:nat) (b:nat{a <= b}) (f g:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (requires forall (i:nat{a <= i /\ i <= b}). f i == g i) (ensures sum a b f == sum a b g) (decreases (b - a))
val sum_extensionality (a:nat) (b:nat{a <= b}) (f g:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (requires forall (i:nat{a <= i /\ i <= b}). f i == g i) (ensures sum a b f == sum a b g) (decreases (b - a))
let rec sum_extensionality a b f g = if a = b then () else sum_extensionality (a + 1) b f g
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 153, "start_col": 0, "start_line": 151 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> g: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> FStar.Pervasives.Lemma (requires forall (i: Prims.nat{a <= i /\ i <= b}). f i == g i) (ensures FStar.Math.Fermat.sum a b f == FStar.Math.Fermat.sum a b...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.sum_extensionality", "Prims.op_Addition", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_extensionality a b f g =
if a = b then () else sum_extensionality (a + 1) b f g
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_last
val sum_last (a:nat) (b:nat{a < b}) (f:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f == sum a (b - 1) f + f b) (decreases (b - a))
val sum_last (a:nat) (b:nat{a < b}) (f:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f == sum a (b - 1) f + f b) (decreases (b - a))
let rec sum_last a b f = if a + 1 = b then sum_first a b f else sum_last (a + 1) b f
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 164, "start_col": 0, "start_line": 162 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a < b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.sum a b f == FStar.Math.Fermat.sum a (b - 1) f + f b) (decreases b - a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.int", "Prims.op_Equality", "Prims.op_Addition", "FStar.Math.Fermat.sum_first", "Prims.bool", "FStar.Math.Fermat.sum_last", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_last a b f =
if a + 1 = b then sum_first a b f else sum_last (a + 1) b f
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.pow_plus
val pow_plus (a:int) (k m:nat): Lemma (pow a (k + m) == pow a k * pow a m)
val pow_plus (a:int) (k m:nat): Lemma (pow a (k + m) == pow a k * pow a m)
let rec pow_plus a k m = match k with | 0 -> () | _ -> calc (==) { pow a (k + m); == { } a * pow a ((k + m) - 1); == { pow_plus a (k - 1) m } a * (pow a (k - 1) * pow a m); == { } pow a k * pow a m; }
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 37, "start_col": 0, "start_line": 25 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.int -> k: Prims.nat -> m: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a (k + m) == FStar.Math.Fermat.pow a k * FStar.Math.Fermat.pow a m)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Prims.nat", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Math.Fermat.pow", "Prims.op_Addition", "FStar.Mul.op_Star", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Prims.op_Subtraction", "FStar.Calc.calc_init", "FStar.Calc.calc...
[ "recursion" ]
false
false
true
false
false
let rec pow_plus a k m =
match k with | 0 -> () | _ -> calc ( == ) { pow a (k + m); ( == ) { () } a * pow a ((k + m) - 1); ( == ) { pow_plus a (k - 1) m } a * (pow a (k - 1) * pow a m); ( == ) { () } pow a k * pow a m; }
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_add
val sum_add (a:nat) (b:nat{a <= b}) (f g:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f + sum a b g == sum a b (fun i -> f i + g i)) (decreases (b - a))
val sum_add (a:nat) (b:nat{a <= b}) (f g:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f + sum a b g == sum a b (fun i -> f i + g i)) (decreases (b - a))
let rec sum_add a b f g = if a = b then () else begin sum_add (a + 1) b f g; sum_extensionality (a + 1) b (fun (i:nat{a <= i /\ i <= b}) -> f i + g i) (fun (i:nat{a + 1 <= i /\ i <= b}) -> f i + g i) end
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 203, "start_col": 0, "start_line": 195 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> g: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.sum a b f + FStar.Math.Fermat.sum a b g == FStar.Math.Fermat.sum a b (fun i -> f i + ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.sum_extensionality", "Prims.op_Addition", "Prims.unit", "FStar.Math.Fermat.sum_add" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_add a b f g =
if a = b then () else (sum_add (a + 1) b f g; sum_extensionality (a + 1) b (fun (i: nat{a <= i /\ i <= b}) -> f i + g i) (fun (i: nat{a + 1 <= i /\ i <= b}) -> f i + g i))
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_shift
val sum_shift (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f == sum (a + 1) (b + 1) (fun (i:nat{a + 1 <= i /\ i <= b + 1}) -> f (i - 1))) (decreases (b - a))
val sum_shift (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) : Lemma (ensures sum a b f == sum (a + 1) (b + 1) (fun (i:nat{a + 1 <= i /\ i <= b + 1}) -> f (i - 1))) (decreases (b - a))
let rec sum_shift a b f = if a = b then () else begin sum_shift (a + 1) b f; sum_extensionality (a + 2) (b + 1) (fun (i:nat{a + 1 <= i /\ i <= b + 1}) -> f (i - 1)) (fun (i:nat{a + 1 + 1 <= i /\ i <= b + 1}) -> f (i - 1)) end
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 216, "start_col": 0, "start_line": 208 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.sum a b f == FStar.Math.Fermat.sum (a + 1) (b + 1) (fun i -> f (i - 1))) (decreases b - a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.sum_extensionality", "Prims.op_Addition", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Fermat.sum_shift" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_shift a b f =
if a = b then () else (sum_shift (a + 1) b f; sum_extensionality (a + 2) (b + 1) (fun (i: nat{a + 1 <= i /\ i <= b + 1}) -> f (i - 1)) (fun (i: nat{a + 1 + 1 <= i /\ i <= b + 1}) -> f (i - 1)))
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update_multi_f
val poly1305_update_multi_f: #s:field_spec -> p:precomp_r s -> bs:size_t{v bs == width s * S.size_block} -> nb:size_t -> len:size_t{v nb == v len / v bs /\ v len % v bs == 0} -> text:lbuffer uint8 len -> i:size_t{v i < v nb} -> acc:felem s -> Stack unit (requires fun h -> live h p /\ live h te...
val poly1305_update_multi_f: #s:field_spec -> p:precomp_r s -> bs:size_t{v bs == width s * S.size_block} -> nb:size_t -> len:size_t{v nb == v len / v bs /\ v len % v bs == 0} -> text:lbuffer uint8 len -> i:size_t{v i < v nb} -> acc:felem s -> Stack unit (requires fun h -> live h p /\ live h te...
let poly1305_update_multi_f #s pre bs nb len text i acc= assert ((v i + 1) * v bs <= v nb * v bs); let block = sub #_ #_ #len text (i *! bs) bs in let h1 = ST.get () in as_seq_gsub h1 text (i *! bs) bs; poly1305_update_nblocks #s pre block acc
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 438, "start_col": 0, "start_line": 433 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
p: Hacl.Impl.Poly1305.Fields.precomp_r s -> bs: Lib.IntTypes.size_t {Lib.IntTypes.v bs == Hacl.Impl.Poly1305.Fields.width s * Spec.Poly1305.size_block} -> nb: Lib.IntTypes.size_t -> len: Lib.IntTypes.size_t { Lib.IntTypes.v nb == Lib.IntTypes.v len / Lib.IntTypes.v bs /\ ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.precomp_r", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.Mul.op_Star", "Hacl.Impl.Poly1305.Fields.width", "Spec.Poly1305.size_block", "Prims.l_and", "Prims....
[]
false
true
false
false
false
let poly1305_update_multi_f #s pre bs nb len text i acc =
assert ((v i + 1) * v bs <= v nb * v bs); let block = sub #_ #_ #len text (i *! bs) bs in let h1 = ST.get () in as_seq_gsub h1 text (i *! bs) bs; poly1305_update_nblocks #s pre block acc
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.factorial_mod_prime
val factorial_mod_prime (p:int{is_prime p}) (k:pos{k < p}) : Lemma (requires !k % p = 0) (ensures False) (decreases k)
val factorial_mod_prime (p:int{is_prime p}) (k:pos{k < p}) : Lemma (requires !k % p = 0) (ensures False) (decreases k)
let rec factorial_mod_prime p k = if k = 0 then () else begin euclid_prime p k !(k - 1); factorial_mod_prime p (k - 1) end
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 368, "start_col": 0, "start_line": 362 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> k: Prims.pos{k < p} -> FStar.Pervasives.Lemma (requires !k % p = 0) (ensures Prims.l_False) (decreases k)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.bool", "FStar.Math.Fermat.factorial_mod_prime", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Euclid.euclid_prime", "FStar.Math.Fermat.op_Bang" ]
[ "recursion" ]
false
false
true
false
false
let rec factorial_mod_prime p k =
if k = 0 then () else (euclid_prime p k !(k - 1); factorial_mod_prime p (k - 1))
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.fmul_precomp_inv_zeros
val fmul_precomp_inv_zeros: #s:field_spec -> precomp_b:lbuffer (limb s) (precomplen s) -> h:mem -> Lemma (requires as_seq h precomp_b == Lib.Sequence.create (v (precomplen s)) (limb_zero s)) (ensures F32xN.fmul_precomp_r_pre #(width s) h precomp_b)
val fmul_precomp_inv_zeros: #s:field_spec -> precomp_b:lbuffer (limb s) (precomplen s) -> h:mem -> Lemma (requires as_seq h precomp_b == Lib.Sequence.create (v (precomplen s)) (limb_zero s)) (ensures F32xN.fmul_precomp_r_pre #(width s) h precomp_b)
let fmul_precomp_inv_zeros #s precomp_b h = let r_b = gsub precomp_b 0ul (nlimb s) in let r_b5 = gsub precomp_b (nlimb s) (nlimb s) in as_seq_gsub h precomp_b 0ul (nlimb s); as_seq_gsub h precomp_b (nlimb s) (nlimb s); Hacl.Spec.Poly1305.Field32xN.Lemmas.precomp_r5_zeros (width s); LSeq.eq_intro (feval h r...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 96, "start_col": 0, "start_line": 87 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
precomp_b: Lib.Buffer.lbuffer (Hacl.Impl.Poly1305.Fields.limb s) (Hacl.Impl.Poly1305.Fields.precomplen s) -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Lib.Buffer.as_seq h precomp_b == Lib.Sequence.create (Lib.IntTypes.v (Hacl.Impl.Poly1305.Fields.precom...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Lib.Buffer.lbuffer", "Hacl.Impl.Poly1305.Fields.limb", "Hacl.Impl.Poly1305.Fields.precomplen", "FStar.Monotonic.HyperStack.mem", "Prims._assert", "Prims.eq2", "Hacl.Spec.Poly1305.Field32xN.felem5", "Hacl.Impl.Poly1305.Fields.width", "Hacl.Impl.Poly1305.Fiel...
[]
true
false
true
false
false
let fmul_precomp_inv_zeros #s precomp_b h =
let r_b = gsub precomp_b 0ul (nlimb s) in let r_b5 = gsub precomp_b (nlimb s) (nlimb s) in as_seq_gsub h precomp_b 0ul (nlimb s); as_seq_gsub h precomp_b (nlimb s) (nlimb s); Hacl.Spec.Poly1305.Field32xN.Lemmas.precomp_r5_zeros (width s); LSeq.eq_intro (feval h r_b) (LSeq.create (width s) 0); LSeq.eq_intro (feval h r_b...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vmr
val va_code_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> Tot va_code
val va_code_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> Tot va_code
let va_code_Vmr dst src = (Ins (S.Vmr dst src))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 15, "start_col": 0, "start_line": 14 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vmr", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vmr dst src =
(Ins (S.Vmr dst src))
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.fermat
val fermat (p:int{is_prime p}) (a:int) : Lemma (pow a p % p == a % p)
val fermat (p:int{is_prime p}) (a:int) : Lemma (pow a p % p == a % p)
let fermat p a = if a % p = 0 then begin small_mod 0 p; pow_mod p a p; pow_zero p end else calc (==) { pow a p % p; == { pow_mod p a p } pow (a % p) p % p; == { fermat_aux p (a % p) } (a % p) % p; == { lemma_mod_twice a p } a % p; }
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 475, "start_col": 0, "start_line": 459 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.int -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a p % p == a % p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.op_Equality", "Prims.op_Modulus", "FStar.Math.Fermat.pow_zero", "Prims.unit", "FStar.Math.Fermat.pow_mod", "FStar.Math.Lemmas.small_mod", "Prims.bool", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Math.Fermat.pow", "Prims.Cons", "FStar.Pre...
[]
false
false
true
false
false
let fermat p a =
if a % p = 0 then (small_mod 0 p; pow_mod p a p; pow_zero p) else calc ( == ) { pow a p % p; ( == ) { pow_mod p a p } pow (a % p) p % p; ( == ) { fermat_aux p (a % p) } (a % p) % p; ( == ) { lemma_mod_twice a p } a % p; }
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.mod_mult_congr
val mod_mult_congr (p:int{is_prime p}) (a b c:int) : Lemma (requires (a * c) % p = (b * c) % p /\ c % p <> 0) (ensures a % p = b % p)
val mod_mult_congr (p:int{is_prime p}) (a b c:int) : Lemma (requires (a * c) % p = (b * c) % p /\ c % p <> 0) (ensures a % p = b % p)
let mod_mult_congr p a b c = let open FStar.Math.Lemmas in lemma_mod_mul_distr_l a c p; lemma_mod_mul_distr_l b c p; if a % p = b % p then () else if b % p < a % p then mod_mult_congr_aux p (a % p) (b % p) c else mod_mult_congr_aux p (b % p) (a % p) c
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 501, "start_col": 0, "start_line": 495 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.int -> b: Prims.int -> c: Prims.int -> FStar.Pervasives.Lemma (requires a * c % p = b * c % p /\ c % p <> 0) (ensures a % p = b % p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.op_Equality", "Prims.op_Modulus", "Prims.bool", "Prims.op_LessThan", "FStar.Math.Fermat.mod_mult_congr_aux", "Prims.unit", "FStar.Math.Lemmas.lemma_mod_mul_distr_l" ]
[]
false
false
true
false
false
let mod_mult_congr p a b c =
let open FStar.Math.Lemmas in lemma_mod_mul_distr_l a c p; lemma_mod_mul_distr_l b c p; if a % p = b % p then () else if b % p < a % p then mod_mult_congr_aux p (a % p) (b % p) c else mod_mult_congr_aux p (b % p) (a % p) c
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.sum_mod
val sum_mod (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) (n:pos) : Lemma (ensures sum a b f % n == sum a b (fun i -> f i % n) % n) (decreases (b - a))
val sum_mod (a:nat) (b:nat{a <= b}) (f:(i:nat{a <= i /\ i <= b}) -> int) (n:pos) : Lemma (ensures sum a b f % n == sum a b (fun i -> f i % n) % n) (decreases (b - a))
let rec sum_mod a b f n = if a = b then () else let g = fun (i:nat{a <= i /\ i <= b}) -> f i % n in let f' = fun (i:nat{a + 1 <= i /\ i <= b}) -> f i % n in calc (==) { sum a b f % n; == { sum_first a b f } (f a + sum (a + 1) b f) % n; == { lemma_mod_plus_distr_r (f a) (sum (a + ...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 240, "start_col": 0, "start_line": 221 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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: Prims.nat -> b: Prims.nat{a <= b} -> f: (i: Prims.nat{a <= i /\ i <= b} -> Prims.int) -> n: Prims.pos -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.sum a b f % n == FStar.Math.Fermat.sum a b (fun i -> f i % n) % n) (decreases b - a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.l_and", "Prims.int", "Prims.pos", "Prims.op_Equality", "Prims.bool", "FStar.Calc.calc_finish", "Prims.eq2", "Prims.op_Modulus", "FStar.Math.Fermat.sum", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "F...
[ "recursion" ]
false
false
true
false
false
let rec sum_mod a b f n =
if a = b then () else let g = fun (i: nat{a <= i /\ i <= b}) -> f i % n in let f' = fun (i: nat{a + 1 <= i /\ i <= b}) -> f i % n in calc ( == ) { sum a b f % n; ( == ) { sum_first a b f } (f a + sum (a + 1) b f) % n; ( == ) { lemma_mod_plus_distr_r (f a) (sum (a + 1) b f) n } (f a + (sum (a +...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vmr
val va_codegen_success_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vmr dst src = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 19, "start_col": 0, "start_line": 18 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vmr dst src =
(va_ttrue ())
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.freshman_aux
val freshman_aux (p:int{is_prime p}) (a b:int) (i:pos{i < p}): Lemma ((binomial p i * pow a (p - i) * pow b i) % p == 0)
val freshman_aux (p:int{is_prime p}) (a b:int) (i:pos{i < p}): Lemma ((binomial p i * pow a (p - i) * pow b i) % p == 0)
let freshman_aux p a b i = calc (==) { (binomial p i * pow a (p - i) * pow b i) % p; == { paren_mul_right (binomial p i) (pow a (p - i)) (pow b i) } (binomial p i * (pow a (p - i) * pow b i)) % p; == { lemma_mod_mul_distr_l (binomial p i) (pow a (p - i) * pow b i) p } (binomial p i % p * (pow a (...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 406, "start_col": 0, "start_line": 397 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.int -> b: Prims.int -> i: Prims.pos{i < p} -> FStar.Pervasives.Lemma (ensures (FStar.Math.Fermat.binomial p i * FStar.Math.Fermat.pow a (p - i)) * FStar.Math.Fermat.pow b i % p == 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "FStar.Calc.calc_finish", "Prims.eq2", "Prims.op_Modulus", "FStar.Mul.op_Star", "FStar.Math.Fermat.binomial", "FStar.Math.Fermat.pow", "Prims.op_Subtraction", "Prims.Cons", "FStar.Preorder.relation", ...
[]
false
false
true
false
false
let freshman_aux p a b i =
calc ( == ) { ((binomial p i * pow a (p - i)) * pow b i) % p; ( == ) { paren_mul_right (binomial p i) (pow a (p - i)) (pow b i) } (binomial p i * (pow a (p - i) * pow b i)) % p; ( == ) { lemma_mod_mul_distr_l (binomial p i) (pow a (p - i) * pow b i) p } ((binomial p i % p) * (pow a (p - i) * pow b i)) % p; ...
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.binomial_prime
val binomial_prime (p:int{is_prime p}) (k:pos{k < p}) : Lemma (binomial p k % p == 0)
val binomial_prime (p:int{is_prime p}) (k:pos{k < p}) : Lemma (binomial p k % p == 0)
let binomial_prime p k = calc (==) { (p * !(p -1)) % p; == { FStar.Math.Lemmas.lemma_mod_mul_distr_l p (!(p - 1)) p } (p % p * !(p - 1)) % p; == { } (0 * !(p - 1)) % p; == { } 0; }; binomial_factorial (p - k) k; assert (binomial p k * (!k * !(p - k)) == p * !(p - 1)); euclid_prime ...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 393, "start_col": 0, "start_line": 372 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> k: Prims.pos{k < p} -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.binomial p k % p == 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "Prims.op_disEquality", "Prims.op_Modulus", "FStar.Math.Fermat.binomial", "Prims.op_Equality", "FStar.Math.Fermat.op_Bang", "FStar.Math.Fermat.factorial_mod_prime", "Prims.bool", "Prims.op_Subtraction",...
[]
false
false
true
false
false
let binomial_prime p k =
calc ( == ) { (p * !(p - 1)) % p; ( == ) { FStar.Math.Lemmas.lemma_mod_mul_distr_l p (!(p - 1)) p } ((p % p) * !(p - 1)) % p; ( == ) { () } (0 * !(p - 1)) % p; ( == ) { () } 0; }; binomial_factorial (p - k) k; assert (binomial p k * (!k * !(p - k)) == p * !(p - 1)); euclid_prime p (binomial p k) (!k * !(p...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Mfvsrd
val va_codegen_success_Mfvsrd : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Mfvsrd : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Mfvsrd dst src = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 48, "start_col": 0, "start_line": 47 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_reg_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Mfvsrd dst src =
(va_ttrue ())
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.reveal_ctx_inv'
val reveal_ctx_inv': #s:field_spec -> ctx:poly1305_ctx s -> ctx':poly1305_ctx s -> h0:mem -> h1:mem -> Lemma (requires Seq.equal (as_seq h0 ctx) (as_seq h1 ctx') /\ state_inv_t h0 ctx) (ensures as_get_r h0 ctx == as_get_r h1 ctx' /\ as_get_acc h0 ctx == as_get_acc h1 ctx' /\ state_inv_t h1 ctx')
val reveal_ctx_inv': #s:field_spec -> ctx:poly1305_ctx s -> ctx':poly1305_ctx s -> h0:mem -> h1:mem -> Lemma (requires Seq.equal (as_seq h0 ctx) (as_seq h1 ctx') /\ state_inv_t h0 ctx) (ensures as_get_r h0 ctx == as_get_r h1 ctx' /\ as_get_acc h0 ctx == as_get_acc h1 ctx' /\ state_inv_t h1 ctx')
let reveal_ctx_inv' #s ctx ctx' h0 h1 = let acc_b = gsub ctx 0ul (nlimb s) in let acc_b' = gsub ctx' 0ul (nlimb s) in let r_b = gsub ctx (nlimb s) (nlimb s) in let r_b' = gsub ctx' (nlimb s) (nlimb s) in let precom_b = gsub ctx (nlimb s) (precomplen s) in let precom_b' = gsub ctx' (nlimb s) (precomplen s) i...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 79, "start_col": 0, "start_line": 58 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
ctx: Hacl.Impl.Poly1305.poly1305_ctx s -> ctx': Hacl.Impl.Poly1305.poly1305_ctx s -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.equal (Lib.Buffer.as_seq h0 ctx) (Lib.Buffer.as_seq h1 ctx') /\ Hacl.I...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "FStar.Monotonic.HyperStack.mem", "Prims._assert", "Prims.eq2", "Lib.Sequence.lseq", "Hacl.Impl.Poly1305.Fields.limb", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Poly1305.Fields.precomplen", "L...
[]
true
false
true
false
false
let reveal_ctx_inv' #s ctx ctx' h0 h1 =
let acc_b = gsub ctx 0ul (nlimb s) in let acc_b' = gsub ctx' 0ul (nlimb s) in let r_b = gsub ctx (nlimb s) (nlimb s) in let r_b' = gsub ctx' (nlimb s) (nlimb s) in let precom_b = gsub ctx (nlimb s) (precomplen s) in let precom_b' = gsub ctx' (nlimb s) (precomplen s) in as_seq_gsub h0 ctx 0ul (nlimb s); as_seq_gsub h1 c...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Mfvsrld
val va_code_Mfvsrld : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_code
val va_code_Mfvsrld : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_code
let va_code_Mfvsrld dst src = (Ins (S.Mfvsrld dst src))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 74, "start_col": 0, "start_line": 73 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_reg_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Mfvsrld", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Mfvsrld dst src =
(Ins (S.Mfvsrld dst src))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Mfvsrd
val va_code_Mfvsrd : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_code
val va_code_Mfvsrd : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_code
let va_code_Mfvsrd dst src = (Ins (S.Mfvsrd dst src))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 44, "start_col": 0, "start_line": 43 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_reg_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Mfvsrd", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Mfvsrd dst src =
(Ins (S.Mfvsrd dst src))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Mtvsrdd
val va_code_Mtvsrdd : dst:va_operand_vec_opr -> src1:va_operand_reg_opr -> src2:va_operand_reg_opr -> Tot va_code
val va_code_Mtvsrdd : dst:va_operand_vec_opr -> src1:va_operand_reg_opr -> src2:va_operand_reg_opr -> Tot va_code
let va_code_Mtvsrdd dst src1 src2 = (Ins (S.Mtvsrdd dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 104, "start_col": 0, "start_line": 103 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_reg_opr -> src2: Vale.PPC64LE.Decls.va_operand_reg_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Mtvsrdd", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Mtvsrdd dst src1 src2 =
(Ins (S.Mtvsrdd dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Mfvsrld
val va_codegen_success_Mfvsrld : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Mfvsrld : dst:va_operand_reg_opr -> src:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Mfvsrld dst src = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 78, "start_col": 0, "start_line": 77 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_reg_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Mfvsrld dst src =
(va_ttrue ())
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_encode_last
val poly1305_encode_last: #s:field_spec -> f:felem s -> len:size_t{v len < 16} -> b:lbuffer uint8 len -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (feval h1 f).[0] == S.encode ...
val poly1305_encode_last: #s:field_spec -> f:felem s -> len:size_t{v len < 16} -> b:lbuffer uint8 len -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint b f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (feval h1 f).[0] == S.encode ...
let poly1305_encode_last #s f len b = push_frame(); let tmp = create 16ul (u8 0) in update_sub tmp 0ul len b; let h0 = ST.get () in Hacl.Impl.Poly1305.Lemmas.nat_from_bytes_le_eq_lemma (v len) (as_seq h0 b); assert (BSeq.nat_from_bytes_le (as_seq h0 b) == BSeq.nat_from_bytes_le (as_seq h0 tmp)); assert (B...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 200, "start_col": 0, "start_line": 187 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
f: Hacl.Impl.Poly1305.Fields.felem s -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len < 16} -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl....
[]
false
true
false
false
false
let poly1305_encode_last #s f len b =
push_frame (); let tmp = create 16ul (u8 0) in update_sub tmp 0ul len b; let h0 = ST.get () in Hacl.Impl.Poly1305.Lemmas.nat_from_bytes_le_eq_lemma (v len) (as_seq h0 b); assert (BSeq.nat_from_bytes_le (as_seq h0 b) == BSeq.nat_from_bytes_le (as_seq h0 tmp)); assert (BSeq.nat_from_bytes_le (as_seq h0 b) < pow2 (v len *...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Mtvsrdd
val va_codegen_success_Mtvsrdd : dst:va_operand_vec_opr -> src1:va_operand_reg_opr -> src2:va_operand_reg_opr -> Tot va_pbool
val va_codegen_success_Mtvsrdd : dst:va_operand_vec_opr -> src1:va_operand_reg_opr -> src2:va_operand_reg_opr -> Tot va_pbool
let va_codegen_success_Mtvsrdd dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 108, "start_col": 0, "start_line": 107 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_reg_opr -> src2: Vale.PPC64LE.Decls.va_operand_reg_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Mtvsrdd dst src1 src2 =
(va_ttrue ())
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Mtvsrws
val va_codegen_success_Mtvsrws : dst:va_operand_vec_opr -> src:va_operand_reg_opr -> Tot va_pbool
val va_codegen_success_Mtvsrws : dst:va_operand_vec_opr -> src:va_operand_reg_opr -> Tot va_pbool
let va_codegen_success_Mtvsrws dst src = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 137, "start_col": 0, "start_line": 136 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src: Vale.PPC64LE.Decls.va_operand_reg_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Mtvsrws dst src =
(va_ttrue ())
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.mod_mult_congr_aux
val mod_mult_congr_aux (p:int{is_prime p}) (a b c:int) : Lemma (requires (a * c) % p = (b * c) % p /\ 0 <= b /\ b <= a /\ a < p /\ c % p <> 0) (ensures a = b)
val mod_mult_congr_aux (p:int{is_prime p}) (a b c:int) : Lemma (requires (a * c) % p = (b * c) % p /\ 0 <= b /\ b <= a /\ a < p /\ c % p <> 0) (ensures a = b)
let mod_mult_congr_aux p a b c = let open FStar.Math.Lemmas in calc (==>) { (a * c) % p == (b * c) % p; ==> { mod_add_both (a * c) (b * c) (-b * c) p } (a * c - b * c) % p == (b * c - b * c) % p; ==> { swap_mul a c; swap_mul b c; lemma_mul_sub_distr c a b } (c * (a - b)) % p == (b * c - b * c) %...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 493, "start_col": 0, "start_line": 480 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.int -> b: Prims.int -> c: Prims.int -> FStar.Pervasives.Lemma (requires a * c % p = b * c % p /\ 0 <= b /\ b <= a /\ a < p /\ c % p <> 0) (ensures a = b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "FStar.Math.Lemmas.small_mod", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Euclid.euclid", "Prims.op_Modulus", "FStar.Pervasives.Native.tuple2", "FStar.Math.Euclid.bezout_prime", "FStar.Calc.calc_finish", "Prims.logical", "Prims.l_imp", "Prims...
[]
false
false
true
false
false
let mod_mult_congr_aux p a b c =
let open FStar.Math.Lemmas in calc ( ==> ) { (a * c) % p == (b * c) % p; ( ==> ) { mod_add_both (a * c) (b * c) (- b * c) p } (a * c - b * c) % p == (b * c - b * c) % p; ( ==> ) { (swap_mul a c; swap_mul b c; lemma_mul_sub_distr c a b) } (c * (a - b)) % p == (b * c - b * c) % p; ( ==> ) { (small_mod...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Mtvsrws
val va_code_Mtvsrws : dst:va_operand_vec_opr -> src:va_operand_reg_opr -> Tot va_code
val va_code_Mtvsrws : dst:va_operand_vec_opr -> src:va_operand_reg_opr -> Tot va_code
let va_code_Mtvsrws dst src = (Ins (S.Mtvsrws dst src))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 133, "start_col": 0, "start_line": 132 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src: Vale.PPC64LE.Decls.va_operand_reg_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_operand_reg_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Mtvsrws", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Mtvsrws dst src =
(Ins (S.Mtvsrws dst src))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vadduwm
val va_code_Vadduwm : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
val va_code_Vadduwm : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
let va_code_Vadduwm dst src1 src2 = (Ins (S.Vadduwm dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 162, "start_col": 0, "start_line": 161 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vadduwm", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vadduwm dst src1 src2 =
(Ins (S.Vadduwm dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vxor
val va_code_Vxor : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
val va_code_Vxor : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
let va_code_Vxor dst src1 src2 = (Ins (S.Vxor dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 191, "start_col": 0, "start_line": 190 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vxor", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vxor dst src1 src2 =
(Ins (S.Vxor dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vadduwm
val va_codegen_success_Vadduwm : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vadduwm : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vadduwm dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 166, "start_col": 0, "start_line": 165 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vadduwm dst src1 src2 =
(va_ttrue ())
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.fermat_aux
val fermat_aux (p:int{is_prime p}) (a:pos{a < p}) : Lemma (ensures pow a p % p == a % p) (decreases a)
val fermat_aux (p:int{is_prime p}) (a:pos{a < p}) : Lemma (ensures pow a p % p == a % p) (decreases a)
let rec fermat_aux p a = if a = 1 then pow_one p else calc (==) { pow a p % p; == { } pow ((a - 1) + 1) p % p; == { freshman p (a - 1) 1 } (pow (a - 1) p + pow 1 p) % p; == { pow_one p } (pow (a - 1) p + 1) % p; == { lemma_mod_plus_distr_l (pow (a - 1) p) 1 p } ...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 457, "start_col": 0, "start_line": 438 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.pos{a < p} -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a p % p == a % p) (decreases a)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "FStar.Math.Fermat.pow_one", "Prims.bool", "FStar.Calc.calc_finish", "Prims.eq2", "Prims.op_Modulus", "FStar.Math.Fermat.pow", "Prims.Cons", "FStar.Preorder.relation", "Prims.Ni...
[ "recursion" ]
false
false
true
false
false
let rec fermat_aux p a =
if a = 1 then pow_one p else calc ( == ) { pow a p % p; ( == ) { () } pow ((a - 1) + 1) p % p; ( == ) { freshman p (a - 1) 1 } (pow (a - 1) p + pow 1 p) % p; ( == ) { pow_one p } (pow (a - 1) p + 1) % p; ( == ) { lemma_mod_plus_distr_l (pow (a - 1) p) 1 p } (pow (a - 1) p % p + 1) ...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vxor
val va_codegen_success_Vxor : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vxor : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vxor dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 195, "start_col": 0, "start_line": 194 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vxor dst src1 src2 =
(va_ttrue ())
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.fermat_alt
val fermat_alt (p:int{is_prime p}) (a:int{a % p <> 0}) : Lemma (pow a (p - 1) % p == 1)
val fermat_alt (p:int{is_prime p}) (a:int{a % p <> 0}) : Lemma (pow a (p - 1) % p == 1)
let fermat_alt p a = calc (==) { (pow a (p - 1) * a) % p; == { lemma_mod_mul_distr_r (pow a (p - 1)) a p; lemma_mod_mul_distr_l (pow a (p - 1)) (a % p) p } ((pow a (p - 1) % p) * (a % p)) % p; == { pow_mod p a (p - 1) } ((pow (a % p) (p - 1) % p) * (a % p)) % p; == { lemma_mod...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 524, "start_col": 0, "start_line": 503 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "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
p: Prims.int{FStar.Math.Euclid.is_prime p} -> a: Prims.int{a % p <> 0} -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.pow a (p - 1) % p == 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "FStar.Math.Euclid.is_prime", "Prims.b2t", "Prims.op_disEquality", "Prims.op_Modulus", "FStar.Math.Fermat.mod_mult_congr", "FStar.Math.Fermat.pow", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Lemmas.small_mod", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Mul.op_Star", ...
[]
false
false
true
false
false
let fermat_alt p a =
calc ( == ) { (pow a (p - 1) * a) % p; ( == ) { (lemma_mod_mul_distr_r (pow a (p - 1)) a p; lemma_mod_mul_distr_l (pow a (p - 1)) (a % p) p) } ((pow a (p - 1) % p) * (a % p)) % p; ( == ) { pow_mod p a (p - 1) } ((pow (a % p) (p - 1) % p) * (a % p)) % p; ( == ) { lemma_mod_mul_distr_l (pow (a % p) (p - 1...
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vand
val va_code_Vand : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
val va_code_Vand : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
let va_code_Vand dst src1 src2 = (Ins (S.Vand dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 220, "start_col": 0, "start_line": 219 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vand", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vand dst src1 src2 =
(Ins (S.Vand dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vand
val va_codegen_success_Vand : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vand : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vand dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 224, "start_col": 0, "start_line": 223 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vand dst src1 src2 =
(va_ttrue ())
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vslw
val va_codegen_success_Vslw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vslw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vslw dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 253, "start_col": 0, "start_line": 252 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vslw dst src1 src2 =
(va_ttrue ())
false
FStar.Math.Fermat.fst
FStar.Math.Fermat.binomial_factorial
val binomial_factorial (m n:nat) : Lemma (binomial (n + m) n * (!n * !m) == !(n + m))
val binomial_factorial (m n:nat) : Lemma (binomial (n + m) n * (!n * !m) == !(n + m))
let rec binomial_factorial m n = match m, n with | 0, _ -> binomial_n n | _, 0 -> () | _ -> let open FStar.Math.Lemmas in let reorder1 (a b c d:int) : Lemma (a * (b * (c * d)) == c * (a * (b * d))) = assert (a * (b * (c * d)) == c * (a * (b * d))) by (FStar.Tactics.CanonCommSemiring.int_semiring()...
{ "file_name": "ulib/FStar.Math.Fermat.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 140, "start_col": 0, "start_line": 98 }
module FStar.Math.Fermat open FStar.Mul open FStar.Math.Lemmas open FStar.Math.Euclid #set-options "--fuel 1 --ifuel 0 --z3rlimit 20" /// /// Pow /// val pow_zero (k:pos) : Lemma (ensures pow 0 k == 0) (decreases k) let rec pow_zero k = match k with | 1 -> () | _ -> pow_zero (k - 1) val pow_one (k:nat) : Lem...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.CanonCommSemiring.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.M...
[ { "abbrev": false, "full_module": "FStar.Math.Euclid", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Prims.nat -> n: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.Math.Fermat.binomial (n + m) n * (!n * !m) == !(n + m))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.Pervasives.Native.Mktuple2", "Prims.int", "FStar.Math.Fermat.binomial_n", "FStar.Pervasives.Native.tuple2", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.Mul.op_Star", "FStar.Math.Fermat.binomial", "Prims.op_Addition", "FStar.Math.Fermat.op_Bang", "Prims.Cons", "FStar.Pre...
[ "recursion" ]
false
false
true
false
false
let rec binomial_factorial m n =
match m, n with | 0, _ -> binomial_n n | _, 0 -> () | _ -> let open FStar.Math.Lemmas in let reorder1 (a b c d: int) : Lemma (a * (b * (c * d)) == c * (a * (b * d))) = FStar.Tactics.Effect.assert_by_tactic (a * (b * (c * d)) == c * (a * (b * d))) (fun _ -> (); (FStar.Tactics.CanonCommS...
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_update_128_256
val poly1305_update_128_256: #s:field_spec { s = M128 || s = M256 } -> poly1305_update_st s
val poly1305_update_128_256: #s:field_spec { s = M128 || s = M256 } -> poly1305_update_st s
let poly1305_update_128_256 #s ctx len text = let pre = get_precomp_r ctx in let acc = get_acc ctx in let h0 = ST.get () in poly1305_update_vec #s len text pre acc; let h1 = ST.get () in Equiv.poly1305_update_vec_lemma #(width s) (as_seq h0 text) (feval h0 acc).[0] (feval h0 (gsub pre 0ul 5ul)).[0]
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 114, "end_line": 576, "start_col": 0, "start_line": 570 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "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
Hacl.Impl.Poly1305.poly1305_update_st s
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Prims.b2t", "Prims.op_BarBar", "Prims.op_Equality", "Hacl.Impl.Poly1305.Fields.M128", "Hacl.Impl.Poly1305.Fields.M256", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Spec.Poly1305.Equiv.poly130...
[]
false
false
false
false
false
let poly1305_update_128_256 #s ctx len text =
let pre = get_precomp_r ctx in let acc = get_acc ctx in let h0 = ST.get () in poly1305_update_vec #s len text pre acc; let h1 = ST.get () in Equiv.poly1305_update_vec_lemma #(width s) (as_seq h0 text) (feval h0 acc).[ 0 ] (feval h0 (gsub pre 0ul 5ul)).[ 0 ]
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vslw
val va_code_Vslw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
val va_code_Vslw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
let va_code_Vslw dst src1 src2 = (Ins (S.Vslw dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 249, "start_col": 0, "start_line": 248 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vslw", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vslw dst src1 src2 =
(Ins (S.Vslw dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_code_Vsrw
val va_code_Vsrw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
val va_code_Vsrw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_code
let va_code_Vsrw dst src1 src2 = (Ins (S.Vsrw dst src1 src2))
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 278, "start_col": 0, "start_line": 277 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Machine_s.Ins", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Semantics_s.Vsrw", "Vale.PPC64LE.Decls.va_code" ]
[]
false
false
false
true
false
let va_code_Vsrw dst src1 src2 =
(Ins (S.Vsrw dst src1 src2))
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vsrw
val va_codegen_success_Vsrw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vsrw : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vsrw dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 282, "start_col": 0, "start_line": 281 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vsrw dst src1 src2 =
(va_ttrue ())
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_codegen_success_Vsl
val va_codegen_success_Vsl : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
val va_codegen_success_Vsl : dst:va_operand_vec_opr -> src1:va_operand_vec_opr -> src2:va_operand_vec_opr -> Tot va_pbool
let va_codegen_success_Vsl dst src1 src2 = (va_ttrue ())
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 311, "start_col": 0, "start_line": 310 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src1: Vale.PPC64LE.Decls.va_operand_vec_opr -> src2: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
false
false
false
true
false
let va_codegen_success_Vsl dst src1 src2 =
(va_ttrue ())
false
Vale.PPC64LE.InsVector.fst
Vale.PPC64LE.InsVector.va_wpProof_Vmr
val va_wpProof_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Vmr dst src va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Vmr dst src) ([va_mod_vec_op...
val va_wpProof_Vmr : dst:va_operand_vec_opr -> src:va_operand_vec_opr -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Vmr dst src va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Vmr dst src) ([va_mod_vec_op...
let va_wpProof_Vmr dst src va_s0 va_k = let (va_sM, va_f0) = va_lemma_Vmr (va_code_Vmr dst src) va_s0 dst src in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr dst va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr dst]) va_sM va_s0; let va_g = () in (va...
{ "file_name": "obj/Vale.PPC64LE.InsVector.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 37, "start_col": 0, "start_line": 31 }
module Vale.PPC64LE.InsVector open Vale.Def.Types_s open Vale.PPC64LE.Machine_s open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Spec.Hash.Definitions open Spec.SHA2 friend Vale.PPC64LE.Decls module S = Vale.PPC64LE.Semantics_s #reset-options "--initial_fuel 2 --max_fuel 4 --max_ifuel 2 --z3rlimit 50" //-- Vmr [@ ...
{ "checked_file": "/", "dependencies": [ "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Semantics_s.fst.checked", "Vale.PPC64LE.Memory_Sems.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.Decls.fst.checked", "Vale.PPC64LE....
[ { "abbrev": true, "full_module": "Vale.PPC64LE.Semantics_s", "short_module": "S" }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 4, "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
dst: Vale.PPC64LE.Decls.va_operand_vec_opr -> src: Vale.PPC64LE.Decls.va_operand_vec_opr -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
Prims.Ghost
[]
[]
[ "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", ...
[]
false
false
false
false
false
let va_wpProof_Vmr dst src va_s0 va_k =
let va_sM, va_f0 = va_lemma_Vmr (va_code_Vmr dst src) va_s0 dst src in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr dst va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr dst]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
false