effect stringclasses 48
values | original_source_type stringlengths 0 23k | opens_and_abbrevs listlengths 2 92 | isa_cross_project_example bool 1
class | source_definition stringlengths 9 57.9k | partial_definition stringlengths 7 23.3k | is_div bool 2
classes | is_type null | is_proof bool 2
classes | completed_definiton stringlengths 1 250k | dependencies dict | effect_flags listlengths 0 2 | ideal_premises listlengths 0 236 | mutual_with listlengths 0 11 | file_context stringlengths 0 407k | interleaved bool 1
class | is_simply_typed bool 2
classes | file_name stringlengths 5 48 | vconfig dict | is_simple_lemma null | source_type stringlengths 10 23k | proof_features listlengths 0 1 | name stringlengths 8 95 | source dict | verbose_type stringlengths 1 7.42k | source_range dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FStar.Tactics.Effect.Tac | val filter_goals (l: list goal) : Tac (list goal * list goal) | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived.Lemmas",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Algebra.CommMonoid.Equiv",
"short_module": "CE"
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv",
"short... | false | let rec filter_goals (l:list goal) : Tac (list goal * list goal) =
match l with
| [] -> [], []
| hd::tl ->
let slgoals, loggoals = filter_goals tl in
match term_as_formula' (goal_type hd) with
| Comp (Eq t) _ _ ->
if Some? t then
let b = typ_contains_req_ens (Some?.v t) in
... | val filter_goals (l: list goal) : Tac (list goal * list goal)
let rec filter_goals (l: list goal) : Tac (list goal * list goal) = | true | null | false | match l with
| [] -> [], []
| hd :: tl ->
let slgoals, loggoals = filter_goals tl in
match term_as_formula' (goal_type hd) with
| Comp (Eq t) _ _ ->
if Some? t
then
let b = typ_contains_req_ens (Some?.v t) in
if b then (slgoals, hd :: loggoals) else (hd :: slgoals, loggoals)
else (hd :: sl... | {
"checked_file": "Steel.Effect.Common.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommMonoidSimple.Equiv.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.che... | [] | [
"Prims.list",
"FStar.Tactics.Types.goal",
"FStar.Pervasives.Native.Mktuple2",
"Prims.Nil",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.option",
"FStar.Reflection.Types.typ",
"FStar.Tactics.NamedView.term",
"FStar.Pervasives.Native.uu___is_Some",
"Prims.Cons",
"Prims.bool",
"Stee... | [] | (*
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... | false | false | Steel.Effect.Common.fsti | {
"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... | null | val filter_goals (l: list goal) : Tac (list goal * list goal) | [
"recursion"
] | Steel.Effect.Common.filter_goals | {
"file_name": "lib/steel/Steel.Effect.Common.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | l: Prims.list FStar.Tactics.Types.goal
-> FStar.Tactics.Effect.Tac
(Prims.list FStar.Tactics.Types.goal * Prims.list FStar.Tactics.Types.goal) | {
"end_col": 30,
"end_line": 3020,
"start_col": 2,
"start_line": 3002
} |
FStar.Tactics.Effect.Tac | val norm_return_pre (fuel: nat) : Tac unit | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived.Lemmas",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Algebra.CommMonoid.Equiv",
"short_module": "CE"
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv",
"short... | false | let rec norm_return_pre (fuel: nat) : Tac unit =
if fuel = 0
then ()
else match goals () with
| [] -> ()
| _::_ -> norm [delta_only [`%return_pre]]; later(); norm_return_pre (fuel - 1) | val norm_return_pre (fuel: nat) : Tac unit
let rec norm_return_pre (fuel: nat) : Tac unit = | true | null | false | if fuel = 0
then ()
else
match goals () with
| [] -> ()
| _ :: _ ->
norm [delta_only [`%return_pre]];
later ();
norm_return_pre (fuel - 1) | {
"checked_file": "Steel.Effect.Common.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommMonoidSimple.Equiv.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.che... | [] | [
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.unit",
"Prims.bool",
"FStar.Tactics.Types.goal",
"Prims.list",
"Steel.Effect.Common.norm_return_pre",
"Prims.op_Subtraction",
"FStar.Tactics.V2.Derived.later",
"FStar.Tactics.V2.Builtins.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
... | [] | (*
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... | false | false | Steel.Effect.Common.fsti | {
"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... | null | val norm_return_pre (fuel: nat) : Tac unit | [
"recursion"
] | Steel.Effect.Common.norm_return_pre | {
"file_name": "lib/steel/Steel.Effect.Common.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | fuel: Prims.nat -> FStar.Tactics.Effect.Tac Prims.unit | {
"end_col": 81,
"end_line": 3062,
"start_col": 2,
"start_line": 3058
} |
FStar.Tactics.Effect.Tac | val ite_soundness_tac: Prims.unit -> Tac unit | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived.Lemmas",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Algebra.CommMonoid.Equiv",
"short_module": "CE"
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv",
"short... | false | let ite_soundness_tac () : Tac unit =
let slgs, loggoals = filter_goals (goals ()) in
set_goals slgs;
solve_indirection_eqs (List.Tot.length slgs);
// This is the actual subcomp goal. We can only solve it
// once all uvars are solved
let subcomp_goal = _cur_goal () in
match goals () with
| [] -> fail "s... | val ite_soundness_tac: Prims.unit -> Tac unit
let ite_soundness_tac () : Tac unit = | true | null | false | let slgs, loggoals = filter_goals (goals ()) in
set_goals slgs;
solve_indirection_eqs (List.Tot.length slgs);
let subcomp_goal = _cur_goal () in
match goals () with
| [] -> fail "should not happen"
| _ :: tl ->
set_goals tl;
or_else (fun _ -> apply_lemma (`equiv_forall_refl)) assumption;
or_else (fun _ ->
... | {
"checked_file": "Steel.Effect.Common.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommMonoidSimple.Equiv.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.che... | [] | [
"Prims.unit",
"Prims.list",
"FStar.Tactics.Types.goal",
"FStar.Tactics.V2.Derived.fail",
"FStar.Tactics.V2.Derived.smt",
"FStar.Tactics.V2.Builtins.norm",
"Prims.Nil",
"FStar.Pervasives.norm_step",
"FStar.Tactics.V2.Builtins.set_goals",
"Prims.Cons",
"Steel.Effect.Common.resolve_tac_logical",
... | [] | (*
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... | false | false | Steel.Effect.Common.fsti | {
"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... | null | val ite_soundness_tac: Prims.unit -> Tac unit | [] | Steel.Effect.Common.ite_soundness_tac | {
"file_name": "lib/steel/Steel.Effect.Common.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | {
"end_col": 8,
"end_line": 3168,
"start_col": 37,
"start_line": 3143
} |
FStar.Tactics.Effect.Tac | val solve_maybe_emps (fuel: nat) : Tac unit | [
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Derived.Lemmas",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Algebra.CommMonoid.Equiv",
"short_module": "CE"
},
{
"abbrev": false,
"full_module": "FStar.Tactics.CanonCommMonoidSimple.Equiv",
"short... | false | let rec solve_maybe_emps (fuel: nat) : Tac unit =
if fuel = 0
then ()
else match goals () with
| [] -> ()
| _::_ ->
let f = term_as_formula' (cur_goal ()) in (
match f with
| App hd0 t ->
if not (is_fvar hd0 (`%squash))
then later ()
else
let hd, args = collect_app t in
... | val solve_maybe_emps (fuel: nat) : Tac unit
let rec solve_maybe_emps (fuel: nat) : Tac unit = | true | null | false | if fuel = 0
then ()
else
match goals () with
| [] -> ()
| _ :: _ ->
let f = term_as_formula' (cur_goal ()) in
(match f with
| App hd0 t ->
if not (is_fvar hd0 (`%squash))
then later ()
else
let hd, args = collect_app t in
if hd `is_fvar` (`%maybe_emp)
... | {
"checked_file": "Steel.Effect.Common.fsti.checked",
"dependencies": [
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.CanonCommMonoidSimple.Equiv.fst.checked",
"FStar.String.fsti.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.che... | [] | [
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.unit",
"Prims.bool",
"FStar.Tactics.Types.goal",
"Prims.list",
"Steel.Effect.Common.solve_maybe_emps",
"Prims.op_Subtraction",
"FStar.Tactics.NamedView.term",
"Prims.op_Negation",
"FStar.Reflection.V2.Derived.is_fvar",
"FStar.Tactics.V2.D... | [] | (*
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... | false | false | Steel.Effect.Common.fsti | {
"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... | null | val solve_maybe_emps (fuel: nat) : Tac unit | [
"recursion"
] | Steel.Effect.Common.solve_maybe_emps | {
"file_name": "lib/steel/Steel.Effect.Common.fsti",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | fuel: Prims.nat -> FStar.Tactics.Effect.Tac Prims.unit | {
"end_col": 31,
"end_line": 3054,
"start_col": 2,
"start_line": 3031
} |
FStar.Pervasives.Lemma | val nat_from_bytes_le_eq_lemma: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_bytes_le b == nat_from_bytes_le (update_sub tmp 0 len b)) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let nat_from_bytes_le_eq_lemma len b = nat_from_bytes_le_eq_lemma_ len b | val nat_from_bytes_le_eq_lemma: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_bytes_le b == nat_from_bytes_le (update_sub tmp 0 len b))
let nat_from_bytes_le_eq_lemma len b = | false | null | true | nat_from_bytes_le_eq_lemma_ len b | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Impl.Poly1305.Lemmas.nat_from_bytes_le_eq_lemma_",
"Prims.unit"
] | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val nat_from_bytes_le_eq_lemma: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_bytes_le b == nat_from_bytes_le (update_sub tmp 0 len b)) | [] | Hacl.Impl.Poly1305.Lemmas.nat_from_bytes_le_eq_lemma | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Lib.IntTypes.size_nat{len < 16} -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len
-> FStar.Pervasives.Lemma
(ensures
(let tmp = Lib.Sequence.create 16 (Lib.IntTypes.u8 0) in
Lib.ByteSequence.nat_from_bytes_le b ==
Lib.ByteSequence.nat_from_bytes_le (Lib.Sequence.update_sub tmp 0 len b))) | {
"end_col": 72,
"end_line": 125,
"start_col": 39,
"start_line": 125
} |
FStar.Pervasives.Lemma | val lemma_nat_from_bytes_le_zeroes: len:size_nat -> b:lseq uint8 len -> Lemma
(requires (forall (i:nat). i < len ==> b.[i] == u8 0))
(ensures nat_from_intseq_le b == 0) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let rec lemma_nat_from_bytes_le_zeroes len b =
if len = 0 then ()
else begin
nat_from_intseq_le_slice_lemma #U8 #SEC #len b 1;
nat_from_intseq_le_lemma0 (Seq.slice b 0 1);
lemma_nat_from_bytes_le_zeroes (len-1) (Seq.slice b 1 len) end | val lemma_nat_from_bytes_le_zeroes: len:size_nat -> b:lseq uint8 len -> Lemma
(requires (forall (i:nat). i < len ==> b.[i] == u8 0))
(ensures nat_from_intseq_le b == 0)
let rec lemma_nat_from_bytes_le_zeroes len b = | false | null | true | if len = 0
then ()
else
(nat_from_intseq_le_slice_lemma #U8 #SEC #len b 1;
nat_from_intseq_le_lemma0 (Seq.slice b 0 1);
lemma_nat_from_bytes_le_zeroes (len - 1) (Seq.slice b 1 len)) | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.IntTypes.size_nat",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Hacl.Impl.Poly1305.Lemmas.lemma_nat_from_bytes_le_zeroes",
"Prims.op_Subtraction",
"FStar.Seq.Base.slice",
"Prims.unit",
"Lib.ByteSequence.nat_from_intseq_le_lemma0",
"Lib.IntTy... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val lemma_nat_from_bytes_le_zeroes: len:size_nat -> b:lseq uint8 len -> Lemma
(requires (forall (i:nat). i < len ==> b.[i] == u8 0))
(ensures nat_from_intseq_le b == 0) | [
"recursion"
] | Hacl.Impl.Poly1305.Lemmas.lemma_nat_from_bytes_le_zeroes | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Lib.IntTypes.size_nat -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len
-> FStar.Pervasives.Lemma
(requires forall (i: Prims.nat). i < len ==> b.[ i ] == Lib.IntTypes.u8 0)
(ensures Lib.ByteSequence.nat_from_intseq_le b == 0) | {
"end_col": 66,
"end_line": 102,
"start_col": 2,
"start_line": 98
} |
FStar.Pervasives.Lemma | val uints_from_bytes_le_lemma64_1: b:lseq uint8 16 -> Lemma
(let lo:lseq uint64 1 = uints_from_bytes_le (sub b 0 8) in
let hi:lseq uint64 1 = uints_from_bytes_le (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi.[0] + uint_v lo.[0]) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let uints_from_bytes_le_lemma64_1 b =
index_uints_from_bytes_le #U64 #SEC #1 (sub b 0 8) 0;
index_uints_from_bytes_le #U64 #SEC #1 (sub b 8 8) 0;
uint_from_bytes_le_lemma b | val uints_from_bytes_le_lemma64_1: b:lseq uint8 16 -> Lemma
(let lo:lseq uint64 1 = uints_from_bytes_le (sub b 0 8) in
let hi:lseq uint64 1 = uints_from_bytes_le (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi.[0] + uint_v lo.[0])
let uints_from_bytes_le_lemma64_1 b = | false | null | true | index_uints_from_bytes_le #U64 #SEC #1 (sub b 0 8) 0;
index_uints_from_bytes_le #U64 #SEC #1 (sub b 8 8) 0;
uint_from_bytes_le_lemma b | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Impl.Poly1305.Lemmas.uint_from_bytes_le_lemma",
"Prims.unit",
"Lib.ByteSequence.index_uints_from_bytes_le",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.Sequence.sub"
] | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val uints_from_bytes_le_lemma64_1: b:lseq uint8 16 -> Lemma
(let lo:lseq uint64 1 = uints_from_bytes_le (sub b 0 8) in
let hi:lseq uint64 1 = uints_from_bytes_le (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi.[0] + uint_v lo.[0]) | [] | Hacl.Impl.Poly1305.Lemmas.uints_from_bytes_le_lemma64_1 | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.Sequence.lseq Lib.IntTypes.uint8 16
-> FStar.Pervasives.Lemma
(ensures
(let lo = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 0 8) in
let hi = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 8 8) in
Lib.ByteSequence.nat_from_bytes_le b ==
Prims.pow2 64 * L... | {
"end_col": 28,
"end_line": 38,
"start_col": 2,
"start_line": 36
} |
FStar.Pervasives.Lemma | val uints64_to_bytes_le_lemma: lo:uint64 -> hi:uint64 -> Lemma
(concat (uint_to_bytes_le lo) (uint_to_bytes_le hi) == nat_to_bytes_le 16 (v hi * pow2 64 + v lo)) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let uints64_to_bytes_le_lemma lo hi =
let lp = nat_to_bytes_le #SEC 16 (v hi * pow2 64 + v lo) in
let rp = concat (uint_to_bytes_le lo) (uint_to_bytes_le hi) in
assert (nat_from_bytes_le lp == v hi * pow2 64 + v lo);
Seq.append_slices (uint_to_bytes_le lo) (uint_to_bytes_le hi);
nat_from_intseq_le_slice_lemma... | val uints64_to_bytes_le_lemma: lo:uint64 -> hi:uint64 -> Lemma
(concat (uint_to_bytes_le lo) (uint_to_bytes_le hi) == nat_to_bytes_le 16 (v hi * pow2 64 + v lo))
let uints64_to_bytes_le_lemma lo hi = | false | null | true | let lp = nat_to_bytes_le #SEC 16 (v hi * pow2 64 + v lo) in
let rp = concat (uint_to_bytes_le lo) (uint_to_bytes_le hi) in
assert (nat_from_bytes_le lp == v hi * pow2 64 + v lo);
Seq.append_slices (uint_to_bytes_le lo) (uint_to_bytes_le hi);
nat_from_intseq_le_slice_lemma #U8 #SEC #16 rp 8;
assert (nat_from_bytes_le rp... | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.IntTypes.uint64",
"Lib.ByteSequence.nat_from_intseq_le_inj",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"Lib.ByteSequence.lemma_uint_to_bytes_le_preserves_value",
"Lib.IntTypes.U64",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.ByteSequence.nat_from_bytes_le",
"Prims.op_Addit... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val uints64_to_bytes_le_lemma: lo:uint64 -> hi:uint64 -> Lemma
(concat (uint_to_bytes_le lo) (uint_to_bytes_le hi) == nat_to_bytes_le 16 (v hi * pow2 64 + v lo)) | [] | Hacl.Impl.Poly1305.Lemmas.uints64_to_bytes_le_lemma | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | lo: Lib.IntTypes.uint64 -> hi: Lib.IntTypes.uint64
-> FStar.Pervasives.Lemma
(ensures
Lib.Sequence.concat (Lib.ByteSequence.uint_to_bytes_le lo)
(Lib.ByteSequence.uint_to_bytes_le hi) ==
Lib.ByteSequence.nat_to_bytes_le 16 (Lib.IntTypes.v hi * Prims.pow2 64 + Lib.IntTypes.v lo)) | {
"end_col": 30,
"end_line": 90,
"start_col": 37,
"start_line": 80
} |
FStar.Pervasives.Lemma | val nat_from_bytes_le_eq_lemma_: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_intseq_le b == nat_from_intseq_le (update_sub tmp 0 len b)) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let nat_from_bytes_le_eq_lemma_ len b =
let tmp = create 16 (u8 0) in
let r = update_sub tmp 0 len b in
assert (Seq.slice r 0 len == b);
assert (forall (i:nat). len <= i /\ i < 16 ==> r.[i] == u8 0);
assert (forall (i:nat). i < 16 - len ==> Seq.index (Seq.slice r len 16) i == u8 0);
nat_from_intseq_le_slice... | val nat_from_bytes_le_eq_lemma_: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_intseq_le b == nat_from_intseq_le (update_sub tmp 0 len b))
let nat_from_bytes_le_eq_lemma_ len b = | false | null | true | let tmp = create 16 (u8 0) in
let r = update_sub tmp 0 len b in
assert (Seq.slice r 0 len == b);
assert (forall (i: nat). len <= i /\ i < 16 ==> r.[ i ] == u8 0);
assert (forall (i: nat). i < 16 - len ==> Seq.index (Seq.slice r len 16) i == u8 0);
nat_from_intseq_le_slice_lemma #U8 #SEC #16 r len;
assert (nat_from_ints... | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Impl.Poly1305.Lemmas.lemma_nat_from_bytes_le_zeroes",
"Prims.op_Subtraction",
"FStar.Seq.Base.slice",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"Lib.ByteSequence.nat_fro... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val nat_from_bytes_le_eq_lemma_: len:size_nat{len < 16} -> b:lseq uint8 len -> Lemma
(let tmp = create 16 (u8 0) in
nat_from_intseq_le b == nat_from_intseq_le (update_sub tmp 0 len b)) | [] | Hacl.Impl.Poly1305.Lemmas.nat_from_bytes_le_eq_lemma_ | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Lib.IntTypes.size_nat{len < 16} -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len
-> FStar.Pervasives.Lemma
(ensures
(let tmp = Lib.Sequence.create 16 (Lib.IntTypes.u8 0) in
Lib.ByteSequence.nat_from_intseq_le b ==
Lib.ByteSequence.nat_from_intseq_le (Lib.Sequence.update_sub tmp 0 len b))) | {
"end_col": 64,
"end_line": 118,
"start_col": 39,
"start_line": 109
} |
FStar.Pervasives.Lemma | val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi + uint_v lo) | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let uint_from_bytes_le_lemma b =
let r1 = nat_from_bytes_le b in
let r2 = uints_from_bytes_le #U64 #SEC #2 b in
uints_from_bytes_le_nat_lemma #U64 #SEC #2 b;
assert (r1 == nat_from_intseq_le r2);
nat_from_intseq_le_slice_lemma #U64 #SEC #2 r2 1;
assert (r1 == nat_from_intseq_le (Seq.slice r2 0 1) + pow2 64 ... | val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi + uint_v lo)
let uint_from_bytes_le_lemma b = | false | null | true | let r1 = nat_from_bytes_le b in
let r2 = uints_from_bytes_le #U64 #SEC #2 b in
uints_from_bytes_le_nat_lemma #U64 #SEC #2 b;
assert (r1 == nat_from_intseq_le r2);
nat_from_intseq_le_slice_lemma #U64 #SEC #2 r2 1;
assert (r1 ==
nat_from_intseq_le (Seq.slice r2 0 1) +
pow2 64 * nat_from_intseq_le #U64 #SEC (Seq.s... | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"FStar.Classical.forall_intro",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.Sequence.index",
"Lib.ByteSequence.uints_from_bytes_le",
"Lib.ByteSequence.ui... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 8) in
nat_from_bytes_le b == pow2 64 * uint_v hi + uint_v lo) | [] | Hacl.Impl.Poly1305.Lemmas.uint_from_bytes_le_lemma | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.Sequence.lseq Lib.IntTypes.uint8 16
-> FStar.Pervasives.Lemma
(ensures
(let lo = Lib.ByteSequence.uint_from_bytes_le (Lib.Sequence.sub b 0 8) in
let hi = Lib.ByteSequence.uint_from_bytes_le (Lib.Sequence.sub b 8 8) in
Lib.ByteSequence.nat_from_bytes_le b ==
Prims.pow2 64 * Lib... | {
"end_col": 67,
"end_line": 27,
"start_col": 32,
"start_line": 17
} |
FStar.Pervasives.Lemma | val uints_from_bytes_le_lemma64_2: b:lseq uint8 32 -> Lemma
(let lo:lseq uint64 2 = uints_from_bytes_le (sub b 0 16) in
let hi:lseq uint64 2 = uints_from_bytes_le (sub b 16 16) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
b1 == pow2 64 * uint_v lo.[1] + uint_v lo.[0... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let uints_from_bytes_le_lemma64_2 b =
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #2 (sub b 0 16));
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #2 (sub b 16 16));
uint_from_bytes_le_lemma (sub b 0 16);
uint_from_bytes_le_lemma (sub b 16 16) | val uints_from_bytes_le_lemma64_2: b:lseq uint8 32 -> Lemma
(let lo:lseq uint64 2 = uints_from_bytes_le (sub b 0 16) in
let hi:lseq uint64 2 = uints_from_bytes_le (sub b 16 16) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
b1 == pow2 64 * uint_v lo.[1] + uint_v lo.[0... | false | null | true | Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #2 (sub b 0 16));
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #2 (sub b 16 16));
uint_from_bytes_le_lemma (sub b 0 16);
uint_from_bytes_le_lemma (sub b 16 16) | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Impl.Poly1305.Lemmas.uint_from_bytes_le_lemma",
"Lib.Sequence.sub",
"Prims.unit",
"FStar.Classical.forall_intro",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val uints_from_bytes_le_lemma64_2: b:lseq uint8 32 -> Lemma
(let lo:lseq uint64 2 = uints_from_bytes_le (sub b 0 16) in
let hi:lseq uint64 2 = uints_from_bytes_le (sub b 16 16) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
b1 == pow2 64 * uint_v lo.[1] + uint_v lo.[0... | [] | Hacl.Impl.Poly1305.Lemmas.uints_from_bytes_le_lemma64_2 | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.Sequence.lseq Lib.IntTypes.uint8 32
-> FStar.Pervasives.Lemma
(ensures
(let lo = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 0 16) in
let hi = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 16 16) in
let b1 = Lib.ByteSequence.nat_from_bytes_le (Lib.Sequence.sub ... | {
"end_col": 40,
"end_line": 53,
"start_col": 2,
"start_line": 50
} |
FStar.Pervasives.Lemma | val uints_from_bytes_le_lemma64_4: b:lseq uint8 64 -> Lemma
(let lo:lseq uint64 4 = uints_from_bytes_le (sub b 0 32) in
let hi:lseq uint64 4 = uints_from_bytes_le (sub b 32 32) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
let b3 = nat_from_bytes_le (sub b 32 16) in
... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module":... | false | let uints_from_bytes_le_lemma64_4 b =
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #4 (sub b 0 32));
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #4 (sub b 32 32));
uint_from_bytes_le_lemma (sub b 0 16);
uint_from_bytes_le_lemma (sub b 16 16);
uint_from_bytes_le_lemma (sub b 32 1... | val uints_from_bytes_le_lemma64_4: b:lseq uint8 64 -> Lemma
(let lo:lseq uint64 4 = uints_from_bytes_le (sub b 0 32) in
let hi:lseq uint64 4 = uints_from_bytes_le (sub b 32 32) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
let b3 = nat_from_bytes_le (sub b 32 16) in
... | false | null | true | Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #4 (sub b 0 32));
Classical.forall_intro (index_uints_from_bytes_le #U64 #SEC #4 (sub b 32 32));
uint_from_bytes_le_lemma (sub b 0 16);
uint_from_bytes_le_lemma (sub b 16 16);
uint_from_bytes_le_lemma (sub b 32 16);
uint_from_bytes_le_lemma (sub b 48 16) | {
"checked_file": "Hacl.Impl.Poly1305.Lemmas.fst.checked",
"dependencies": [
"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.... | [
"lemma"
] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8",
"Hacl.Impl.Poly1305.Lemmas.uint_from_bytes_le_lemma",
"Lib.Sequence.sub",
"Prims.unit",
"FStar.Classical.forall_intro",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.... | [] | module Hacl.Impl.Poly1305.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.IntVector
open Lib.Sequence
open Lib.ByteSequence
#set-options "--z3rlimit 50 --max_fuel 1"
val uint_from_bytes_le_lemma: b:lseq uint8 16 -> Lemma
(let lo = uint_from_bytes_le #U64 (sub b 0 8) in
let hi = uint_from_bytes_le #U64 (sub b 8 ... | false | false | Hacl.Impl.Poly1305.Lemmas.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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... | null | val uints_from_bytes_le_lemma64_4: b:lseq uint8 64 -> Lemma
(let lo:lseq uint64 4 = uints_from_bytes_le (sub b 0 32) in
let hi:lseq uint64 4 = uints_from_bytes_le (sub b 32 32) in
let b1 = nat_from_bytes_le (sub b 0 16) in
let b2 = nat_from_bytes_le (sub b 16 16) in
let b3 = nat_from_bytes_le (sub b 32 16) in
... | [] | Hacl.Impl.Poly1305.Lemmas.uints_from_bytes_le_lemma64_4 | {
"file_name": "code/poly1305/Hacl.Impl.Poly1305.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b: Lib.Sequence.lseq Lib.IntTypes.uint8 64
-> FStar.Pervasives.Lemma
(ensures
(let lo = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 0 32) in
let hi = Lib.ByteSequence.uints_from_bytes_le (Lib.Sequence.sub b 32 32) in
let b1 = Lib.ByteSequence.nat_from_bytes_le (Lib.Sequence.sub ... | {
"end_col": 40,
"end_line": 74,
"start_col": 2,
"start_line": 69
} |
Prims.Tot | val crypto_kem_keypair:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> lbytes (crypto_publickeybytes a) & lbytes (crypto_secretkeybytes a) | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Decaps",
"short_module": "Decaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "Encaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "KeyGen"
},
{
"abb... | false | let crypto_kem_keypair a gen_a state = KeyGen.crypto_kem_keypair a gen_a state | val crypto_kem_keypair:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> lbytes (crypto_publickeybytes a) & lbytes (crypto_secretkeybytes a)
let crypto_kem_keypair a gen_a state = | false | null | false | KeyGen.crypto_kem_keypair a gen_a state | {
"checked_file": "Spec.Frodo.KEM.fst.checked",
"dependencies": [
"Spec.Frodo.Random.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"Spec.Frodo.KEM.Decaps.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.check... | [
"total"
] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Spec.Frodo.Random.state_t",
"Spec.Frodo.KEM.KeyGen.crypto_kem_keypair",
"FStar.Pervasives.Native.tuple2",
"Lib.ByteSequence.lbytes",
"Spec.Frodo.Params.crypto_publickeybytes",
"Spec.Frodo.Params.crypto_secretkeybytes"
] | [] | module Spec.Frodo.KEM
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Frodo.Params
module KeyGen = Spec.Frodo.KEM.KeyGen
module Encaps = Spec.Frodo.KEM.Encaps
module Decaps = Spec.Frodo.KEM.Decaps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val crypto_kem_keypair:
a:frod... | false | false | Spec.Frodo.KEM.fst | {
"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... | null | val crypto_kem_keypair:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> lbytes (crypto_publickeybytes a) & lbytes (crypto_secretkeybytes a) | [] | Spec.Frodo.KEM.crypto_kem_keypair | {
"file_name": "specs/frodo/Spec.Frodo.KEM.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a ->
state: Spec.Frodo.Random.state_t
-> Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_publickeybytes a) *
Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_secretkeybytes a) | {
"end_col": 78,
"end_line": 23,
"start_col": 39,
"start_line": 23
} |
Prims.Tot | val crypto_kem_enc:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> pk:lbytes (crypto_publickeybytes a)
-> lbytes (crypto_ciphertextbytes a) & lbytes (crypto_bytes a) | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Decaps",
"short_module": "Decaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "Encaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "KeyGen"
},
{
"abb... | false | let crypto_kem_enc a gen_a state pk = Encaps.crypto_kem_enc a gen_a state pk | val crypto_kem_enc:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> pk:lbytes (crypto_publickeybytes a)
-> lbytes (crypto_ciphertextbytes a) & lbytes (crypto_bytes a)
let crypto_kem_enc a gen_a state pk = | false | null | false | Encaps.crypto_kem_enc a gen_a state pk | {
"checked_file": "Spec.Frodo.KEM.fst.checked",
"dependencies": [
"Spec.Frodo.Random.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"Spec.Frodo.KEM.Decaps.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.check... | [
"total"
] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Spec.Frodo.Random.state_t",
"Lib.ByteSequence.lbytes",
"Spec.Frodo.Params.crypto_publickeybytes",
"Spec.Frodo.KEM.Encaps.crypto_kem_enc",
"FStar.Pervasives.Native.tuple2",
"Spec.Frodo.Params.crypto_ciphertextbytes",
"Spec.Frodo.Params.... | [] | module Spec.Frodo.KEM
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Frodo.Params
module KeyGen = Spec.Frodo.KEM.KeyGen
module Encaps = Spec.Frodo.KEM.Encaps
module Decaps = Spec.Frodo.KEM.Decaps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val crypto_kem_keypair:
a:frod... | false | false | Spec.Frodo.KEM.fst | {
"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... | null | val crypto_kem_enc:
a:frodo_alg
-> gen_a:frodo_gen_a
-> state:Spec.Frodo.Random.state_t
-> pk:lbytes (crypto_publickeybytes a)
-> lbytes (crypto_ciphertextbytes a) & lbytes (crypto_bytes a) | [] | Spec.Frodo.KEM.crypto_kem_enc | {
"file_name": "specs/frodo/Spec.Frodo.KEM.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a ->
state: Spec.Frodo.Random.state_t ->
pk: Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_publickeybytes a)
-> Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_ciphertextbytes a) *
Lib.ByteSequence.lbytes (Spec.Frodo.Param... | {
"end_col": 76,
"end_line": 33,
"start_col": 38,
"start_line": 33
} |
Prims.Tot | val crypto_kem_dec:
a:frodo_alg
-> gen_a:frodo_gen_a
-> ct:lbytes (crypto_ciphertextbytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> lbytes (crypto_bytes a) | [
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Decaps",
"short_module": "Decaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "Encaps"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.KeyGen",
"short_module": "KeyGen"
},
{
"abb... | false | let crypto_kem_dec a gen_a ct sk = Decaps.crypto_kem_dec a gen_a ct sk | val crypto_kem_dec:
a:frodo_alg
-> gen_a:frodo_gen_a
-> ct:lbytes (crypto_ciphertextbytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> lbytes (crypto_bytes a)
let crypto_kem_dec a gen_a ct sk = | false | null | false | Decaps.crypto_kem_dec a gen_a ct sk | {
"checked_file": "Spec.Frodo.KEM.fst.checked",
"dependencies": [
"Spec.Frodo.Random.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.KeyGen.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"Spec.Frodo.KEM.Decaps.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.check... | [
"total"
] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Lib.ByteSequence.lbytes",
"Spec.Frodo.Params.crypto_ciphertextbytes",
"Spec.Frodo.Params.crypto_secretkeybytes",
"Spec.Frodo.KEM.Decaps.crypto_kem_dec",
"Spec.Frodo.Params.crypto_bytes"
] | [] | module Spec.Frodo.KEM
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Frodo.Params
module KeyGen = Spec.Frodo.KEM.KeyGen
module Encaps = Spec.Frodo.KEM.Encaps
module Decaps = Spec.Frodo.KEM.Decaps
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val crypto_kem_keypair:
a:frod... | false | false | Spec.Frodo.KEM.fst | {
"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... | null | val crypto_kem_dec:
a:frodo_alg
-> gen_a:frodo_gen_a
-> ct:lbytes (crypto_ciphertextbytes a)
-> sk:lbytes (crypto_secretkeybytes a)
-> lbytes (crypto_bytes a) | [] | Spec.Frodo.KEM.crypto_kem_dec | {
"file_name": "specs/frodo/Spec.Frodo.KEM.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a ->
ct: Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_ciphertextbytes a) ->
sk: Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_secretkeybytes a)
-> Lib.ByteSequence.lbytes (Spec.Frodo.Params.crypto_bytes a) | {
"end_col": 70,
"end_line": 43,
"start_col": 35,
"start_line": 43
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let block_w (a: sha2_alg) = m:S.seq (word a) {S.length m = block_word_length a} | let block_w (a: sha2_alg) = | false | null | false | m: S.seq (word a) {S.length m = block_word_length a} | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"FStar.Seq.Base.seq",
"Spec.Hash.Definitions.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Spec.Hash.Definitions.block_word_length"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val block_w : a: Spec.Hash.Definitions.sha2_alg -> Type0 | [] | Spec.SHA2.block_w | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Type0 | {
"end_col": 80,
"end_line": 34,
"start_col": 29,
"start_line": 34
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let shuffle_core_pre = shuffle_core_pre_ | let shuffle_core_pre = | false | null | false | shuffle_core_pre_ | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.shuffle_core_pre_"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val shuffle_core_pre : a: Spec.Hash.Definitions.sha2_alg ->
k_t: Spec.Hash.Definitions.word a ->
ws_t: Spec.Hash.Definitions.word a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | [] | Spec.SHA2.shuffle_core_pre | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
k_t: Spec.Hash.Definitions.word a ->
ws_t: Spec.Hash.Definitions.word a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | {
"end_col": 40,
"end_line": 173,
"start_col": 23,
"start_line": 173
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let shuffle = shuffle_pre | let shuffle = | false | null | false | shuffle_pre | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.shuffle_pre"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val shuffle : a: Spec.Hash.Definitions.sha2_alg ->
hash: Spec.Hash.Definitions.words_state a ->
block: Spec.SHA2.block_w a
-> Spec.Hash.Definitions.words_state a | [] | Spec.SHA2.shuffle | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
hash: Spec.Hash.Definitions.words_state a ->
block: Spec.SHA2.block_w a
-> Spec.Hash.Definitions.words_state a | {
"end_col": 25,
"end_line": 210,
"start_col": 14,
"start_line": 210
} | |
Prims.Tot | val _Maj: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _Maj a x y z = (x &. y) ^. ((x &. z) ^. (y &. z)) | val _Maj: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a)
let _Maj a x y z = | false | null | false | (x &. y) ^. ((x &. z) ^. (y &. z)) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Amp_Dot"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _Maj: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | [] | Spec.SHA2._Maj | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
x: Spec.Hash.Definitions.word a ->
y: Spec.Hash.Definitions.word a ->
z: Spec.Hash.Definitions.word a
-> Spec.Hash.Definitions.word a | {
"end_col": 53,
"end_line": 115,
"start_col": 19,
"start_line": 115
} |
Prims.Tot | val _Ch: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _Ch a x y z = (x &. y) ^. (~.x &. z) | val _Ch: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a)
let _Ch a x y z = | false | null | false | (x &. y) ^. (~.x &. z) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Amp_Dot",
"Spec.SHA2.op_Tilde_Dot"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _Ch: a:sha2_alg -> x:(word a) -> y:(word a) -> z:(word a) -> Tot (word a) | [] | Spec.SHA2._Ch | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
x: Spec.Hash.Definitions.word a ->
y: Spec.Hash.Definitions.word a ->
z: Spec.Hash.Definitions.word a
-> Spec.Hash.Definitions.word a | {
"end_col": 41,
"end_line": 110,
"start_col": 19,
"start_line": 110
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let counter = nat | let counter = | false | null | false | nat | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Prims.nat"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val counter : Type0 | [] | Spec.SHA2.counter | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Type0 | {
"end_col": 17,
"end_line": 35,
"start_col": 14,
"start_line": 35
} | |
Prims.Tot | val op384_512:ops | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let op384_512: ops = {
c0 = 28ul; c1 = 34ul; c2 = 39ul;
c3 = 14ul; c4 = 18ul; c5 = 41ul;
e0 = 1ul ; e1 = 8ul; e2 = 7ul;
e3 = 19ul; e4 = 61ul; e5 = 6ul
} | val op384_512:ops
let op384_512:ops = | false | null | false | {
c0 = 28ul;
c1 = 34ul;
c2 = 39ul;
c3 = 14ul;
c4 = 18ul;
c5 = 41ul;
e0 = 1ul;
e1 = 8ul;
e2 = 7ul;
e3 = 19ul;
e4 = 61ul;
e5 = 6ul
} | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.Mkops",
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val op384_512:ops | [] | Spec.SHA2.op384_512 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.SHA2.ops | {
"end_col": 33,
"end_line": 59,
"start_col": 2,
"start_line": 56
} |
Prims.Tot | val op224_256:ops | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let op224_256: ops = {
c0 = 2ul; c1 = 13ul; c2 = 22ul;
c3 = 6ul; c4 = 11ul; c5 = 25ul;
e0 = 7ul; e1 = 18ul; e2 = 3ul;
e3 = 17ul; e4 = 19ul; e5 = 10ul
} | val op224_256:ops
let op224_256:ops = | false | null | false | {
c0 = 2ul;
c1 = 13ul;
c2 = 22ul;
c3 = 6ul;
c4 = 11ul;
c5 = 25ul;
e0 = 7ul;
e1 = 18ul;
e2 = 3ul;
e3 = 17ul;
e4 = 19ul;
e5 = 10ul
} | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.Mkops",
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val op224_256:ops | [] | Spec.SHA2.op224_256 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.SHA2.ops | {
"end_col": 33,
"end_line": 51,
"start_col": 2,
"start_line": 48
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ws_pre = ws_pre_ | let ws_pre = | false | null | false | ws_pre_ | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.ws_pre_"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val ws_pre : a: Spec.Hash.Definitions.sha2_alg -> block: Spec.SHA2.block_w a -> Spec.SHA2.k_w a | [] | Spec.SHA2.ws_pre | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> block: Spec.SHA2.block_w a -> Spec.SHA2.k_w a | {
"end_col": 20,
"end_line": 201,
"start_col": 13,
"start_line": 201
} | |
Prims.Tot | val init: a:sha2_alg -> init_t a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let init a = h0 a | val init: a:sha2_alg -> init_t a
let init a = | false | null | false | h0 a | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.h0",
"Spec.Hash.Definitions.init_t"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val init: a:sha2_alg -> init_t a | [] | Spec.SHA2.init | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Spec.Hash.Definitions.init_t a | {
"end_col": 17,
"end_line": 212,
"start_col": 13,
"start_line": 212
} |
Prims.Tot | val size_k_w: sha2_alg -> Tot nat | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let size_k_w: sha2_alg -> Tot nat = function
| SHA2_224 | SHA2_256 -> 64
| SHA2_384 | SHA2_512 -> 80 | val size_k_w: sha2_alg -> Tot nat
let size_k_w: sha2_alg -> Tot nat = | false | null | false | function
| SHA2_224 | SHA2_256 -> 64
| SHA2_384 | SHA2_512 -> 80 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *) | false | true | Spec.SHA2.fst | {
"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... | null | val size_k_w: sha2_alg -> Tot nat | [] | Spec.SHA2.size_k_w | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.sha2_alg -> Prims.nat | {
"end_col": 29,
"end_line": 16,
"start_col": 36,
"start_line": 14
} |
Prims.Tot | val word_n: sha2_alg -> Tot nat | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let word_n: sha2_alg -> Tot nat = function
| SHA2_224 | SHA2_256 -> 32
| SHA2_384 | SHA2_512 -> 64 | val word_n: sha2_alg -> Tot nat
let word_n: sha2_alg -> Tot nat = | false | null | false | function
| SHA2_224 | SHA2_256 -> 32
| SHA2_384 | SHA2_512 -> 64 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val word_n: sha2_alg -> Tot nat | [] | Spec.SHA2.word_n | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.sha2_alg -> Prims.nat | {
"end_col": 29,
"end_line": 21,
"start_col": 34,
"start_line": 19
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let k_w (a: sha2_alg) = m:S.seq (word a) {S.length m = size_k_w a} | let k_w (a: sha2_alg) = | false | null | false | m: S.seq (word a) {S.length m = size_k_w a} | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"FStar.Seq.Base.seq",
"Spec.Hash.Definitions.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.SHA2.size_k_w"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val k_w : a: Spec.Hash.Definitions.sha2_alg -> Type0 | [] | Spec.SHA2.k_w | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Type0 | {
"end_col": 71,
"end_line": 33,
"start_col": 29,
"start_line": 33
} | |
Prims.Tot | val op_Tilde_Dot: #a: sha2_alg -> word a -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( ~. ) (#a:sha2_alg): word a -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( ~. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( ~. ) #U64 #SEC | val op_Tilde_Dot: #a: sha2_alg -> word a -> word a
let op_Tilde_Dot (#a: sha2_alg) : word a -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( ~. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( ~. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Tilde_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Tilde_Dot: #a: sha2_alg -> word a -> word a | [] | Spec.SHA2.op_Tilde_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 43,
"end_line": 92,
"start_col": 2,
"start_line": 90
} |
Prims.Tot | val op0 (a: sha2_alg) : Tot ops | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let op0: a:sha2_alg -> Tot ops = function
| SHA2_224 -> op224_256
| SHA2_256 -> op224_256
| SHA2_384 -> op384_512
| SHA2_512 -> op384_512 | val op0 (a: sha2_alg) : Tot ops
let op0: a: sha2_alg -> Tot ops = | false | null | false | function
| SHA2_224 -> op224_256
| SHA2_256 -> op224_256
| SHA2_384 -> op384_512
| SHA2_512 -> op384_512 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.op224_256",
"Spec.SHA2.op384_512",
"Spec.SHA2.ops"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | true | Spec.SHA2.fst | {
"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... | null | val op0 (a: sha2_alg) : Tot ops | [] | Spec.SHA2.op0 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Spec.SHA2.ops | {
"end_col": 25,
"end_line": 67,
"start_col": 33,
"start_line": 63
} |
Prims.Tot | val shuffle_pre (a: sha2_alg) (hash: words_state a) (block: block_w a) : Tot (words_state a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let shuffle_pre (a:sha2_alg) (hash:words_state a) (block:block_w a): Tot (words_state a) =
let ws = ws_pre a block in
let k = k0 a in
Lib.LoopCombinators.repeati (size_k_w a)
(fun i h -> shuffle_core_pre a k.[i] ws.[i] h) hash | val shuffle_pre (a: sha2_alg) (hash: words_state a) (block: block_w a) : Tot (words_state a)
let shuffle_pre (a: sha2_alg) (hash: words_state a) (block: block_w a) : Tot (words_state a) = | false | null | false | let ws = ws_pre a block in
let k = k0 a in
Lib.LoopCombinators.repeati (size_k_w a) (fun i h -> shuffle_core_pre a k.[ i ] ws.[ i ] h) hash | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.words_state",
"Spec.SHA2.block_w",
"Lib.LoopCombinators.repeati",
"Spec.SHA2.size_k_w",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA2.shuffle_core_pre",
"Spec.SHA2.op_String_Access",
"Spec.Hash.Definitions.word",
"FStar.Seq.B... | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val shuffle_pre (a: sha2_alg) (hash: words_state a) (block: block_w a) : Tot (words_state a) | [] | Spec.SHA2.shuffle_pre | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
hash: Spec.Hash.Definitions.words_state a ->
block: Spec.SHA2.block_w a
-> Spec.Hash.Definitions.words_state a | {
"end_col": 55,
"end_line": 208,
"start_col": 90,
"start_line": 204
} |
Prims.Tot | val ws_pre_ (a: sha2_alg) (block: block_w a) : k_w a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ws_pre_ (a:sha2_alg) (block:block_w a) : k_w a =
Lib.LoopCombinators.repeati (size_k_w a) (ws_pre_inner a block) (Seq.create (size_k_w a) (to_word a 0)) | val ws_pre_ (a: sha2_alg) (block: block_w a) : k_w a
let ws_pre_ (a: sha2_alg) (block: block_w a) : k_w a = | false | null | false | Lib.LoopCombinators.repeati (size_k_w a)
(ws_pre_inner a block)
(Seq.create (size_k_w a) (to_word a 0)) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.block_w",
"Lib.LoopCombinators.repeati",
"Spec.SHA2.k_w",
"Spec.SHA2.size_k_w",
"Spec.SHA2.ws_pre_inner",
"FStar.Seq.Base.create",
"Spec.Hash.Definitions.word",
"Spec.SHA2.to_word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val ws_pre_ (a: sha2_alg) (block: block_w a) : k_w a | [] | Spec.SHA2.ws_pre_ | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> block: Spec.SHA2.block_w a -> Spec.SHA2.k_w a | {
"end_col": 105,
"end_line": 198,
"start_col": 2,
"start_line": 198
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let v' (#a: sha2_alg) (x:word a) = match a with
| SHA2_224 | SHA2_256 -> uint_v #U32 #SEC x
| SHA2_384 | SHA2_512 -> uint_v #U64 #SEC x | let v' (#a: sha2_alg) (x: word a) = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> uint_v #U32 #SEC x
| SHA2_384 | SHA2_512 -> uint_v #U64 #SEC x | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Lib.IntTypes.uint_v",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Prims.int",
"Prims.l_or",
"Lib.IntTypes.range"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val v' : x: Spec.Hash.Definitions.word a
-> x:
Prims.int
{ Lib.IntTypes.range x Lib.IntTypes.U32 \/ Lib.IntTypes.range x Lib.IntTypes.U64 \/
Lib.IntTypes.range x Lib.IntTypes.U64 \/ Lib.IntTypes.range x Lib.IntTypes.U32 } | [] | Spec.SHA2.v' | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: Spec.Hash.Definitions.word a
-> x:
Prims.int
{ Lib.IntTypes.range x Lib.IntTypes.U32 \/ Lib.IntTypes.range x Lib.IntTypes.U64 \/
Lib.IntTypes.range x Lib.IntTypes.U64 \/ Lib.IntTypes.range x Lib.IntTypes.U32 } | {
"end_col": 45,
"end_line": 31,
"start_col": 35,
"start_line": 29
} | |
Prims.Tot | val update: a:sha2_alg -> update_t a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let update = update_pre | val update: a:sha2_alg -> update_t a
let update = | false | null | false | update_pre | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.SHA2.update_pre"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val update: a:sha2_alg -> update_t a | [] | Spec.SHA2.update | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Spec.Hash.Definitions.update_t a | {
"end_col": 23,
"end_line": 220,
"start_col": 13,
"start_line": 220
} |
Prims.Tot | val op_Hat_Dot: #a: sha2_alg -> word a -> word a -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( ^. ) (#a:sha2_alg): word a -> word a -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( ^. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( ^. ) #U64 #SEC | val op_Hat_Dot: #a: sha2_alg -> word a -> word a -> word a
let op_Hat_Dot (#a: sha2_alg) : word a -> word a -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( ^. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( ^. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Hat_Dot: #a: sha2_alg -> word a -> word a -> word a | [] | Spec.SHA2.op_Hat_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> _: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 43,
"end_line": 79,
"start_col": 2,
"start_line": 77
} |
Prims.Tot | val ws_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < size_k_w a}) (ws: k_w a) : k_w a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ws_pre_inner (a:sha2_alg) (block:block_w a) (i:nat{i < size_k_w a}) (ws:k_w a) : k_w a =
if i < block_word_length a then
ws0_pre_inner a block i ws
else
wsi_pre_inner a i ws | val ws_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < size_k_w a}) (ws: k_w a) : k_w a
let ws_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < size_k_w a}) (ws: k_w a) : k_w a = | false | null | false | if i < block_word_length a then ws0_pre_inner a block i ws else wsi_pre_inner a i ws | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.block_w",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.SHA2.k_w",
"Spec.Hash.Definitions.block_word_length",
"Spec.SHA2.ws0_pre_inner",
"Prims.bool",
"Spec.SHA2.wsi_pre_inner"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val ws_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < size_k_w a}) (ws: k_w a) : k_w a | [] | Spec.SHA2.ws_pre_inner | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
block: Spec.SHA2.block_w a ->
i: Prims.nat{i < Spec.SHA2.size_k_w a} ->
ws: Spec.SHA2.k_w a
-> Spec.SHA2.k_w a | {
"end_col": 26,
"end_line": 195,
"start_col": 4,
"start_line": 192
} |
Prims.Tot | val op_Amp_Dot: #a: sha2_alg -> word a -> word a -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( &. ) (#a:sha2_alg): word a -> word a -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( &. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( &. ) #U64 #SEC | val op_Amp_Dot: #a: sha2_alg -> word a -> word a -> word a
let op_Amp_Dot (#a: sha2_alg) : word a -> word a -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( &. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( &. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Amp_Dot: #a: sha2_alg -> word a -> word a -> word a | [] | Spec.SHA2.op_Amp_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> _: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 43,
"end_line": 86,
"start_col": 2,
"start_line": 84
} |
Prims.Tot | val op_Plus_Dot: #a: sha2_alg -> word a -> word a -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( +. ) (#a:sha2_alg): word a -> word a -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( +. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( +. ) #U64 #SEC | val op_Plus_Dot: #a: sha2_alg -> word a -> word a -> word a
let op_Plus_Dot (#a: sha2_alg) : word a -> word a -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( +. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( +. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Plus_Dot: #a: sha2_alg -> word a -> word a -> word a | [] | Spec.SHA2.op_Plus_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> _: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 43,
"end_line": 73,
"start_col": 2,
"start_line": 71
} |
Prims.Tot | val to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let to_word (a:sha2_alg) (n:nat{n < pow2 (word_n a)}) : word a =
match a with
| SHA2_224 | SHA2_256 -> u32 n
| SHA2_384 | SHA2_512 -> u64 n | val to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a
let to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> u32 n
| SHA2_384 | SHA2_512 -> u64 n | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.pow2",
"Spec.SHA2.word_n",
"Lib.IntTypes.u32",
"Lib.IntTypes.u64",
"Spec.Hash.Definitions.word"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val to_word (a: sha2_alg) (n: nat{n < pow2 (word_n a)}) : word a | [] | Spec.SHA2.to_word | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> n: Prims.nat{n < Prims.pow2 (Spec.SHA2.word_n a)}
-> Spec.Hash.Definitions.word a | {
"end_col": 32,
"end_line": 27,
"start_col": 2,
"start_line": 25
} |
Prims.Tot | val h0 (a: sha2_alg) : Tot (words_state a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let h0: a:sha2_alg -> Tot (words_state a) = function
| SHA2_224 -> C.h224
| SHA2_256 -> C.h256
| SHA2_384 -> C.h384
| SHA2_512 -> C.h512 | val h0 (a: sha2_alg) : Tot (words_state a)
let h0: a: sha2_alg -> Tot (words_state a) = | false | null | false | function
| SHA2_224 -> C.h224
| SHA2_256 -> C.h256
| SHA2_384 -> C.h384
| SHA2_512 -> C.h512 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.Constants.h224",
"Spec.SHA2.Constants.h256",
"Spec.SHA2.Constants.h384",
"Spec.SHA2.Constants.h512",
"Spec.Hash.Definitions.words_state"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val h0 (a: sha2_alg) : Tot (words_state a) | [] | Spec.SHA2.h0 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> Spec.Hash.Definitions.words_state a | {
"end_col": 22,
"end_line": 141,
"start_col": 44,
"start_line": 137
} |
Prims.Tot | val ws0_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < block_word_length a}) (ws: k_w a)
: k_w a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ws0_pre_inner (a:sha2_alg) (block:block_w a) (i:nat{i < block_word_length a}) (ws:k_w a) : k_w a =
Seq.upd ws i (Seq.index block i) | val ws0_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < block_word_length a}) (ws: k_w a)
: k_w a
let ws0_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < block_word_length a}) (ws: k_w a)
: k_w a = | false | null | false | Seq.upd ws i (Seq.index block i) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.block_w",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.Hash.Definitions.block_word_length",
"Spec.SHA2.k_w",
"FStar.Seq.Base.upd",
"Spec.Hash.Definitions.word",
"FStar.Seq.Base.index"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val ws0_pre_inner (a: sha2_alg) (block: block_w a) (i: nat{i < block_word_length a}) (ws: k_w a)
: k_w a | [] | Spec.SHA2.ws0_pre_inner | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
block: Spec.SHA2.block_w a ->
i: Prims.nat{i < Spec.Hash.Definitions.block_word_length a} ->
ws: Spec.SHA2.k_w a
-> Spec.SHA2.k_w a | {
"end_col": 38,
"end_line": 180,
"start_col": 6,
"start_line": 180
} |
Prims.Tot | val wsi_pre_inner (a: sha2_alg) (i: nat{i >= block_word_length a /\ i < size_k_w a}) (ws: k_w a)
: k_w a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let wsi_pre_inner (a:sha2_alg) (i:nat{i >= block_word_length a /\ i < size_k_w a}) (ws:k_w a) : k_w a =
let t16 = ws.[i - 16] in
let t15 = ws.[i - 15] in
let t7 = ws.[i - 7] in
let t2 = ws.[i - 2] in
let s1 = _sigma1 a t2 in
let s0 = _sigma0 a t15 in
Seq.upd ws i (s1 +. t7 +.... | val wsi_pre_inner (a: sha2_alg) (i: nat{i >= block_word_length a /\ i < size_k_w a}) (ws: k_w a)
: k_w a
let wsi_pre_inner (a: sha2_alg) (i: nat{i >= block_word_length a /\ i < size_k_w a}) (ws: k_w a)
: k_w a = | false | null | false | let t16 = ws.[ i - 16 ] in
let t15 = ws.[ i - 15 ] in
let t7 = ws.[ i - 7 ] in
let t2 = ws.[ i - 2 ] in
let s1 = _sigma1 a t2 in
let s0 = _sigma0 a t15 in
Seq.upd ws i (s1 +. t7 +. s0 +. t16) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Spec.Hash.Definitions.block_word_length",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.SHA2.k_w",
"FStar.Seq.Base.upd",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Plus_Dot",
"Spec.... | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val wsi_pre_inner (a: sha2_alg) (i: nat{i >= block_word_length a /\ i < size_k_w a}) (ws: k_w a)
: k_w a | [] | Spec.SHA2.wsi_pre_inner | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
i: Prims.nat{i >= Spec.Hash.Definitions.block_word_length a /\ i < Spec.SHA2.size_k_w a} ->
ws: Spec.SHA2.k_w a
-> Spec.SHA2.k_w a | {
"end_col": 42,
"end_line": 189,
"start_col": 103,
"start_line": 182
} |
Prims.Tot | val op_Greater_Greater_Dot: #a: sha2_alg -> word a -> shiftval (word_t a) -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( >>. ) (#a:sha2_alg): word a -> shiftval (word_t a) -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( >>. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( >>. ) #U64 #SEC | val op_Greater_Greater_Dot: #a: sha2_alg -> word a -> shiftval (word_t a) -> word a
let op_Greater_Greater_Dot (#a: sha2_alg) : word a -> shiftval (word_t a) -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( >>. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( >>. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word",
"Lib.IntTypes.shiftval",
"Spec.Hash.Definitions.word_t"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Greater_Greater_Dot: #a: sha2_alg -> word a -> shiftval (word_t a) -> word a | [] | Spec.SHA2.op_Greater_Greater_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> _: Lib.IntTypes.shiftval (Spec.Hash.Definitions.word_t a)
-> Spec.Hash.Definitions.word a | {
"end_col": 44,
"end_line": 104,
"start_col": 2,
"start_line": 102
} |
Prims.Tot | val op_Greater_Greater_Greater_Dot: #a: sha2_alg -> word a -> rotval (word_t a) -> word a | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let ( >>>. ) (#a:sha2_alg): word a -> rotval (word_t a) -> word a =
match a with
| SHA2_224 | SHA2_256 -> ( >>>. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( >>>. ) #U64 #SEC | val op_Greater_Greater_Greater_Dot: #a: sha2_alg -> word a -> rotval (word_t a) -> word a
let op_Greater_Greater_Greater_Dot (#a: sha2_alg) : word a -> rotval (word_t a) -> word a = | false | null | false | match a with
| SHA2_224 | SHA2_256 -> ( >>>. ) #U32 #SEC
| SHA2_384 | SHA2_512 -> ( >>>. ) #U64 #SEC | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Lib.IntTypes.op_Greater_Greater_Greater_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.IntTypes.U64",
"Spec.Hash.Definitions.word",
"Lib.IntTypes.rotval",
"Spec.Hash.Definitions.word_t"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val op_Greater_Greater_Greater_Dot: #a: sha2_alg -> word a -> rotval (word_t a) -> word a | [] | Spec.SHA2.op_Greater_Greater_Greater_Dot | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.Hash.Definitions.word a -> _: Lib.IntTypes.rotval (Spec.Hash.Definitions.word_t a)
-> Spec.Hash.Definitions.word a | {
"end_col": 45,
"end_line": 98,
"start_col": 2,
"start_line": 96
} |
Prims.Tot | val k0 (a: sha2_alg) : Tot (m: S.seq (word a) {S.length m = size_k_w a}) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let k0: a:sha2_alg -> Tot (m:S.seq (word a) {S.length m = size_k_w a}) = function
| SHA2_224 -> C.k224_256
| SHA2_256 -> C.k224_256
| SHA2_384 -> C.k384_512
| SHA2_512 -> C.k384_512 | val k0 (a: sha2_alg) : Tot (m: S.seq (word a) {S.length m = size_k_w a})
let k0: a: sha2_alg -> Tot (m: S.seq (word a) {S.length m = size_k_w a}) = | false | null | false | function
| SHA2_224 -> C.k224_256
| SHA2_256 -> C.k224_256
| SHA2_384 -> C.k384_512
| SHA2_512 -> C.k384_512 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.Constants.k224_256",
"Spec.SHA2.Constants.k384_512",
"FStar.Seq.Base.seq",
"Spec.Hash.Definitions.word",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.SHA2.size_k_w"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val k0 (a: sha2_alg) : Tot (m: S.seq (word a) {S.length m = size_k_w a}) | [] | Spec.SHA2.k0 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg
-> m:
FStar.Seq.Base.seq (Spec.Hash.Definitions.word a)
{FStar.Seq.Base.length m = Spec.SHA2.size_k_w a} | {
"end_col": 26,
"end_line": 147,
"start_col": 73,
"start_line": 143
} |
Prims.Tot | val shuffle_core_pre_ (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let shuffle_core_pre_ (a:sha2_alg) (k_t: word a) (ws_t: word a) (hash:words_state a) : Tot (words_state a) =
(**) assert(7 <= S.length hash);
let a0 = hash.[0] in
let b0 = hash.[1] in
let c0 = hash.[2] in
let d0 = hash.[3] in
let e0 = hash.[4] in
let f0 = hash.[5] in
let g0 = hash.[6] in
let h0 = hash... | val shuffle_core_pre_ (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a)
let shuffle_core_pre_ (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) = | false | null | false | assert (7 <= S.length hash);
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.[ 4 ] in
let f0 = hash.[ 5 ] in
let g0 = hash.[ 6 ] in
let h0 = hash.[ 7 ] in
assert (S.length (k0 a) = size_k_w a);
let t1 = h0 +. (_Sigma1 a e0) +. (_Ch a e0 f0 g0) +. k_t +. ws_t in
... | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.words_state",
"FStar.Seq.Properties.seq_of_list",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"Prims.Cons",
"Spe... | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val shuffle_core_pre_ (a: sha2_alg) (k_t ws_t: word a) (hash: words_state a) : Tot (words_state a) | [] | Spec.SHA2.shuffle_core_pre_ | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
k_t: Spec.Hash.Definitions.word a ->
ws_t: Spec.Hash.Definitions.word a ->
hash: Spec.Hash.Definitions.words_state a
-> Spec.Hash.Definitions.words_state a | {
"end_col": 17,
"end_line": 170,
"start_col": 7,
"start_line": 154
} |
Prims.Tot | val update_pre (a: sha2_alg) (hash: words_state a) (block: bytes{S.length block = block_length a})
: Tot (words_state a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let update_pre (a:sha2_alg) (hash:words_state a) (block:bytes{S.length block = block_length a}): Tot (words_state a) =
let block_w = words_of_bytes a #(block_word_length a) block in
let hash_1 = shuffle a hash block_w in
Spec.Loops.seq_map2 ( +. ) (hash <: Lib.Sequence.lseq (word a) (state_word_length a)) hash_1 | val update_pre (a: sha2_alg) (hash: words_state a) (block: bytes{S.length block = block_length a})
: Tot (words_state a)
let update_pre (a: sha2_alg) (hash: words_state a) (block: bytes{S.length block = block_length a})
: Tot (words_state a) = | false | null | false | let block_w = words_of_bytes a #(block_word_length a) block in
let hash_1 = shuffle a hash block_w in
Spec.Loops.seq_map2 ( +. ) (hash <: Lib.Sequence.lseq (word a) (state_word_length a)) hash_1 | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.words_state",
"Spec.Hash.Definitions.bytes",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Prims.op_disEquality",
"FStar.Seq.Base.length",
"Lib.IntTypes.uint8",
"Spec.Hash.Definitions.block_... | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val update_pre (a: sha2_alg) (hash: words_state a) (block: bytes{S.length block = block_length a})
: Tot (words_state a) | [] | Spec.SHA2.update_pre | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
hash: Spec.Hash.Definitions.words_state a ->
block:
Spec.Hash.Definitions.bytes
{FStar.Seq.Base.length block = Spec.Hash.Definitions.block_length a}
-> Spec.Hash.Definitions.words_state a | {
"end_col": 94,
"end_line": 217,
"start_col": 118,
"start_line": 214
} |
Prims.Tot | val _Sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _Sigma0 a x = (x >>>. (op0 a).c0) ^. (x >>>. (op0 a).c1) ^. (x >>>. (op0 a).c2) | val _Sigma0: a:sha2_alg -> x:(word a) -> Tot (word a)
let _Sigma0 a x = | false | null | false | (x >>>. (op0 a).c0) ^. (x >>>. (op0 a).c1) ^. (x >>>. (op0 a).c2) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__c0",
"Spec.SHA2.op0",
"Spec.SHA2.__proj__Mkops__item__c1",
"Spec.SHA2.__proj__Mkops__item__c2"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _Sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | [] | Spec.SHA2._Sigma0 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 83,
"end_line": 120,
"start_col": 18,
"start_line": 120
} |
Prims.Tot | val _sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _sigma1 a x = (x >>>. (op0 a).e3) ^. (x >>>. (op0 a).e4) ^. (x >>. (op0 a).e5) | val _sigma1: a:sha2_alg -> x:(word a) -> Tot (word a)
let _sigma1 a x = | false | null | false | (x >>>. (op0 a).e3) ^. (x >>>. (op0 a).e4) ^. (x >>. (op0 a).e5) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__e3",
"Spec.SHA2.op0",
"Spec.SHA2.__proj__Mkops__item__e4",
"Spec.SHA2.op_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__e5"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | [] | Spec.SHA2._sigma1 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 82,
"end_line": 135,
"start_col": 18,
"start_line": 135
} |
Prims.Tot | val _Sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _Sigma1 a x = (x >>>. (op0 a).c3) ^. (x >>>. (op0 a).c4) ^. (x >>>. (op0 a).c5) | val _Sigma1: a:sha2_alg -> x:(word a) -> Tot (word a)
let _Sigma1 a x = | false | null | false | (x >>>. (op0 a).c3) ^. (x >>>. (op0 a).c4) ^. (x >>>. (op0 a).c5) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__c3",
"Spec.SHA2.op0",
"Spec.SHA2.__proj__Mkops__item__c4",
"Spec.SHA2.__proj__Mkops__item__c5"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _Sigma1: a:sha2_alg -> x:(word a) -> Tot (word a) | [] | Spec.SHA2._Sigma1 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 83,
"end_line": 125,
"start_col": 18,
"start_line": 125
} |
Prims.Tot | val _sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.SHA2.Constants",
"short_module": "C"
},
{
"abbrev": false,
"full_modu... | false | let _sigma0 a x = (x >>>. (op0 a).e0) ^. (x >>>. (op0 a).e1) ^. (x >>. (op0 a).e2) | val _sigma0: a:sha2_alg -> x:(word a) -> Tot (word a)
let _sigma0 a x = | false | null | false | (x >>>. (op0 a).e0) ^. (x >>>. (op0 a).e1) ^. (x >>. (op0 a).e2) | {
"checked_file": "Spec.SHA2.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UIn... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Spec.Hash.Definitions.word",
"Spec.SHA2.op_Hat_Dot",
"Spec.SHA2.op_Greater_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__e0",
"Spec.SHA2.op0",
"Spec.SHA2.__proj__Mkops__item__e1",
"Spec.SHA2.op_Greater_Greater_Dot",
"Spec.SHA2.__proj__Mkops__item__e2"
] | [] | module Spec.SHA2
open Lib.IntTypes
module C = Spec.SHA2.Constants
module S = FStar.Seq
open Spec.Hash.Definitions
(* The core compression, padding and extraction functions for all SHA2
* algorithms. *)
(* Define the length of the constants. Also the number of scheduling rounds. *)
inline_for_extraction
let size_k_... | false | false | Spec.SHA2.fst | {
"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... | null | val _sigma0: a:sha2_alg -> x:(word a) -> Tot (word a) | [] | Spec.SHA2._sigma0 | {
"file_name": "specs/Spec.SHA2.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Spec.Hash.Definitions.sha2_alg -> x: Spec.Hash.Definitions.word a -> Spec.Hash.Definitions.word a | {
"end_col": 82,
"end_line": 130,
"start_col": 18,
"start_line": 130
} |
FStar.All.ALL | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Spec.HMAC_DRBG.Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.HMAC_DRBG",
"short_module": null
},
{
"abbrev": false,
... | false | let test_vec
{a; entropy_input; entropy_input_reseed; nonce; personalization_string;
additional_input_reseed; additional_input_1; additional_input_2;
returned_bits}
=
let returned_bytes_len = String.strlen returned_bits / 2 in
let entropy_input_len = String.strlen entropy_input / 2 in
let ent... | let test_vec
{ a = a ;
entropy_input = entropy_input ;
entropy_input_reseed = entropy_input_reseed ;
nonce = nonce ;
personalization_string = personalization_string ;
additional_input_reseed = additional_input_reseed ;
additional_input_1 = additional_inp... | true | null | false | let returned_bytes_len = String.strlen returned_bits / 2 in
let entropy_input_len = String.strlen entropy_input / 2 in
let entropy_input_reseed_len = String.strlen entropy_input_reseed / 2 in
let nonce_len = String.strlen nonce / 2 in
let personalization_string_len = String.strlen personalization_string / 2 in
let addi... | {
"checked_file": "Spec.HMAC_DRBG.Test.fst.checked",
"dependencies": [
"Spec.HMAC_DRBG.Test.Vectors.fst.checked",
"Spec.HMAC_DRBG.fsti.checked",
"Spec.Agile.HMAC.fsti.checked",
"prims.fst.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.Meta.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Spec.HMAC_DRBG.Test.Vectors.vec",
"Spec.HMAC_DRBG.Test.Vectors.supported_alg",
"Lib.Meta.hex_string",
"Prims.op_Negation",
"Prims.op_AmpAmp",
"Spec.HMAC_DRBG.Test.Vectors.is_supported_alg",
"Prims.op_LessThanOrEqual",
"Spec.HMAC_DRBG.min_length",
"Spec.HMAC_DRBG.max_length",
"Prims.op_Division",
... | [] | module Spec.HMAC_DRBG.Test
open FStar.Seq
open Lib.IntTypes
open Lib.Meta
open Spec.Agile.HMAC
open Spec.HMAC_DRBG
open Spec.HMAC_DRBG.Test.Vectors
module PS = Lib.PrintSequence
#set-options "--max_fuel 1 --max_ifuel 1 --z3rlimit 50"
let test_vec
{a; entropy_input; entropy_input_reseed; nonce; personalization_st... | false | false | Spec.HMAC_DRBG.Test.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val test_vec : _: Spec.HMAC_DRBG.Test.Vectors.vec -> FStar.All.ALL Prims.bool | [] | Spec.HMAC_DRBG.Test.test_vec | {
"file_name": "specs/tests/Spec.HMAC_DRBG.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Spec.HMAC_DRBG.Test.Vectors.vec -> FStar.All.ALL Prims.bool | {
"end_col": 95,
"end_line": 55,
"start_col": 1,
"start_line": 19
} | |
FStar.All.ALL | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Spec.HMAC_DRBG.Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.HMAC_DRBG",
"short_module": null
},
{
"abbrev": false,
... | false | let test () =
let result = List.for_all test_vec test_vectors in
if result then
begin
IO.print_string "\n\n[HMAC-DRBG] PASS\n";
true
end
else
begin
IO.print_string "\n\n[HMAC-DRBG] FAIL\n";
false
end | let test () = | true | null | false | let result = List.for_all test_vec test_vectors in
if result
then
(IO.print_string "\n\n[HMAC-DRBG] PASS\n";
true)
else
(IO.print_string "\n\n[HMAC-DRBG] FAIL\n";
false) | {
"checked_file": "Spec.HMAC_DRBG.Test.fst.checked",
"dependencies": [
"Spec.HMAC_DRBG.Test.Vectors.fst.checked",
"Spec.HMAC_DRBG.fsti.checked",
"Spec.Agile.HMAC.fsti.checked",
"prims.fst.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.Meta.fst.checked",
"Lib.IntTypes.fsti.checked",
... | [] | [
"Prims.unit",
"Prims.bool",
"FStar.IO.print_string",
"FStar.List.for_all",
"Spec.HMAC_DRBG.Test.Vectors.vec",
"Spec.HMAC_DRBG.Test.test_vec",
"Spec.HMAC_DRBG.Test.Vectors.test_vectors"
] | [] | module Spec.HMAC_DRBG.Test
open FStar.Seq
open Lib.IntTypes
open Lib.Meta
open Spec.Agile.HMAC
open Spec.HMAC_DRBG
open Spec.HMAC_DRBG.Test.Vectors
module PS = Lib.PrintSequence
#set-options "--max_fuel 1 --max_ifuel 1 --z3rlimit 50"
let test_vec
{a; entropy_input; entropy_input_reseed; nonce; personalization_st... | false | false | Spec.HMAC_DRBG.Test.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val test : _: Prims.unit -> FStar.All.ALL Prims.bool | [] | Spec.HMAC_DRBG.Test.test | {
"file_name": "specs/tests/Spec.HMAC_DRBG.Test.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | _: Prims.unit -> FStar.All.ALL Prims.bool | {
"end_col": 7,
"end_line": 68,
"start_col": 13,
"start_line": 57
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let right_unitality_lemma (m:Type) (u:m) (mult:m -> m -> m) =
forall (x:m). x `mult` u == x | let right_unitality_lemma (m: Type) (u: m) (mult: (m -> m -> m)) = | false | null | false | forall (x: m). x `mult` u == x | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val right_unitality_lemma : m: Type -> u4: m -> mult: (_: m -> _: m -> m) -> Prims.logical | [] | FStar.Algebra.Monoid.right_unitality_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> u4: m -> mult: (_: m -> _: m -> m) -> Prims.logical | {
"end_col": 31,
"end_line": 30,
"start_col": 2,
"start_line": 30
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let associativity_lemma (m:Type) (mult:m -> m -> m) =
forall (x y z:m). x `mult` y `mult` z == x `mult` (y `mult` z) | let associativity_lemma (m: Type) (mult: (m -> m -> m)) = | false | null | false | forall (x: m) (y: m) (z: m). (x `mult` y) `mult` z == x `mult` (y `mult` z) | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val associativity_lemma : m: Type -> mult: (_: m -> _: m -> m) -> Prims.logical | [] | FStar.Algebra.Monoid.associativity_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> mult: (_: m -> _: m -> m) -> Prims.logical | {
"end_col": 64,
"end_line": 36,
"start_col": 2,
"start_line": 36
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let left_unitality_lemma (m:Type) (u:m) (mult:m -> m -> m) =
forall (x:m). u `mult` x == x | let left_unitality_lemma (m: Type) (u: m) (mult: (m -> m -> m)) = | false | null | false | forall (x: m). u `mult` x == x | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val left_unitality_lemma : m: Type -> u7: m -> mult: (_: m -> _: m -> m) -> Prims.logical | [] | FStar.Algebra.Monoid.left_unitality_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> u7: m -> mult: (_: m -> _: m -> m) -> Prims.logical | {
"end_col": 31,
"end_line": 33,
"start_col": 2,
"start_line": 33
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let monoid_morphism_unit_lemma (#a #b:Type) (f:a -> b) (ma:monoid a) (mb:monoid b) =
f (Monoid?.unit ma) == Monoid?.unit mb | let monoid_morphism_unit_lemma (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: monoid b) = | false | null | false | f (Monoid?.unit ma) == Monoid?.unit mb | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.monoid",
"Prims.eq2",
"FStar.Algebra.Monoid.__proj__Monoid__item__unit",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val monoid_morphism_unit_lemma : f: (_: a -> b) -> ma: FStar.Algebra.Monoid.monoid a -> mb: FStar.Algebra.Monoid.monoid b
-> Prims.logical | [] | FStar.Algebra.Monoid.monoid_morphism_unit_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | f: (_: a -> b) -> ma: FStar.Algebra.Monoid.monoid a -> mb: FStar.Algebra.Monoid.monoid b
-> Prims.logical | {
"end_col": 40,
"end_line": 147,
"start_col": 2,
"start_line": 147
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let monoid_morphism_mult_lemma (#a #b:Type) (f:a -> b) (ma:monoid a) (mb:monoid b) =
forall (x y:a). Monoid?.mult mb (f x) (f y) == f (Monoid?.mult ma x y) | let monoid_morphism_mult_lemma (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: monoid b) = | false | null | false | forall (x: a) (y: a). Monoid?.mult mb (f x) (f y) == f (Monoid?.mult ma x y) | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.monoid",
"Prims.l_Forall",
"Prims.eq2",
"FStar.Algebra.Monoid.__proj__Monoid__item__mult",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val monoid_morphism_mult_lemma : f: (_: a -> b) -> ma: FStar.Algebra.Monoid.monoid a -> mb: FStar.Algebra.Monoid.monoid b
-> Prims.logical | [] | FStar.Algebra.Monoid.monoid_morphism_mult_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | f: (_: a -> b) -> ma: FStar.Algebra.Monoid.monoid a -> mb: FStar.Algebra.Monoid.monoid b
-> Prims.logical | {
"end_col": 72,
"end_line": 150,
"start_col": 2,
"start_line": 150
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let unit_act_lemma (m a:Type) (u:m) (act:m -> a -> a) =
forall (y:a). u `act` y == y | let unit_act_lemma (m a: Type) (u: m) (act: (m -> a -> a)) = | false | null | false | forall (y: a). u `act` y == y | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val unit_act_lemma : m: Type -> a: Type -> u85: m -> act: (_: m -> _: a -> a) -> Prims.logical | [] | FStar.Algebra.Monoid.unit_act_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> a: Type -> u85: m -> act: (_: m -> _: a -> a) -> Prims.logical | {
"end_col": 30,
"end_line": 195,
"start_col": 2,
"start_line": 195
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let mult_act_lemma (m a:Type) (mult:m -> m -> m) (act:m -> a -> a) =
forall (x x':m) (y:a). (x `mult` x') `act` y == x `act` (x' `act` y) | let mult_act_lemma (m a: Type) (mult: (m -> m -> m)) (act: (m -> a -> a)) = | false | null | false | forall (x: m) (x': m) (y: a). (x `mult` x') `act` y == x `act` (x' `act` y) | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val mult_act_lemma : m: Type -> a: Type -> mult: (_: m -> _: m -> m) -> act: (_: m -> _: a -> a) -> Prims.logical | [] | FStar.Algebra.Monoid.mult_act_lemma | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> a: Type -> mult: (_: m -> _: m -> m) -> act: (_: m -> _: a -> a) -> Prims.logical | {
"end_col": 70,
"end_line": 192,
"start_col": 2,
"start_line": 192
} | |
Prims.Tot | val embed_nat_int (n: nat) : int | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let embed_nat_int (n:nat) : int = n | val embed_nat_int (n: nat) : int
let embed_nat_int (n: nat) : int = | false | null | false | n | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.nat",
"Prims.int"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val embed_nat_int (n: nat) : int | [] | FStar.Algebra.Monoid.embed_nat_int | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | n: Prims.nat -> Prims.int | {
"end_col": 35,
"end_line": 165,
"start_col": 34,
"start_line": 165
} |
Prims.Tot | val neg (p: prop) : prop | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let neg (p:prop) : prop = ~p | val neg (p: prop) : prop
let neg (p: prop) : prop = | false | null | false | ~p | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"Prims.prop",
"Prims.l_not"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val neg (p: prop) : prop | [] | FStar.Algebra.Monoid.neg | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | p: Prims.prop -> Prims.prop | {
"end_col": 28,
"end_line": 168,
"start_col": 26,
"start_line": 168
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let left_action_morphism
(#a #b #ma #mb:Type)
(f:a -> b)
(* mf ought to be a monoid morphism but we don't use this fact in the property *)
(mf: ma -> mb)
(#mma:monoid ma)
(#mmb:monoid mb)
(la:left_action mma a)
(lb:left_action mmb b)
= forall (g:ma) (x:a). LAct?.act lb (mf g) (f x) == f ... | let left_action_morphism
(#a #b #ma #mb: Type)
(f: (a -> b))
(mf: (ma -> mb))
(#mma: monoid ma)
(#mmb: monoid mb)
(la: left_action mma a)
(lb: left_action mmb b)
= | false | null | false | forall (g: ma) (x: a). LAct?.act lb (mf g) (f x) == f (LAct?.act la g x) | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Algebra.Monoid.left_action",
"Prims.l_Forall",
"Prims.eq2",
"FStar.Algebra.Monoid.__proj__LAct__item__act",
"Prims.logical"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val left_action_morphism : f: (_: a -> b) ->
mf: (_: ma -> mb) ->
la: FStar.Algebra.Monoid.left_action mma a ->
lb: FStar.Algebra.Monoid.left_action mmb b
-> Prims.logical | [] | FStar.Algebra.Monoid.left_action_morphism | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} |
f: (_: a -> b) ->
mf: (_: ma -> mb) ->
la: FStar.Algebra.Monoid.left_action mma a ->
lb: FStar.Algebra.Monoid.left_action mmb b
-> Prims.logical | {
"end_col": 72,
"end_line": 214,
"start_col": 2,
"start_line": 214
} | |
Prims.Tot | val bool_and_monoid:monoid bool | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let bool_and_monoid : monoid bool =
let and_ b1 b2 = b1 && b2 in
intro_monoid bool true and_ | val bool_and_monoid:monoid bool
let bool_and_monoid:monoid bool = | false | null | false | let and_ b1 b2 = b1 && b2 in
intro_monoid bool true and_ | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.bool",
"Prims.op_AmpAmp"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val bool_and_monoid:monoid bool | [] | FStar.Algebra.Monoid.bool_and_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.bool | {
"end_col": 29,
"end_line": 126,
"start_col": 35,
"start_line": 124
} |
Prims.Tot | val bool_or_monoid:monoid bool | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let bool_or_monoid : monoid bool =
let or_ b1 b2 = b1 || b2 in
intro_monoid bool false or_ | val bool_or_monoid:monoid bool
let bool_or_monoid:monoid bool = | false | null | false | let or_ b1 b2 = b1 || b2 in
intro_monoid bool false or_ | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.bool",
"Prims.op_BarBar"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val bool_or_monoid:monoid bool | [] | FStar.Algebra.Monoid.bool_or_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.bool | {
"end_col": 29,
"end_line": 130,
"start_col": 34,
"start_line": 128
} |
Prims.Pure | val intro_monoid (m: Type) (u: m) (mult: (m -> m -> m))
: Pure (monoid m)
(requires
(right_unitality_lemma m u mult /\ left_unitality_lemma m u mult /\
associativity_lemma m mult))
(ensures (fun mm -> Monoid?.unit mm == u /\ Monoid?.mult mm == mult)) | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let intro_monoid (m:Type) (u:m) (mult:m -> m -> m)
: Pure (monoid m)
(requires (right_unitality_lemma m u mult /\ left_unitality_lemma m u mult /\ associativity_lemma m mult))
(ensures (fun mm -> Monoid?.unit mm == u /\ Monoid?.mult mm == mult))
=
Monoid u mult () () () | val intro_monoid (m: Type) (u: m) (mult: (m -> m -> m))
: Pure (monoid m)
(requires
(right_unitality_lemma m u mult /\ left_unitality_lemma m u mult /\
associativity_lemma m mult))
(ensures (fun mm -> Monoid?.unit mm == u /\ Monoid?.mult mm == mult))
let intro_monoid (m: Type) (u: m) (... | false | null | false | Monoid u mult () () () | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [] | [
"FStar.Algebra.Monoid.Monoid",
"FStar.Algebra.Monoid.monoid",
"Prims.l_and",
"FStar.Algebra.Monoid.right_unitality_lemma",
"FStar.Algebra.Monoid.left_unitality_lemma",
"FStar.Algebra.Monoid.associativity_lemma",
"Prims.eq2",
"FStar.Algebra.Monoid.__proj__Monoid__item__unit",
"FStar.Algebra.Monoid.__... | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val intro_monoid (m: Type) (u: m) (mult: (m -> m -> m))
: Pure (monoid m)
(requires
(right_unitality_lemma m u mult /\ left_unitality_lemma m u mult /\
associativity_lemma m mult))
(ensures (fun mm -> Monoid?.unit mm == u /\ Monoid?.mult mm == mult)) | [] | FStar.Algebra.Monoid.intro_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: Type -> u32: m -> mult: (_: m -> _: m -> m) -> Prims.Pure (FStar.Algebra.Monoid.monoid m) | {
"end_col": 24,
"end_line": 54,
"start_col": 2,
"start_line": 54
} |
Prims.Tot | val int_plus_monoid:monoid int | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let int_plus_monoid : monoid int =
intro_monoid int 0 (+) | val int_plus_monoid:monoid int
let int_plus_monoid:monoid int = | false | null | false | intro_monoid int 0 ( + ) | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.int",
"Prims.op_Addition"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val int_plus_monoid:monoid int | [] | FStar.Algebra.Monoid.int_plus_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.int | {
"end_col": 24,
"end_line": 64,
"start_col": 2,
"start_line": 64
} |
Prims.Tot | val nat_plus_monoid:monoid nat | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let nat_plus_monoid : monoid nat =
let add (x y : nat) : nat = x + y in
intro_monoid nat 0 add | val nat_plus_monoid:monoid nat
let nat_plus_monoid:monoid nat = | false | null | false | let add (x y: nat) : nat = x + y in
intro_monoid nat 0 add | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.nat",
"Prims.op_Addition"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val nat_plus_monoid:monoid nat | [] | FStar.Algebra.Monoid.nat_plus_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.nat | {
"end_col": 24,
"end_line": 61,
"start_col": 34,
"start_line": 59
} |
Prims.Tot | val disjunction_monoid:monoid prop | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let disjunction_monoid : monoid prop =
let u : prop = singleton False in
let mult (p q : prop) : prop = p \/ q in
let left_unitality_helper (p:prop) : Lemma ((u `mult` p) == p) =
assert ((u `mult` p) <==> p) ;
PropExt.apply (u `mult` p) p
in
let right_unitality_helper (p:prop) : Lemma ((p `mult` u) ... | val disjunction_monoid:monoid prop
let disjunction_monoid:monoid prop = | false | null | false | let u:prop = singleton False in
let mult (p q: prop) : prop = p \/ q in
let left_unitality_helper (p: prop) : Lemma ((u `mult` p) == p) =
assert ((u `mult` p) <==> p);
PropExt.apply (u `mult` p) p
in
let right_unitality_helper (p: prop) : Lemma ((p `mult` u) == p) =
assert ((p `mult` u) <==> p);
PropExt.apply (... | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.prop",
"Prims.unit",
"Prims._assert",
"FStar.Algebra.Monoid.associativity_lemma",
"FStar.Classical.forall_intro_3",
"Prims.eq2",
"FStar.Algebra.Monoid.left_unitality_lemma",
"FStar.Classical.forall_intro",
"FStar.Algebra.Monoid.right_unitality_lemma",
... | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val disjunction_monoid:monoid prop | [] | FStar.Algebra.Monoid.disjunction_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.prop | {
"end_col": 26,
"end_line": 122,
"start_col": 38,
"start_line": 97
} |
Prims.Tot | val lift_monoid_option (#a: Type) (m: monoid a) : monoid (option a) | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let lift_monoid_option (#a:Type) (m:monoid a) : monoid (option a) =
let mult (x y:option a) =
match x, y with
| Some x0, Some y0 -> Some (m.mult x0 y0)
| _, _ -> None
in
intro_monoid (option a) (Some m.unit) mult | val lift_monoid_option (#a: Type) (m: monoid a) : monoid (option a)
let lift_monoid_option (#a: Type) (m: monoid a) : monoid (option a) = | false | null | false | let mult (x y: option a) =
match x, y with
| Some x0, Some y0 -> Some (m.mult x0 y0)
| _, _ -> None
in
intro_monoid (option a) (Some m.unit) mult | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Algebra.Monoid.intro_monoid",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.Some",
"FStar.Algebra.Monoid.__proj__Monoid__item__unit",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Algebra.Monoid.__proj__Monoid__item__mult",
"FStar.Pervasives.Native.None"... | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val lift_monoid_option (#a: Type) (m: monoid a) : monoid (option a) | [] | FStar.Algebra.Monoid.lift_monoid_option | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | m: FStar.Algebra.Monoid.monoid a -> FStar.Algebra.Monoid.monoid (FStar.Pervasives.Native.option a) | {
"end_col": 44,
"end_line": 142,
"start_col": 67,
"start_line": 136
} |
Prims.Tot | val conjunction_monoid:monoid prop | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let conjunction_monoid : monoid prop =
let u : prop = singleton True in
let mult (p q : prop) : prop = p /\ q in
let left_unitality_helper (p:prop) : Lemma ((u `mult` p) == p) =
assert ((u `mult` p) <==> p) ;
PropExt.apply (u `mult` p) p
in
let right_unitality_helper (p:prop) : Lemma ((p `mult` u) =... | val conjunction_monoid:monoid prop
let conjunction_monoid:monoid prop = | false | null | false | let u:prop = singleton True in
let mult (p q: prop) : prop = p /\ q in
let left_unitality_helper (p: prop) : Lemma ((u `mult` p) == p) =
assert ((u `mult` p) <==> p);
PropExt.apply (u `mult` p) p
in
let right_unitality_helper (p: prop) : Lemma ((p `mult` u) == p) =
assert ((p `mult` u) <==> p);
PropExt.apply (p... | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.prop",
"Prims.unit",
"Prims._assert",
"FStar.Algebra.Monoid.associativity_lemma",
"FStar.Classical.forall_intro_3",
"Prims.eq2",
"FStar.Algebra.Monoid.left_unitality_lemma",
"FStar.Classical.forall_intro",
"FStar.Algebra.Monoid.right_unitality_lemma",
... | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val conjunction_monoid:monoid prop | [] | FStar.Algebra.Monoid.conjunction_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.prop | {
"end_col": 26,
"end_line": 94,
"start_col": 38,
"start_line": 69
} |
Prims.Tot | val bool_xor_monoid:monoid bool | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let bool_xor_monoid : monoid bool =
let xor b1 b2 = (b1 || b2) && not (b1 && b2) in
intro_monoid bool false xor | val bool_xor_monoid:monoid bool
let bool_xor_monoid:monoid bool = | false | null | false | let xor b1 b2 = (b1 || b2) && not (b1 && b2) in
intro_monoid bool false xor | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [
"total"
] | [
"FStar.Algebra.Monoid.intro_monoid",
"Prims.bool",
"Prims.op_AmpAmp",
"Prims.op_BarBar",
"Prims.op_Negation"
] | [] | (*
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... | false | true | FStar.Algebra.Monoid.fst | {
"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... | null | val bool_xor_monoid:monoid bool | [] | FStar.Algebra.Monoid.bool_xor_monoid | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | FStar.Algebra.Monoid.monoid Prims.bool | {
"end_col": 29,
"end_line": 134,
"start_col": 35,
"start_line": 132
} |
Prims.Pure | val intro_monoid_morphism (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: monoid b)
: Pure (monoid_morphism f ma mb)
(requires (monoid_morphism_unit_lemma f ma mb /\ monoid_morphism_mult_lemma f ma mb))
(ensures (fun _ -> True)) | [
{
"abbrev": true,
"full_module": "FStar.PropositionalExtensionality",
"short_module": "PropExt"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra",
"short_module": null
},
{
"abbrev": f... | false | let intro_monoid_morphism (#a #b:Type) (f:a -> b) (ma:monoid a) (mb:monoid b)
: Pure (monoid_morphism f ma mb)
(requires (monoid_morphism_unit_lemma f ma mb /\ monoid_morphism_mult_lemma f ma mb))
(ensures (fun _ -> True))
=
MonoidMorphism () () | val intro_monoid_morphism (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: monoid b)
: Pure (monoid_morphism f ma mb)
(requires (monoid_morphism_unit_lemma f ma mb /\ monoid_morphism_mult_lemma f ma mb))
(ensures (fun _ -> True))
let intro_monoid_morphism (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: m... | false | null | false | MonoidMorphism () () | {
"checked_file": "FStar.Algebra.Monoid.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.PropositionalExtensionality.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "F... | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Algebra.Monoid.MonoidMorphism",
"FStar.Algebra.Monoid.monoid_morphism",
"Prims.l_and",
"FStar.Algebra.Monoid.monoid_morphism_unit_lemma",
"FStar.Algebra.Monoid.monoid_morphism_mult_lemma",
"Prims.l_True"
] | [] | (*
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... | false | false | FStar.Algebra.Monoid.fst | {
"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... | null | val intro_monoid_morphism (#a #b: Type) (f: (a -> b)) (ma: monoid a) (mb: monoid b)
: Pure (monoid_morphism f ma mb)
(requires (monoid_morphism_unit_lemma f ma mb /\ monoid_morphism_mult_lemma f ma mb))
(ensures (fun _ -> True)) | [] | FStar.Algebra.Monoid.intro_monoid_morphism | {
"file_name": "ulib/FStar.Algebra.Monoid.fst",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | f: (_: a -> b) -> ma: FStar.Algebra.Monoid.monoid a -> mb: FStar.Algebra.Monoid.monoid b
-> Prims.Pure (FStar.Algebra.Monoid.monoid_morphism f ma mb) | {
"end_col": 22,
"end_line": 163,
"start_col": 2,
"start_line": 163
} |
Prims.GTot | val make_total_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot t))
: GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let make_total_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: ((s: bytes {Seq.length s == sz}) -> GTot t))
: GTot Type0
= forall (s1: bytes {Seq.length s1 == sz}) (s2: bytes {Seq.length s2 == sz}) . {:pattern (f s1); (f s2)}
f s1 == f s2 ==> Seq.equal s1 s2 | val make_total_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot t))
: GTot Type0
let make_total_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot t))
: GTot Type0 = | false | null | false | forall (s1: bytes{Seq.length s1 == sz}) (s2: bytes{Seq.length s2 == sz}). {:pattern (f s1); (f s2)}
f s1 == f s2 ==> Seq.equal s1 s2 | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"Prims.nat",
"LowParse.Bytes.bytes",
"Prims.eq2",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.Seq.Base.equal"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val make_total_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot t))
: GTot Type0 | [] | LowParse.Spec.Combinators.make_total_constant_size_parser_precond | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
sz: Prims.nat ->
t: Type ->
f: (s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz} -> Prims.GTot t)
-> Prims.GTot Type0 | {
"end_col": 34,
"end_line": 149,
"start_col": 2,
"start_line": 148
} |
Prims.Tot | val fail_parser' (t: Type) : Tot (tot_bare_parser t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let fail_parser'
(t: Type)
: Tot (tot_bare_parser t)
= fun _ -> None | val fail_parser' (t: Type) : Tot (tot_bare_parser t)
let fail_parser' (t: Type) : Tot (tot_bare_parser t) = | false | null | false | fun _ -> None | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Bytes.bytes",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.tot_bare_parser"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val fail_parser' (t: Type) : Tot (tot_bare_parser t) | [] | LowParse.Spec.Combinators.fail_parser' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | t: Type -> LowParse.Spec.Base.tot_bare_parser t | {
"end_col": 15,
"end_line": 230,
"start_col": 2,
"start_line": 230
} |
Prims.Tot | val parse_ret_kind:parser_kind | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_ret_kind : parser_kind =
strong_parser_kind 0 0 (Some ParserKindMetadataTotal) | val parse_ret_kind:parser_kind
let parse_ret_kind:parser_kind = | false | null | false | strong_parser_kind 0 0 (Some ParserKindMetadataTotal) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.strong_parser_kind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.Base.parser_kind_metadata_some",
"LowParse.Spec.Base.ParserKindMetadataTotal"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_ret_kind:parser_kind | [] | LowParse.Spec.Combinators.parse_ret_kind | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | LowParse.Spec.Base.parser_kind | {
"end_col": 55,
"end_line": 195,
"start_col": 2,
"start_line": 195
} |
Prims.GTot | val and_then_cases_injective (#t #t': Type) (p': (t -> Tot (bare_parser t'))) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let and_then_cases_injective
(#t:Type)
(#t':Type)
(p': (t -> Tot (bare_parser t')))
: GTot Type0
= forall (x1 x2: t) (b1 b2: bytes) . {:pattern (parse (p' x1) b1); (parse (p' x2) b2)}
and_then_cases_injective_precond p' x1 x2 b1 b2 ==>
x1 == x2 | val and_then_cases_injective (#t #t': Type) (p': (t -> Tot (bare_parser t'))) : GTot Type0
let and_then_cases_injective (#t #t': Type) (p': (t -> Tot (bare_parser t'))) : GTot Type0 = | false | null | false | forall (x1: t) (x2: t) (b1: bytes) (b2: bytes). {:pattern (parse (p' x1) b1); (parse (p' x2) b2)}
and_then_cases_injective_precond p' x1 x2 b1 b2 ==> x1 == x2 | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"LowParse.Spec.Base.bare_parser",
"Prims.l_Forall",
"LowParse.Bytes.bytes",
"Prims.l_imp",
"LowParse.Spec.Combinators.and_then_cases_injective_precond",
"Prims.eq2",
"LowParse.Spec.Base.parse"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val and_then_cases_injective (#t #t': Type) (p': (t -> Tot (bare_parser t'))) : GTot Type0 | [] | LowParse.Spec.Combinators.and_then_cases_injective | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | p': (_: t -> LowParse.Spec.Base.bare_parser t') -> Prims.GTot Type0 | {
"end_col": 10,
"end_line": 308,
"start_col": 2,
"start_line": 306
} |
Prims.GTot | val synth_injective (#t1 #t2: Type) (f: (t1 -> GTot t2)) : GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let synth_injective
(#t1: Type)
(#t2: Type)
(f: (t1 -> GTot t2))
: GTot Type0
= forall (x x' : t1) . {:pattern (f x); (f x')} f x == f x' ==> x == x' | val synth_injective (#t1 #t2: Type) (f: (t1 -> GTot t2)) : GTot Type0
let synth_injective (#t1 #t2: Type) (f: (t1 -> GTot t2)) : GTot Type0 = | false | null | false | forall (x: t1) (x': t1). {:pattern (f x); (f x')} f x == f x' ==> x == x' | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"Prims.l_Forall",
"Prims.l_imp",
"Prims.eq2"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val synth_injective (#t1 #t2: Type) (f: (t1 -> GTot t2)) : GTot Type0 | [] | LowParse.Spec.Combinators.synth_injective | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | f: (_: t1 -> Prims.GTot t2) -> Prims.GTot Type0 | {
"end_col": 71,
"end_line": 569,
"start_col": 2,
"start_line": 569
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_false_kind = strong_parser_kind 0 0 (Some ParserKindMetadataFail) | let parse_false_kind = | false | null | false | strong_parser_kind 0 0 (Some ParserKindMetadataFail) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.strong_parser_kind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.Base.parser_kind_metadata_some",
"LowParse.Spec.Base.ParserKindMetadataFail"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_false_kind : LowParse.Spec.Base.parser_kind | [] | LowParse.Spec.Combinators.parse_false_kind | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | LowParse.Spec.Base.parser_kind | {
"end_col": 75,
"end_line": 261,
"start_col": 23,
"start_line": 261
} | |
Prims.Tot | val bare_serialize_synth
(#k: parser_kind)
(#t1 #t2: Type)
(p1: parser k t1)
(f2: (t1 -> GTot t2))
(s1: serializer p1)
(g1: (t2 -> GTot t1))
: Tot (bare_serializer t2) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let bare_serialize_synth
(#k: parser_kind)
(#t1: Type)
(#t2: Type)
(p1: parser k t1)
(f2: t1 -> GTot t2)
(s1: serializer p1)
(g1: t2 -> GTot t1)
: Tot (bare_serializer t2) =
fun (x: t2) -> s1 (g1 x) | val bare_serialize_synth
(#k: parser_kind)
(#t1 #t2: Type)
(p1: parser k t1)
(f2: (t1 -> GTot t2))
(s1: serializer p1)
(g1: (t2 -> GTot t1))
: Tot (bare_serializer t2)
let bare_serialize_synth
(#k: parser_kind)
(#t1 #t2: Type)
(p1: parser k t1)
(f2: (t1 ->... | false | null | false | fun (x: t2) -> s1 (g1 x) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.bare_serializer"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val bare_serialize_synth
(#k: parser_kind)
(#t1 #t2: Type)
(p1: parser k t1)
(f2: (t1 -> GTot t2))
(s1: serializer p1)
(g1: (t2 -> GTot t1))
: Tot (bare_serializer t2) | [] | LowParse.Spec.Combinators.bare_serialize_synth | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p1: LowParse.Spec.Base.parser k t1 ->
f2: (_: t1 -> Prims.GTot t2) ->
s1: LowParse.Spec.Base.serializer p1 ->
g1: (_: t2 -> Prims.GTot t1)
-> LowParse.Spec.Base.bare_serializer t2 | {
"end_col": 26,
"end_line": 676,
"start_col": 2,
"start_line": 676
} |
Prims.Tot | val and_then_metadata (k1 k2: parser_kind_metadata_t) : Tot parser_kind_metadata_t | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let and_then_metadata
(k1 k2: parser_kind_metadata_t)
: Tot parser_kind_metadata_t
= match k1, k2 with
| Some ParserKindMetadataFail, _ -> k1
| _, Some ParserKindMetadataFail -> k2
| Some ParserKindMetadataTotal, Some ParserKindMetadataTotal -> k1
| _ -> None | val and_then_metadata (k1 k2: parser_kind_metadata_t) : Tot parser_kind_metadata_t
let and_then_metadata (k1 k2: parser_kind_metadata_t) : Tot parser_kind_metadata_t = | false | null | false | match k1, k2 with
| Some ParserKindMetadataFail, _ -> k1
| _, Some ParserKindMetadataFail -> k2
| Some ParserKindMetadataTotal, Some ParserKindMetadataTotal -> k1
| _ -> None | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind_metadata_t",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_kind_metadata_some",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.None"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val and_then_metadata (k1 k2: parser_kind_metadata_t) : Tot parser_kind_metadata_t | [] | LowParse.Spec.Combinators.and_then_metadata | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | k1: LowParse.Spec.Base.parser_kind_metadata_t -> k2: LowParse.Spec.Base.parser_kind_metadata_t
-> LowParse.Spec.Base.parser_kind_metadata_t | {
"end_col": 13,
"end_line": 442,
"start_col": 2,
"start_line": 438
} |
Prims.Tot | val lift_serializer'
(#k: parser_kind)
(#t: Type)
(#f: (unit -> GTot (parser k t)))
(s: (unit -> GTot (serializer (f ()))))
: Tot (bare_serializer t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let lift_serializer'
(#k: parser_kind)
(#t: Type)
(#f: unit -> GTot (parser k t))
(s: unit -> GTot (serializer (f ())))
: Tot (bare_serializer t)
= fun (x: t) -> serialize (s ()) x | val lift_serializer'
(#k: parser_kind)
(#t: Type)
(#f: (unit -> GTot (parser k t)))
(s: (unit -> GTot (serializer (f ()))))
: Tot (bare_serializer t)
let lift_serializer'
(#k: parser_kind)
(#t: Type)
(#f: (unit -> GTot (parser k t)))
(s: (unit -> GTot (serializer (f (... | false | null | false | fun (x: t) -> serialize (s ()) x | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.unit",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.Base.serialize",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.bare_serializer"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val lift_serializer'
(#k: parser_kind)
(#t: Type)
(#f: (unit -> GTot (parser k t)))
(s: (unit -> GTot (serializer (f ()))))
: Tot (bare_serializer t) | [] | LowParse.Spec.Combinators.lift_serializer' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | s: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.serializer (f ())))
-> LowParse.Spec.Base.bare_serializer t | {
"end_col": 34,
"end_line": 1772,
"start_col": 2,
"start_line": 1772
} |
Prims.GTot | val bare_serialize_dtuple2
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(s1: serializer p1 {k1.parser_kind_subkind == Some ParserStrong})
(#k2: parser_kind)
(#t2: (t1 -> Tot Type))
(#p2: (x: t1 -> parser k2 (t2 x)))
(s2: (x: t1 -> serializer (p2 x)))
(xy: dtup... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let bare_serialize_dtuple2
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(s1: serializer p1 { k1.parser_kind_subkind == Some ParserStrong })
(#k2: parser_kind)
(#t2: (t1 -> Tot Type))
(#p2: (x: t1) -> parser k2 (t2 x))
(s2: (x: t1) -> serializer (p2 x))
(xy: dtuple2 t1 t2)
: GTot bytes
= serializ... | val bare_serialize_dtuple2
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(s1: serializer p1 {k1.parser_kind_subkind == Some ParserStrong})
(#k2: parser_kind)
(#t2: (t1 -> Tot Type))
(#p2: (x: t1 -> parser k2 (t2 x)))
(s2: (x: t1 -> serializer (p2 x)))
(xy: dtup... | false | null | false | (serialize s1 (dfst xy)) `Seq.append` (serialize (s2 (dfst xy)) (dsnd xy)) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.B... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val bare_serialize_dtuple2
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(s1: serializer p1 {k1.parser_kind_subkind == Some ParserStrong})
(#k2: parser_kind)
(#t2: (t1 -> Tot Type))
(#p2: (x: t1 -> parser k2 (t2 x)))
(s2: (x: t1 -> serializer (p2 x)))
(xy: dtup... | [] | LowParse.Spec.Combinators.bare_serialize_dtuple2 | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
s1:
LowParse.Spec.Base.serializer p1
{ Mkparser_kind'?.parser_kind_subkind k1 ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
s2: (x: t1 -> LowParse.Spec.Base.serializer (p2 x)) ->
xy: Prims.dtuple2 t1 t2
-> Prims.GTot LowParse.Bytes.bytes | {
"end_col": 72,
"end_line": 1294,
"start_col": 2,
"start_line": 1294
} |
Prims.GTot | val serialize_strengthen'
(#k: parser_kind)
(#t1: Type)
(#p1: parser k t1)
(p2: (t1 -> GTot Type0))
(prf: parse_strengthen_prf p1 p2)
(s: serializer p1)
(input: t1{p2 input})
: GTot bytes | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let serialize_strengthen'
(#k: parser_kind)
(#t1: Type)
(#p1: parser k t1)
(p2: t1 -> GTot Type0)
(prf: parse_strengthen_prf p1 p2)
(s: serializer p1)
(input: t1 { p2 input } )
: GTot bytes
= serialize s input | val serialize_strengthen'
(#k: parser_kind)
(#t1: Type)
(#p1: parser k t1)
(p2: (t1 -> GTot Type0))
(prf: parse_strengthen_prf p1 p2)
(s: serializer p1)
(input: t1{p2 input})
: GTot bytes
let serialize_strengthen'
(#k: parser_kind)
(#t1: Type)
(#p1: parser... | false | null | false | serialize s input | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Combinators.parse_strengthen_prf",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.Base.serialize",
"LowParse.Bytes.bytes"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val serialize_strengthen'
(#k: parser_kind)
(#t1: Type)
(#p1: parser k t1)
(p2: (t1 -> GTot Type0))
(prf: parse_strengthen_prf p1 p2)
(s: serializer p1)
(input: t1{p2 input})
: GTot bytes | [] | LowParse.Spec.Combinators.serialize_strengthen' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p2: (_: t1 -> Prims.GTot Type0) ->
prf: LowParse.Spec.Combinators.parse_strengthen_prf p1 p2 ->
s: LowParse.Spec.Base.serializer p1 ->
input: t1{p2 input}
-> Prims.GTot LowParse.Bytes.bytes | {
"end_col": 19,
"end_line": 1692,
"start_col": 2,
"start_line": 1692
} |
Prims.Tot | val lift_parser' (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (bare_parser t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let lift_parser'
(#k: parser_kind)
(#t: Type)
(f: unit -> GTot (parser k t))
: Tot (bare_parser t)
= fun (input: bytes) -> parse (f ()) input | val lift_parser' (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (bare_parser t)
let lift_parser' (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (bare_parser t) = | false | null | false | fun (input: bytes) -> parse (f ()) input | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.unit",
"LowParse.Spec.Base.parser",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parse",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"LowParse.Spec.Base.bare_parser"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val lift_parser' (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (bare_parser t) | [] | LowParse.Spec.Combinators.lift_parser' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | f: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.parser k t)) -> LowParse.Spec.Base.bare_parser t | {
"end_col": 42,
"end_line": 1747,
"start_col": 2,
"start_line": 1747
} |
Prims.GTot | val make_constant_size_parser_precond_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(s1: bytes{Seq.length s1 == sz})
(s2: bytes{Seq.length s2 == sz})
: GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let make_constant_size_parser_precond_precond
(sz: nat)
(t: Type)
(f: ((s: bytes {Seq.length s == sz}) -> GTot (option t)))
(s1: bytes { Seq.length s1 == sz } )
(s2: bytes { Seq.length s2 == sz } )
: GTot Type0
= (Some? (f s1) \/ Some? (f s2)) /\ f s1 == f s2 | val make_constant_size_parser_precond_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(s1: bytes{Seq.length s1 == sz})
(s2: bytes{Seq.length s2 == sz})
: GTot Type0
let make_constant_size_parser_precond_precond
(sz: nat)
(t: Type)
(f... | false | null | false | (Some? (f s1) \/ Some? (f s2)) /\ f s1 == f s2 | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"Prims.nat",
"LowParse.Bytes.bytes",
"Prims.eq2",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"FStar.Pervasives.Native.option",
"Prims.l_and",
"Prims.l_or",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val make_constant_size_parser_precond_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(s1: bytes{Seq.length s1 == sz})
(s2: bytes{Seq.length s2 == sz})
: GTot Type0 | [] | LowParse.Spec.Combinators.make_constant_size_parser_precond_precond | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
sz: Prims.nat ->
t: Type ->
f:
(s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz}
-> Prims.GTot (FStar.Pervasives.Native.option t)) ->
s1: LowParse.Bytes.bytes{FStar.Seq.Base.length s1 == sz} ->
s2: LowParse.Bytes.bytes{FStar.Seq.Base.length s2 == sz}
-> Prims.GTot Type0 | {
"end_col": 48,
"end_line": 38,
"start_col": 2,
"start_line": 38
} |
Prims.GTot | val make_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: GTot Type0 | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let make_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: ((s: bytes {Seq.length s == sz}) -> GTot (option t)))
: GTot Type0
= forall (s1: bytes {Seq.length s1 == sz}) (s2: bytes {Seq.length s2 == sz}) . {:pattern (f s1); (f s2)}
make_constant_size_parser_precond_precond sz t f s1 s2 ==> Seq.equal s1 s2 | val make_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: GTot Type0
let make_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: GTot Type0 = | false | null | false | forall (s1: bytes{Seq.length s1 == sz}) (s2: bytes{Seq.length s2 == sz}). {:pattern (f s1); (f s2)}
make_constant_size_parser_precond_precond sz t f s1 s2 ==> Seq.equal s1 s2 | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"sometrivial"
] | [
"Prims.nat",
"LowParse.Bytes.bytes",
"Prims.eq2",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"FStar.Pervasives.Native.option",
"Prims.l_Forall",
"Prims.l_imp",
"LowParse.Spec.Combinators.make_constant_size_parser_precond_precond",
"FStar.Seq.Base.equal"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val make_constant_size_parser_precond
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: GTot Type0 | [] | LowParse.Spec.Combinators.make_constant_size_parser_precond | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
sz: Prims.nat ->
t: Type ->
f:
(s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz}
-> Prims.GTot (FStar.Pervasives.Native.option t))
-> Prims.GTot Type0 | {
"end_col": 78,
"end_line": 46,
"start_col": 2,
"start_line": 45
} |
Prims.Tot | val parse_ret (#t: Type) (v: t) : Tot (parser parse_ret_kind t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_ret (#t:Type) (v:t) : Tot (parser parse_ret_kind t) =
tot_parse_ret v | val parse_ret (#t: Type) (v: t) : Tot (parser parse_ret_kind t)
let parse_ret (#t: Type) (v: t) : Tot (parser parse_ret_kind t) = | false | null | false | tot_parse_ret v | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Combinators.tot_parse_ret",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Combinators.parse_ret_kind"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_ret (#t: Type) (v: t) : Tot (parser parse_ret_kind t) | [] | LowParse.Spec.Combinators.parse_ret | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | v: t -> LowParse.Spec.Base.parser LowParse.Spec.Combinators.parse_ret_kind t | {
"end_col": 17,
"end_line": 202,
"start_col": 2,
"start_line": 202
} |
Prims.Tot | val parse_empty:parser parse_ret_kind unit | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_empty : parser parse_ret_kind unit =
parse_ret () | val parse_empty:parser parse_ret_kind unit
let parse_empty:parser parse_ret_kind unit = | false | null | false | parse_ret () | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Combinators.parse_ret",
"Prims.unit"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_empty:parser parse_ret_kind unit | [] | LowParse.Spec.Combinators.parse_empty | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | LowParse.Spec.Base.parser LowParse.Spec.Combinators.parse_ret_kind Prims.unit | {
"end_col": 14,
"end_line": 215,
"start_col": 2,
"start_line": 215
} |
Prims.Tot | val parse_fret (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (parser parse_ret_kind t') | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_fret (#t #t':Type) (f: t -> GTot t') (v:t) : Tot (parser parse_ret_kind t') =
[@inline_let] let _ = parser_kind_prop_equiv parse_ret_kind (parse_fret' f v) in
parse_fret' f v | val parse_fret (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (parser parse_ret_kind t')
let parse_fret (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (parser parse_ret_kind t') = | false | null | false | [@@ inline_let ]let _ = parser_kind_prop_equiv parse_ret_kind (parse_fret' f v) in
parse_fret' f v | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Combinators.parse_fret'",
"Prims.unit",
"LowParse.Spec.Base.parser_kind_prop_equiv",
"LowParse.Spec.Combinators.parse_ret_kind",
"LowParse.Spec.Base.parser"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_fret (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (parser parse_ret_kind t') | [] | LowParse.Spec.Combinators.parse_fret | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | f: (_: t -> Prims.GTot t') -> v: t
-> LowParse.Spec.Base.parser LowParse.Spec.Combinators.parse_ret_kind t' | {
"end_col": 17,
"end_line": 562,
"start_col": 2,
"start_line": 561
} |
Prims.Tot | val make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: Tot (bare_parser t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: ((s: bytes {Seq.length s == sz}) -> GTot (option t)))
: Tot (bare_parser t)
= fun (s: bytes) ->
if Seq.length s < sz
then None
else begin
let s' : bytes = Seq.slice s 0 sz in
match f s' with
| None -> None
| Some v ->
let (sz: c... | val make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: Tot (bare_parser t)
let make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: Tot (bare_parser t) = | false | null | false | fun (s: bytes) ->
if Seq.length s < sz
then None
else
let s':bytes = Seq.slice s 0 sz in
match f s' with
| None -> None
| Some v ->
let sz:consumed_length s = sz in
Some (v, sz) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"Prims.nat",
"LowParse.Bytes.bytes",
"Prims.eq2",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"FStar.Pervasives.Native.option",
"Prims.op_LessThan",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"Prims.bool",
"FStar.Pervasives.Nativ... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
: Tot (bare_parser t) | [] | LowParse.Spec.Combinators.make_constant_size_parser_aux | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
sz: Prims.nat ->
t: Type ->
f:
(s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz}
-> Prims.GTot (FStar.Pervasives.Native.option t))
-> LowParse.Spec.Base.bare_parser t | {
"end_col": 5,
"end_line": 29,
"start_col": 2,
"start_line": 19
} |
FStar.Pervasives.Lemma | val and_then_cases_injective_intro
(#t #t': Type)
(p': (t -> Tot (bare_parser t')))
(lem:
(x1: t -> x2: t -> b1: bytes -> b2: bytes
-> Lemma (requires (and_then_cases_injective_precond p' x1 x2 b1 b2))
(ensures (x1 == x2))))
: Lemma (and_then_cases_injecti... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let and_then_cases_injective_intro
(#t:Type)
(#t':Type)
(p': (t -> Tot (bare_parser t')))
(lem: (
(x1: t) ->
(x2: t) ->
(b1: bytes) ->
(b2: bytes) ->
Lemma
(requires (and_then_cases_injective_precond p' x1 x2 b1 b2))
(ensures (x1 == x2))
))
: Lemma
(and_then_cases_injective p')
... | val and_then_cases_injective_intro
(#t #t': Type)
(p': (t -> Tot (bare_parser t')))
(lem:
(x1: t -> x2: t -> b1: bytes -> b2: bytes
-> Lemma (requires (and_then_cases_injective_precond p' x1 x2 b1 b2))
(ensures (x1 == x2))))
: Lemma (and_then_cases_injecti... | false | null | true | Classical.forall_intro_3 (fun x1 x2 b1 ->
Classical.forall_intro (Classical.move_requires (lem x1 x2 b1))) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"lemma"
] | [
"LowParse.Spec.Base.bare_parser",
"LowParse.Bytes.bytes",
"Prims.unit",
"LowParse.Spec.Combinators.and_then_cases_injective_precond",
"Prims.squash",
"Prims.eq2",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.forall_intro_3",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.Classical.forall... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val and_then_cases_injective_intro
(#t #t': Type)
(p': (t -> Tot (bare_parser t')))
(lem:
(x1: t -> x2: t -> b1: bytes -> b2: bytes
-> Lemma (requires (and_then_cases_injective_precond p' x1 x2 b1 b2))
(ensures (x1 == x2))))
: Lemma (and_then_cases_injecti... | [] | LowParse.Spec.Combinators.and_then_cases_injective_intro | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
p': (_: t -> LowParse.Spec.Base.bare_parser t') ->
lem:
(x1: t -> x2: t -> b1: LowParse.Bytes.bytes -> b2: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(requires LowParse.Spec.Combinators.and_then_cases_injective_precond p' x1 x2 b1 b2)
(ensures x1 == x2))
-> FSt... | {
"end_col": 108,
"end_line": 325,
"start_col": 2,
"start_line": 325
} |
FStar.Pervasives.Lemma | val synth_injective_intro'
(#t1 #t2: Type)
(f: (t1 -> GTot t2))
(prf: (x: t1 -> x': t1 -> Lemma (requires (f x == f x')) (ensures (x == x'))))
: Lemma (synth_injective f) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let synth_injective_intro'
(#t1: Type)
(#t2: Type)
(f: (t1 -> GTot t2))
(prf: (
(x: t1) ->
(x' : t1) ->
Lemma
(requires (f x == f x'))
(ensures (x == x'))
))
: Lemma
(synth_injective f)
= Classical.forall_intro_2 (fun x -> Classical.move_requires (prf x)) | val synth_injective_intro'
(#t1 #t2: Type)
(f: (t1 -> GTot t2))
(prf: (x: t1 -> x': t1 -> Lemma (requires (f x == f x')) (ensures (x == x'))))
: Lemma (synth_injective f)
let synth_injective_intro'
(#t1 #t2: Type)
(f: (t1 -> GTot t2))
(prf: (x: t1 -> x': t1 -> Lemma (requires (f ... | false | null | true | Classical.forall_intro_2 (fun x -> Classical.move_requires (prf x)) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"lemma"
] | [
"Prims.unit",
"Prims.eq2",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.forall_intro_2",
"Prims.l_imp",
"FStar.Classical.move_requires",
"Prims.l_True",
"LowParse.Spec.Combinators.synth_injective"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val synth_injective_intro'
(#t1 #t2: Type)
(f: (t1 -> GTot t2))
(prf: (x: t1 -> x': t1 -> Lemma (requires (f x == f x')) (ensures (x == x'))))
: Lemma (synth_injective f) | [] | LowParse.Spec.Combinators.synth_injective_intro' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
f: (_: t1 -> Prims.GTot t2) ->
prf: (x: t1 -> x': t1 -> FStar.Pervasives.Lemma (requires f x == f x') (ensures x == x'))
-> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_injective f) | {
"end_col": 69,
"end_line": 593,
"start_col": 2,
"start_line": 593
} |
Prims.Tot | val parse_fret' (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (bare_parser t') | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let parse_fret' (#t #t':Type) (f: t -> GTot t') (v:t) : Tot (bare_parser t') =
fun (b: bytes) -> Some (f v, (0 <: consumed_length b)) | val parse_fret' (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (bare_parser t')
let parse_fret' (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (bare_parser t') = | false | null | false | fun (b: bytes) -> Some (f v, (0 <: consumed_length b)) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Bytes.bytes",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.bare_parser"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val parse_fret' (#t #t': Type) (f: (t -> GTot t')) (v: t) : Tot (bare_parser t') | [] | LowParse.Spec.Combinators.parse_fret' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | f: (_: t -> Prims.GTot t') -> v: t -> LowParse.Spec.Base.bare_parser t' | {
"end_col": 56,
"end_line": 557,
"start_col": 2,
"start_line": 557
} |
Prims.Tot | val and_then_kind (k1 k2: parser_kind) : Tot parser_kind | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let and_then_kind
(k1 k2: parser_kind)
: Tot parser_kind
= {
parser_kind_low = k1.parser_kind_low + k2.parser_kind_low;
parser_kind_high =
begin
if is_some k1.parser_kind_high `bool_and` is_some k2.parser_kind_high
then Some (some_v k1.parser_kind_high + some_v k2.parser_kind_high)
else None
en... | val and_then_kind (k1 k2: parser_kind) : Tot parser_kind
let and_then_kind (k1 k2: parser_kind) : Tot parser_kind = | false | null | false | {
parser_kind_low = k1.parser_kind_low + k2.parser_kind_low;
parser_kind_high
=
if (is_some k1.parser_kind_high) `bool_and` (is_some k2.parser_kind_high)
then Some (some_v k1.parser_kind_high + some_v k2.parser_kind_high)
else None;
parser_kind_metadata = and_then_metadata k1.parser_kind_metadata k2.parse... | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.Mkparser_kind'",
"Prims.op_Addition",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low",
"LowParse.Spec.Base.bool_and",
"LowParse.Spec.Base.is_some",
"Prims.nat",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high",... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val and_then_kind (k1 k2: parser_kind) : Tot parser_kind | [] | LowParse.Spec.Combinators.and_then_kind | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | k1: LowParse.Spec.Base.parser_kind -> k2: LowParse.Spec.Base.parser_kind
-> LowParse.Spec.Base.parser_kind | {
"end_col": 10,
"end_line": 467,
"start_col": 4,
"start_line": 450
} |
Prims.Tot | val lift_parser (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (parser k t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let lift_parser
(#k: parser_kind)
(#t: Type)
(f: unit -> GTot (parser k t))
: Tot (parser k t)
= lift_parser_correct f;
lift_parser' f | val lift_parser (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (parser k t)
let lift_parser (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (parser k t) = | false | null | false | lift_parser_correct f;
lift_parser' f | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Base.parser_kind",
"Prims.unit",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Combinators.lift_parser'",
"LowParse.Spec.Combinators.lift_parser_correct"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val lift_parser (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) : Tot (parser k t) | [] | LowParse.Spec.Combinators.lift_parser | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | f: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.parser k t)) -> LowParse.Spec.Base.parser k t | {
"end_col": 16,
"end_line": 1763,
"start_col": 2,
"start_line": 1762
} |
FStar.Pervasives.Lemma | val and_then_no_lookahead
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(#k': parser_kind)
(#t': Type)
(p': (t -> Tot (parser k' t')))
: Lemma (requires (and_then_cases_injective p'))
(ensures
((k.parser_kind_subkind == Some ParserStrong /\ k'.parser_kind_subkind == ... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let and_then_no_lookahead
(#k: parser_kind)
(#t:Type)
(p:parser k t)
(#k': parser_kind)
(#t':Type)
(p': (t -> Tot (parser k' t')))
: Lemma
(requires (
and_then_cases_injective p'
))
(ensures ((k.parser_kind_subkind == Some ParserStrong /\ k'.parser_kind_subkind == Some ParserStrong) ==> no_lookahe... | val and_then_no_lookahead
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(#k': parser_kind)
(#t': Type)
(p': (t -> Tot (parser k' t')))
: Lemma (requires (and_then_cases_injective p'))
(ensures
((k.parser_kind_subkind == Some ParserStrong /\ k'.parser_kind_subkind == ... | false | null | true | parser_kind_prop_equiv k p;
Classical.forall_intro (fun (x: t) -> parser_kind_prop_equiv k' (p' x));
if k.parser_kind_subkind = Some ParserStrong && k.parser_kind_subkind = Some ParserStrong
then Classical.forall_intro_2 (fun x -> Classical.move_requires (and_then_no_lookahead_on p p' x)) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"lemma"
] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"Prims.op_AmpAmp",
"Prims.op_Equality",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.Base.Pa... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val and_then_no_lookahead
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(#k': parser_kind)
(#t': Type)
(p': (t -> Tot (parser k' t')))
: Lemma (requires (and_then_cases_injective p'))
(ensures
((k.parser_kind_subkind == Some ParserStrong /\ k'.parser_kind_subkind == ... | [] | LowParse.Spec.Combinators.and_then_no_lookahead | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | p: LowParse.Spec.Base.parser k t -> p': (_: t -> LowParse.Spec.Base.parser k' t')
-> FStar.Pervasives.Lemma (requires LowParse.Spec.Combinators.and_then_cases_injective p')
(ensures
Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
M... | {
"end_col": 9,
"end_line": 486,
"start_col": 2,
"start_line": 482
} |
Prims.Tot | val tot_make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> Tot (option t)))
: Tot (tot_bare_parser t) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let tot_make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: ((s: bytes {Seq.length s == sz}) -> Tot (option t)))
: Tot (tot_bare_parser t)
= fun (s: bytes) ->
if Seq.length s < sz
then None
else begin
let s' : bytes = Seq.slice s 0 sz in
match f s' with
| None -> None
| Some v ->
let... | val tot_make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> Tot (option t)))
: Tot (tot_bare_parser t)
let tot_make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> Tot (option t)))
: Tot (tot_bare_parser t) ... | false | null | false | fun (s: bytes) ->
if Seq.length s < sz
then None
else
let s':bytes = Seq.slice s 0 sz in
match f s' with
| None -> None
| Some v ->
let sz:consumed_length s = sz in
Some (v, sz) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"Prims.nat",
"LowParse.Bytes.bytes",
"Prims.eq2",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"FStar.Pervasives.Native.option",
"Prims.op_LessThan",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"LowParse.Spec.Base.consumed_length",
"Prims.bool",
"FStar.Pervasives.Nativ... | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val tot_make_constant_size_parser_aux
(sz: nat)
(t: Type)
(f: (s: bytes{Seq.length s == sz} -> Tot (option t)))
: Tot (tot_bare_parser t) | [] | LowParse.Spec.Combinators.tot_make_constant_size_parser_aux | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
sz: Prims.nat ->
t: Type ->
f: (s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz} -> FStar.Pervasives.Native.option t)
-> LowParse.Spec.Base.tot_bare_parser t | {
"end_col": 5,
"end_line": 123,
"start_col": 2,
"start_line": 113
} |
Prims.Tot | val serialize_empty:serializer parse_empty | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let serialize_empty : serializer parse_empty = serialize_ret () (fun _ -> ()) | val serialize_empty:serializer parse_empty
let serialize_empty:serializer parse_empty = | false | null | false | serialize_ret () (fun _ -> ()) | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"total"
] | [
"LowParse.Spec.Combinators.serialize_ret",
"Prims.unit"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | true | LowParse.Spec.Combinators.fsti | {
"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... | null | val serialize_empty:serializer parse_empty | [] | LowParse.Spec.Combinators.serialize_empty | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | LowParse.Spec.Base.serializer LowParse.Spec.Combinators.parse_empty | {
"end_col": 77,
"end_line": 217,
"start_col": 47,
"start_line": 217
} |
FStar.Pervasives.Lemma | val synth_inverse_intro'
(#t1 #t2: Type)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(prf: (x: t2 -> Lemma (f2 (g1 x) == x)))
: Lemma (ensures (synth_inverse f2 g1)) | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.S... | false | let synth_inverse_intro'
(#t1: Type)
(#t2: Type)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(prf: (x: t2) -> Lemma (f2 (g1 x) == x))
: Lemma
(ensures (synth_inverse f2 g1))
= Classical.forall_intro prf | val synth_inverse_intro'
(#t1 #t2: Type)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(prf: (x: t2 -> Lemma (f2 (g1 x) == x)))
: Lemma (ensures (synth_inverse f2 g1))
let synth_inverse_intro'
(#t1 #t2: Type)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(prf: (x: t2 -> L... | false | null | true | Classical.forall_intro prf | {
"checked_file": "LowParse.Spec.Combinators.fsti.checked",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Tactics.fst.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
"lemma"
] | [
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Classical.forall_intro",
"LowParse.Spec.Combinators.synth_inverse"
] | [] | module LowParse.Spec.Combinators
include LowParse.Spec.Base
module Seq = FStar.Seq
module U8 = FStar.UInt8
module U32 = FStar.UInt32
module T = FStar.Tactics
#reset-options "--using_facts_from '* -FStar.Tactis -FStar.Reflection'"
(** Constant-size parsers *)
let make_constant_size_parser_aux
(sz: nat)
(t: Type... | false | false | LowParse.Spec.Combinators.fsti | {
"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... | null | val synth_inverse_intro'
(#t1 #t2: Type)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(prf: (x: t2 -> Lemma (f2 (g1 x) == x)))
: Lemma (ensures (synth_inverse f2 g1)) | [] | LowParse.Spec.Combinators.synth_inverse_intro' | {
"file_name": "src/lowparse/LowParse.Spec.Combinators.fsti",
"git_rev": "446a08ce38df905547cf20f28c43776b22b8087a",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} |
f2: (_: t1 -> Prims.GTot t2) ->
g1: (_: t2 -> Prims.GTot t1) ->
prf: (x: t2 -> FStar.Pervasives.Lemma (ensures f2 (g1 x) == x))
-> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_inverse f2 g1) | {
"end_col": 28,
"end_line": 719,
"start_col": 2,
"start_line": 719
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.