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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Target.fst | Target.print_action | val print_action (mname:string) (a:action) : ML string | val print_action (mname:string) (a:action) : ML string | let rec print_action (mname:string) (a:action) : ML string =
let print_atomic_action (a:atomic_action)
: ML string
= match a with
| Action_return e ->
Printf.sprintf "(action_return %s)" (print_expr mname e)
| Action_abort -> "(action_abort())"
| Action_field_pos_64 -> "(actio... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 511,
"start_col": 0,
"start_line": 467
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 | mname: Prims.string -> a: Target.action -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Target.action",
"Target.atomic_action",
"FStar.Printf.sprintf",
"Target.print_action",
"Target.expr",
"Target.print_expr",
"Ast.ident",
"Target.print_ident",
"Prims.list",
"FStar.String.concat",
"FStar.List.map"
] | [
"recursion"
] | false | true | false | false | false | let rec print_action (mname: string) (a: action) : ML string =
| let print_atomic_action (a: atomic_action) : ML string =
match a with
| Action_return e -> Printf.sprintf "(action_return %s)" (print_expr mname e)
| Action_abort -> "(action_abort())"
| Action_field_pos_64 -> "(action_field_pos_64())"
| Action_field_pos_32 ->
"(action_field_pos_32 EverParse3d.Actions.Bac... | false |
Steel.GhostMonotonicHigherReference.fst | Steel.GhostMonotonicHigherReference.witnessed | val witnessed (#a:Type u#1) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | val witnessed (#a:Type u#1) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | let witnessed #a #p r fact =
PR.witnessed r (lift_fact fact) | {
"file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 113,
"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.Preorder.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.GhostPCMReference.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.Effect.Atomic",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "Steel.GhostPCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_m... | {
"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 |
r: Steel.GhostMonotonicHigherReference.ref a p ->
fact: Steel.GhostMonotonicHigherReference.property a
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"Steel.GhostMonotonicHigherReference.ref",
"Steel.GhostMonotonicHigherReference.property",
"Steel.GhostPCMReference.witnessed",
"Steel.Preorder.history",
"Steel.Preorder.pcm_history",
"Steel.Preorder.lift_fact"
] | [] | false | false | false | false | true | let witnessed #a #p r fact =
| PR.witnessed r (lift_fact fact) | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.token | val token : v: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop | let token (v:vprop) = v | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 6,
"start_col": 0,
"start_line": 6
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop"
] | [] | false | false | false | true | false | let token (v: vprop) =
| v | false | |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.is_forall | val is_forall : v: Pulse.Lib.Core.vprop -> p: (_: a -> Pulse.Lib.Core.vprop) -> Type0 | let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 38,
"end_line": 12,
"start_col": 0,
"start_line": 11
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x) | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Pulse.Lib.Core.vprop -> p: (_: a -> Pulse.Lib.Core.vprop) -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Prims.squash",
"Pulse.Lib.Forall.universal_quantifier"
] | [] | false | false | false | true | true | let is_forall #a (v: vprop) (p: (a -> vprop)) =
| squash (universal_quantifier #a v p) | false | |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.universal_quantifier | val universal_quantifier : v: Pulse.Lib.Core.vprop -> p: (_: a -> Pulse.Lib.Core.vprop) -> Type | let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 9,
"start_col": 0,
"start_line": 8
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Pulse.Lib.Core.vprop -> p: (_: a -> Pulse.Lib.Core.vprop) -> Type | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Core.stt_ghost",
"Prims.unit"
] | [] | false | false | false | true | true | let universal_quantifier #a (v: vprop) (p: (a -> vprop)) =
| x: a -> stt_ghost unit v (fun _ -> p x) | false | |
Target.fst | Target.print_output_type_val | val print_output_type_val (tbl: set) (t: typ) : ML string | val print_output_type_val (tbl: set) (t: typ) : ML string | let rec print_output_type_val (tbl:set) (t:typ) : ML string =
let open A in
if is_output_type t
then let s = print_output_type false t in
if H.try_find tbl s <> None then ""
else let _ = H.insert tbl s () in
assert (is_output_type t);
match t with
| T_app ... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 1081,
"start_col": 0,
"start_line": 1068
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"max_fuel": 1,
"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 | tbl: Target.set -> t: Target.typ -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Target.set",
"Target.typ",
"Target.is_output_type",
"Prims.string",
"Prims.bool",
"Ast.ident",
"FStar.Printf.sprintf",
"Prims.op_Hat",
"Target.print_output_type",
"Target.print_output_type_val",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"Hashtable.insert",
"Prims.op_disEquality",
"F... | [
"recursion"
] | false | true | false | false | false | let rec print_output_type_val (tbl: set) (t: typ) : ML string =
| let open A in
if is_output_type t
then
let s = print_output_type false t in
if H.try_find tbl s <> None
then ""
else
let _ = H.insert tbl s () in
assert (is_output_type t);
match t with
| T_app id KindOutput [] -> Printf.sprintf "\n\nval %s : Type0\n\n" s
| T_pointer bt ->
let bs = pri... | false |
Target.fst | Target.print_decl_for_types | val print_decl_for_types (mname: string) (d: decl) : ML string | val print_decl_for_types (mname: string) (d: decl) : ML string | let print_decl_for_types (mname:string) (d:decl) : ML string =
match fst d with
| Assumption _ -> ""
| Definition _ ->
print_definition mname d
| Type_decl td ->
Printf.sprintf "noextract\ninline_for_extraction\ntype %s = %s\n\n"
(print_typedef_name mname td.decl_name)
(print_t... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 24,
"end_line": 670,
"start_col": 0,
"start_line": 648
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 | mname: Prims.string -> d: Target.decl -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Target.decl",
"FStar.Pervasives.Native.fst",
"Target.decl'",
"Target.decl_attributes",
"Target.assumption",
"Target.definition",
"Target.print_definition",
"Target.type_decl",
"Prims.strcat",
"Target.maybe_print_type_equality",
"FStar.Printf.sprintf",
"Target.print_typedef_n... | [] | false | true | false | false | false | let print_decl_for_types (mname: string) (d: decl) : ML string =
| match fst d with
| Assumption _ -> ""
| Definition _ -> print_definition mname d
| Type_decl td ->
(Printf.sprintf "noextract\ninline_for_extraction\ntype %s = %s\n\n"
(print_typedef_name mname td.decl_name)
(print_typedef_body mname td.decl_typ))
`strcat`
(maybe_print_type_equality mname td)
| Output... | false |
Spec.Blake2.Alternative.fsti | Spec.Blake2.Alternative.blake2_update' | val blake2_update'
(a: alg)
(kk: size_nat{kk <= max_key a})
(k: lbytes kk)
(d: bytes{if kk = 0 then length d <= max_limb a else length d + (size_block a) <= max_limb a})
(s: state a)
: Tot (state a) | val blake2_update'
(a: alg)
(kk: size_nat{kk <= max_key a})
(k: lbytes kk)
(d: bytes{if kk = 0 then length d <= max_limb a else length d + (size_block a) <= max_limb a})
(s: state a)
: Tot (state a) | let blake2_update'
(a:alg)
(kk:size_nat{kk <= max_key a})
(k:lbytes kk)
(d:bytes{if kk = 0 then length d <= max_limb a else length d + (size_block a) <= max_limb a})
(s:state a): Tot (state a)
= let ll = length d in
let key_block: bytes = if kk > 0 then blake2_key_block a kk k else Seq.empty in
blake2_upd... | {
"file_name": "specs/lemmas/Spec.Blake2.Alternative.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 17,
"start_col": 0,
"start_line": 9
} | module Spec.Blake2.Alternative
open Spec.Blake2
open Lib.IntTypes
open Lib.ByteSequence
open Lib.Sequence | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"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 |
a: Spec.Blake2.Definitions.alg ->
kk: Lib.IntTypes.size_nat{kk <= Spec.Blake2.Definitions.max_key a} ->
k: Lib.ByteSequence.lbytes kk ->
d:
Lib.ByteSequence.bytes
{ (match kk = 0 with
| true -> Lib.Sequence.length d <= Spec.Blake2.Definitions.max_limb a
| _ ->
... | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.Blake2.Definitions.max_key",
"Lib.ByteSequence.lbytes",
"Lib.ByteSequence.bytes",
"Prims.op_Equality",
"Prims.int",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.Int... | [] | false | false | false | false | false | let blake2_update'
(a: alg)
(kk: size_nat{kk <= max_key a})
(k: lbytes kk)
(d: bytes{if kk = 0 then length d <= max_limb a else length d + (size_block a) <= max_limb a})
(s: state a)
: Tot (state a) =
| let ll = length d in
let key_block:bytes = if kk > 0 then blake2_key_block a kk k else Seq.empty in
blake2_update_blocks a 0 (key_block `Seq.append` d) s | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.prime | val prime : Prims.pos | let prime = Scalar.prime | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.pos | Prims.Tot | [
"total"
] | [] | [
"Spec.Poly1305.prime"
] | [] | false | false | false | true | false | let prime =
| Scalar.prime | false | |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.pfelem | val pfelem : Type0 | let pfelem = Scalar.felem | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Poly1305.felem"
] | [] | false | false | false | true | true | let pfelem =
| Scalar.felem | false | |
Target.fst | Target.print_out_expr_set_fstar | val print_out_expr_set_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string | val print_out_expr_set_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string | let print_out_expr_set_fstar (tbl:set) (mname:string) (oe:output_expr) : ML string =
let fn_name = Printf.sprintf "set_%s" (out_fn_name oe) in
match H.try_find tbl fn_name with
| Some _ -> ""
| _ ->
H.insert tbl fn_name ();
//TODO: module name?
let fn_arg1_t = print_typ mname oe.oe_bt in
... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 17,
"end_line": 1122,
"start_col": 0,
"start_line": 1097
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"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 | tbl: Target.set -> mname: Prims.string -> oe: Target.output_expr -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Target.set",
"Prims.string",
"Target.output_expr",
"Prims.unit",
"FStar.Pervasives.Native.option",
"FStar.Printf.sprintf",
"Prims.op_Equality",
"Prims.int",
"Target.__proj__Mkoutput_expr__item__oe_bitwidth",
"FStar.Pervasives.Native.None",
"Target.print_typ",
"Target.__proj__Mkoutput_expr__it... | [] | false | true | false | false | false | let print_out_expr_set_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string =
| let fn_name = Printf.sprintf "set_%s" (out_fn_name oe) in
match H.try_find tbl fn_name with
| Some _ -> ""
| _ ->
H.insert tbl fn_name ();
let fn_arg1_t = print_typ mname oe.oe_bt in
let fn_arg2_t =
if oe.oe_bitwidth = None
then print_typ mname oe.oe_t
else
Printf.sprintf "(i:%s{FStar.UInt.size ... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.lanes | val lanes : Type0 | let lanes = w:width{w == 1 \/ w == 2 \/ w == 4} | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntVector.width",
"Prims.l_or",
"Prims.eq2",
"Prims.int"
] | [] | false | false | false | true | true | let lanes =
| w: width{w == 1 \/ w == 2 \/ w == 4} | false | |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.pfmul | val pfmul (x y: pfelem) : pfelem | val pfmul (x y: pfelem) : pfelem | let pfmul (x:pfelem) (y:pfelem) : pfelem = Scalar.fmul x y | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Hacl.Spec.Poly1305.Vec.pfelem -> y: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Spec.Poly1305.fmul"
] | [] | false | false | false | true | false | let pfmul (x y: pfelem) : pfelem =
| Scalar.fmul x y | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.pfadd | val pfadd (x y: pfelem) : pfelem | val pfadd (x y: pfelem) : pfelem | let pfadd (x:pfelem) (y:pfelem) : pfelem = Scalar.fadd x y | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Hacl.Spec.Poly1305.Vec.pfelem -> y: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Spec.Poly1305.fadd"
] | [] | false | false | false | true | false | let pfadd (x y: pfelem) : pfelem =
| Scalar.fadd x y | false |
Target.fst | Target.print_expr | val print_expr (mname:string) (e:expr) : ML string | val print_expr (mname:string) (e:expr) : ML string | let rec print_expr (mname:string) (e:expr) : ML string =
match fst e with
| Constant c ->
A.print_constant c
| Identifier i -> print_maybe_qualified_ident mname i
| Record nm fields ->
Printf.sprintf "{ %s }" (String.concat "; " (print_fields mname fields))
| App op [e1;e2] ->
if is_infix ... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 353,
"start_col": 0,
"start_line": 307
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 | mname: Prims.string -> e: Target.expr -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [
"print_expr",
"print_exprs",
"print_fields"
] | [
"Prims.string",
"Target.expr",
"FStar.Pervasives.Native.fst",
"Target.expr'",
"Ast.range",
"Ast.constant",
"Ast.print_constant",
"Ast.ident",
"Target.print_maybe_qualified_ident",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.Printf.sprintf",
"FStar.String.concat",
"Target.print_f... | [
"mutual recursion"
] | false | true | false | false | false | let rec print_expr (mname: string) (e: expr) : ML string =
| match fst e with
| Constant c -> A.print_constant c
| Identifier i -> print_maybe_qualified_ident mname i
| Record nm fields -> Printf.sprintf "{ %s }" (String.concat "; " (print_fields mname fields))
| App op [e1 ; e2] ->
if is_infix op
then
Printf.sprintf "(%s %s %s)"
(print_expr mname e1)
(print_... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.fmul | val fmul (#w: lanes) (x y: elem w) : elem w | val fmul (#w: lanes) (x y: elem w) : elem w | let fmul (#w:lanes) (x:elem w) (y:elem w) : elem w =
map2 pfmul x y | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 40,
"start_col": 0,
"start_line": 39
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Hacl.Spec.Poly1305.Vec.elem w -> y: Hacl.Spec.Poly1305.Vec.elem w
-> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.elem",
"Lib.Sequence.map2",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.pfmul"
] | [] | false | false | false | false | false | let fmul (#w: lanes) (x y: elem w) : elem w =
| map2 pfmul x y | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.to_elem | val to_elem (w: lanes) (x: pfelem) : elem w | val to_elem (w: lanes) (x: pfelem) : elem w | let to_elem (w:lanes) (x:pfelem) : elem w = create w x | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | w: Hacl.Spec.Poly1305.Vec.lanes -> x: Hacl.Spec.Poly1305.Vec.pfelem -> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Lib.Sequence.create",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let to_elem (w: lanes) (x: pfelem) : elem w =
| create w x | false |
FStar.OrdSetProps.fst | FStar.OrdSetProps.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/FStar.OrdSetProps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 90,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.OrdSet.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.OrdSetProps.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.OrdSet",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives"... | {
"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.OrdSetProps.fst | FStar.OrdSetProps.union' | val union':#a:eqtype -> #f:cmp a -> ordset a f -> ordset a f -> Tot (ordset a f) | val union':#a:eqtype -> #f:cmp a -> ordset a f -> ordset a f -> Tot (ordset a f) | let union' (#a:eqtype) #f s1 s2 = fold (fun e (s:ordset a f) -> insert e s) s1 s2 | {
"file_name": "ulib/FStar.OrdSetProps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 81,
"end_line": 34,
"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.fsti.checked",
"FStar.OrdSet.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.OrdSetProps.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.OrdSet",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.OrdSet.ordset a f -> s2: FStar.OrdSet.ordset a f -> FStar.OrdSet.ordset a f | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.OrdSet.cmp",
"FStar.OrdSet.ordset",
"FStar.OrdSetProps.fold",
"FStar.OrdSetProps.insert"
] | [] | false | false | false | false | false | let union' (#a: eqtype) #f s1 s2 =
| fold (fun e (s: ordset a f) -> insert e s) s1 s2 | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.size_block | val size_block:size_nat | val size_block:size_nat | let size_block : size_nat = Scalar.size_block | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat{n <= Prims.pow2 32 - 1} | Prims.Tot | [
"total"
] | [] | [
"Spec.Poly1305.size_block"
] | [] | false | false | false | false | false | let size_block:size_nat =
| Scalar.size_block | false |
Target.fst | Target.base_id_of_output_expr | val base_id_of_output_expr (oe: output_expr) : A.ident | val base_id_of_output_expr (oe: output_expr) : A.ident | let rec base_id_of_output_expr (oe:output_expr) : A.ident =
match oe.oe_expr with
| T_OE_id id -> id
| T_OE_star oe
| T_OE_addrof oe
| T_OE_deref oe _
| T_OE_dot oe _ -> base_id_of_output_expr oe | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 46,
"end_line": 1130,
"start_col": 0,
"start_line": 1124
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"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 | oe: Target.output_expr -> Ast.ident | Prims.Tot | [
"total"
] | [] | [
"Target.output_expr",
"Target.__proj__Mkoutput_expr__item__oe_expr",
"Ast.ident",
"Target.base_id_of_output_expr"
] | [
"recursion"
] | false | false | false | true | false | let rec base_id_of_output_expr (oe: output_expr) : A.ident =
| match oe.oe_expr with
| T_OE_id id -> id
| T_OE_star oe | T_OE_addrof oe | T_OE_deref oe _ | T_OE_dot oe _ -> base_id_of_output_expr oe | false |
Target.fst | Target.print_out_expr' | val print_out_expr' (oe: output_expr') : ML string | val print_out_expr' (oe: output_expr') : ML string | let rec print_out_expr' (oe:output_expr') : ML string =
match oe with
| T_OE_id id -> A.ident_to_string id
| T_OE_star o -> Printf.sprintf "*(%s)" (print_out_expr' o.oe_expr)
| T_OE_addrof o -> Printf.sprintf "&(%s)" (print_out_expr' o.oe_expr)
| T_OE_deref o i -> Printf.sprintf "(%s)->%s" (print_out_exp... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 94,
"end_line": 1090,
"start_col": 0,
"start_line": 1084
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"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 | oe: Target.output_expr' -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Target.output_expr'",
"Ast.ident",
"Ast.ident_to_string",
"Prims.string",
"Target.output_expr",
"FStar.Printf.sprintf",
"Target.print_out_expr'",
"Target.__proj__Mkoutput_expr__item__oe_expr"
] | [
"recursion"
] | false | true | false | false | false | let rec print_out_expr' (oe: output_expr') : ML string =
| match oe with
| T_OE_id id -> A.ident_to_string id
| T_OE_star o -> Printf.sprintf "*(%s)" (print_out_expr' o.oe_expr)
| T_OE_addrof o -> Printf.sprintf "&(%s)" (print_out_expr' o.oe_expr)
| T_OE_deref o i -> Printf.sprintf "(%s)->%s" (print_out_expr' o.oe_expr) (A.ident_to_string i)
| T_OE_dot o i -> Printf.sprintf "(... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.fadd | val fadd (#w: lanes) (x y: elem w) : elem w | val fadd (#w: lanes) (x y: elem w) : elem w | let fadd (#w:lanes) (x:elem w) (y:elem w) : elem w =
map2 pfadd x y | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 38,
"start_col": 0,
"start_line": 37
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Hacl.Spec.Poly1305.Vec.elem w -> y: Hacl.Spec.Poly1305.Vec.elem w
-> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.elem",
"Lib.Sequence.map2",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.pfadd"
] | [] | false | false | false | false | false | let fadd (#w: lanes) (x y: elem w) : elem w =
| map2 pfadd x y | false |
Target.fst | Target.print_exprs | val print_exprs (mname: string) (es: list expr) : ML (list string) | val print_exprs (mname: string) (es: list expr) : ML (list string) | let rec print_expr (mname:string) (e:expr) : ML string =
match fst e with
| Constant c ->
A.print_constant c
| Identifier i -> print_maybe_qualified_ident mname i
| Record nm fields ->
Printf.sprintf "{ %s }" (String.concat "; " (print_fields mname fields))
| App op [e1;e2] ->
if is_infix ... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 353,
"start_col": 0,
"start_line": 307
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 | mname: Prims.string -> es: Prims.list Target.expr -> FStar.All.ML (Prims.list Prims.string) | FStar.All.ML | [
"ml"
] | [
"print_expr",
"print_exprs",
"print_fields"
] | [
"Prims.string",
"Prims.list",
"Target.expr",
"Prims.Nil",
"Prims.Cons",
"Target.print_exprs",
"Target.print_expr"
] | [
"mutual recursion"
] | false | true | false | false | false | let rec print_exprs (mname: string) (es: list expr) : ML (list string) =
| match es with
| [] -> []
| hd :: tl -> print_expr mname hd :: print_exprs mname tl | false |
Target.fst | Target.out_fn_name | val out_fn_name (oe: output_expr) : ML string | val out_fn_name (oe: output_expr) : ML string | let rec out_fn_name (oe:output_expr) : ML string =
match oe.oe_expr with
| T_OE_id _ -> out_expr_bt_name oe
| T_OE_star oe -> Printf.sprintf "%s_star" (out_fn_name oe)
| T_OE_addrof oe -> Printf.sprintf "%s_addrof" (out_fn_name oe)
| T_OE_deref oe f -> Printf.sprintf "%s_deref_%s" (out_fn_name oe) (A.ide... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 81,
"end_line": 1050,
"start_col": 0,
"start_line": 1044
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 | oe: Target.output_expr -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Target.output_expr",
"Target.__proj__Mkoutput_expr__item__oe_expr",
"Ast.ident",
"Target.out_expr_bt_name",
"Prims.string",
"FStar.Printf.sprintf",
"Target.out_fn_name",
"Ast.ident_name"
] | [
"recursion"
] | false | true | false | false | false | let rec out_fn_name (oe: output_expr) : ML string =
| match oe.oe_expr with
| T_OE_id _ -> out_expr_bt_name oe
| T_OE_star oe -> Printf.sprintf "%s_star" (out_fn_name oe)
| T_OE_addrof oe -> Printf.sprintf "%s_addrof" (out_fn_name oe)
| T_OE_deref oe f -> Printf.sprintf "%s_deref_%s" (out_fn_name oe) (A.ident_name f)
| T_OE_dot oe f -> Printf.sprintf "%s_dot_%s" (out_fn_n... | false |
Target.fst | Target.get_out_exprs_deps | val get_out_exprs_deps (modul: string) (ds: decls) : ML (list string) | val get_out_exprs_deps (modul: string) (ds: decls) : ML (list string) | let get_out_exprs_deps (modul:string) (ds:decls) : ML (list string) =
let maybe_add_dep (deps:list string) (s:option string) : list string =
match s with
| None -> deps
| Some s -> if List.mem s deps then deps else deps@[s] in
List.fold_left (fun deps (d, _) ->
match d with
| Output_typ... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 22,
"end_line": 1279,
"start_col": 0,
"start_line": 1268
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"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 | modul: Prims.string -> ds: Target.decls -> FStar.All.ML (Prims.list Prims.string) | FStar.All.ML | [
"ml"
] | [] | [
"Prims.string",
"Target.decls",
"FStar.List.fold_left",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Target.decl'",
"Target.decl_attributes",
"Target.output_expr",
"Prims.bool",
"FStar.Pervasives.Native.option",
"Target.get_output_typ_dep",
"Target.__proj__Mkoutput_expr__item__oe_t",
"Ta... | [] | false | true | false | false | false | let get_out_exprs_deps (modul: string) (ds: decls) : ML (list string) =
| let maybe_add_dep (deps: list string) (s: option string) : list string =
match s with
| None -> deps
| Some s -> if List.mem s deps then deps else deps @ [s]
in
List.fold_left (fun deps (d, _) ->
match d with
| Output_type_expr oe _ ->
maybe_add_dep (maybe_add_dep deps (get_output_typ_dep modu... | false |
Target.fst | Target.print_output_types_fields | val print_output_types_fields (flds: list A.out_field) : ML string | val print_output_types_fields (flds: list A.out_field) : ML string | let rec print_output_types_fields (flds:list A.out_field) : ML string =
List.fold_left (fun s fld ->
let fld_s =
match fld with
| A.Out_field_named id t bopt ->
Printf.sprintf "%s %s%s;\n"
(print_as_c_type (atyp_to_ttyp t))
(A.ident_name id)
(match bopt... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 22,
"end_line": 1343,
"start_col": 0,
"start_line": 1328
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"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 | flds: Prims.list Ast.out_field -> FStar.All.ML Prims.string | FStar.All.ML | [
"ml"
] | [] | [
"Prims.list",
"Ast.out_field",
"FStar.List.fold_left",
"Prims.string",
"Prims.op_Hat",
"Ast.ident",
"Ast.typ",
"FStar.Pervasives.Native.option",
"Prims.int",
"Prims.string_of_int",
"Ast.ident_name",
"FStar.Printf.sprintf",
"Target.print_as_c_type",
"Target.typ",
"Target.atyp_to_ttyp",
... | [
"recursion"
] | false | true | false | false | false | let rec print_output_types_fields (flds: list A.out_field) : ML string =
| List.fold_left (fun s fld ->
let fld_s =
match fld with
| A.Out_field_named id t bopt ->
Printf.sprintf "%s %s%s;\n"
(print_as_c_type (atyp_to_ttyp t))
(A.ident_name id)
(match bopt with
| None -> ""
| Some n -> ":" ^ (st... | false |
FStar.OrdSetProps.fst | FStar.OrdSetProps.union_lemma | val union_lemma: #a:eqtype -> #f:cmp a -> s1:ordset a f -> s2:ordset a f
-> Lemma (requires (True))
(ensures (forall x. mem x (union s1 s2) = mem x (union' s1 s2)))
(decreases (size s1)) | val union_lemma: #a:eqtype -> #f:cmp a -> s1:ordset a f -> s2:ordset a f
-> Lemma (requires (True))
(ensures (forall x. mem x (union s1 s2) = mem x (union' s1 s2)))
(decreases (size s1)) | let rec union_lemma (#a:eqtype) #f s1 s2 =
if s1 = empty then ()
else
union_lemma (remove (Some?.v (choose s1)) s1) s2 | {
"file_name": "ulib/FStar.OrdSetProps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 43,
"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.fsti.checked",
"FStar.OrdSet.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.OrdSetProps.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.OrdSet",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.OrdSet.ordset a f -> s2: FStar.OrdSet.ordset a f
-> FStar.Pervasives.Lemma
(ensures
forall (x: a).
FStar.OrdSet.mem x (FStar.OrdSet.union s1 s2) =
FStar.OrdSet.mem x (FStar.OrdSetProps.union' s1 s2)) (decreases FStar.OrdSet.size s1) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.eqtype",
"FStar.OrdSet.cmp",
"FStar.OrdSet.ordset",
"Prims.op_Equality",
"FStar.OrdSet.empty",
"Prims.bool",
"FStar.OrdSetProps.union_lemma",
"FStar.OrdSet.remove",
"FStar.Pervasives.Native.__proj__Some__item__v",
"FStar.OrdSet.choose",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec union_lemma (#a: eqtype) #f s1 s2 =
| if s1 = empty then () else union_lemma (remove (Some?.v (choose s1)) s1) s2 | false |
FStar.OrdSetProps.fst | FStar.OrdSetProps.fold | val fold: #a:eqtype -> #b:Type -> #f:cmp a -> (a -> b -> Tot b) -> s:ordset a f -> b
-> Tot b (decreases (size s)) | val fold: #a:eqtype -> #b:Type -> #f:cmp a -> (a -> b -> Tot b) -> s:ordset a f -> b
-> Tot b (decreases (size s)) | let rec fold (#a:eqtype) (#b:Type) #f g s x =
if s = empty then x
else
let Some e = choose s in
let a_rest = fold g (remove e s) x in
g e a_rest | {
"file_name": "ulib/FStar.OrdSetProps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 27,
"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.fsti.checked",
"FStar.OrdSet.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.OrdSetProps.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.OrdSet",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | g: (_: a -> _: b -> b) -> s: FStar.OrdSet.ordset a f -> x: b -> Prims.Tot b | Prims.Tot | [
"total",
""
] | [] | [
"Prims.eqtype",
"FStar.OrdSet.cmp",
"FStar.OrdSet.ordset",
"Prims.op_Equality",
"FStar.OrdSet.empty",
"Prims.bool",
"FStar.OrdSetProps.fold",
"FStar.OrdSet.remove",
"FStar.Pervasives.Native.option",
"FStar.OrdSet.choose"
] | [
"recursion"
] | false | false | false | false | false | let rec fold (#a: eqtype) (#b: Type) #f g s x =
| if s = empty
then x
else
let Some e = choose s in
let a_rest = fold g (remove e s) x in
g e a_rest | false |
FStar.OrdSetProps.fst | FStar.OrdSetProps.union_lemma' | val union_lemma': #a:eqtype -> #f:cmp a -> s1:ordset a f -> s2:ordset a f
-> Lemma (requires (True))
(ensures (union s1 s2 = union' s1 s2)) | val union_lemma': #a:eqtype -> #f:cmp a -> s1:ordset a f -> s2:ordset a f
-> Lemma (requires (True))
(ensures (union s1 s2 = union' s1 s2)) | let union_lemma' (#a:eqtype) #f s1 s2 =
union_lemma s1 s2;
eq_lemma (union s1 s2) (union' s1 s2) | {
"file_name": "ulib/FStar.OrdSetProps.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 39,
"end_line": 50,
"start_col": 0,
"start_line": 48
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.OrdSet.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.OrdSetProps.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.OrdSet",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.OrdSet.ordset a f -> s2: FStar.OrdSet.ordset a f
-> FStar.Pervasives.Lemma (ensures FStar.OrdSet.union s1 s2 = FStar.OrdSetProps.union' s1 s2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.OrdSet.cmp",
"FStar.OrdSet.ordset",
"FStar.OrdSet.eq_lemma",
"FStar.OrdSet.union",
"FStar.OrdSetProps.union'",
"Prims.unit",
"FStar.OrdSetProps.union_lemma"
] | [] | true | false | true | false | false | let union_lemma' (#a: eqtype) #f s1 s2 =
| union_lemma s1 s2;
eq_lemma (union s1 s2) (union' s1 s2) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.poly1305_mac | val poly1305_mac (#w: lanes) (msg: bytes) (k: Scalar.key) : Scalar.tag | val poly1305_mac (#w: lanes) (msg: bytes) (k: Scalar.key) : Scalar.tag | let poly1305_mac (#w:lanes) (msg:bytes) (k:Scalar.key) : Scalar.tag =
let acc, r = Scalar.poly1305_init k in
let acc = poly1305_update #w msg acc r in
Scalar.poly1305_finish k acc | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 158,
"start_col": 0,
"start_line": 155
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | msg: Lib.ByteSequence.bytes -> k: Spec.Poly1305.key -> Spec.Poly1305.tag | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.bytes",
"Spec.Poly1305.key",
"Spec.Poly1305.felem",
"Spec.Poly1305.poly1305_finish",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.poly1305_update",
"Spec.Poly1305.tag",
"FStar.Pervasives.Native.tuple2",
"Spec.Poly1305.poly1305_init"
] | [] | false | false | false | true | false | let poly1305_mac (#w: lanes) (msg: bytes) (k: Scalar.key) : Scalar.tag =
| let acc, r = Scalar.poly1305_init k in
let acc = poly1305_update #w msg acc r in
Scalar.poly1305_finish k acc | false |
Target.fst | Target.atyp_to_ttyp | val atyp_to_ttyp (t: A.typ) : ML typ | val atyp_to_ttyp (t: A.typ) : ML typ | let rec atyp_to_ttyp (t:A.typ) : ML typ =
match t.v with
| A.Pointer t ->
let t = atyp_to_ttyp t in
T_pointer t
| A.Type_app hd _b _args ->
T_app hd _b [] | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 1326,
"start_col": 0,
"start_line": 1320
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": true,
"full_module": "Hashtable",
"short_module": "H"
},
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Ast.typ -> FStar.All.ML Target.typ | FStar.All.ML | [
"ml"
] | [] | [
"Ast.typ",
"Ast.__proj__Mkwith_meta_t__item__v",
"Ast.typ'",
"Ast.with_meta_t",
"Target.T_pointer",
"Target.typ",
"Target.atyp_to_ttyp",
"Ast.ident",
"Ast.t_kind",
"Prims.list",
"Ast.either",
"Ast.expr",
"Ast.out_expr",
"Target.T_app",
"Prims.Nil",
"FStar.Pervasives.either",
"Target.... | [
"recursion"
] | false | true | false | false | false | let rec atyp_to_ttyp (t: A.typ) : ML typ =
| match t.v with
| A.Pointer t ->
let t = atyp_to_ttyp t in
T_pointer t
| A.Type_app hd _b _args -> T_app hd _b [] | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.lemma_pow2_128 | val lemma_pow2_128: n:nat ->
Lemma
(requires n <= 128)
(ensures pow2 n < Scalar.prime)
[SMTPat (pow2 n)] | val lemma_pow2_128: n:nat ->
Lemma
(requires n <= 128)
(ensures pow2 n < Scalar.prime)
[SMTPat (pow2 n)] | let lemma_pow2_128 n =
Math.Lemmas.pow2_le_compat 128 n;
assert (pow2 n <= pow2 128);
assert_norm (pow2 128 < Scalar.prime) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 22,
"start_col": 0,
"start_line": 19
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat
-> FStar.Pervasives.Lemma (requires n <= 128)
(ensures Prims.pow2 n < Spec.Poly1305.prime)
[SMTPat (Prims.pow2 n)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Spec.Poly1305.prime",
"Prims.unit",
"Prims._assert",
"Prims.op_LessThanOrEqual",
"FStar.Math.Lemmas.pow2_le_compat"
] | [] | true | false | true | false | false | let lemma_pow2_128 n =
| Math.Lemmas.pow2_le_compat 128 n;
assert (pow2 n <= pow2 128);
assert_norm (pow2 128 < Scalar.prime) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.zero | val zero (w: lanes) : elem w | val zero (w: lanes) : elem w | let zero (w:lanes) : elem w = to_elem w 0 | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 35,
"start_col": 0,
"start_line": 35
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | w: Hacl.Spec.Poly1305.Vec.lanes -> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.to_elem",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let zero (w: lanes) : elem w =
| to_elem w 0 | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.uquant | val uquant (#a: Type u#a) (p: (a -> vprop)) : vprop | val uquant (#a: Type u#a) (p: (a -> vprop)) : vprop | let uquant (#a:Type u#a) (p: a -> vprop)
: vprop
= exists* (v:vprop).
pure (is_forall v p) **
token v | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 18,
"start_col": 0,
"start_line": 14
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x)
let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p) | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: (_: a -> Pulse.Lib.Core.vprop) -> Pulse.Lib.Core.vprop | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Core.op_exists_Star",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Core.pure",
"Pulse.Lib.Forall.is_forall",
"Pulse.Lib.Forall.token"
] | [] | false | false | false | true | false | let uquant (#a: Type u#a) (p: (a -> vprop)) : vprop =
| exists* (v: vprop). pure (is_forall v p) ** token v | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.elim_forall | val elim_forall
(#a:Type)
(#p:a->vprop)
(x:a)
: stt_ghost unit
(forall* x. p x)
(fun _ -> p x) | val elim_forall
(#a:Type)
(#p:a->vprop)
(x:a)
: stt_ghost unit
(forall* x. p x)
(fun _ -> p x) | let elim_forall
(#a:Type u#a)
(#p:a->vprop)
(x:a)
: stt_ghost unit
(forall* (x:a). p x)
(fun _ -> p x)
= let m1 = elim_exists #vprop (fun (v:vprop) -> pure (is_forall v p) ** token v) in
let m2 (v:Ghost.erased vprop)
: stt_ghost unit
(pure (is_forall v p) ** token v)
(fun _ ->... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 99,
"start_col": 0,
"start_line": 72
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x)
let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p)
let uquant... | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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 -> Pulse.Lib.Core.stt_ghost Prims.unit (forall* (x: a). p x) (fun _ -> p x) | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Core.bind_ghost",
"FStar.Ghost.erased",
"Prims.unit",
"Pulse.Lib.Core.op_exists_Star",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Core.pure",
"Pulse.Lib.Forall.is_forall",
"Pulse.Lib.Forall.token",
"FStar.Ghost.reveal",
"Pulse.Lib.Core.stt_ghost",
"Prims.squas... | [] | false | false | false | false | false | let elim_forall (#a: Type u#a) (#p: (a -> vprop)) (x: a)
: stt_ghost unit (forall* (x: a). p x) (fun _ -> p x) =
| let m1 = elim_exists #vprop (fun (v: vprop) -> pure (is_forall v p) ** token v) in
let m2 (v: Ghost.erased vprop) : stt_ghost unit (pure (is_forall v p) ** token v) (fun _ -> p x) =
bind_ghost (frame_ghost (token v) (elim_pure_explicit (is_forall v p)))
(fun (pf: squash (is_forall v p)) ->
let f = extract... | false |
IntroGhost.fst | IntroGhost.my_inv | val my_inv (b: bool) (r: R.ref int) : vprop | val my_inv (b: bool) (r: R.ref int) : vprop | let my_inv (b:bool) (r:R.ref int) : vprop
= exists* v.
R.pts_to r v **
pure ( b == (v = 0) ) | {
"file_name": "share/steel/examples/pulse/bug-reports/IntroGhost.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 27,
"end_line": 30,
"start_col": 0,
"start_line": 27
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "IntroGhost.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Prims.bool -> r: Pulse.Lib.Reference.ref Prims.int -> Pulse.Lib.Core.vprop | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Pulse.Lib.Reference.ref",
"Prims.int",
"Pulse.Lib.Core.op_exists_Star",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Reference.pts_to",
"PulseCore.FractionalPermission.full_perm",
"Pulse.Lib.Core.pure",
"Prims.eq2",
"Prims.op_Equality",
"Pulse.Lib.Core.vprop"
] | [] | false | false | false | true | false | let my_inv (b: bool) (r: R.ref int) : vprop =
| exists* v. R.pts_to r v ** pure (b == (v = 0)) | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.vprop_equiv_forall | val vprop_equiv_forall
(#a:Type)
(p q: a -> vprop)
(_:squash (forall x. p x == q x))
: vprop_equiv (op_forall_Star p) (op_forall_Star q) | val vprop_equiv_forall
(#a:Type)
(p q: a -> vprop)
(_:squash (forall x. p x == q x))
: vprop_equiv (op_forall_Star p) (op_forall_Star q) | let vprop_equiv_forall
(#a:Type)
(p q: a -> vprop)
(_:squash (forall x. p x == q x))
: vprop_equiv (op_forall_Star p) (op_forall_Star q)
= FStar.FunctionalExtensionality.extensionality _ _ p q;
vprop_equiv_refl (op_forall_Star p) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 131,
"start_col": 0,
"start_line": 125
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x)
let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p)
let uquant... | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: (_: a -> Pulse.Lib.Core.vprop) ->
q: (_: a -> Pulse.Lib.Core.vprop) ->
_: Prims.squash (forall (x: a). p x == q x)
-> Pulse.Lib.Core.vprop_equiv (exists . p) (exists . q) | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Prims.squash",
"Prims.l_Forall",
"Prims.eq2",
"Pulse.Lib.Core.vprop_equiv_refl",
"Pulse.Lib.Forall.op_forall_Star",
"Prims.unit",
"FStar.FunctionalExtensionality.extensionality",
"Pulse.Lib.Core.vprop_equiv"
] | [] | false | false | false | false | false | let vprop_equiv_forall
(#a: Type)
(p: (a -> vprop))
(q: (a -> vprop))
(_: squash (forall x. p x == q x))
: vprop_equiv (op_forall_Star p) (op_forall_Star q) =
| FStar.FunctionalExtensionality.extensionality _ _ p q;
vprop_equiv_refl (op_forall_Star p) | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.extract_q | val extract_q (#a: _) (v: vprop) (p: (a -> vprop)) (pf: squash (is_forall v p))
: universal_quantifier #a v p | val extract_q (#a: _) (v: vprop) (p: (a -> vprop)) (pf: squash (is_forall v p))
: universal_quantifier #a v p | let extract_q #a (v:vprop) (p:a -> vprop) (pf:squash (is_forall v p))
: universal_quantifier #a v p
= let f
: squash (universal_quantifier #a v p)
= FStar.Squash.join_squash pf
in
let f : squash (exists (x:universal_quantifier #a v p). True)
= FStar.Squash.bind_squash f
(fun x ->
(int... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 16,
"end_line": 39,
"start_col": 0,
"start_line": 21
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x)
let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p)
let uquant... | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Pulse.Lib.Core.vprop ->
p: (_: a -> Pulse.Lib.Core.vprop) ->
pf: Prims.squash (Pulse.Lib.Forall.is_forall v p)
-> Pulse.Lib.Forall.universal_quantifier v p | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Prims.squash",
"Pulse.Lib.Forall.is_forall",
"FStar.Ghost.reveal",
"Pulse.Lib.Forall.universal_quantifier",
"FStar.Ghost.erased",
"FStar.IndefiniteDescription.indefinite_description_tot",
"Prims.l_True",
"Prims.prop",
"Prims.l_Exists",
"FStar.Squash.bind_squash",
"FSta... | [] | false | false | false | false | false | let extract_q #a (v: vprop) (p: (a -> vprop)) (pf: squash (is_forall v p))
: universal_quantifier #a v p =
| let f:squash (universal_quantifier #a v p) = FStar.Squash.join_squash pf in
let f:squash (exists (x: universal_quantifier #a v p). True) =
FStar.Squash.bind_squash f
(fun x ->
(introduce exists (x: universal_quantifier #a v p).True
with x
and ()))
in
let x:Ghost.erased (universal_quant... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.normalize_n | val normalize_n (#w: lanes) (r: pfelem) (acc: elem w) : pfelem | val normalize_n (#w: lanes) (r: pfelem) (acc: elem w) : pfelem | let normalize_n (#w:lanes) (r:pfelem) (acc:elem w) : pfelem =
match w with
| 1 -> normalize_1 r acc
| 2 -> normalize_2 r acc
| 4 -> normalize_4 r acc | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 110,
"start_col": 0,
"start_line": 106
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> acc: Hacl.Spec.Poly1305.Vec.elem w
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.elem",
"Hacl.Spec.Poly1305.Vec.normalize_1",
"Hacl.Spec.Poly1305.Vec.normalize_2",
"Hacl.Spec.Poly1305.Vec.normalize_4"
] | [] | false | false | false | false | false | let normalize_n (#w: lanes) (r: pfelem) (acc: elem w) : pfelem =
| match w with
| 1 -> normalize_1 r acc
| 2 -> normalize_2 r acc
| 4 -> normalize_4 r acc | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_elem1 | val load_elem1 (b: Scalar.block) : elem 1 | val load_elem1 (b: Scalar.block) : elem 1 | let load_elem1 (b:Scalar.block) : elem 1 =
to_elem 1 (nat_from_bytes_le b) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 46,
"start_col": 0,
"start_line": 45
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Spec.Poly1305.block -> Hacl.Spec.Poly1305.Vec.elem 1 | Prims.Tot | [
"total"
] | [] | [
"Spec.Poly1305.block",
"Hacl.Spec.Poly1305.Vec.to_elem",
"Lib.ByteSequence.nat_from_bytes_le",
"Lib.IntTypes.SEC",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let load_elem1 (b: Scalar.block) : elem 1 =
| to_elem 1 (nat_from_bytes_le b) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.from_elem | val from_elem (#w: lanes) (x: elem w) : pfelem | val from_elem (#w: lanes) (x: elem w) : pfelem | let from_elem (#w:lanes) (x:elem w) : pfelem = x.[0] | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 34,
"start_col": 0,
"start_line": 34
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Hacl.Spec.Poly1305.Vec.elem w -> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.elem",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Poly1305.Vec.pfelem"
] | [] | false | false | false | false | false | let from_elem (#w: lanes) (x: elem w) : pfelem =
| x.[ 0 ] | false |
Pulse.Lib.Forall.fst | Pulse.Lib.Forall.intro_forall | val intro_forall
(#a:Type)
(#p:a->vprop)
(v:vprop)
(f_elim : (x:a -> stt_ghost unit v (fun _ -> p x)))
: stt_ghost unit
v
(fun _ -> forall* x. p x) | val intro_forall
(#a:Type)
(#p:a->vprop)
(v:vprop)
(f_elim : (x:a -> stt_ghost unit v (fun _ -> p x)))
: stt_ghost unit
v
(fun _ -> forall* x. p x) | let intro_forall
(#a:Type)
(#p:a->vprop)
(v:vprop)
(f_elim : (x:a -> stt_ghost unit v (fun _ -> p x)))
: stt_ghost unit
v
(fun _ -> forall* x. p x)
= let _ : squash (universal_quantifier v p) = FStar.Squash.return_squash f_elim in
let m1
: stt_ghost unit (emp ** v) (fun _ -> pure (is_foral... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 123,
"start_col": 0,
"start_line": 101
} | module Pulse.Lib.Forall
open Pulse.Main
open Pulse.Lib.Core
module F = FStar.FunctionalExtensionality
let token (v:vprop) = v
let universal_quantifier #a (v:vprop) (p: a -> vprop) =
x:a -> stt_ghost unit v (fun _ -> p x)
let is_forall #a (v:vprop) (p:a -> vprop) =
squash (universal_quantifier #a v p)
let uquant... | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.IndefiniteDescription.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.FunctionalExtensionalit... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Main",
"short_module": null
},
{
"abbrev": false,
"fu... | {
"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: Pulse.Lib.Core.vprop -> f_elim: (x: a -> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> p x))
-> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> forall* (x: a). p x) | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Core.stt_ghost",
"Prims.unit",
"Pulse.Lib.Core.sub_ghost",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Core.emp",
"Pulse.Lib.Forall.op_forall_Star",
"Pulse.Lib.Core.vprop_equiv_unit",
"Pulse.Lib.Core.intro_vprop_post_equiv",
"Pulse.Lib.Core.vprop_equiv_refl",
"Pu... | [] | false | false | false | false | false | let intro_forall
(#a: Type)
(#p: (a -> vprop))
(v: vprop)
(f_elim: (x: a -> stt_ghost unit v (fun _ -> p x)))
: stt_ghost unit v (fun _ -> forall* x. p x) =
| let _:squash (universal_quantifier v p) = FStar.Squash.return_squash f_elim in
let m1:stt_ghost unit (emp ** v) (fun _ -> pure (is_forall v p) ** v) =
frame_ghost v (intro_pure (is_forall v p) ())
in
let m2 () : stt_ghost unit (pure (is_forall v p) ** token v) (fun _ -> forall* x. p x) =
intro_exists (fun (v: vprop... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.compute_rw | val compute_rw (#w: lanes) (r: pfelem) : elem w | val compute_rw (#w: lanes) (r: pfelem) : elem w | let compute_rw (#w:lanes) (r:pfelem) : elem w =
match w with
| 1 -> compute_r1 r
| 2 -> compute_r2 r
| 4 -> compute_r4 r | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 119,
"start_col": 0,
"start_line": 115
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.compute_r1",
"Hacl.Spec.Poly1305.Vec.compute_r2",
"Hacl.Spec.Poly1305.Vec.compute_r4",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let compute_rw (#w: lanes) (r: pfelem) : elem w =
| match w with
| 1 -> compute_r1 r
| 2 -> compute_r2 r
| 4 -> compute_r4 r | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_acc1 | val load_acc1 (text: lbytes size_block) (acc: pfelem) : elem 1 | val load_acc1 (text: lbytes size_block) (acc: pfelem) : elem 1 | let load_acc1 (text:lbytes size_block) (acc:pfelem) : elem 1 =
let acc = create 1 acc in
fadd acc (load_blocks #1 text) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 73,
"start_col": 0,
"start_line": 71
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.lbytes Hacl.Spec.Poly1305.Vec.size_block ->
acc: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.elem 1 | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.fadd",
"Hacl.Spec.Poly1305.Vec.load_blocks",
"Lib.Sequence.lseq",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.create",
"Prims.l_... | [] | false | false | false | false | false | let load_acc1 (text: lbytes size_block) (acc: pfelem) : elem 1 =
| let acc = create 1 acc in
fadd acc (load_blocks #1 text) | false |
CQueue.Cell.fst | CQueue.Cell.elim_ccell_ghost | val elim_ccell_ghost
(#opened: _)
(#a: Type0)
(c: ccell_ptrvalue a)
: SteelGhost (Ghost.erased (ccell_lvalue a)) opened
(ccell c)
(fun c' -> vptr (ccell_data c') `star` vptr (ccell_next c'))
(fun _ -> True)
(fun h c' h' ->
ccell_ptrvalue_is_null c == false /\
(c' <: ccell_ptrvalue a) =... | val elim_ccell_ghost
(#opened: _)
(#a: Type0)
(c: ccell_ptrvalue a)
: SteelGhost (Ghost.erased (ccell_lvalue a)) opened
(ccell c)
(fun c' -> vptr (ccell_data c') `star` vptr (ccell_next c'))
(fun _ -> True)
(fun h c' h' ->
ccell_ptrvalue_is_null c == false /\
(c' <: ccell_ptrvalue a) =... | let elim_ccell_ghost
#opened #a c
=
change_slprop_rel
(ccell c)
(ccell1 c)
(fun x y -> x == y)
(fun m ->
assert_norm (hp_of (ccell1 c) == ccell_hp c);
assert_norm (sel_of (ccell1 c) m === sel_of (ccell c) m)
);
elim_vrewrite
(ccell_is_lvalue c `vdep` ccell0 a)
(ccell_rewrit... | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 164,
"start_col": 0,
"start_line": 141
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: CQueue.Cell.ccell_ptrvalue a
-> Steel.Effect.Atomic.SteelGhost (FStar.Ghost.erased (CQueue.Cell.ccell_lvalue a)) | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"CQueue.Cell.ccell_ptrvalue",
"FStar.Ghost.erased",
"CQueue.Cell.ccell_lvalue",
"Prims.unit",
"Steel.Effect.Atomic.reveal_star",
"Steel.Reference.vptr",
"CQueue.Cell.ccell_data",
"FStar.Ghost.reveal",
"CQueue.Cell.ccell_next",
"Steel.Effect.Atomic.change_equal_slprop",
"... | [] | false | true | false | false | false | let elim_ccell_ghost #opened #a c =
| change_slprop_rel (ccell c)
(ccell1 c)
(fun x y -> x == y)
(fun m ->
assert_norm (hp_of (ccell1 c) == ccell_hp c);
assert_norm (sel_of (ccell1 c) m === sel_of (ccell c) m));
elim_vrewrite ((ccell_is_lvalue c) `vdep` (ccell0 a)) (ccell_rewrite c);
let c':Ghost.erased (ccell_lvalue a) = elim_vdep (ccell... | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.poly1305_update | val poly1305_update (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem | val poly1305_update (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem | let poly1305_update (#w:lanes) (text:bytes) (acc:pfelem) (r:pfelem) : pfelem =
match w with
| 1 -> Scalar.poly1305_update text acc r
| 2 -> poly1305_update_vec #2 text acc r
| 4 -> poly1305_update_vec #4 text acc r | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 152,
"start_col": 0,
"start_line": 148
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.bytes ->
acc: Hacl.Spec.Poly1305.Vec.pfelem ->
r: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.bytes",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Spec.Poly1305.poly1305_update",
"Hacl.Spec.Poly1305.Vec.poly1305_update_vec"
] | [] | false | false | false | true | false | let poly1305_update (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem =
| match w with
| 1 -> Scalar.poly1305_update text acc r
| 2 -> poly1305_update_vec #2 text acc r
| 4 -> poly1305_update_vec #4 text acc r | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.normalize_2 | val normalize_2 (r: pfelem) (acc: elem 2) : pfelem | val normalize_2 (r: pfelem) (acc: elem 2) : pfelem | let normalize_2 (r:pfelem) (acc:elem 2) : pfelem =
let r2 = pfmul r r in
let r21 = create2 r2 r in
let a = fmul acc r21 in
pfadd a.[0] a.[1] | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 96,
"start_col": 0,
"start_line": 92
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> acc: Hacl.Spec.Poly1305.Vec.elem 2
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.elem",
"Hacl.Spec.Poly1305.Vec.pfadd",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Poly1305.Vec.fmul",
"Lib.Sequence.lseq",
"Lib.Sequence.create2",
"Hacl.Spec.Poly1305.Vec.pfmul"
] | [] | false | false | false | false | false | let normalize_2 (r: pfelem) (acc: elem 2) : pfelem =
| let r2 = pfmul r r in
let r21 = create2 r2 r in
let a = fmul acc r21 in
pfadd a.[ 0 ] a.[ 1 ] | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_elem2 | val load_elem2 (b: lbytes (2 * size_block)) : elem 2 | val load_elem2 (b: lbytes (2 * size_block)) : elem 2 | let load_elem2 (b:lbytes (2 * size_block)) : elem 2 =
let b1 = nat_from_bytes_le (sub b 0 size_block) in
let b2 = nat_from_bytes_le (sub b size_block size_block) in
create2 b1 b2 | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 51,
"start_col": 0,
"start_line": 48
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.ByteSequence.lbytes (2 * Hacl.Spec.Poly1305.Vec.size_block) -> Hacl.Spec.Poly1305.Vec.elem 2 | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Lib.Sequence.create2",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Multiply",
"Lib.Sequence.length",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"L... | [] | false | false | false | false | false | let load_elem2 (b: lbytes (2 * size_block)) : elem 2 =
| let b1 = nat_from_bytes_le (sub b 0 size_block) in
let b2 = nat_from_bytes_le (sub b size_block size_block) in
create2 b1 b2 | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.compute_r2 | val compute_r2 (r: pfelem) : elem 2 | val compute_r2 (r: pfelem) : elem 2 | let compute_r2 (r:pfelem) : elem 2 = to_elem 2 (pfmul r r) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 113,
"start_col": 0,
"start_line": 113
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> Hacl.Spec.Poly1305.Vec.elem 2 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.to_elem",
"Hacl.Spec.Poly1305.Vec.pfmul",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let compute_r2 (r: pfelem) : elem 2 =
| to_elem 2 (pfmul r r) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.normalize_4 | val normalize_4 (r: pfelem) (acc: elem 4) : pfelem | val normalize_4 (r: pfelem) (acc: elem 4) : pfelem | let normalize_4 (r:pfelem) (acc:elem 4) : pfelem =
let r2 = pfmul r r in
let r3 = pfmul r2 r in
let r4 = pfmul r2 r2 in
let r4321 = create4 r4 r3 r2 r in
let a = fmul acc r4321 in
pfadd (pfadd (pfadd a.[0] a.[1]) a.[2]) a.[3] | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 47,
"end_line": 104,
"start_col": 0,
"start_line": 98
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> acc: Hacl.Spec.Poly1305.Vec.elem 4
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.elem",
"Hacl.Spec.Poly1305.Vec.pfadd",
"Lib.Sequence.op_String_Access",
"Hacl.Spec.Poly1305.Vec.fmul",
"Lib.Sequence.lseq",
"Lib.Sequence.create4",
"Hacl.Spec.Poly1305.Vec.pfmul"
] | [] | false | false | false | false | false | let normalize_4 (r: pfelem) (acc: elem 4) : pfelem =
| let r2 = pfmul r r in
let r3 = pfmul r2 r in
let r4 = pfmul r2 r2 in
let r4321 = create4 r4 r3 r2 r in
let a = fmul acc r4321 in
pfadd (pfadd (pfadd a.[ 0 ] a.[ 1 ]) a.[ 2 ]) a.[ 3 ] | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.normalize_1 | val normalize_1 (r: pfelem) (acc: elem 1) : pfelem | val normalize_1 (r: pfelem) (acc: elem 1) : pfelem | let normalize_1 (r:pfelem) (acc:elem 1) : pfelem =
pfmul acc.[0] r | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 90,
"start_col": 0,
"start_line": 89
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> acc: Hacl.Spec.Poly1305.Vec.elem 1
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.elem",
"Hacl.Spec.Poly1305.Vec.pfmul",
"Lib.Sequence.op_String_Access"
] | [] | false | false | false | false | false | let normalize_1 (r: pfelem) (acc: elem 1) : pfelem =
| pfmul acc.[ 0 ] r | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_acc2 | val load_acc2 (text: lbytes (2 * size_block)) (acc: pfelem) : elem 2 | val load_acc2 (text: lbytes (2 * size_block)) (acc: pfelem) : elem 2 | let load_acc2 (text:lbytes (2 * size_block)) (acc:pfelem) : elem 2 =
let acc = create2 acc 0 in
fadd acc (load_blocks #2 text) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 77,
"start_col": 0,
"start_line": 75
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.lbytes (2 * Hacl.Spec.Poly1305.Vec.size_block) ->
acc: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.elem 2 | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.fadd",
"Hacl.Spec.Poly1305.Vec.load_blocks",
"Lib.Sequence.lseq",
"Lib.Sequence.create2",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let load_acc2 (text: lbytes (2 * size_block)) (acc: pfelem) : elem 2 =
| let acc = create2 acc 0 in
fadd acc (load_blocks #2 text) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.compute_r4 | val compute_r4 (r: pfelem) : elem 4 | val compute_r4 (r: pfelem) : elem 4 | let compute_r4 (r:pfelem) : elem 4 = to_elem 4 (pfmul (pfmul r r) (pfmul r r)) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 114,
"start_col": 0,
"start_line": 114
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> Hacl.Spec.Poly1305.Vec.elem 4 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.to_elem",
"Hacl.Spec.Poly1305.Vec.pfmul",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let compute_r4 (r: pfelem) : elem 4 =
| to_elem 4 (pfmul (pfmul r r) (pfmul r r)) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.compute_r1 | val compute_r1 (r: pfelem) : elem 1 | val compute_r1 (r: pfelem) : elem 1 | let compute_r1 (r:pfelem) : elem 1 = to_elem 1 r | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 112,
"start_col": 0,
"start_line": 112
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Hacl.Spec.Poly1305.Vec.pfelem -> Hacl.Spec.Poly1305.Vec.elem 1 | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.to_elem",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let compute_r1 (r: pfelem) : elem 1 =
| to_elem 1 r | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_elem | val load_elem (#w: lanes) (b: lbytes (w * size_block)) : elem w | val load_elem (#w: lanes) (b: lbytes (w * size_block)) : elem w | let load_elem (#w:lanes) (b:lbytes (w * size_block)) : elem w =
match w with
| 1 -> load_elem1 b
| 2 -> load_elem2 b
| 4 -> load_elem4 b | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 64,
"start_col": 0,
"start_line": 60
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.ByteSequence.lbytes (w * Hacl.Spec.Poly1305.Vec.size_block) -> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.load_elem1",
"Hacl.Spec.Poly1305.Vec.load_elem2",
"Hacl.Spec.Poly1305.Vec.load_elem4",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let load_elem (#w: lanes) (b: lbytes (w * size_block)) : elem w =
| match w with
| 1 -> load_elem1 b
| 2 -> load_elem2 b
| 4 -> load_elem4 b | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_acc4 | val load_acc4 (text: lbytes (4 * size_block)) (acc: pfelem) : elem 4 | val load_acc4 (text: lbytes (4 * size_block)) (acc: pfelem) : elem 4 | let load_acc4 (text:lbytes (4 * size_block)) (acc:pfelem) : elem 4 =
let acc = create4 acc 0 0 0 in
fadd acc (load_blocks #4 text) | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 81,
"start_col": 0,
"start_line": 79
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.lbytes (4 * Hacl.Spec.Poly1305.Vec.size_block) ->
acc: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.elem 4 | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.fadd",
"Hacl.Spec.Poly1305.Vec.load_blocks",
"Lib.Sequence.lseq",
"Lib.Sequence.create4",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let load_acc4 (text: lbytes (4 * size_block)) (acc: pfelem) : elem 4 =
| let acc = create4 acc 0 0 0 in
fadd acc (load_blocks #4 text) | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_acc | val load_acc (#w: lanes) (text: lbytes (w * size_block)) (acc: pfelem) : elem w | val load_acc (#w: lanes) (text: lbytes (w * size_block)) (acc: pfelem) : elem w | let load_acc (#w:lanes) (text:lbytes (w * size_block)) (acc:pfelem) : elem w =
match w with
| 1 -> load_acc1 text acc
| 2 -> load_acc2 text acc
| 4 -> load_acc4 text acc | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 87,
"start_col": 0,
"start_line": 83
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.lbytes (w * Hacl.Spec.Poly1305.Vec.size_block) ->
acc: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Hacl.Spec.Poly1305.Vec.load_acc1",
"Hacl.Spec.Poly1305.Vec.load_acc2",
"Hacl.Spec.Poly1305.Vec.load_acc4",
"Hacl.Spec.Poly1305.Vec.elem"
] | [] | false | false | false | false | false | let load_acc (#w: lanes) (text: lbytes (w * size_block)) (acc: pfelem) : elem w =
| match w with
| 1 -> load_acc1 text acc
| 2 -> load_acc2 text acc
| 4 -> load_acc4 text acc | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.poly1305_update_vec | val poly1305_update_vec (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem | val poly1305_update_vec (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem | let poly1305_update_vec (#w:lanes) (text:bytes) (acc:pfelem) (r:pfelem) : pfelem =
let len = length text in
let sz_block = w * size_block in
let len0 = len / sz_block * sz_block in
let t0 = Seq.slice text 0 len0 in
let acc = if len0 > 0 then poly1305_update_multi #w t0 acc r else acc in
let t1 = Seq.slice ... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 145,
"start_col": 0,
"start_line": 137
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text: Lib.ByteSequence.bytes ->
acc: Hacl.Spec.Poly1305.Vec.pfelem ->
r: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.bytes",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Spec.Poly1305.poly1305_update",
"FStar.Seq.Base.seq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"FStar.Seq.Base.slice",
"Lib.IntTypes.uint_t",
"Spec.Poly1305.felem",
"Prims.op_Greater... | [] | false | false | false | true | false | let poly1305_update_vec (#w: lanes) (text: bytes) (acc r: pfelem) : pfelem =
| let len = length text in
let sz_block = w * size_block in
let len0 = (len / sz_block) * sz_block in
let t0 = Seq.slice text 0 len0 in
let acc = if len0 > 0 then poly1305_update_multi #w t0 acc r else acc in
let t1 = Seq.slice text len0 len in
Scalar.poly1305_update t1 acc r | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_blocks | val load_blocks (#w: lanes) (b: lbytes (w * size_block)) : elem w | val load_blocks (#w: lanes) (b: lbytes (w * size_block)) : elem w | let load_blocks (#w:lanes) (b:lbytes (w * size_block)) : elem w =
let e = load_elem #w b in
let e = map (pfadd (pow2 128)) e in
e | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 69,
"start_col": 0,
"start_line": 66
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.ByteSequence.lbytes (w * Hacl.Spec.Poly1305.Vec.size_block) -> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Lib.Sequence.lseq",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.Sequence.index",
"Hac... | [] | false | false | false | false | false | let load_blocks (#w: lanes) (b: lbytes (w * size_block)) : elem w =
| let e = load_elem #w b in
let e = map (pfadd (pow2 128)) e in
e | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.poly1305_update_nblocks | val poly1305_update_nblocks (#w: lanes) (r_w: elem w) (b: lbytes (w * size_block)) (acc: elem w)
: elem w | val poly1305_update_nblocks (#w: lanes) (r_w: elem w) (b: lbytes (w * size_block)) (acc: elem w)
: elem w | let poly1305_update_nblocks (#w:lanes) (r_w:elem w) (b:lbytes (w * size_block)) (acc:elem w) : elem w =
let e = load_blocks b in
let acc = fadd (fmul acc r_w) e in
acc | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 125,
"start_col": 0,
"start_line": 122
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r_w: Hacl.Spec.Poly1305.Vec.elem w ->
b: Lib.ByteSequence.lbytes (w * Hacl.Spec.Poly1305.Vec.size_block) ->
acc: Hacl.Spec.Poly1305.Vec.elem w
-> Hacl.Spec.Poly1305.Vec.elem w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Hacl.Spec.Poly1305.Vec.elem",
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Hacl.Spec.Poly1305.Vec.fadd",
"Hacl.Spec.Poly1305.Vec.fmul",
"Hacl.Spec.Poly1305.Vec.load_blocks"
] | [] | false | false | false | false | false | let poly1305_update_nblocks (#w: lanes) (r_w: elem w) (b: lbytes (w * size_block)) (acc: elem w)
: elem w =
| let e = load_blocks b in
let acc = fadd (fmul acc r_w) e in
acc | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.poly1305_update_multi | val poly1305_update_multi
(#w: lanes)
(text: bytes{0 < length text /\ length text % (w * size_block) = 0})
(acc r: pfelem)
: pfelem | val poly1305_update_multi
(#w: lanes)
(text: bytes{0 < length text /\ length text % (w * size_block) = 0})
(acc r: pfelem)
: pfelem | let poly1305_update_multi (#w:lanes) (text:bytes{0 < length text /\ length text % (w * size_block) = 0}) (acc:pfelem) (r:pfelem) : pfelem =
let rw = compute_rw r in
let acc = load_acc (Seq.slice text 0 (w * size_block)) acc in
let text = Seq.slice text (w * size_block) (length text) in
let acc = repeat_blocks_m... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 134,
"start_col": 0,
"start_line": 128
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
text:
Lib.ByteSequence.bytes
{ 0 < Lib.Sequence.length text /\
Lib.Sequence.length text % (w * Hacl.Spec.Poly1305.Vec.size_block) = 0 } ->
acc: Hacl.Spec.Poly1305.Vec.pfelem ->
r: Hacl.Spec.Poly1305.Vec.pfelem
-> Hacl.Spec.Poly1305.Vec.pfelem | Prims.Tot | [
"total"
] | [] | [
"Hacl.Spec.Poly1305.Vec.lanes",
"Lib.ByteSequence.bytes",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec... | [] | false | false | false | false | false | let poly1305_update_multi
(#w: lanes)
(text: bytes{0 < length text /\ length text % (w * size_block) = 0})
(acc r: pfelem)
: pfelem =
| let rw = compute_rw r in
let acc = load_acc (Seq.slice text 0 (w * size_block)) acc in
let text = Seq.slice text (w * size_block) (length text) in
let acc =
repeat_blocks_multi #uint8 #(elem w) (w * size_block) text (poly1305_update_nblocks rw) acc
in
let acc = normalize_n r acc in
acc | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.ptr | val ptr (#t: Type) (td: typedef t) : Tot Type0 | val ptr (#t: Type) (td: typedef t) : Tot Type0 | let ptr (#t: Type) (td: typedef t) : Tot Type0 = ptr_gen t | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 58,
"end_line": 96,
"start_col": 0,
"start_line": 96
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | td: Steel.ST.C.Types.Base.typedef t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Base.ptr_gen"
] | [] | false | false | false | true | true | let ptr (#t: Type) (td: typedef t) : Tot Type0 =
| ptr_gen t | false |
Hacl.Spec.Poly1305.Vec.fst | Hacl.Spec.Poly1305.Vec.load_elem4 | val load_elem4 (b: lbytes (4 * size_block)) : elem 4 | val load_elem4 (b: lbytes (4 * size_block)) : elem 4 | let load_elem4 (b:lbytes (4 * size_block)) : elem 4 =
let b1 = nat_from_bytes_le (sub b 0 size_block) in
let b2 = nat_from_bytes_le (sub b size_block size_block) in
let b3 = nat_from_bytes_le (sub b (2 * size_block) size_block) in
let b4 = nat_from_bytes_le (sub b (3 * size_block) size_block) in
create4 b1 b2... | {
"file_name": "code/poly1305/Hacl.Spec.Poly1305.Vec.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 58,
"start_col": 0,
"start_line": 53
} | module Hacl.Spec.Poly1305.Vec
#reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.IntVector
module Scalar = Spec.Poly1305
(* Field types and parameters *)
val lemma_pow2_128: n:nat ->
Lemma
... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul... | [
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "Scalar"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.ByteSequence.lbytes (4 * Hacl.Spec.Poly1305.Vec.size_block) -> Hacl.Spec.Poly1305.Vec.elem 4 | Prims.Tot | [
"total"
] | [] | [
"Lib.ByteSequence.lbytes",
"FStar.Mul.op_Star",
"Hacl.Spec.Poly1305.Vec.size_block",
"Lib.Sequence.create4",
"Hacl.Spec.Poly1305.Vec.pfelem",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Prims.op_Multiply",
"Lib.Sequence.length",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"L... | [] | false | false | false | false | false | let load_elem4 (b: lbytes (4 * size_block)) : elem 4 =
| let b1 = nat_from_bytes_le (sub b 0 size_block) in
let b2 = nat_from_bytes_le (sub b size_block size_block) in
let b3 = nat_from_bytes_le (sub b (2 * size_block) size_block) in
let b4 = nat_from_bytes_le (sub b (3 * size_block) size_block) in
create4 b1 b2 b3 b4 | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.typeof | val typeof (#t: Type0) (td: typedef t) : Tot Type0 | val typeof (#t: Type0) (td: typedef t) : Tot Type0 | let typeof (#t: Type0) (td: typedef t) : Tot Type0 = t | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | td: Steel.ST.C.Types.Base.typedef t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef"
] | [] | false | false | false | true | true | let typeof (#t: Type0) (td: typedef t) : Tot Type0 =
| t | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.ref | val ref (#t: Type) (td: typedef t) : Tot Type0 | val ref (#t: Type) (td: typedef t) : Tot Type0 | let ref (#t: Type) (td: typedef t) : Tot Type0 = (p: ptr td { ~ (p == null td) }) | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 101,
"start_col": 0,
"start_line": 101
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | td: Steel.ST.C.Types.Base.typedef t -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Base.ptr",
"Prims.l_not",
"Prims.eq2",
"Steel.ST.C.Types.Base.null"
] | [] | false | false | false | true | true | let ref (#t: Type) (td: typedef t) : Tot Type0 =
| (p: ptr td {~(p == null td)}) | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.null | val null (#t: Type) (td: typedef t) : Tot (ptr td) | val null (#t: Type) (td: typedef t) : Tot (ptr td) | let null (#t: Type) (td: typedef t) : Tot (ptr td) = null_gen t | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 63,
"end_line": 98,
"start_col": 0,
"start_line": 98
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | td: Steel.ST.C.Types.Base.typedef t -> Steel.ST.C.Types.Base.ptr td | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Base.null_gen",
"Steel.ST.C.Types.Base.ptr"
] | [] | false | false | false | false | false | let null (#t: Type) (td: typedef t) : Tot (ptr td) =
| null_gen t | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_wp_ShiftLeft128_1 | val va_wp_ShiftLeft128_1 (a: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | val va_wp_ShiftLeft128_1 (a: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | let va_wp_ShiftLeft128_1 (a:poly) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ Vale.Math.Poly2_s.degree a < 128 /\ va_get_vec 1 va_s0 ==
Vale.Math.Poly2.Bits_s.to_quad32 a /\ (forall (va_x_v1:quad32) (va_x_v2:quad32) . let va_sM =
va_upd_vec 2 va_x_v2 (va_upd_vec 1 va_x_v1... | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 88,
"end_line": 41,
"start_col": 0,
"start_line": 37
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Math.Poly2_s.poly ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.op_LessThan",
"Vale.Math.Poly2_s.degree",
"Prims.eq2",
"Vale.Def.Types_s.quad32",
"Vale.PPC64LE.Decls.va_get_vec",
"Vale.Math.Poly2.Bits_s.to_quad32",
"Pr... | [] | false | false | false | true | true | let va_wp_ShiftLeft128_1 (a: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
| (va_get_ok va_s0 /\ Vale.Math.Poly2_s.degree a < 128 /\
va_get_vec 1 va_s0 == Vale.Math.Poly2.Bits_s.to_quad32 a /\
(forall (va_x_v1: quad32) (va_x_v2: quad32).
let va_sM = va_upd_vec 2 va_x_v2 (va_upd_vec 1 va_x_v1 va_s0) in
va_get_ok va_sM /\
va_get_vec 1 va_sM == Vale.Math.Poly2.Bits_s.to_quad3... | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.norm_field_steps | val norm_field_steps : Prims.list FStar.Pervasives.norm_step | let norm_field_steps = [
delta_attr [`%norm_field_attr];
iota; zeta; primops;
] | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 1,
"end_line": 330,
"start_col": 0,
"start_line": 327
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list FStar.Pervasives.norm_step | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta_attr",
"Prims.string",
"Prims.Nil",
"FStar.Pervasives.iota",
"FStar.Pervasives.zeta",
"FStar.Pervasives.primops"
] | [] | false | false | false | true | false | let norm_field_steps =
| [delta_attr [`%norm_field_attr]; iota; zeta; primops] | false | |
Target.fst | Target.print_c_entry | val print_c_entry (_: opt_produce_everparse_error) (modul: string) (env: global_env) (ds:list decl)
: ML (string & string) | val print_c_entry (_: opt_produce_everparse_error) (modul: string) (env: global_env) (ds:list decl)
: ML (string & string) | let print_c_entry
(produce_everparse_error: opt_produce_everparse_error)
(modul: string)
(env: global_env)
(ds:list decl)
: ML (string & string)
= let default_error_handler =
"static\n\
void DefaultErrorHandler(\... | {
"file_name": "src/3d/Target.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 1028,
"start_col": 0,
"start_line": 787
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Options.fsti.checked",
"Hashtable.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Li... | [
{
"abbrev": false,
"full_module": "Binding",
"short_module": null
},
{
"abbrev": true,
"full_module": "Ast",
"short_module": "A"
},
{
"abbrev": false,
"full_module": "FStar.All",
"short_module": null
},
{
"abbrev": false,
"full_module": "Binding",
"short_m... | {
"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 |
produce_everparse_error: Target.opt_produce_everparse_error ->
modul: Prims.string ->
env: GlobalEnv.global_env ->
ds: Prims.list Target.decl
-> FStar.All.ML (Prims.string * Prims.string) | FStar.All.ML | [
"ml"
] | [] | [
"Target.opt_produce_everparse_error",
"Prims.string",
"GlobalEnv.global_env",
"Prims.list",
"Target.decl",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Printf.sprintf",
"Prims.op_Equality",
"Prims.bool",
"FStar.String.concat",
"HashingOptions.uu___is_InputStreamBuffer",
"FStar.Pervasives.Native.... | [] | false | true | false | false | false | let print_c_entry
(produce_everparse_error: opt_produce_everparse_error)
(modul: string)
(env: global_env)
(ds: list decl)
: ML (string & string) =
| let default_error_handler =
"static\nvoid DefaultErrorHandler(\n\tconst char *typename_s,\n\tconst char *fieldname,\n\tconst char *reason,\n\tuint64_t error_code,\n\tuint8_t *context,\n\tEVERPARSE_INPUT_BUFFER input,\n\tuint64_t start_pos)\n{\n\tEVERPARSE_ERROR_FRAME *frame = (EVERPARSE_ERROR_FRAME*)context;\n\tEverP... | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_wp_Low64ToHigh | val va_wp_Low64ToHigh
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_Low64ToHigh
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_Low64ToHigh (dst:va_operand_vec_opr) (src:va_operand_vec_opr) (a:poly) (va_s0:va_state)
(va_k:(va_state -> unit -> Type0)) : Type0 =
(va_is_dst_vec_opr dst va_s0 /\ va_is_src_vec_opr src va_s0 /\ va_get_ok va_s0 /\ va_get_vec 0
va_s0 == Vale.Def.Words_s.Mkfour #Vale.Def.Types_s.nat32 0 0 0 0 /\ Vale.M... | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 120,
"start_col": 0,
"start_line": 112
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: Vale.PPC64LE.Decls.va_operand_vec_opr ->
src: Vale.PPC64LE.Decls.va_operand_vec_opr ->
a: Vale.Math.Poly2_s.poly ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Decls.va_operand_vec_opr",
"Vale.Math.Poly2_s.poly",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Vale.PPC64LE.Decls.va_is_dst_vec_opr",
"Vale.PPC64LE.Decls.va_is_src_vec_opr",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.eq2",
"Vale.Def.Words_s.four",
"Val... | [] | false | false | false | true | true | let va_wp_Low64ToHigh
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_is_dst_vec_opr dst va_s0 /\ va_is_src_vec_opr src va_s0 /\ va_get_ok va_s0 /\
va_get_vec 0 va_s0 == Vale.Def.Words_s.Mkfour #Vale.Def.Types_s.nat32 0 0 0 0 /\
Vale.Math.Poly2_s.degree a <= 127 /\
va_eval_vec_opr va_s0 src == Vale.Math.Poly2.Bits_s.to_quad32 a /\
(forall (va_x_dst: va_value_vec_opr).
l... | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_wp_ReduceMulRev128 | val va_wp_ReduceMulRev128 (a b: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | val va_wp_ReduceMulRev128 (a b: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | let va_wp_ReduceMulRev128 (a:poly) (b:poly) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ Vale.Math.Poly2_s.degree a <= 127 /\ Vale.Math.Poly2_s.degree b <= 127 /\
va_get_vec 1 va_s0 == Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.reverse a 127) /\
va_get_vec 2 va_... | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 63,
"end_line": 163,
"start_col": 0,
"start_line": 153
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Math.Poly2_s.poly ->
b: Vale.Math.Poly2_s.poly ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Math.Poly2_s.poly",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.op_LessThanOrEqual",
"Vale.Math.Poly2_s.degree",
"Prims.eq2",
"Vale.Def.Types_s.quad32",
"Vale.PPC64LE.Decls.va_get_vec",
"Vale.Math.Poly2.Bits_s.to_quad32"... | [] | false | false | false | true | true | let va_wp_ReduceMulRev128 (a b: poly) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
| (va_get_ok va_s0 /\ Vale.Math.Poly2_s.degree a <= 127 /\ Vale.Math.Poly2_s.degree b <= 127 /\
va_get_vec 1 va_s0 == Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.reverse a 127) /\
va_get_vec 2 va_s0 == Vale.Math.Poly2.Bits_s.to_quad32 (Vale.Math.Poly2_s.reverse b 127) /\
(forall (va_x_r10: nat64)
(va_... | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_wp_High64ToLow | val va_wp_High64ToLow
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | val va_wp_High64ToLow
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | let va_wp_High64ToLow (dst:va_operand_vec_opr) (src:va_operand_vec_opr) (a:poly) (va_s0:va_state)
(va_k:(va_state -> unit -> Type0)) : Type0 =
(va_is_dst_vec_opr dst va_s0 /\ va_is_src_vec_opr src va_s0 /\ va_get_ok va_s0 /\ va_get_vec 0
va_s0 == Vale.Def.Words_s.Mkfour #Vale.Def.Types_s.nat32 0 0 0 0 /\ Vale.M... | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 83,
"end_line": 79,
"start_col": 0,
"start_line": 72
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: Vale.PPC64LE.Decls.va_operand_vec_opr ->
src: Vale.PPC64LE.Decls.va_operand_vec_opr ->
a: Vale.Math.Poly2_s.poly ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Decls.va_operand_vec_opr",
"Vale.Math.Poly2_s.poly",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Vale.PPC64LE.Decls.va_is_dst_vec_opr",
"Vale.PPC64LE.Decls.va_is_src_vec_opr",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.eq2",
"Vale.Def.Words_s.four",
"Val... | [] | false | false | false | true | true | let va_wp_High64ToLow
(dst src: va_operand_vec_opr)
(a: poly)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 =
| (va_is_dst_vec_opr dst va_s0 /\ va_is_src_vec_opr src va_s0 /\ va_get_ok va_s0 /\
va_get_vec 0 va_s0 == Vale.Def.Words_s.Mkfour #Vale.Def.Types_s.nat32 0 0 0 0 /\
Vale.Math.Poly2_s.degree a <= 127 /\
va_eval_vec_opr va_s0 src == Vale.Math.Poly2.Bits_s.to_quad32 a /\
(forall (va_x_dst: va_value_vec_opr).
l... | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_wp_Gf128MulRev128 | val va_wp_Gf128MulRev128 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | val va_wp_Gf128MulRev128 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 | let va_wp_Gf128MulRev128 (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_r10:nat64) (va_x_v0:quad32) (va_x_v1:quad32) (va_x_v2:quad32)
(va_x_v3:quad32) (va_x_v4:quad32) (va_x_v5:quad32) (va_x_v6:quad32) . let va_sM = va_upd_vec 6
va_x_v6 (va_upd_vec 5 va_x_v5 (v... | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 203,
"start_col": 0,
"start_line": 195
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.PPC64LE.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.PPC64LE.Machine_s.nat64",
"Vale.PPC64LE.Machine_s.quad32",
"Prims.l_imp",
"Prims.eq2",
"Vale.Math.Poly2_s.poly",
"Vale.Math.Poly2.Bits_s.of_quad32",
"Vale.PPC64LE.... | [] | false | false | false | true | true | let va_wp_Gf128MulRev128 (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
| (va_get_ok va_s0 /\
(forall (va_x_r10: nat64)
(va_x_v0: quad32)
(va_x_v1: quad32)
(va_x_v2: quad32)
(va_x_v3: quad32)
(va_x_v4: quad32)
(va_x_v5: quad32)
(va_x_v6: quad32).
let va_sM =
va_upd_vec 6
va_x_v6
(va_upd_vec 5
va_x_v5
... | false |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.pts_to_or_null | val pts_to_or_null (#t: Type) (#td: typedef t) (p: ptr td) (v: Ghost.erased t) : vprop | val pts_to_or_null (#t: Type) (#td: typedef t) (p: ptr td) (v: Ghost.erased t) : vprop | let pts_to_or_null
(#t: Type) (#td: typedef t) (p: ptr td) (v: Ghost.erased t) : vprop
= if FStar.StrongExcludedMiddle.strong_excluded_middle (p == null _)
then emp
else pts_to p v | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 109,
"start_col": 0,
"start_line": 105
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.ST.C.Types.Base.ptr td -> v: FStar.Ghost.erased t -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Base.ptr",
"FStar.Ghost.erased",
"FStar.StrongExcludedMiddle.strong_excluded_middle",
"Prims.eq2",
"Steel.ST.C.Types.Base.null",
"Steel.Effect.Common.emp",
"Prims.bool",
"Steel.ST.C.Types.Base.pts_to",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | false | false | let pts_to_or_null (#t: Type) (#td: typedef t) (p: ptr td) (v: Ghost.erased t) : vprop =
| if FStar.StrongExcludedMiddle.strong_excluded_middle (p == null _) then emp else pts_to p v | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.flavor | val flavor : b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | let flavor #a #p #q (b:B.mbuffer a p q) =
f:flav{
f == Pointer ==>
B.length b == 1 /\
ok_for_ptr q
} | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 64,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flav",
"Prims.l_imp",
"Prims.eq2",
"LowStar.Lens.Buffer.Pointer",
"Prims.l_and",
"Prims.int",
"LowStar.Monotonic.Buffer.length",
"LowStar.Lens.Buffer.ok_for_ptr"
] | [] | false | false | false | false | true | let flavor #a #p #q (b: B.mbuffer a p q) =
| f: flav{f == Pointer ==> B.length b == 1 /\ ok_for_ptr q} | false | |
Steel.ST.C.Types.Base.fsti | Steel.ST.C.Types.Base.freeable_or_null | val freeable_or_null (#t: Type) (#td: typedef t) (r: ptr td) : Tot vprop | val freeable_or_null (#t: Type) (#td: typedef t) (r: ptr td) : Tot vprop | let freeable_or_null
(#t: Type)
(#td: typedef t)
(r: ptr td)
: Tot vprop
= if FStar.StrongExcludedMiddle.strong_excluded_middle (r == null _)
then emp
else freeable r | {
"file_name": "lib/steel/c/Steel.ST.C.Types.Base.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 233,
"start_col": 0,
"start_line": 226
} | module Steel.ST.C.Types.Base
open Steel.ST.Util
module P = Steel.FractionalPermission
/// Helper to compose two permissions into one
val prod_perm (p1 p2: P.perm) : Pure P.perm
(requires True)
(ensures (fun p ->
((p1 `P.lesser_equal_perm` P.full_perm /\ p2 `P.lesser_equal_perm` P.full_perm) ==>
p `P.lesse... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.StrongExcludedMiddle.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": ... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.C.Types.Base.ptr td -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Base.typedef",
"Steel.ST.C.Types.Base.ptr",
"FStar.StrongExcludedMiddle.strong_excluded_middle",
"Prims.eq2",
"Steel.ST.C.Types.Base.null",
"Steel.Effect.Common.emp",
"Prims.bool",
"Steel.ST.C.Types.Base.freeable",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | false | false | let freeable_or_null (#t: Type) (#td: typedef t) (r: ptr td) : Tot vprop =
| if FStar.StrongExcludedMiddle.strong_excluded_middle (r == null _) then emp else freeable r | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.lseq_of | val lseq_of : b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | let lseq_of #a #p #q (b:B.mbuffer a p q) =
Seq.lseq a (B.length b) | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 77,
"start_col": 0,
"start_line": 76
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"FStar.Seq.Properties.lseq",
"LowStar.Monotonic.Buffer.length"
] | [] | false | false | false | false | true | let lseq_of #a #p #q (b: B.mbuffer a p q) =
| Seq.lseq a (B.length b) | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.with_state | val with_state : lens: LowStar.Lens.hs_lens from to -> $t: (_: LowStar.Lens.hs_lens from to -> Type) -> Type | let with_state #from #to
(lens:hs_lens from to)
($t:hs_lens from to -> Type) =
s:imem (lens.invariant lens.x) ->
t (snap lens s) | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 138,
"start_col": 0,
"start_line": 134
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | lens: LowStar.Lens.hs_lens from to -> $t: (_: LowStar.Lens.hs_lens from to -> Type) -> Type | Prims.Tot | [
"total"
] | [] | [
"LowStar.Lens.hs_lens",
"LowStar.Lens.imem",
"LowStar.Lens.__proj__Mkhs_lens__item__invariant",
"LowStar.Lens.__proj__Mkhs_lens__item__x",
"LowStar.Lens.snap"
] | [] | false | false | false | true | true | let with_state #from #to (lens: hs_lens from to) ($t: (hs_lens from to -> Type)) =
| s: imem (lens.invariant lens.x) -> t (snap lens s) | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.buffer_hs_lens | val buffer_hs_lens : b: LowStar.Monotonic.Buffer.mbuffer a p q -> f: LowStar.Lens.Buffer.flavor b -> Type | let buffer_hs_lens #a #p #q (b:B.mbuffer a p q) (f:flavor b) =
l:hs_lens (B.mbuffer a p q) (view_type_of f){
Ghost.reveal l.footprint == B.loc_buffer b /\
l.x == b
} | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 92,
"start_col": 0,
"start_line": 88
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowStar.Monotonic.Buffer.mbuffer a p q -> f: LowStar.Lens.Buffer.flavor b -> Type | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.hs_lens",
"LowStar.Lens.Buffer.view_type_of",
"Prims.l_and",
"Prims.eq2",
"LowStar.Monotonic.Buffer.loc",
"FStar.Ghost.reveal",
"LowStar.Lens.__proj__Mkhs_lens__item__footprint",
"Low... | [] | false | false | false | false | true | let buffer_hs_lens #a #p #q (b: B.mbuffer a p q) (f: flavor b) =
| l:
hs_lens (B.mbuffer a p q) (view_type_of f) {Ghost.reveal l.footprint == B.loc_buffer b /\ l.x == b} | false | |
FStar.Int.Cast.fst | FStar.Int.Cast.op_At_Percent | val op_At_Percent : v: Prims.int -> p: Prims.int{p > 0 /\ p % 2 = 0} -> Prims.int | let op_At_Percent = FStar.Int.op_At_Percent | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"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: Prims.int -> p: Prims.int{p > 0 /\ p % 2 = 0} -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"FStar.Int.op_At_Percent"
] | [] | false | false | false | false | false | let op_At_Percent =
| FStar.Int.op_At_Percent | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.reader_t | val reader_t : f: LowStar.Lens.Buffer.flavor b ->
layer: LowStar.Lens.lens to (LowStar.Lens.Buffer.view_type_of f) ->
l: LowStar.Lens.hs_lens from to
-> Type0 | let reader_t #a #p #q (#b:B.mbuffer a p q) (f:flavor b)
#from #to (layer: lens to (view_type_of f))
(l:hs_lens from to)
= i:ix b ->
LensST a l
(requires fun _ -> True)
(ensures fun s0 v s1 ->
s0 == s1 /\
v == get_value_at (LL.get layer s1) i) | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 152,
"start_col": 0,
"start_line": 144
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "LowStar.Lens",
"short_module": "LL"
},
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: LowStar.Lens.Buffer.flavor b ->
layer: LowStar.Lens.lens to (LowStar.Lens.Buffer.view_type_of f) ->
l: LowStar.Lens.hs_lens from to
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.lens",
"LowStar.Lens.Buffer.view_type_of",
"LowStar.Lens.hs_lens",
"LowStar.Lens.Buffer.ix",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"LowStar.Lens.Buffer.get_value_at",
"LowStar... | [] | false | false | false | false | true | let reader_t
#a
#p
#q
(#b: B.mbuffer a p q)
(f: flavor b)
#from
#to
(layer: lens to (view_type_of f))
(l: hs_lens from to)
=
| i: ix b
-> LensST a
l
(requires fun _ -> True)
(ensures fun s0 v s1 -> s0 == s1 /\ v == get_value_at (LL.get layer s1) i) | false | |
PointStructDirectDef.fst | PointStructDirectDef.point | val point:typedef point_t | val point:typedef point_t | let point : typedef point_t = struct0 _ _ _ | {
"file_name": "share/steel/examples/steelc/PointStructDirectDef.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 43,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | module PointStructDirectDef
open Steel.ST.Util
open Steel.ST.C.Types
module U32 = FStar.UInt32
// module C = C // for _zero_for_deref
let swap (#v1 #v2: Ghost.erased U32.t) (r1 r2: ref (scalar U32.t)) : STT unit
((r1 `pts_to` mk_scalar (Ghost.reveal v1)) `star` (r2 `pts_to` mk_scalar (Ghost.reveal v2)))
(fun _ ->... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.C.Types.fst.checked",
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
"source_file": "PointStructDirectDef.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "Steel.ST.C.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"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 | Steel.ST.C.Types.Base.typedef PointStructDirectDef.point_t | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.C.Types.Struct.struct0",
"Steel.C.Typestring.string_cons",
"Steel.C.Typestring.cP",
"Steel.C.Typestring.co",
"Steel.C.Typestring.ci",
"Steel.C.Typestring.cn",
"Steel.C.Typestring.ct",
"Steel.C.Typestring.cS",
"Steel.C.Typestring.cr",
"Steel.C.Typestring.cu",
"Steel.C.Typestring.cc",
... | [] | false | false | false | true | false | let point:typedef point_t =
| struct0 _ _ _ | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.ix | val ix : b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | let ix #a #p #q (b:B.mbuffer a p q) = i:uint_32{i < B.len b} | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 140,
"start_col": 0,
"start_line": 140
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowStar.Monotonic.Buffer.mbuffer a p q -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.op_Less",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowStar.Monotonic.Buffer.len"
] | [] | false | false | false | false | true | let ix #a #p #q (b: B.mbuffer a p q) =
| i: uint_32{i < B.len b} | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.lens_of | val lens_of (#a #p #q: _) (#b: B.mbuffer a p q) (#f: flavor b) (prw: buffer_lens b f)
: buffer_hs_lens b f | val lens_of (#a #p #q: _) (#b: B.mbuffer a p q) (#f: flavor b) (prw: buffer_lens b f)
: buffer_hs_lens b f | let lens_of #a #p #q (#b:B.mbuffer a p q) (#f:flavor b) (prw:buffer_lens b f)
: buffer_hs_lens b f
= prw.hs_lens | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 185,
"start_col": 0,
"start_line": 183
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "LowStar.Lens",
"short_module": "LL"
},
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | prw: LowStar.Lens.Buffer.buffer_lens b f -> LowStar.Lens.Buffer.buffer_hs_lens b f | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.Buffer.buffer_lens",
"LowStar.Lens.Buffer.__proj__Mk__item__hs_lens",
"LowStar.Lens.Buffer.buffer_hs_lens"
] | [] | false | false | false | false | false | let lens_of #a #p #q (#b: B.mbuffer a p q) (#f: flavor b) (prw: buffer_lens b f)
: buffer_hs_lens b f =
| prw.hs_lens | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.writer_t | val writer_t : f: LowStar.Lens.Buffer.flavor b ->
layer: LowStar.Lens.lens to (LowStar.Lens.Buffer.view_type_of f) ->
l: LowStar.Lens.hs_lens from to
-> Type0 | let writer_t #a #p #q (#b:B.mbuffer a p q) (f:flavor b)
#from #to (layer: lens to (view_type_of f))
(l:hs_lens from to)
= i:ix b ->
v:a ->
LensST unit l
(requires fun s0 ->
as_seq (LL.get layer s0) `q` as_seq (put_value_at (LL.get layer s0) i v))
(ensures fun s0 _... | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 67,
"end_line": 164,
"start_col": 0,
"start_line": 155
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "LowStar.Lens",
"short_module": "LL"
},
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: LowStar.Lens.Buffer.flavor b ->
layer: LowStar.Lens.lens to (LowStar.Lens.Buffer.view_type_of f) ->
l: LowStar.Lens.hs_lens from to
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.lens",
"LowStar.Lens.Buffer.view_type_of",
"LowStar.Lens.hs_lens",
"LowStar.Lens.Buffer.ix",
"Prims.unit",
"LowStar.Lens.Buffer.as_seq",
"LowStar.Lens.get",
"LowStar.Lens.Buffer.put_v... | [] | false | false | false | false | true | let writer_t
#a
#p
#q
(#b: B.mbuffer a p q)
(f: flavor b)
#from
#to
(layer: lens to (view_type_of f))
(l: hs_lens from to)
=
| i: ix b -> v: a
-> LensST unit
l
(requires
fun s0 -> (as_seq (LL.get layer s0)) `q` (as_seq (put_value_at (LL.get layer s0) i v)))
(ensures fun s0 _ s1 -> s1 == LL.put layer s0 (put_value_at (LL.get layer s0) i v)) | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.ok_for_ptr | val ok_for_ptr : q: LowStar.Monotonic.Buffer.srel 'a -> Prims.logical | let ok_for_ptr (q:B.srel 'a) =
forall (s0 s1 : Seq.seq 'a). {:pattern (s0 `q` s1)}
(Seq.length s0 == Seq.length s1 /\
Seq.length s0 == 1 /\
(Seq.create 1 (Seq.index s0 0)) `q` (Seq.create 1 (Seq.index s1 0))) ==>
s0 `q` s1 | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 54,
"start_col": 0,
"start_line": 49
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | q: LowStar.Monotonic.Buffer.srel 'a -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"Prims.l_Forall",
"FStar.Seq.Base.seq",
"Prims.l_imp",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Prims.int",
"FStar.Seq.Base.create",
"FStar.Seq.Base.index",
"Prims.logical"
] | [] | false | false | false | true | true | let ok_for_ptr (q: B.srel 'a) =
| forall (s0: Seq.seq 'a) (s1: Seq.seq 'a). {:pattern (s0 `q` s1)}
(Seq.length s0 == Seq.length s1 /\ Seq.length s0 == 1 /\
(Seq.create 1 (Seq.index s0 0)) `q` (Seq.create 1 (Seq.index s1 0))) ==>
s0 `q` s1 | false | |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.ptr | val ptr (b: B.pointer 'a) : flavor b | val ptr (b: B.pointer 'a) : flavor b | let ptr (b:B.pointer 'a) : flavor b = Pointer | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 69,
"start_col": 0,
"start_line": 69
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowStar.Buffer.pointer 'a -> LowStar.Lens.Buffer.flavor b | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.pointer",
"LowStar.Lens.Buffer.Pointer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Buffer.trivial_preorder"
] | [] | false | false | false | false | false | let ptr (b: B.pointer 'a) : flavor b =
| Pointer | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint8_to_uint16 | val uint8_to_uint16: a:U8.t -> Tot (b:U16.t{U16.v b = U8.v a}) | val uint8_to_uint16: a:U8.t -> Tot (b:U16.t{U16.v b = U8.v a}) | let uint8_to_uint16 x = U16.uint_to_t (U8.v x) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt8.t -> b: FStar.UInt16.t{FStar.UInt16.v b = FStar.UInt8.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"FStar.UInt16.uint_to_t",
"FStar.UInt8.v",
"FStar.UInt16.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt16.n",
"FStar.UInt8.n",
"FStar.UInt16.v"
] | [] | false | false | false | false | false | let uint8_to_uint16 x =
| U16.uint_to_t (U8.v x) | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.view_type_of | val view_type_of : f: LowStar.Lens.Buffer.flavor b -> Type0 | let view_type_of #a #p #q (#b:B.mbuffer a p q) (f:flavor b) =
match f with
| Buffer -> lseq_of b
| Pointer -> a | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 83,
"start_col": 0,
"start_line": 80
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: LowStar.Lens.Buffer.flavor b -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.Buffer.lseq_of"
] | [] | false | false | false | false | true | let view_type_of #a #p #q (#b: B.mbuffer a p q) (f: flavor b) =
| match f with
| Buffer -> lseq_of b
| Pointer -> a | false | |
FStar.Int.Cast.fst | FStar.Int.Cast.uint8_to_uint32 | val uint8_to_uint32: a:U8.t -> Tot (b:U32.t{U32.v b = U8.v a}) | val uint8_to_uint32: a:U8.t -> Tot (b:U32.t{U32.v b = U8.v a}) | let uint8_to_uint32 x = U32.uint_to_t (U8.v x) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 35,
"start_col": 0,
"start_line": 35
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt8.t -> b: FStar.UInt32.t{FStar.UInt32.v b = FStar.UInt8.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"FStar.UInt32.uint_to_t",
"FStar.UInt8.v",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt32.n",
"FStar.UInt8.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let uint8_to_uint32 x =
| U32.uint_to_t (U8.v x) | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint8_to_uint64 | val uint8_to_uint64: a:U8.t -> Tot (b:U64.t{U64.v b = U8.v a}) | val uint8_to_uint64: a:U8.t -> Tot (b:U64.t{U64.v b = U8.v a}) | let uint8_to_uint64 a = U64.uint_to_t (U8.v a) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 46,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt8.t -> b: FStar.UInt64.t{FStar.UInt64.v b = FStar.UInt8.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt8.t",
"FStar.UInt64.uint_to_t",
"FStar.UInt8.v",
"FStar.UInt64.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt64.n",
"FStar.UInt8.n",
"FStar.UInt64.v"
] | [] | false | false | false | false | false | let uint8_to_uint64 a =
| U64.uint_to_t (U8.v a) | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.get_value_at | val get_value_at
(#a #p #q: _)
(#b: B.mbuffer a p q)
(#f: flavor b)
(v: view_type_of f)
(i: uint_32{i < B.len b})
: a | val get_value_at
(#a #p #q: _)
(#b: B.mbuffer a p q)
(#f: flavor b)
(v: view_type_of f)
(i: uint_32{i < B.len b})
: a | let get_value_at #a #p #q (#b:B.mbuffer a p q) (#f:flavor b)
(v:view_type_of f)
(i:uint_32{ i < B.len b })
: a =
match f with
| Pointer -> v
| Buffer -> Seq.index v (UInt32.v i) | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 103,
"start_col": 0,
"start_line": 97
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: LowStar.Lens.Buffer.view_type_of f ->
i: FStar.Integers.uint_32{i < LowStar.Monotonic.Buffer.len b}
-> a | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.Buffer.view_type_of",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.op_Less",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowStar.Monotonic.Buffer.len",
"FStar.Seq.Base... | [] | false | false | false | false | false | let get_value_at
#a
#p
#q
(#b: B.mbuffer a p q)
(#f: flavor b)
(v: view_type_of f)
(i: uint_32{i < B.len b})
: a =
| match f with
| Pointer -> v
| Buffer -> Seq.index v (UInt32.v i) | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint16_to_uint8 | val uint16_to_uint8 : a:U16.t -> Tot (b:U8.t{U8.v b = U16.v a % pow2 8}) | val uint16_to_uint8 : a:U16.t -> Tot (b:U8.t{U8.v b = U16.v a % pow2 8}) | let uint16_to_uint8 x = U8.uint_to_t (U16.v x % pow2 8) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 55,
"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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt16.t -> b: FStar.UInt8.t{FStar.UInt8.v b = FStar.UInt16.v a % Prims.pow2 8} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt16.t",
"FStar.UInt8.uint_to_t",
"Prims.op_Modulus",
"FStar.UInt16.v",
"Prims.pow2",
"FStar.UInt8.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.UInt8.v"
] | [] | false | false | false | false | false | let uint16_to_uint8 x =
| U8.uint_to_t (U16.v x % pow2 8) | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint16_to_uint64 | val uint16_to_uint64: a:U16.t -> Tot (b:U64.t{U64.v b = U16.v a}) | val uint16_to_uint64: a:U16.t -> Tot (b:U64.t{U64.v b = U16.v a}) | let uint16_to_uint64 x = U64.uint_to_t (U16.v x) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 41,
"start_col": 0,
"start_line": 41
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt16.t -> b: FStar.UInt64.t{FStar.UInt64.v b = FStar.UInt16.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt16.t",
"FStar.UInt64.uint_to_t",
"FStar.UInt16.v",
"FStar.UInt64.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt64.n",
"FStar.UInt16.n",
"FStar.UInt64.v"
] | [] | false | false | false | false | false | let uint16_to_uint64 x =
| U64.uint_to_t (U16.v x) | false |
LowStar.Lens.Buffer.fsti | LowStar.Lens.Buffer.put_value_at | val put_value_at
(#a #p #q: _)
(#b: B.mbuffer a p q)
(#f: flavor b)
(v0: view_type_of f)
(i: uint_32{i < B.len b})
(x: a)
: view_type_of f | val put_value_at
(#a #p #q: _)
(#b: B.mbuffer a p q)
(#f: flavor b)
(v0: view_type_of f)
(i: uint_32{i < B.len b})
(x: a)
: view_type_of f | let put_value_at #a #p #q (#b:B.mbuffer a p q) (#f:flavor b)
(v0:view_type_of f)
(i:uint_32{ i < B.len b })
(x:a)
: view_type_of f =
match f with
| Pointer -> x
| Buffer -> Seq.upd v0 (UInt32.v i) x | {
"file_name": "examples/data_structures/LowStar.Lens.Buffer.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 113,
"start_col": 0,
"start_line": 106
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Lens.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Integers.fst.checked",
"FStar.HyperStack.ST.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "FStar.Integers",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v0: LowStar.Lens.Buffer.view_type_of f ->
i: FStar.Integers.uint_32{i < LowStar.Monotonic.Buffer.len b} ->
x: a
-> LowStar.Lens.Buffer.view_type_of f | Prims.Tot | [
"total"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Lens.Buffer.flavor",
"LowStar.Lens.Buffer.view_type_of",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.op_Less",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowStar.Monotonic.Buffer.len",
"FStar.Seq.Base... | [] | false | false | false | false | false | let put_value_at
#a
#p
#q
(#b: B.mbuffer a p q)
(#f: flavor b)
(v0: view_type_of f)
(i: uint_32{i < B.len b})
(x: a)
: view_type_of f =
| match f with
| Pointer -> x
| Buffer -> Seq.upd v0 (UInt32.v i) x | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint16_to_uint32 | val uint16_to_uint32: a:U16.t -> Tot (b:U32.t{U32.v b = U16.v a}) | val uint16_to_uint32: a:U16.t -> Tot (b:U32.t{U32.v b = U16.v a}) | let uint16_to_uint32 x = U32.uint_to_t (U16.v x) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt16.t -> b: FStar.UInt32.t{FStar.UInt32.v b = FStar.UInt16.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt16.t",
"FStar.UInt32.uint_to_t",
"FStar.UInt16.v",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt32.n",
"FStar.UInt16.n",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let uint16_to_uint32 x =
| U32.uint_to_t (U16.v x) | false |
Vale.AES.PPC64LE.GF128_Mul.fsti | Vale.AES.PPC64LE.GF128_Mul.va_quick_Low64ToHigh | val va_quick_Low64ToHigh (dst src: va_operand_vec_opr) (a: poly)
: (va_quickCode unit (va_code_Low64ToHigh dst src)) | val va_quick_Low64ToHigh (dst src: va_operand_vec_opr) (a: poly)
: (va_quickCode unit (va_code_Low64ToHigh dst src)) | let va_quick_Low64ToHigh (dst:va_operand_vec_opr) (src:va_operand_vec_opr) (a:poly) : (va_quickCode
unit (va_code_Low64ToHigh dst src)) =
(va_QProc (va_code_Low64ToHigh dst src) ([va_mod_vec_opr dst]) (va_wp_Low64ToHigh dst src a)
(va_wpProof_Low64ToHigh dst src a)) | {
"file_name": "obj/Vale.AES.PPC64LE.GF128_Mul.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 132,
"start_col": 0,
"start_line": 129
} | module Vale.AES.PPC64LE.GF128_Mul
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.TypesNative
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.St... | {
"checked_file": "/",
"dependencies": [
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64LE.QuickCode.fst.checked",
"Vale.PPC64LE.Machine_s.fst.checked",
"Vale.PPC64LE.InsVector.fsti.checked",
"Vale.PPC64LE.InsMem.fsti.checked",
"Vale.PPC64LE.InsBasi... | [
{
"abbrev": false,
"full_module": "Vale.AES.GHash_BE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.PPC64LE.PolyOps",
"short_module": null
},
{
"abbrev": fal... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: Vale.PPC64LE.Decls.va_operand_vec_opr ->
src: Vale.PPC64LE.Decls.va_operand_vec_opr ->
a: Vale.Math.Poly2_s.poly
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.AES.PPC64LE.GF128_Mul.va_code_Low64ToHigh dst src) | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.Decls.va_operand_vec_opr",
"Vale.Math.Poly2_s.poly",
"Vale.PPC64LE.QuickCode.va_QProc",
"Prims.unit",
"Vale.AES.PPC64LE.GF128_Mul.va_code_Low64ToHigh",
"Prims.Cons",
"Vale.PPC64LE.QuickCode.mod_t",
"Vale.PPC64LE.QuickCode.va_mod_vec_opr",
"Prims.Nil",
"Vale.AES.PPC64LE.GF128_Mul.va_w... | [] | false | false | false | false | false | let va_quick_Low64ToHigh (dst src: va_operand_vec_opr) (a: poly)
: (va_quickCode unit (va_code_Low64ToHigh dst src)) =
| (va_QProc (va_code_Low64ToHigh dst src)
([va_mod_vec_opr dst])
(va_wp_Low64ToHigh dst src a)
(va_wpProof_Low64ToHigh dst src a)) | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint32_to_uint64 | val uint32_to_uint64: a:U32.t -> Tot (b:U64.t{U64.v b = U32.v a}) | val uint32_to_uint64: a:U32.t -> Tot (b:U64.t{U64.v b = U32.v a}) | let uint32_to_uint64 x = U64.uint_to_t (U32.v x) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 50,
"start_col": 0,
"start_line": 50
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt32.t -> b: FStar.UInt64.t{FStar.UInt64.v b = FStar.UInt32.v a} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt64.uint_to_t",
"FStar.UInt32.v",
"FStar.UInt64.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt64.n",
"FStar.UInt32.n",
"FStar.UInt64.v"
] | [] | false | false | false | false | false | let uint32_to_uint64 x =
| U64.uint_to_t (U32.v x) | false |
FStar.Int.Cast.fst | FStar.Int.Cast.uint64_to_uint32 | val uint64_to_uint32: a:U64.t -> Tot (b:U32.t{U32.v b = U64.v a % pow2 32}) | val uint64_to_uint32: a:U64.t -> Tot (b:U32.t{U32.v b = U64.v a % pow2 32}) | let uint64_to_uint32 x = U32.uint_to_t (U64.v x % pow2 32) | {
"file_name": "ulib/FStar.Int.Cast.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 58,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | (*
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.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt16.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Int8.fsti.checked",
"FStar.Int64.fsti.checked",
"FStar.Int32.fs... | [
{
"abbrev": true,
"full_module": "FStar.Int64",
"short_module": "I64"
},
{
"abbrev": true,
"full_module": "FStar.Int32",
"short_module": "I32"
},
{
"abbrev": true,
"full_module": "FStar.Int16",
"short_module": "I16"
},
{
"abbrev": true,
"full_module": "FStar.I... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt64.t -> b: FStar.UInt32.t{FStar.UInt32.v b = FStar.UInt64.v a % Prims.pow2 32} | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t",
"FStar.UInt32.uint_to_t",
"Prims.op_Modulus",
"FStar.UInt64.v",
"Prims.pow2",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.UInt32.v"
] | [] | false | false | false | false | false | let uint64_to_uint32 x =
| U32.uint_to_t (U64.v x % pow2 32) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.