file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.__elim_exists'
val __elim_exists' (#t: _) (#pred: (t -> Type0)) (#goal: _) (h: (exists x. pred x)) (k: (x: t -> pred x -> squash goal)) : squash goal
val __elim_exists' (#t: _) (#pred: (t -> Type0)) (#goal: _) (h: (exists x. pred x)) (k: (x: t -> pred x -> squash goal)) : squash goal
let __elim_exists' #t (#pred : t -> Type0) #goal (h : (exists x. pred x)) (k : (x:t -> pred x -> squash goal)) : squash goal = FStar.Squash.bind_squash #(x:t & pred x) h (fun (|x, pf|) -> k x pf)
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 275, "start_col": 0, "start_line": 273 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: (exists (x: t). pred x) -> k: (x: t -> _: pred x -> Prims.squash goal) -> Prims.squash goal
Prims.Tot
[ "total" ]
[]
[ "Prims.l_Exists", "Prims.squash", "FStar.Squash.bind_squash", "Prims.dtuple2" ]
[]
false
false
true
false
false
let __elim_exists' #t (#pred: (t -> Type0)) #goal (h: (exists x. pred x)) (k: (x: t -> pred x -> squash goal)) : squash goal =
FStar.Squash.bind_squash #(x: t & pred x) h (fun (| x , pf |) -> k x pf)
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.elim_exists
val elim_exists (t: term) : Tac (binding & binding)
val elim_exists (t: term) : Tac (binding & binding)
let elim_exists (t : term) : Tac (binding & binding) = apply_lemma (`(__elim_exists' (`#(t)))); let x = intro () in let pf = intro () in (x, pf)
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 282, "start_col": 0, "start_line": 278 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.binding", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Stubs.Tactics.V2.Builtins.intro", "Prims.unit", "FStar.Tactics.V2.Derived.apply_lemma" ]
[]
false
true
false
false
false
let elim_exists (t: term) : Tac (binding & binding) =
apply_lemma (`(__elim_exists' (`#(t)))); let x = intro () in let pf = intro () in (x, pf)
false
Hacl.Impl.K256.Verify.fst
Hacl.Impl.K256.Verify.fmul_eq_vartime
val fmul_eq_vartime (r z x: felem) : Stack bool (requires fun h -> live h r /\ live h z /\ live h x /\ eq_or_disjoint r z /\ felem_fits5 (as_felem5 h r) (2,2,2,2,2) /\ as_nat h r < S.prime /\ inv_lazy_reduced2 h z /\ inv_fully_reduced h x) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (S.fmul (as...
val fmul_eq_vartime (r z x: felem) : Stack bool (requires fun h -> live h r /\ live h z /\ live h x /\ eq_or_disjoint r z /\ felem_fits5 (as_felem5 h r) (2,2,2,2,2) /\ as_nat h r < S.prime /\ inv_lazy_reduced2 h z /\ inv_fully_reduced h x) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (S.fmul (as...
let fmul_eq_vartime r z x = push_frame (); let tmp = create_felem () in fmul tmp r z; let h1 = ST.get () in fnormalize tmp tmp; let h2 = ST.get () in BL.normalize5_lemma (1,1,1,1,2) (as_felem5 h1 tmp); assert (inv_fully_reduced h2 tmp); let b = is_felem_eq_vartime tmp x in pop_frame (); b
{ "file_name": "code/k256/Hacl.Impl.K256.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 71, "start_col": 0, "start_line": 60 }
module Hacl.Impl.K256.Verify open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module KL = Spec.K256.Lemmas open Hacl.K256.Field open Hacl.Impl.K256.Point open Hacl.Impl.K256.PointMul open Hacl.Impl.K256.GLV module ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.Qinv", "short_module": "QI" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Hacl.K256.Field.felem -> z: Hacl.K256.Field.felem -> x: Hacl.K256.Field.felem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Field.felem", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.K256.Field.is_felem_eq_vartime", "Prims._assert", "Hacl.K256.Field.inv_fully_reduced", "Hacl.Spec.K256.Field52.Lemmas.normalize5_lemma", "FStar.Pervasives.Native.Mktuple5", "Prims.nat", "Hacl.K256.Field.a...
[]
false
true
false
false
false
let fmul_eq_vartime r z x =
push_frame (); let tmp = create_felem () in fmul tmp r z; let h1 = ST.get () in fnormalize tmp tmp; let h2 = ST.get () in BL.normalize5_lemma (1, 1, 1, 1, 2) (as_felem5 h1 tmp); assert (inv_fully_reduced h2 tmp); let b = is_felem_eq_vartime tmp x in pop_frame (); b
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.as_subst
val as_subst (p: list (term & term)) (out: list subst_elt) (domain: list var) (codomain: Set.set var) : option (list subst_elt)
val as_subst (p: list (term & term)) (out: list subst_elt) (domain: list var) (codomain: Set.set var) : option (list subst_elt)
let rec as_subst (p : list (term & term)) (out:list subst_elt) (domain:list var) (codomain:Set.set var) : option (list subst_elt) = match p with | [] -> if disjoint domain codomain then Some out else None | (e1, e2)::p -> ( match e1.t with ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 3, "end_line": 243, "start_col": 0, "start_line": 219 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.list (Pulse.Syntax.Base.term * Pulse.Syntax.Base.term) -> out: Prims.list Pulse.Syntax.Naming.subst_elt -> domain: Prims.list Pulse.Syntax.Base.var -> codomain: FStar.Set.set Pulse.Syntax.Base.var -> FStar.Pervasives.Native.option (Prims.list Pulse.Syntax.Naming.subst_elt)
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Pulse.Syntax.Base.term", "Pulse.Syntax.Naming.subst_elt", "Pulse.Syntax.Base.var", "FStar.Set.set", "Pulse.Checker.AssertWithBinders.disjoint", "FStar.Pervasives.Native.Some", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native....
[ "recursion" ]
false
false
false
true
false
let rec as_subst (p: list (term & term)) (out: list subst_elt) (domain: list var) (codomain: Set.set var) : option (list subst_elt) =
match p with | [] -> if disjoint domain codomain then Some out else None | (e1, e2) :: p -> (match e1.t with | Tm_FStar e1 -> (match R.inspect_ln e1 with | R.Tv_Var n -> (let nv = R.inspect_namedv n in as_subst p (NT nv.uniq e2 :: out) (nv.uniq :: domain) (Set.union codomain (f...
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.check_wild
val check_wild (g: env) (pre: term) (st: st_term{head_wild st}) : T.Tac st_term
val check_wild (g: env) (pre: term) (st: st_term{head_wild st}) : T.Tac st_term
let check_wild (g:env) (pre:term) (st:st_term { head_wild st }) : T.Tac st_term = let Tm_ProofHintWithBinders ht = st.term in let { binders=bs; t=body } = ht in match bs with | [] -> fail g (Some st.range) "A wildcard must have at least one binder" | _ -> let vprops = Pulse.Typing.Com...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 334, "start_col": 0, "start_line": 299 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> pre: Pulse.Syntax.Base.term -> st: Pulse.Syntax.Base.st_term{Pulse.Checker.AssertWithBinders.head_wild st} -> FStar.Tactics.Effect.Tac Pulse.Syntax.Base.st_term
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Checker.AssertWithBinders.head_wild", "Pulse.Syntax.Base.st_term'__Tm_ProofHintWithBinders__payload", "Pulse.Syntax.Base.proof_hint_type", "Prims.list", "Pulse.Syntax.Base.binder", "Pulse.Typing.Env....
[]
false
true
false
false
false
let check_wild (g: env) (pre: term) (st: st_term{head_wild st}) : T.Tac st_term =
let Tm_ProofHintWithBinders ht = st.term in let { binders = bs ; t = body } = ht in match bs with | [] -> fail g (Some st.range) "A wildcard must have at least one binder" | _ -> let vprops = Pulse.Typing.Combinators.vprop_as_list pre in let ex, rest = List.Tot.partition (fun (v: vprop) -> Tm_ExistsSL? v.t) vprops ...
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.__lemma_to_squash
val __lemma_to_squash: #req: _ -> #ens: _ -> squash req -> h: (unit -> Lemma (requires req) (ensures ens)) -> squash ens
val __lemma_to_squash: #req: _ -> #ens: _ -> squash req -> h: (unit -> Lemma (requires req) (ensures ens)) -> squash ens
let __lemma_to_squash #req #ens (_ : squash req) (h : (unit -> Lemma (requires req) (ensures ens))) : squash ens = h ()
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 109, "start_col": 0, "start_line": 108 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.squash req -> h: (_: Prims.unit -> FStar.Pervasives.Lemma (requires req) (ensures ens)) -> Prims.squash ens
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.unit", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let __lemma_to_squash #req #ens (_: squash req) (h: (unit -> Lemma (requires req) (ensures ens))) : squash ens =
h ()
false
Lib.IntTypes.fst
Lib.IntTypes.conditional_subtract
val conditional_subtract: #t:inttype{signed t} -> #l:secrecy_level -> t':inttype{signed t' /\ bits t' < bits t} -> a:int_t t l{0 <= v a /\ v a <= pow2 (bits t') - 1} -> b:int_t t l{v b = v a @%. t'}
val conditional_subtract: #t:inttype{signed t} -> #l:secrecy_level -> t':inttype{signed t' /\ bits t' < bits t} -> a:int_t t l{0 <= v a /\ v a <= pow2 (bits t') - 1} -> b:int_t t l{v b = v a @%. t'}
let conditional_subtract #t #l t' a = assert_norm (pow2 7 = 128); assert_norm (pow2 15 = 32768); let pow2_bits = shift_left #t #l (mk_int 1) (size (bits t')) in shift_left_lemma #t #l (mk_int 1) (size (bits t')); let pow2_bits_minus_one = shift_left #t #l (mk_int 1) (size (bits t' - 1)) in shift_left_lemma ...
{ "file_name": "lib/Lib.IntTypes.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 1009, "start_col": 0, "start_line": 994 }
module Lib.IntTypes open FStar.Math.Lemmas #push-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 200" let pow2_2 _ = assert_norm (pow2 2 = 4) let pow2_3 _ = assert_norm (pow2 3 = 8) let pow2_4 _ = assert_norm (pow2 4 = 16) let pow2_127 _ = assert_norm (pow2 127 = 0x80000000000000000000000000000000) let bits_nu...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt128.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Nat...
[ { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t': Lib.IntTypes.inttype{Lib.IntTypes.signed t' /\ Lib.IntTypes.bits t' < Lib.IntTypes.bits t} -> a: Lib.IntTypes.int_t t l {0 <= Lib.IntTypes.v a /\ Lib.IntTypes.v a <= Prims.pow2 (Lib.IntTypes.bits t') - 1} -> b: Lib.IntTypes.int_t t l {Lib.IntTypes.v b = Lib.IntTypes.v a @%. t'}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.inttype", "Prims.b2t", "Lib.IntTypes.signed", "Lib.IntTypes.secrecy_level", "Prims.l_and", "Prims.op_LessThan", "Lib.IntTypes.bits", "Lib.IntTypes.int_t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Prims.op_Subtraction", "Prims.pow2", "Lib.IntTypes.add", "Lib.IntTypes.log...
[]
false
false
false
false
false
let conditional_subtract #t #l t' a =
assert_norm (pow2 7 = 128); assert_norm (pow2 15 = 32768); let pow2_bits = shift_left #t #l (mk_int 1) (size (bits t')) in shift_left_lemma #t #l (mk_int 1) (size (bits t')); let pow2_bits_minus_one = shift_left #t #l (mk_int 1) (size (bits t' - 1)) in shift_left_lemma #t #l (mk_int 1) (size (bits t' - 1)); let a2 = a ...
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.instantiate
val instantiate (fa x: term) : Tac binding
val instantiate (fa x: term) : Tac binding
let instantiate (fa : term) (x : term) : Tac binding = try pose (`__forall_inst_sq (`#fa) (`#x)) with | _ -> try pose (`__forall_inst (`#fa) (`#x)) with | _ -> fail "could not instantiate"
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 296, "start_col": 0, "start_line": 293 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fa: FStar.Tactics.NamedView.term -> x: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.binding
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Derived.try_with", "FStar.Tactics.NamedView.binding", "Prims.unit", "FStar.Tactics.V2.Derived.pose", "Prims.exn", "FStar.Tactics.V2.Derived.fail" ]
[]
false
true
false
false
false
let instantiate (fa x: term) : Tac binding =
try pose (`__forall_inst_sq (`#fa) (`#x)) with | _ -> try pose (`__forall_inst (`#fa) (`#x)) with | _ -> fail "could not instantiate"
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.infer_binder_types
val infer_binder_types (g: env) (bs: list binder) (v: vprop) : T.Tac (list binder)
val infer_binder_types (g: env) (bs: list binder) (v: vprop) : T.Tac (list binder)
let infer_binder_types (g:env) (bs:list binder) (v:vprop) : T.Tac (list binder) = match bs with | [] -> [] | _ -> let g = push_context g "infer_binder_types" v.range in let tv = elab_term v in if not (is_host_term tv) then fail g (Some v.range) (Printf.sprintf "assert.infer_binder_typ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 106, "end_line": 89, "start_col": 0, "start_line": 58 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> bs: Prims.list Pulse.Syntax.Base.binder -> v: Pulse.Syntax.Base.vprop -> FStar.Tactics.Effect.Tac (Prims.list Pulse.Syntax.Base.binder)
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.binder", "Pulse.Syntax.Base.vprop", "Prims.Nil", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Syntax.Base.host_term", "Pulse.Checker.AssertWithBinders.refl_abs_binders", "Pulse.Syntax.Base.term'", "FStar.Ta...
[]
false
true
false
false
false
let infer_binder_types (g: env) (bs: list binder) (v: vprop) : T.Tac (list binder) =
match bs with | [] -> [] | _ -> let g = push_context g "infer_binder_types" v.range in let tv = elab_term v in if not (is_host_term tv) then fail g (Some v.range) (Printf.sprintf "assert.infer_binder_types: elaborated %s to %s, which failed the host term check" (P.term_to_string v) ...
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.__forall_inst_sq
val __forall_inst_sq (#t: _) (#pred: (t -> Type0)) (h: squash (forall x. pred x)) (x: t) : squash (pred x)
val __forall_inst_sq (#t: _) (#pred: (t -> Type0)) (h: squash (forall x. pred x)) (x: t) : squash (pred x)
let __forall_inst_sq #t (#pred : t -> Type0) (h : squash (forall x. pred x)) (x : t) : squash (pred x) = FStar.Squash.bind_squash h (fun (f : (forall x. pred x)) -> __forall_inst f x)
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 82, "end_line": 291, "start_col": 0, "start_line": 290 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: Prims.squash (forall (x: t). pred x) -> x: t -> Prims.squash (pred x)
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.l_Forall", "FStar.Squash.bind_squash", "FStar.Tactics.V2.Logic.__forall_inst" ]
[]
false
false
true
false
false
let __forall_inst_sq #t (#pred: (t -> Type0)) (h: squash (forall x. pred x)) (x: t) : squash (pred x) =
FStar.Squash.bind_squash h (fun (f: (forall x. pred x)) -> __forall_inst f x)
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.instantiate_as
val instantiate_as (fa x: term) (s: string) : Tac binding
val instantiate_as (fa x: term) (s: string) : Tac binding
let instantiate_as (fa : term) (x : term) (s : string) : Tac binding = let b = instantiate fa x in rename_to b s
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 300, "start_col": 0, "start_line": 298 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fa: FStar.Tactics.NamedView.term -> x: FStar.Tactics.NamedView.term -> s: Prims.string -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.binding
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.string", "FStar.Stubs.Tactics.V2.Builtins.rename_to", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Logic.instantiate" ]
[]
false
true
false
false
false
let instantiate_as (fa x: term) (s: string) : Tac binding =
let b = instantiate fa x in rename_to b s
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.check_renaming
val check_renaming (g: env) (pre: term) (st: st_term { match st.term with | Tm_ProofHintWithBinders { hint_type = RENAME _ } -> true | _ -> false }) : T.Tac st_term
val check_renaming (g: env) (pre: term) (st: st_term { match st.term with | Tm_ProofHintWithBinders { hint_type = RENAME _ } -> true | _ -> false }) : T.Tac st_term
let check_renaming (g:env) (pre:term) (st:st_term { match st.term with | Tm_ProofHintWithBinders { hint_type = RENAME _ } -> true | _ -> false }) : T.Tac st_term = let Tm_ProofHintWithBinders ht = st.term in let { hint_type=RENAME { pairs; goal }; binders=bs; t=body } = ht in...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 3, "end_line": 297, "start_col": 0, "start_line": 262 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> pre: Pulse.Syntax.Base.term -> st: Pulse.Syntax.Base.st_term { (match Mkst_term?.term st with | Pulse.Syntax.Base.Tm_ProofHintWithBinders { hint_type = Pulse.Syntax.Base.RENAME _ ; binders = _ ; t = _ } -> true | _...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.st_term", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", "Pulse.Syntax.Base.proof_hint_type__RENAME__payload", "Prims.list", "Pulse.Syntax.Base.binder", "Prims.b2t", "Pulse.Syntax.Base.st_term'", "Pulse.Syntax.Base.st_term'__...
[]
false
true
false
false
false
let check_renaming (g: env) (pre: term) (st: st_term { match st.term with | Tm_ProofHintWithBinders { hint_type = RENAME _ } -> true | _ -> false }) : T.Tac st_term =
let Tm_ProofHintWithBinders ht = st.term in let { hint_type = RENAME { pairs = pairs ; goal = goal } ; binders = bs ; t = body } = ht in match bs, goal with | _ :: _, None -> fail g (Some st.range) "A renaming with binders must have a goal (with xs. rename ... in goal)" | _ :: _, Some goal -> let body = { st with t...
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.sk_binder
val sk_binder : b: FStar.Tactics.NamedView.binding -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding)
let sk_binder b = sk_binder' [] b
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 322, "start_col": 0, "start_line": 322 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.Tactics.NamedView.binding -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Logic.sk_binder'", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "Prims.list" ]
[]
false
true
false
false
false
let sk_binder b =
sk_binder' [] b
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.skolem
val skolem : _: Prims.unit -> FStar.Tactics.Effect.Tac (Prims.list (Prims.list FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding))
let skolem () = let bs = vars_of_env (cur_env ()) in map sk_binder bs
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 326, "start_col": 0, "start_line": 324 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac (Prims.list (Prims.list FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding))
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.Util.map", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Pervasives.Native.tuple2", "Prims.list", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Logic.sk_binder", "FStar.Stubs.Reflection.V2.Builtins.vars_of_env", "FStar.Stubs.Reflection.Types.env", "FStar.Tact...
[]
false
true
false
false
false
let skolem () =
let bs = vars_of_env (cur_env ()) in map sk_binder bs
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.sk_binder'
val sk_binder' (acc: list binding) (b: binding) : Tac (list binding & binding)
val sk_binder' (acc: list binding) (b: binding) : Tac (list binding & binding)
let rec sk_binder' (acc:list binding) (b:binding) : Tac (list binding & binding) = focus (fun () -> try apply_lemma (`(sklem0 (`#b))); if ngoals () <> 1 then fail "no"; clear b; let bx = forall_intro () in let b' = implies_intro () in sk_binder' (bx::acc) b' (* We might have in...
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 318, "start_col": 0, "start_line": 308 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Prims.list FStar.Tactics.NamedView.binding -> b: FStar.Tactics.NamedView.binding -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binding * FStar.Tactics.NamedView.binding)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Derived.focus", "FStar.Pervasives.Native.tuple2", "Prims.unit", "FStar.Tactics.V2.Derived.try_with", "FStar.Tactics.V2.Logic.sk_binder'", "Prims.Cons", "FStar.Tactics.V2.Logic.implies_intro", "FStar.Tactics.V2.Logic.forall_intro", ...
[ "recursion" ]
false
true
false
false
false
let rec sk_binder' (acc: list binding) (b: binding) : Tac (list binding & binding) =
focus (fun () -> try (apply_lemma (`(sklem0 (`#b))); if ngoals () <> 1 then fail "no"; clear b; let bx = forall_intro () in let b' = implies_intro () in sk_binder' (bx :: acc) b') with | _ -> (acc, b))
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.disjoint
val disjoint : dom: Prims.list Pulse.Syntax.Base.var -> cod: FStar.Set.set Pulse.Syntax.Base.var -> Prims.bool
let disjoint (dom:list var) (cod:Set.set var) = L.for_all (fun d -> not (Set.mem d cod)) dom
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 217, "start_col": 0, "start_line": 216 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dom: Prims.list Pulse.Syntax.Base.var -> cod: FStar.Set.set Pulse.Syntax.Base.var -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Pulse.Syntax.Base.var", "FStar.Set.set", "FStar.List.Tot.Base.for_all", "Prims.op_Negation", "FStar.Set.mem", "Prims.bool" ]
[]
false
false
false
true
false
let disjoint (dom: list var) (cod: Set.set var) =
L.for_all (fun d -> not (Set.mem d cod)) dom
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.easy_fill
val easy_fill : _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
let easy_fill () = let _ = repeat intro in (* If the goal is `a -> Lemma b`, intro will fail, try to use this switch *) let _ = trytac (fun () -> apply (`lemma_from_squash); intro ()) in smt ()
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 10, "end_line": 338, "start_col": 0, "start_line": 334 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V2.Derived.smt", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Tactics.V2.Derived.trytac", "FStar.Stubs.Tactics.V2.Builtins.intro", "FStar.Tactics.V2.Derived.apply", "Prims.list", "FStar.Tactics.V2.Derived.repeat" ]
[]
false
true
false
false
false
let easy_fill () =
let _ = repeat intro in let _ = trytac (fun () -> apply (`lemma_from_squash); intro ()) in smt ()
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.using_lemma
val using_lemma (t: term) : Tac binding
val using_lemma (t: term) : Tac binding
let using_lemma (t : term) : Tac binding = try pose_lemma (`(lem1_fa (`#t))) with | _ -> try pose_lemma (`(lem2_fa (`#t))) with | _ -> try pose_lemma (`(lem3_fa (`#t))) with | _ -> fail "using_lemma: failed to instantiate"
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 378, "start_col": 0, "start_line": 374 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.binding
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Derived.try_with", "FStar.Tactics.NamedView.binding", "Prims.unit", "FStar.Tactics.V2.Logic.pose_lemma", "Prims.exn", "FStar.Tactics.V2.Derived.fail" ]
[]
false
true
false
false
false
let using_lemma (t: term) : Tac binding =
try pose_lemma (`(lem1_fa (`#t))) with | _ -> try pose_lemma (`(lem2_fa (`#t))) with | _ -> try pose_lemma (`(lem3_fa (`#t))) with | _ -> fail "using_lemma: failed to instantiate"
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.lem1_fa
val lem1_fa (#a #pre #post: _) ($lem: (x: a -> Lemma (requires pre x) (ensures post x))) : Lemma (forall (x: a). pre x ==> post x)
val lem1_fa (#a #pre #post: _) ($lem: (x: a -> Lemma (requires pre x) (ensures post x))) : Lemma (forall (x: a). pre x ==> post x)
let lem1_fa #a #pre #post ($lem : (x:a -> Lemma (requires pre x) (ensures post x))) : Lemma (forall (x:a). pre x ==> post x) = let l' x : Lemma (pre x ==> post x) = Classical.move_requires lem x in Classical.forall_intro l'
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 350, "start_col": 0, "start_line": 344 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$lem: (x: a -> FStar.Pervasives.Lemma (requires pre x) (ensures post x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). pre x ==> post x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_imp", "Prims.l_True", "FStar.Classical.move_requires", "Prims.l_Forall" ]
[]
false
false
true
false
false
let lem1_fa #a #pre #post ($lem: (x: a -> Lemma (requires pre x) (ensures post x))) : Lemma (forall (x: a). pre x ==> post x) =
let l' x : Lemma (pre x ==> post x) = Classical.move_requires lem x in Classical.forall_intro l'
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.easy
val easy : #a:Type -> (#[easy_fill ()] _ : a) -> a
val easy : #a:Type -> (#[easy_fill ()] _ : a) -> a
let easy #a #x = x
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 341, "start_col": 0, "start_line": 341 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let easy #a #x =
x
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.unfold_definition_and_simplify_eq
val unfold_definition_and_simplify_eq (tm: term) : Tac unit
val unfold_definition_and_simplify_eq (tm: term) : Tac unit
let rec unfold_definition_and_simplify_eq (tm:term) : Tac unit = let g = cur_goal () in match term_as_formula g with | App hd arg -> if term_eq hd tm then trivial () else () | _ -> begin let r = destruct_equality_implication g in match r with | None -> fai...
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 188, "start_col": 0, "start_line": 172 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tm: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.V2.Builtins.term_eq", "FStar.Tactics.V2.Derived.trivial", "Prims.unit", "Prims.bool", "FStar.Reflection.V2.Formula.formula", "FStar.Tactics.V2.Derived.fail", "FStar.Tactics.V2.Logic.visit", "FStar.Tactics.V2.Logic.unfold_definition_and_simplify...
[ "recursion" ]
false
true
false
false
false
let rec unfold_definition_and_simplify_eq (tm: term) : Tac unit =
let g = cur_goal () in match term_as_formula g with | App hd arg -> if term_eq hd tm then trivial () | _ -> let r = destruct_equality_implication g in match r with | None -> fail "Not an equality implication" | Some (_, rhs) -> let eq_h = implies_intro () in rewrite eq_h; clear_top (); visit (fu...
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.lem3_fa
val lem3_fa (#a #b #c #pre #post: _) ($lem: (x: a -> y: b -> z: c -> Lemma (requires pre x y z) (ensures post x y z))) : Lemma (forall (x: a) (y: b) (z: c). pre x y z ==> post x y z)
val lem3_fa (#a #b #c #pre #post: _) ($lem: (x: a -> y: b -> z: c -> Lemma (requires pre x y z) (ensures post x y z))) : Lemma (forall (x: a) (y: b) (z: c). pre x y z ==> post x y z)
let lem3_fa #a #b #c #pre #post ($lem : (x:a -> y:b -> z:c -> Lemma (requires pre x y z) (ensures post x y z))) : Lemma (forall (x:a) (y:b) (z:c). pre x y z ==> post x y z) = let l' x y z : Lemma (pre x y z ==> post x y z) = Classical.move_requires (lem x y) z in Classical.forall_intro_3 l'
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 368, "start_col": 0, "start_line": 362 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$lem: (x: a -> y: b -> z: c -> FStar.Pervasives.Lemma (requires pre x y z) (ensures post x y z)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b) (z: c). pre x y z ==> post x y z)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro_3", "Prims.l_imp", "Prims.l_True", "FStar.Classical.move_requires", "Prims.l_Forall" ]
[]
false
false
true
false
false
let lem3_fa #a #b #c #pre #post ($lem: (x: a -> y: b -> z: c -> Lemma (requires pre x y z) (ensures post x y z))) : Lemma (forall (x: a) (y: b) (z: c). pre x y z ==> post x y z) =
let l' x y z : Lemma (pre x y z ==> post x y z) = Classical.move_requires (lem x y) z in Classical.forall_intro_3 l'
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.simplify_eq_implication
val simplify_eq_implication: Prims.unit -> Tac unit
val simplify_eq_implication: Prims.unit -> Tac unit
let rec simplify_eq_implication () : Tac unit = let e = cur_env () in let g = cur_goal () in let r = destruct_equality_implication g in match r with | None -> fail "Not an equality implication" | Some (_, rhs) -> let eq_h = implies_intro () in // G, eq_h:x=e |- P rewrite ...
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 167, "start_col": 0, "start_line": 156 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V2.Derived.fail", "FStar.Reflection.V2.Formula.formula", "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Logic.visit", "FStar.Tactics.V2.Logic.simplify_eq_implication", "FStar.Stubs.Tactics.V2.Builtins.clear_top", "FStar.Stubs.Tactics.V2.Builtins.rewrite", "FStar.Tacti...
[ "recursion" ]
false
true
false
false
false
let rec simplify_eq_implication () : Tac unit =
let e = cur_env () in let g = cur_goal () in let r = destruct_equality_implication g in match r with | None -> fail "Not an equality implication" | Some (_, rhs) -> let eq_h = implies_intro () in rewrite eq_h; clear_top (); visit simplify_eq_implication
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.lem2_fa
val lem2_fa (#a #b #pre #post: _) ($lem: (x: a -> y: b -> Lemma (requires pre x y) (ensures post x y))) : Lemma (forall (x: a) (y: b). pre x y ==> post x y)
val lem2_fa (#a #b #pre #post: _) ($lem: (x: a -> y: b -> Lemma (requires pre x y) (ensures post x y))) : Lemma (forall (x: a) (y: b). pre x y ==> post x y)
let lem2_fa #a #b #pre #post ($lem : (x:a -> y:b -> Lemma (requires pre x y) (ensures post x y))) : Lemma (forall (x:a) (y:b). pre x y ==> post x y) = let l' x y : Lemma (pre x y ==> post x y) = Classical.move_requires (lem x) y in Classical.forall_intro_2 l'
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 359, "start_col": 0, "start_line": 353 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$lem: (x: a -> y: b -> FStar.Pervasives.Lemma (requires pre x y) (ensures post x y)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b). pre x y ==> post x y)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro_2", "Prims.l_imp", "Prims.l_True", "FStar.Classical.move_requires", "Prims.l_Forall" ]
[]
false
false
true
false
false
let lem2_fa #a #b #pre #post ($lem: (x: a -> y: b -> Lemma (requires pre x y) (ensures post x y))) : Lemma (forall (x: a) (y: b). pre x y ==> post x y) =
let l' x y : Lemma (pre x y ==> post x y) = Classical.move_requires (lem x) y in Classical.forall_intro_2 l'
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.vbind
val vbind : (#p:Type) -> (#q:Type) -> squash p -> (p -> squash q) -> Lemma q
val vbind : (#p:Type) -> (#q:Type) -> squash p -> (p -> squash q) -> Lemma q
let vbind #p #q sq f = FStar.Classical.give_witness_from_squash (FStar.Squash.bind_squash sq f)
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 95, "end_line": 191, "start_col": 0, "start_line": 191 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sq: Prims.squash p -> f: (_: p -> Prims.squash q) -> FStar.Pervasives.Lemma (ensures q)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "FStar.Classical.give_witness_from_squash", "FStar.Squash.bind_squash", "Prims.unit" ]
[]
true
false
true
false
false
let vbind #p #q sq f =
FStar.Classical.give_witness_from_squash (FStar.Squash.bind_squash sq f)
false
HyE.RSA.fst
HyE.RSA.plainsize
val plainsize : Prims.int
let plainsize = aeadKeySize AES_128_GCM
{ "file_name": "examples/crypto/HyE.RSA.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 40, "start_col": 0, "start_line": 40 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Platform.Bytes.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "CoreCrypto.fst.checked" ], "interface_file": false, "source_file": "HyE.RSA.fst" }
[ { "abbrev": true, "full_module": "Platform.Bytes", "short_module": "B" }, { "abbrev": false, "full_module": "CoreCrypto", "short_module": null }, { "abbrev": false, "full_module": "Platform.Bytes", "short_module": null }, { "abbrev": false, "full_module": "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...
false
Prims.int
Prims.Tot
[ "total" ]
[]
[ "CoreCrypto.aeadKeySize", "CoreCrypto.AES_128_GCM" ]
[]
false
false
false
true
false
let plainsize =
aeadKeySize AES_128_GCM
false
FStar.Tactics.V2.Logic.fst
FStar.Tactics.V2.Logic.lemma_from_squash
val lemma_from_squash : #a:Type -> #b:(a -> Type) -> (x:a -> squash (b x)) -> x:a -> Lemma (b x)
val lemma_from_squash : #a:Type -> #b:(a -> Type) -> (x:a -> squash (b x)) -> x:a -> Lemma (b x)
let lemma_from_squash #a #b f x = let _ = f x in assert (b x)
{ "file_name": "ulib/FStar.Tactics.V2.Logic.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 331, "start_col": 0, "start_line": 331 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Bui...
[ { "abbrev": false, "full_module": "FStar.Tactics.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "ab...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (x: a -> Prims.squash (b x)) -> x: a -> FStar.Pervasives.Lemma (ensures b x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims._assert", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_from_squash #a #b f x =
let _ = f x in assert (b x)
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.unfold_defs
val unfold_defs (g: env) (defs: option (list string)) (t: term) : T.Tac term
val unfold_defs (g: env) (defs: option (list string)) (t: term) : T.Tac term
let unfold_defs (g:env) (defs:option (list string)) (t:term) : T.Tac term = let t = elab_term t in let head, _ = T.collect_app t in match R.inspect_ln head with | R.Tv_FVar fv | R.Tv_UInst fv _ -> ( let head = String.concat "." (R.inspect_fv fv) in let fully = match defs ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 89, "end_line": 149, "start_col": 0, "start_line": 126 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> defs: FStar.Pervasives.Native.option (Prims.list Prims.string) -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac Pulse.Syntax.Base.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "FStar.Pervasives.Native.option", "Prims.list", "Prims.string", "Pulse.Syntax.Base.term", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.V2.Data.argv", "FStar.Stubs.Reflection.V2.Builtins.inspect_ln", "FStar.Stubs.Reflection.Types.fv", "Prims.unit", "Pulse.Checke...
[]
false
true
false
false
false
let unfold_defs (g: env) (defs: option (list string)) (t: term) : T.Tac term =
let t = elab_term t in let head, _ = T.collect_app t in match R.inspect_ln head with | R.Tv_FVar fv | R.Tv_UInst fv _ -> (let head = String.concat "." (R.inspect_fv fv) in let fully = match defs with | Some defs -> defs | None -> [] in let rt = RU.unfold_def (fstar_env g) head fully t in...
false
Hacl.Spec.Bignum.ModReduction.fst
Hacl.Spec.Bignum.ModReduction.bn_mod_slow_precomp
val bn_mod_slow_precomp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t (len + len) -> lbignum t len
val bn_mod_slow_precomp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t (len + len) -> lbignum t len
let bn_mod_slow_precomp #t #len n mu r2 a = let a_mod = BAM.bn_almost_mont_reduction n mu a in let res = BM.bn_to_mont n mu r2 a_mod in res
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModReduction.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 33, "start_col": 0, "start_line": 30 }
module Hacl.Spec.Bignum.ModReduction open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module M = Hacl.Spec.Montgomery.Lemmas module AM = Hacl.Spec.AlmostMontgomery.Lemmas module BM = Hacl.Spec.Bignum.Montgomery module BAM = Hacl.Spec.Bignum.AlmostMontgomery module BN = Hacl.Spec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.AlmostMontgomery.fs...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontgomery", "short_module": "BAM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> mu: Hacl.Spec.Bignum.Definitions.limb t -> r2: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t (len + len) -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.op_Addition", "Hacl.Spec.Bignum.Montgomery.bn_to_mont", "Hacl.Spec.Bignum.AlmostMontgomery.bn_almost_mont_reduction" ]
[]
false
false
false
false
false
let bn_mod_slow_precomp #t #len n mu r2 a =
let a_mod = BAM.bn_almost_mont_reduction n mu a in let res = BM.bn_to_mont n mu r2 a_mod in res
false
Hacl.Spec.Bignum.ModReduction.fst
Hacl.Spec.Bignum.ModReduction.bn_mod_slow
val bn_mod_slow: #t:limb_t -> #len:BN.bn_len t -> nBits:size_nat -> n:lbignum t len -> a:lbignum t (len + len) -> Pure (lbignum t len) (requires 1 < bn_v n /\ bn_v n % 2 = 1 /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> bn_v res == bn_v a % bn_v n)
val bn_mod_slow: #t:limb_t -> #len:BN.bn_len t -> nBits:size_nat -> n:lbignum t len -> a:lbignum t (len + len) -> Pure (lbignum t len) (requires 1 < bn_v n /\ bn_v n % 2 = 1 /\ nBits / bits t < len /\ pow2 nBits < bn_v n) (ensures fun res -> bn_v res == bn_v a % bn_v n)
let bn_mod_slow #t #len nBits n a = let r2, mu = BM.bn_mont_precomp nBits n in bn_mod_slow_precomp_lemma n mu r2 a; bn_mod_slow_precomp n mu r2 a
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModReduction.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 98, "start_col": 0, "start_line": 95 }
module Hacl.Spec.Bignum.ModReduction open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module M = Hacl.Spec.Montgomery.Lemmas module AM = Hacl.Spec.AlmostMontgomery.Lemmas module BM = Hacl.Spec.Bignum.Montgomery module BAM = Hacl.Spec.Bignum.AlmostMontgomery module BN = Hacl.Spec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.AlmostMontgomery.fs...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontgomery", "short_module": "BAM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
nBits: Lib.IntTypes.size_nat -> n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t (len + len) -> Prims.Pure (Hacl.Spec.Bignum.Definitions.lbignum t len)
Prims.Pure
[]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Addition", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.ModReduction.bn_mod_slow_precomp", "Prims.unit", "Hacl.Spec.Bignum.ModReduction.bn_mod_slow_p...
[]
false
false
false
false
false
let bn_mod_slow #t #len nBits n a =
let r2, mu = BM.bn_mont_precomp nBits n in bn_mod_slow_precomp_lemma n mu r2 a; bn_mod_slow_precomp n mu r2 a
false
Hacl.Spec.Bignum.ModReduction.fst
Hacl.Spec.Bignum.ModReduction.bn_mod_slow_precomp_lemma
val bn_mod_slow_precomp_lemma: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t (len + len) -> Lemma (requires BM.bn_mont_pre n mu /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n) (ensures bn_v (bn_mod_slow_precomp n mu r2 a) == bn_v a % bn_v n)
val bn_mod_slow_precomp_lemma: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> mu:limb t -> r2:lbignum t len -> a:lbignum t (len + len) -> Lemma (requires BM.bn_mont_pre n mu /\ bn_v r2 == pow2 (2 * bits t * len) % bn_v n) (ensures bn_v (bn_mod_slow_precomp n mu r2 a) == bn_v a % bn_v n)
let bn_mod_slow_precomp_lemma #t #len n mu r2 a = let r = pow2 (bits t * len) in let d, _ = M.eea_pow2_odd (bits t * len) (bn_v n) in M.mont_preconditions_d (bits t) len (bn_v n); assert (M.mont_pre (bits t) len (bn_v n) (v mu)); let a_mod = BAM.bn_almost_mont_reduction n mu a in let res = BM.bn_to_mont n ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModReduction.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 79, "start_col": 0, "start_line": 48 }
module Hacl.Spec.Bignum.ModReduction open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module M = Hacl.Spec.Montgomery.Lemmas module AM = Hacl.Spec.AlmostMontgomery.Lemmas module BM = Hacl.Spec.Bignum.Montgomery module BAM = Hacl.Spec.Bignum.AlmostMontgomery module BN = Hacl.Spec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bignum.AlmostMontgomery.fs...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontgomery", "short_module": "BAM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "BM" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> mu: Hacl.Spec.Bignum.Definitions.limb t -> r2: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t (len + len) -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Montgomery.bn_mont_pre n mu /\ ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.op_Addition", "Prims.int", "Prims._assert", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.op_Modulus", "Prims.unit", "FStar.Calc.calc...
[]
false
false
true
false
false
let bn_mod_slow_precomp_lemma #t #len n mu r2 a =
let r = pow2 (bits t * len) in let d, _ = M.eea_pow2_odd (bits t * len) (bn_v n) in M.mont_preconditions_d (bits t) len (bn_v n); assert (M.mont_pre (bits t) len (bn_v n) (v mu)); let a_mod = BAM.bn_almost_mont_reduction n mu a in let res = BM.bn_to_mont n mu r2 a_mod in BAM.bn_almost_mont_reduction_lemma n mu a; BM.bn...
false
OWGCounter.fst
OWGCounter.og_acquire
val og_acquire (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit emp (fun _ -> lock_inv r r_mine r_other)
val og_acquire (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit emp (fun _ -> lock_inv r r_mine r_other)
let og_acquire (r:ref int) (r_mine r_other:ghost_ref int) (b:G.erased bool) (l:lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit emp (fun _ -> lock_inv r r_mine r_other) = acquire l; if b then begin rewrite_slprop (lock_inv...
{ "file_name": "share/steel/examples/steel/OWGCounter.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 149, "start_col": 0, "start_line": 128 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.SpinLock.fsti.checked", "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactics.Effect.f...
[ { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": true, "full_module": "Steel.Reference", "short_module": "R" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref Prims.int -> r_mine: Steel.Reference.ghost_ref Prims.int -> r_other: Steel.Reference.ghost_ref Prims.int -> b: FStar.Ghost.erased Prims.bool -> l: Steel.SpinLock.lock (OWGCounter.lock_inv r (match FStar.Ghost.reveal b with | true -> r_mine ...
Steel.Effect.SteelT
[]
[]
[ "Steel.Reference.ref", "Prims.int", "Steel.Reference.ghost_ref", "FStar.Ghost.erased", "Prims.bool", "Steel.SpinLock.lock", "OWGCounter.lock_inv", "FStar.Ghost.reveal", "Prims.unit", "Steel.Effect.Atomic.rewrite_slprop", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set...
[]
false
true
false
false
false
let og_acquire (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit emp (fun _ -> lock_inv r r_mine r_other) =
acquire l; if b then (rewrite_slprop (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) (lock_inv r r_mine r_other) (fun _ -> ()); ()) else (rewrite_slprop (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) (lock_inv r r_other r_mine) (...
false
Spec.Poly1305.fst
Spec.Poly1305.prime
val prime:pos
val prime:pos
let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 17, "start_col": 0, "start_line": 14 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_GreaterThan", "Prims.int", "Prims.op_Subtraction", "Prims.pow2" ]
[]
false
false
false
true
false
let prime:pos =
let p = pow2 130 - 5 in assert_norm (p > 0); p
false
Spec.Poly1305.fst
Spec.Poly1305.felem
val felem : Type0
let felem = x:nat{x < prime}
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 19, "start_col": 0, "start_line": 19 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.Poly1305.prime" ]
[]
false
false
false
true
true
let felem =
x: nat{x < prime}
false
Spec.Poly1305.fst
Spec.Poly1305.from_felem
val from_felem (x: felem) : nat
val from_felem (x: felem) : nat
let from_felem (x:felem) : nat = x
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 24, "start_col": 0, "start_line": 24 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Spec.Poly1305.felem -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.felem", "Prims.nat" ]
[]
false
false
false
true
false
let from_felem (x: felem) : nat =
x
false
Spec.Poly1305.fst
Spec.Poly1305.to_felem
val to_felem (x: nat{x < prime}) : felem
val to_felem (x: nat{x < prime}) : felem
let to_felem (x:nat{x < prime}) : felem = x
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 23, "start_col": 0, "start_line": 23 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.nat{x < Spec.Poly1305.prime} -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.Poly1305.prime", "Spec.Poly1305.felem" ]
[]
false
false
false
false
false
let to_felem (x: nat{x < prime}) : felem =
x
false
OWGCounter.fst
OWGCounter.og_release
val og_release (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit (lock_inv r r_mine r_other) (fun _ -> emp)
val og_release (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit (lock_inv r r_mine r_other) (fun _ -> emp)
let og_release (r:ref int) (r_mine r_other:ghost_ref int) (b:G.erased bool) (l:lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit (lock_inv r r_mine r_other) (fun _ -> emp) = if b then begin rewrite_slprop (lock_inv r r_mine r_o...
{ "file_name": "share/steel/examples/steel/OWGCounter.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 174, "start_col": 0, "start_line": 153 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.SpinLock.fsti.checked", "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactics.Effect.f...
[ { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": true, "full_module": "Steel.Reference", "short_module": "R" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref Prims.int -> r_mine: Steel.Reference.ghost_ref Prims.int -> r_other: Steel.Reference.ghost_ref Prims.int -> b: FStar.Ghost.erased Prims.bool -> l: Steel.SpinLock.lock (OWGCounter.lock_inv r (match FStar.Ghost.reveal b with | true -> r_mine ...
Steel.Effect.SteelT
[]
[]
[ "Steel.Reference.ref", "Prims.int", "Steel.Reference.ghost_ref", "FStar.Ghost.erased", "Prims.bool", "Steel.SpinLock.lock", "OWGCounter.lock_inv", "FStar.Ghost.reveal", "Steel.SpinLock.release", "Prims.unit", "Steel.Effect.Atomic.rewrite_slprop", "FStar.Ghost.hide", "FStar.Set.set", "Steel...
[]
false
true
false
false
false
let og_release (r: ref int) (r_mine r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) : SteelT unit (lock_inv r r_mine r_other) (fun _ -> emp) =
if b then (rewrite_slprop (lock_inv r r_mine r_other) (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) (fun _ -> ()); ()) else (lock_inv_equiv_lemma r r_mine r_other; rewrite_slprop (lock_inv r r_mine r_other) (lock_inv r r_other r_mine) (fun _ -> reveal_e...
false
Spec.Poly1305.fst
Spec.Poly1305.fadd
val fadd (x y: felem) : felem
val fadd (x y: felem) : felem
let fadd (x:felem) (y:felem) : felem = (x + y) % prime
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 20, "start_col": 0, "start_line": 20 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Spec.Poly1305.felem -> y: Spec.Poly1305.felem -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.felem", "Prims.op_Modulus", "Prims.op_Addition", "Spec.Poly1305.prime" ]
[]
false
false
false
true
false
let fadd (x y: felem) : felem =
(x + y) % prime
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_update1
val poly1305_update1 (r: felem) (len: size_nat{len <= size_block}) (b: lbytes len) (acc: felem) : Tot felem
val poly1305_update1 (r: felem) (len: size_nat{len <= size_block}) (b: lbytes len) (acc: felem) : Tot felem
let poly1305_update1 (r:felem) (len:size_nat{len <= size_block}) (b:lbytes len) (acc:felem) : Tot felem = (encode len b `fadd` acc) `fmul` r
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 57, "start_col": 0, "start_line": 56 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Spec.Poly1305.felem -> len: Lib.IntTypes.size_nat{len <= Spec.Poly1305.size_block} -> b: Lib.ByteSequence.lbytes len -> acc: Spec.Poly1305.felem -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.felem", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Spec.Poly1305.size_block", "Lib.ByteSequence.lbytes", "Spec.Poly1305.fmul", "Spec.Poly1305.fadd", "Spec.Poly1305.encode" ]
[]
false
false
false
false
false
let poly1305_update1 (r: felem) (len: size_nat{len <= size_block}) (b: lbytes len) (acc: felem) : Tot felem =
((encode len b) `fadd` acc) `fmul` r
false
Hacl.Impl.K256.Verify.fst
Hacl.Impl.K256.Verify.ecdsa_verify_cmpr
val ecdsa_verify_cmpr: r:QA.qelem -> pk:point -> u1:QA.qelem -> u2:QA.qelem -> Stack bool (requires fun h -> live h r /\ live h pk /\ live h u1 /\ live h u2 /\ disjoint r u1 /\ disjoint r u2 /\ disjoint r pk /\ disjoint pk u1 /\ disjoint pk u2 /\ point_inv h pk /\ QA.qas_nat h u1 < S.q /\ QA.qas_nat h...
val ecdsa_verify_cmpr: r:QA.qelem -> pk:point -> u1:QA.qelem -> u2:QA.qelem -> Stack bool (requires fun h -> live h r /\ live h pk /\ live h u1 /\ live h u2 /\ disjoint r u1 /\ disjoint r u2 /\ disjoint r pk /\ disjoint pk u1 /\ disjoint pk u2 /\ point_inv h pk /\ QA.qas_nat h u1 < S.q /\ QA.qas_nat h...
let ecdsa_verify_cmpr r pk u1 u2 = push_frame (); let res = create_point () in let h0 = ST.get () in point_mul_g_double_split_lambda_vartime res u1 u2 pk; let h1 = ST.get () in assert (S.to_aff_point (point_eval h1 res) == S.to_aff_point (S.point_mul_double_g (QA.qas_nat h0 u1) (QA.qas_nat h0 u2) ...
{ "file_name": "code/k256/Hacl.Impl.K256.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 169, "start_col": 0, "start_line": 151 }
module Hacl.Impl.K256.Verify open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module KL = Spec.K256.Lemmas open Hacl.K256.Field open Hacl.Impl.K256.Point open Hacl.Impl.K256.PointMul open Hacl.Impl.K256.GLV module ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.Qinv", "short_module": "QI" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Hacl.K256.Scalar.qelem -> pk: Hacl.Impl.K256.Point.point -> u1: Hacl.K256.Scalar.qelem -> u2: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Impl.K256.Point.point", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.Impl.K256.Verify.ecdsa_verify_avoid_finv", "Hacl.Impl.K256.Point.is_proj_point_at_inf_vartime", "Spec.K256.Lemmas.lemma_aff_is_point_at_inf", "Spec.K256.point_mul_double_g", "...
[]
false
true
false
false
false
let ecdsa_verify_cmpr r pk u1 u2 =
push_frame (); let res = create_point () in let h0 = ST.get () in point_mul_g_double_split_lambda_vartime res u1 u2 pk; let h1 = ST.get () in assert (S.to_aff_point (point_eval h1 res) == S.to_aff_point (S.point_mul_double_g (QA.qas_nat h0 u1) (QA.qas_nat h0 u2) (point_eval h0 pk))); KL.lemma_aff_is_point_at_inf (p...
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_mac
val poly1305_mac (msg: bytes) (k: key) : Tot tag
val poly1305_mac (msg: bytes) (k: key) : Tot tag
let poly1305_mac (msg:bytes) (k:key) : Tot tag = let acc, r = poly1305_init k in let acc = poly1305_update msg acc r in poly1305_finish k acc
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 77, "start_col": 0, "start_line": 74 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
msg: Lib.ByteSequence.bytes -> k: Spec.Poly1305.key -> Spec.Poly1305.tag
Prims.Tot
[ "total" ]
[]
[ "Lib.ByteSequence.bytes", "Spec.Poly1305.key", "Spec.Poly1305.felem", "Spec.Poly1305.poly1305_finish", "Spec.Poly1305.poly1305_update", "Spec.Poly1305.tag", "FStar.Pervasives.Native.tuple2", "Spec.Poly1305.poly1305_init" ]
[]
false
false
false
true
false
let poly1305_mac (msg: bytes) (k: key) : Tot tag =
let acc, r = poly1305_init k in let acc = poly1305_update msg acc r in poly1305_finish k acc
false
Spec.Poly1305.fst
Spec.Poly1305.zero
val zero:felem
val zero:felem
let zero : felem = to_felem 0
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 25, "start_col": 0, "start_line": 25 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.to_felem" ]
[]
false
false
false
true
false
let zero:felem =
to_felem 0
false
Spec.Poly1305.fst
Spec.Poly1305.fmul
val fmul (x y: felem) : felem
val fmul (x y: felem) : felem
let fmul (x:felem) (y:felem) : felem = (x * y) % prime
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 21, "start_col": 0, "start_line": 21 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Spec.Poly1305.felem -> y: Spec.Poly1305.felem -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.felem", "Prims.op_Modulus", "FStar.Mul.op_Star", "Spec.Poly1305.prime" ]
[]
false
false
false
true
false
let fmul (x y: felem) : felem =
(x * y) % prime
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_init
val poly1305_init (k: key) : Tot (felem & felem)
val poly1305_init (k: key) : Tot (felem & felem)
let poly1305_init (k:key) : Tot (felem & felem) = let r = poly1305_encode_r (slice k 0 16) in zero, r
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 9, "end_line": 49, "start_col": 0, "start_line": 47 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Poly1305.key -> Spec.Poly1305.felem * Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.key", "FStar.Pervasives.Native.Mktuple2", "Spec.Poly1305.felem", "Spec.Poly1305.zero", "Spec.Poly1305.poly1305_encode_r", "Lib.Sequence.slice", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.Poly1305.size_key", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
true
false
let poly1305_init (k: key) : Tot (felem & felem) =
let r = poly1305_encode_r (slice k 0 16) in zero, r
false
Spec.Poly1305.fst
Spec.Poly1305.size_key
val size_key:size_nat
val size_key:size_nat
let size_key : size_nat = 32
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 29, "start_col": 0, "start_line": 29 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat{n <= Prims.pow2 32 - 1}
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
false
false
let size_key:size_nat =
32
false
FStar.Classical.fst
FStar.Classical.lemma_to_squash_gtot
val lemma_to_squash_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> Lemma (p x))) (x: a) : GTot (squash (p x))
val lemma_to_squash_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> Lemma (p x))) (x: a) : GTot (squash (p x))
let lemma_to_squash_gtot #a #p f x = f x; get_proof (p x)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 27, "start_col": 0, "start_line": 25 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> FStar.Pervasives.Lemma (ensures p x)) -> x: a -> Prims.GTot (Prims.squash (p x))
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Squash.get_proof" ]
[]
false
false
true
false
false
let lemma_to_squash_gtot #a #p f x =
f x; get_proof (p x)
false
Spec.Poly1305.fst
Spec.Poly1305.size_block
val size_block:size_nat
val size_block:size_nat
let size_block : size_nat = 16
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 28, "start_col": 0, "start_line": 28 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat{n <= Prims.pow2 32 - 1}
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
false
false
let size_block:size_nat =
16
false
FStar.Classical.fst
FStar.Classical.arrow_to_impl
val arrow_to_impl (#a #b: Type0) (_: (squash a -> GTot (squash b))) : GTot (a ==> b)
val arrow_to_impl (#a #b: Type0) (_: (squash a -> GTot (squash b))) : GTot (a ==> b)
let arrow_to_impl #a #b f = squash_double_arrow (return_squash (fun x -> f (return_squash x)))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 94, "end_line": 43, "start_col": 0, "start_line": 43 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.squash a -> Prims.GTot (Prims.squash b)) -> Prims.GTot (a ==> b)
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.squash", "FStar.Squash.squash_double_arrow", "FStar.Squash.return_squash", "Prims.l_imp" ]
[]
false
false
false
false
false
let arrow_to_impl #a #b f =
squash_double_arrow (return_squash (fun x -> f (return_squash x)))
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_encode_r
val poly1305_encode_r (rb: block) : Tot felem
val poly1305_encode_r (rb: block) : Tot felem
let poly1305_encode_r (rb:block) : Tot felem = let lo = uint_from_bytes_le (sub rb 0 8) in let hi = uint_from_bytes_le (sub rb 8 8) in let mask0 = u64 0x0ffffffc0fffffff in let mask1 = u64 0x0ffffffc0ffffffc in let lo = lo &. mask0 in let hi = hi &. mask1 in assert_norm (pow2 128 < prime); to_felem (uin...
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 45, "start_col": 0, "start_line": 37 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
rb: Spec.Poly1305.block -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.block", "Spec.Poly1305.to_felem", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.uint_v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Spec.Poly1305.prime", "Lib.IntTypes.int_t...
[]
false
false
false
true
false
let poly1305_encode_r (rb: block) : Tot felem =
let lo = uint_from_bytes_le (sub rb 0 8) in let hi = uint_from_bytes_le (sub rb 8 8) in let mask0 = u64 0x0ffffffc0fffffff in let mask1 = u64 0x0ffffffc0ffffffc in let lo = lo &. mask0 in let hi = hi &. mask1 in assert_norm (pow2 128 < prime); to_felem (uint_v hi * pow2 64 + uint_v lo)
false
FStar.Classical.fst
FStar.Classical.impl_to_arrow
val impl_to_arrow (#a #b: Type0) (_: (a ==> b)) (_: squash a) : Tot (squash b)
val impl_to_arrow (#a #b: Type0) (_: (a ==> b)) (_: squash a) : Tot (squash b)
let impl_to_arrow #a #b impl sx = bind_squash #(a -> GTot b) impl (fun f -> bind_squash sx (fun x -> return_squash (f x)))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 90, "end_line": 41, "start_col": 0, "start_line": 40 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
impl: (a ==> b) -> sx: Prims.squash a -> Prims.squash b
Prims.Tot
[ "total" ]
[]
[ "Prims.l_imp", "Prims.squash", "FStar.Squash.bind_squash", "FStar.Squash.return_squash" ]
[]
false
false
true
true
false
let impl_to_arrow #a #b impl sx =
bind_squash #(a -> GTot b) impl (fun f -> bind_squash sx (fun x -> return_squash (f x)))
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_finish
val poly1305_finish (k: key) (acc: felem) : Tot tag
val poly1305_finish (k: key) (acc: felem) : Tot tag
let poly1305_finish (k:key) (acc:felem) : Tot tag = let s = nat_from_bytes_le (slice k 16 32) in let n = (from_felem acc + s) % pow2 128 in nat_to_bytes_le 16 n
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 62, "start_col": 0, "start_line": 59 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Spec.Poly1305.key -> acc: Spec.Poly1305.felem -> Spec.Poly1305.tag
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.key", "Spec.Poly1305.felem", "Lib.ByteSequence.nat_to_bytes_le", "Lib.IntTypes.SEC", "Prims.int", "Prims.op_Modulus", "Prims.op_Addition", "Spec.Poly1305.from_felem", "Prims.pow2", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Multiply", "Lib.Sequence.length", "...
[]
false
false
false
true
false
let poly1305_finish (k: key) (acc: felem) : Tot tag =
let s = nat_from_bytes_le (slice k 16 32) in let n = (from_felem acc + s) % pow2 128 in nat_to_bytes_le 16 n
false
FStar.Classical.fst
FStar.Classical.impl_intro_tot
val impl_intro_tot (#p #q: Type0) ($_: (p -> Tot q)) : Tot (p ==> q)
val impl_intro_tot (#p #q: Type0) ($_: (p -> Tot q)) : Tot (p ==> q)
let impl_intro_tot #p #q f = return_squash #(p -> GTot q) f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 47, "start_col": 0, "start_line": 47 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: p -> q) -> (p ==> q)
Prims.Tot
[ "total" ]
[]
[ "FStar.Squash.return_squash", "Prims.l_imp" ]
[]
false
false
false
true
false
let impl_intro_tot #p #q f =
return_squash #(p -> GTot q) f
false
FStar.Classical.fst
FStar.Classical.get_squashed
val get_squashed (#b a: Type) : Pure a (requires (a /\ a == squash b)) (ensures (fun _ -> True))
val get_squashed (#b a: Type) : Pure a (requires (a /\ a == squash b)) (ensures (fun _ -> True))
let get_squashed #b a = let p = get_proof a in join_squash #b p
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 35, "start_col": 0, "start_line": 33 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> Prims.Pure a
Prims.Pure
[]
[]
[ "FStar.Squash.join_squash", "Prims.squash", "FStar.Squash.get_proof" ]
[]
false
false
false
false
false
let get_squashed #b a =
let p = get_proof a in join_squash #b p
false
FStar.Classical.fst
FStar.Classical.impl_intro_gtot
val impl_intro_gtot (#p #q: Type0) ($_: (p -> GTot q)) : GTot (p ==> q)
val impl_intro_gtot (#p #q: Type0) ($_: (p -> GTot q)) : GTot (p ==> q)
let impl_intro_gtot #p #q f = return_squash f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 45, "start_col": 0, "start_line": 45 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: p -> Prims.GTot q) -> Prims.GTot (p ==> q)
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Squash.return_squash", "Prims.l_imp" ]
[]
false
false
false
false
false
let impl_intro_gtot #p #q f =
return_squash f
false
FStar.Classical.fst
FStar.Classical.give_witness_from_squash
val give_witness_from_squash (#a: Type) (_: squash a) : Lemma (ensures a)
val give_witness_from_squash (#a: Type) (_: squash a) : Lemma (ensures a)
let give_witness_from_squash #a x = x
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 23, "start_col": 0, "start_line": 23 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.squash a -> FStar.Pervasives.Lemma (ensures a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims.unit" ]
[]
true
false
true
false
false
let give_witness_from_squash #a x =
x
false
FStar.Classical.fst
FStar.Classical.give_witness
val give_witness (#a: Type) (_: a) : Lemma (ensures a)
val give_witness (#a: Type) (_: a) : Lemma (ensures a)
let give_witness #a x = return_squash x
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 21, "start_col": 0, "start_line": 21 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> FStar.Pervasives.Lemma (ensures a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Squash.return_squash", "Prims.unit" ]
[]
true
false
true
false
false
let give_witness #a x =
return_squash x
false
FStar.Classical.fst
FStar.Classical.get_equality
val get_equality (#t: Type) (a b: t) : Pure (a == b) (requires (a == b)) (ensures (fun _ -> True))
val get_equality (#t: Type) (a b: t) : Pure (a == b) (requires (a == b)) (ensures (fun _ -> True))
let get_equality #t a b = get_squashed #(equals a b) (a == b)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 38, "start_col": 0, "start_line": 38 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: t -> b: t -> Prims.Pure (a == b)
Prims.Pure
[]
[]
[ "FStar.Classical.get_squashed", "Prims.equals", "Prims.eq2" ]
[]
false
false
false
false
false
let get_equality #t a b =
get_squashed #(equals a b) (a == b)
false
FStar.Classical.fst
FStar.Classical.move_requires_2
val move_requires_2 (#a #b: Type) (#p #q: (a -> b -> Type)) ($_: (x: a -> y: b -> Lemma (requires (p x y)) (ensures (q x y)))) (x: a) (y: b) : Lemma (p x y ==> q x y)
val move_requires_2 (#a #b: Type) (#p #q: (a -> b -> Type)) ($_: (x: a -> y: b -> Lemma (requires (p x y)) (ensures (q x y)))) (x: a) (y: b) : Lemma (p x y ==> q x y)
let move_requires_2 #a #b #p #q f x y = move_requires (f x) y
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 64, "start_col": 0, "start_line": 64 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b -> FStar.Pervasives.Lemma (requires p x y) (ensures q x y)) -> x: a -> y: b -> FStar.Pervasives.Lemma (ensures p x y ==> q x y)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.move_requires" ]
[]
true
false
true
false
false
let move_requires_2 #a #b #p #q f x y =
move_requires (f x) y
false
Spec.Poly1305.fst
Spec.Poly1305.encode
val encode (len: size_nat{len <= size_block}) (b: lbytes len) : Tot felem
val encode (len: size_nat{len <= size_block}) (b: lbytes len) : Tot felem
let encode (len:size_nat{len <= size_block}) (b:lbytes len) : Tot felem = Math.Lemmas.pow2_le_compat 128 (8 * len); assert_norm (pow2 128 + pow2 128 < prime); fadd (pow2 (8 * len)) (nat_from_bytes_le b)
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 54, "start_col": 0, "start_line": 51 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat{len <= Spec.Poly1305.size_block} -> b: Lib.ByteSequence.lbytes len -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Spec.Poly1305.size_block", "Lib.ByteSequence.lbytes", "Spec.Poly1305.fadd", "Prims.pow2", "FStar.Mul.op_Star", "Lib.ByteSequence.nat_from_bytes_le", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.op_...
[]
false
false
false
false
false
let encode (len: size_nat{len <= size_block}) (b: lbytes len) : Tot felem =
Math.Lemmas.pow2_le_compat 128 (8 * len); assert_norm (pow2 128 + pow2 128 < prime); fadd (pow2 (8 * len)) (nat_from_bytes_le b)
false
FStar.Classical.fst
FStar.Classical.move_requires_3
val move_requires_3 (#a #b #c: Type) (#p #q: (a -> b -> c -> Type)) ($_: (x: a -> y: b -> z: c -> Lemma (requires (p x y z)) (ensures (q x y z)))) (x: a) (y: b) (z: c) : Lemma (p x y z ==> q x y z)
val move_requires_3 (#a #b #c: Type) (#p #q: (a -> b -> c -> Type)) ($_: (x: a -> y: b -> z: c -> Lemma (requires (p x y z)) (ensures (q x y z)))) (x: a) (y: b) (z: c) : Lemma (p x y z ==> q x y z)
let move_requires_3 #a #b #c #p #q f x y z = move_requires (f x y) z
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 68, "end_line": 66, "start_col": 0, "start_line": 66 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b -> z: c -> FStar.Pervasives.Lemma (requires p x y z) (ensures q x y z)) -> x: a -> y: b -> z: c -> FStar.Pervasives.Lemma (ensures p x y z ==> q x y z)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.move_requires" ]
[]
true
false
true
false
false
let move_requires_3 #a #b #c #p #q f x y z =
move_requires (f x y) z
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_update_last
val poly1305_update_last : r: Spec.Poly1305.felem -> l: Lib.IntTypes.size_nat{l < 16} -> b: Lib.ByteSequence.lbytes l -> acc: Spec.Poly1305.felem -> Spec.Poly1305.felem
let poly1305_update_last (r:felem) (l:size_nat{l < 16}) (b:lbytes l) (acc:felem) = if l = 0 then acc else poly1305_update1 r l b acc
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 65, "start_col": 0, "start_line": 64 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Spec.Poly1305.felem -> l: Lib.IntTypes.size_nat{l < 16} -> b: Lib.ByteSequence.lbytes l -> acc: Spec.Poly1305.felem -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Spec.Poly1305.felem", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Lib.ByteSequence.lbytes", "Prims.op_Equality", "Prims.int", "Prims.bool", "Spec.Poly1305.poly1305_update1" ]
[]
false
false
false
false
false
let poly1305_update_last (r: felem) (l: size_nat{l < 16}) (b: lbytes l) (acc: felem) =
if l = 0 then acc else poly1305_update1 r l b acc
false
FStar.Classical.fst
FStar.Classical.forall_intro_squash_gtot
val forall_intro_squash_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (squash (p x)))) : Tot (squash (forall (x: a). p x))
val forall_intro_squash_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (squash (p x)))) : Tot (squash (forall (x: a). p x))
let forall_intro_squash_gtot #a #p f = bind_squash #(x: a -> GTot (p x)) #(forall (x: a). p x) (squash_double_arrow #a #p (return_squash f)) (fun f -> lemma_forall_intro_gtot #a #p f)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 94, "start_col": 0, "start_line": 90 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> Prims.GTot (Prims.squash (p x))) -> Prims.squash (forall (x: a). p x)
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "FStar.Squash.bind_squash", "Prims.l_Forall", "FStar.Squash.squash_double_arrow", "FStar.Squash.return_squash", "FStar.Classical.lemma_forall_intro_gtot" ]
[]
false
false
true
false
false
let forall_intro_squash_gtot #a #p f =
bind_squash #(x: a -> GTot (p x)) #(forall (x: a). p x) (squash_double_arrow #a #p (return_squash f)) (fun f -> lemma_forall_intro_gtot #a #p f)
false
Spec.Poly1305.fst
Spec.Poly1305.poly1305_update
val poly1305_update (text: bytes) (acc r: felem) : Tot felem
val poly1305_update (text: bytes) (acc r: felem) : Tot felem
let poly1305_update (text:bytes) (acc:felem) (r:felem) : Tot felem = repeat_blocks #uint8 #felem size_block text (poly1305_update1 r size_block) (poly1305_update_last r) acc
{ "file_name": "specs/Spec.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 72, "start_col": 0, "start_line": 68 }
module Spec.Poly1305 #reset-options "--z3rlimit 60 --initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 0" open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence /// Constants and Types (* Field types and parameters *) let prime : pos = let p = pow2 130 - 5 in assert_norm (p > 0); p ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked" ...
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
text: Lib.ByteSequence.bytes -> acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "Lib.ByteSequence.bytes", "Spec.Poly1305.felem", "Lib.Sequence.repeat_blocks", "Lib.IntTypes.uint8", "Spec.Poly1305.size_block", "Spec.Poly1305.poly1305_update1", "Spec.Poly1305.poly1305_update_last" ]
[]
false
false
false
true
false
let poly1305_update (text: bytes) (acc r: felem) : Tot felem =
repeat_blocks #uint8 #felem size_block text (poly1305_update1 r size_block) (poly1305_update_last r) acc
false
FStar.Classical.fst
FStar.Classical.impl_intro
val impl_intro (#p #q: Type0) ($_: (p -> Lemma q)) : Lemma (p ==> q)
val impl_intro (#p #q: Type0) ($_: (p -> Lemma q)) : Lemma (p ==> q)
let impl_intro #p #q f = give_witness #(p ==> q) (squash_double_arrow (return_squash (lemma_to_squash_gtot f)))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 88, "end_line": 50, "start_col": 0, "start_line": 49 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: p -> FStar.Pervasives.Lemma (ensures q)) -> FStar.Pervasives.Lemma (ensures p ==> q)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.give_witness", "Prims.l_imp", "FStar.Squash.squash_double_arrow", "FStar.Squash.return_squash", "FStar.Classical.lemma_to_squash_gtot" ]
[]
false
false
true
false
false
let impl_intro #p #q f =
give_witness #(p ==> q) (squash_double_arrow (return_squash (lemma_to_squash_gtot f)))
false
FStar.Classical.fst
FStar.Classical.forall_intro_squash_gtot_join
val forall_intro_squash_gtot_join (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (squash (p x)))) : Tot (forall (x: a). p x)
val forall_intro_squash_gtot_join (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (squash (p x)))) : Tot (forall (x: a). p x)
let forall_intro_squash_gtot_join #a #p f = join_squash (bind_squash #(x: a -> GTot (p x)) #(forall (x: a). p x) (squash_double_arrow #a #p (return_squash f)) (fun f -> lemma_forall_intro_gtot #a #p f))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 100, "start_col": 0, "start_line": 96 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> Prims.GTot (Prims.squash (p x))) -> (forall (x: a). p x)
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "FStar.Squash.join_squash", "FStar.Squash.bind_squash", "Prims.l_Forall", "FStar.Squash.squash_double_arrow", "FStar.Squash.return_squash", "FStar.Classical.lemma_forall_intro_gtot" ]
[]
false
false
false
false
false
let forall_intro_squash_gtot_join #a #p f =
join_squash (bind_squash #(x: a -> GTot (p x)) #(forall (x: a). p x) (squash_double_arrow #a #p (return_squash f)) (fun f -> lemma_forall_intro_gtot #a #p f))
false
FStar.Classical.fst
FStar.Classical.forall_intro_with_pat
val forall_intro_with_pat (#a: Type) (#c: (x: a -> Type)) (#p: (x: a -> GTot Type0)) ($pat: (x: a -> Tot (c x))) ($_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). {:pattern (pat x)} p x)
val forall_intro_with_pat (#a: Type) (#c: (x: a -> Type)) (#p: (x: a -> GTot Type0)) ($pat: (x: a -> Tot (c x))) ($_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). {:pattern (pat x)} p x)
let forall_intro_with_pat #a #c #p pat f = forall_intro #a #p f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 104, "start_col": 0, "start_line": 104 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$pat: (x: a -> c x) -> $f: (x: a -> FStar.Pervasives.Lemma (ensures p x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). {:pattern pat x} p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro" ]
[]
true
false
true
false
false
let forall_intro_with_pat #a #c #p pat f =
forall_intro #a #p f
false
FStar.Classical.fst
FStar.Classical.forall_intro_sub
val forall_intro_sub (#a: Type) (#p: (a -> GTot Type)) (_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). p x)
val forall_intro_sub (#a: Type) (#p: (a -> GTot Type)) (_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). p x)
let forall_intro_sub #a #p f = forall_intro f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 106, "start_col": 0, "start_line": 106 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (x: a -> FStar.Pervasives.Lemma (ensures p x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro" ]
[]
true
false
true
false
false
let forall_intro_sub #a #p f =
forall_intro f
false
ExtractRefs.fst
ExtractRefs.copy_ref
val copy_ref (r: ref U32.t) : Steel (ref U32.t) (vptr r) (fun r' -> (vptr r) `star` (vptr r')) (requires fun _ -> True) (ensures fun h0 r' h1 -> sel r h0 == sel r h1 /\ sel r' h1 == sel r h1)
val copy_ref (r: ref U32.t) : Steel (ref U32.t) (vptr r) (fun r' -> (vptr r) `star` (vptr r')) (requires fun _ -> True) (ensures fun h0 r' h1 -> sel r h0 == sel r h1 /\ sel r' h1 == sel r h1)
let copy_ref (r:ref U32.t) : Steel (ref U32.t) (vptr r) // We allocated a new reference r', which is the return value (fun r' -> vptr r `star` vptr r') (requires fun _ -> True) (ensures fun h0 r' h1 -> // reference r was not modified sel r h0 == sel r h1 /\ // After copying, reference r' contains ...
{ "file_name": "share/steel/tutorial/ExtractRefs.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 6, "end_line": 60, "start_col": 0, "start_line": 47 }
module ExtractRefs open FStar.Ghost open Steel.FractionalPermission open Steel.Effect.Atomic open Steel.Effect open Steel.Reference module U32 = FStar.UInt32 /// Some examples using Steel references with fractional permissions #push-options "--fuel 0 --ifuel 0 --ide_id_info_off" (** Swap examples **) /// A selecto...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref FStar.UInt32.t -> Steel.Effect.Steel (Steel.Reference.ref FStar.UInt32.t)
Steel.Effect.Steel
[]
[]
[ "Steel.Reference.ref", "FStar.UInt32.t", "Steel.Reference.malloc", "Steel.Reference.read", "Steel.Reference.vptr", "Steel.Effect.Common.star", "Steel.Effect.Common.vprop", "Steel.Effect.Common.rmem", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Steel.Effect.Common.normal", "Steel.Effect.Comm...
[]
false
true
false
false
false
let copy_ref (r: ref U32.t) : Steel (ref U32.t) (vptr r) (fun r' -> (vptr r) `star` (vptr r')) (requires fun _ -> True) (ensures fun h0 r' h1 -> sel r h0 == sel r h1 /\ sel r' h1 == sel r h1) =
let x = read r in let r' = malloc x in r'
false
FStar.Classical.fst
FStar.Classical.get_forall
val get_forall (#a: Type) (p: (a -> GTot Type0)) : Pure (forall (x: a). p x) (requires (forall (x: a). p x)) (ensures (fun _ -> True))
val get_forall (#a: Type) (p: (a -> GTot Type0)) : Pure (forall (x: a). p x) (requires (forall (x: a). p x)) (ensures (fun _ -> True))
let get_forall #a p = let t = (forall (x:a). p x) in assert (norm [delta; delta_only [`%l_Forall]] t == (squash (x:a -> GTot (p x)))); norm_spec [delta; delta_only [`%l_Forall]] t; get_squashed #(x: a -> GTot (p x)) (forall (x: a). p x)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 78, "start_col": 0, "start_line": 74 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: a -> Prims.GTot Type0) -> Prims.Pure (forall (x: a). p x)
Prims.Pure
[]
[]
[ "FStar.Classical.get_squashed", "Prims.l_Forall", "Prims.unit", "FStar.Pervasives.norm_spec", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.delta", "FStar.Pervasives.delta_only", "Prims.string", "Prims.Nil", "Prims.logical", "Prims._assert", "Prims.eq2", "FStar.Pervasives.n...
[]
false
false
false
false
false
let get_forall #a p =
let t = (forall (x: a). p x) in assert (norm [delta; delta_only [`%l_Forall]] t == (squash (x: a -> GTot (p x)))); norm_spec [delta; delta_only [`%l_Forall]] t; get_squashed #(x: a -> GTot (p x)) (forall (x: a). p x)
false
FStar.Classical.fst
FStar.Classical.forall_intro_2
val forall_intro_2 (#a: Type) (#b: (a -> Type)) (#p: (x: a -> b x -> GTot Type0)) ($_: (x: a -> y: b x -> Lemma (p x y))) : Lemma (forall (x: a) (y: b x). p x y)
val forall_intro_2 (#a: Type) (#b: (a -> Type)) (#p: (x: a -> b x -> GTot Type0)) ($_: (x: a -> y: b x -> Lemma (p x y))) : Lemma (forall (x: a) (y: b x). p x y)
let forall_intro_2 #a #b #p f = let g: x: a -> Lemma (forall (y: b x). p x y) = fun x -> forall_intro (f x) in forall_intro g
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 111, "start_col": 0, "start_line": 109 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b x -> FStar.Pervasives.Lemma (ensures p x y)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b x). p x y)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_Forall" ]
[]
false
false
true
false
false
let forall_intro_2 #a #b #p f =
let g: x: a -> Lemma (forall (y: b x). p x y) = fun x -> forall_intro (f x) in forall_intro g
false
FStar.Classical.fst
FStar.Classical.forall_intro_2_with_pat
val forall_intro_2_with_pat (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#p: (x: a -> b x -> GTot Type0)) ($pat: (x: a -> y: b x -> Tot (c x y))) ($_: (x: a -> y: b x -> Lemma (p x y))) : Lemma (forall (x: a) (y: b x). {:pattern (pat x y)} p x y)
val forall_intro_2_with_pat (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#p: (x: a -> b x -> GTot Type0)) ($pat: (x: a -> y: b x -> Tot (c x y))) ($_: (x: a -> y: b x -> Lemma (p x y))) : Lemma (forall (x: a) (y: b x). {:pattern (pat x y)} p x y)
let forall_intro_2_with_pat #a #b #c #p pat f = forall_intro_2 #a #b #p f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 73, "end_line": 113, "start_col": 0, "start_line": 113 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$pat: (x: a -> y: b x -> c x y) -> $f: (x: a -> y: b x -> FStar.Pervasives.Lemma (ensures p x y)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b x). {:pattern pat x y} p x y)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro_2" ]
[]
true
false
true
false
false
let forall_intro_2_with_pat #a #b #c #p pat f =
forall_intro_2 #a #b #p f
false
FStar.Classical.fst
FStar.Classical.gtot_to_lemma
val gtot_to_lemma (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) (x: a) : Lemma (p x)
val gtot_to_lemma (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) (x: a) : Lemma (p x)
let gtot_to_lemma #a #p f x = give_proof #(p x) (return_squash (f x))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 69, "end_line": 88, "start_col": 0, "start_line": 88 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> Prims.GTot (p x)) -> x: a -> FStar.Pervasives.Lemma (ensures p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Squash.give_proof", "FStar.Squash.return_squash", "Prims.unit" ]
[]
true
false
true
false
false
let gtot_to_lemma #a #p f x =
give_proof #(p x) (return_squash (f x))
false
FStar.Classical.fst
FStar.Classical.forall_intro_gtot
val forall_intro_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) : Tot (squash (forall (x: a). p x))
val forall_intro_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) : Tot (squash (forall (x: a). p x))
let forall_intro_gtot #a #p f = let id (#a: Type) (x: a) = x in let h:(x: a -> GTot (id (p x))) = fun x -> f x in return_squash #(forall (x: a). id (p x)) ()
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 84, "start_col": 0, "start_line": 81 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> Prims.GTot (p x)) -> Prims.squash (forall (x: a). p x)
Prims.Tot
[ "total" ]
[]
[ "FStar.Squash.return_squash", "Prims.l_Forall", "Prims.squash" ]
[]
false
false
true
false
false
let forall_intro_gtot #a #p f =
let id (#a: Type) (x: a) = x in let h:(x: a -> GTot (id (p x))) = fun x -> f x in return_squash #(forall (x: a). id (p x)) ()
false
FStar.Classical.fst
FStar.Classical.forall_intro_3
val forall_intro_3 (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#p: (x: a -> y: b x -> z: c x y -> Type0)) ($_: (x: a -> y: b x -> z: c x y -> Lemma (p x y z))) : Lemma (forall (x: a) (y: b x) (z: c x y). p x y z)
val forall_intro_3 (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#p: (x: a -> y: b x -> z: c x y -> Type0)) ($_: (x: a -> y: b x -> z: c x y -> Lemma (p x y z))) : Lemma (forall (x: a) (y: b x) (z: c x y). p x y z)
let forall_intro_3 #a #b #c #p f = let g: x: a -> Lemma (forall (y: b x) (z: c x y). p x y z) = fun x -> forall_intro_2 (f x) in forall_intro g
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 117, "start_col": 0, "start_line": 115 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b x -> z: c x y -> FStar.Pervasives.Lemma (ensures p x y z)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b x) (z: c x y). p x y z)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_Forall", "FStar.Classical.forall_intro_2" ]
[]
false
false
true
false
false
let forall_intro_3 #a #b #c #p f =
let g: x: a -> Lemma (forall (y: b x) (z: c x y). p x y z) = fun x -> forall_intro_2 (f x) in forall_intro g
false
FStar.Classical.fst
FStar.Classical.forall_intro_3_with_pat
val forall_intro_3_with_pat (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#d: (x: a -> y: b x -> z: c x y -> Type)) (#p: (x: a -> y: b x -> z: c x y -> GTot Type0)) ($pat: (x: a -> y: b x -> z: c x y -> Tot (d x y z))) ($_: (x: a -> y: b x -> z: c x y -> Lemma (p...
val forall_intro_3_with_pat (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#d: (x: a -> y: b x -> z: c x y -> Type)) (#p: (x: a -> y: b x -> z: c x y -> GTot Type0)) ($pat: (x: a -> y: b x -> z: c x y -> Tot (d x y z))) ($_: (x: a -> y: b x -> z: c x y -> Lemma (p...
let forall_intro_3_with_pat #a #b #c #d #p pat f = forall_intro_3 #a #b #c #p f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 79, "end_line": 119, "start_col": 0, "start_line": 119 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$pat: (x: a -> y: b x -> z: c x y -> d x y z) -> $f: (x: a -> y: b x -> z: c x y -> FStar.Pervasives.Lemma (ensures p x y z)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b x) (z: c x y). {:pattern pat x y z} p x y z)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro_3" ]
[]
true
false
true
false
false
let forall_intro_3_with_pat #a #b #c #d #p pat f =
forall_intro_3 #a #b #c #p f
false
FStar.Classical.fst
FStar.Classical.forall_intro_4
val forall_intro_4 (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#d: (x: a -> y: b x -> z: c x y -> Type)) (#p: (x: a -> y: b x -> z: c x y -> w: d x y z -> Type0)) ($_: (x: a -> y: b x -> z: c x y -> w: d x y z -> Lemma (p x y z w))) : Lemma (forall (x: a) (y: b x...
val forall_intro_4 (#a: Type) (#b: (a -> Type)) (#c: (x: a -> y: b x -> Type)) (#d: (x: a -> y: b x -> z: c x y -> Type)) (#p: (x: a -> y: b x -> z: c x y -> w: d x y z -> Type0)) ($_: (x: a -> y: b x -> z: c x y -> w: d x y z -> Lemma (p x y z w))) : Lemma (forall (x: a) (y: b x...
let forall_intro_4 #a #b #c #d #p f = let g: x: a -> Lemma (forall (y: b x) (z: c x y) (w: d x y z). p x y z w) = fun x -> forall_intro_3 (f x) in forall_intro g
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 125, "start_col": 0, "start_line": 121 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b x -> z: c x y -> w: d x y z -> FStar.Pervasives.Lemma (ensures p x y z w)) -> FStar.Pervasives.Lemma (ensures forall (x: a) (y: b x) (z: c x y) (w: d x y z). p x y z w)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_Forall", "FStar.Classical.forall_intro_3" ]
[]
false
false
true
false
false
let forall_intro_4 #a #b #c #d #p f =
let g: x: a -> Lemma (forall (y: b x) (z: c x y) (w: d x y z). p x y z w) = fun x -> forall_intro_3 (f x) in forall_intro g
false
FStar.Classical.fst
FStar.Classical.impl_intro_gen
val impl_intro_gen (#p: Type0) (#q: (squash p -> Tot Type0)) (_: (squash p -> Lemma (q ()))) : Lemma (p ==> q ())
val impl_intro_gen (#p: Type0) (#q: (squash p -> Tot Type0)) (_: (squash p -> Lemma (q ()))) : Lemma (p ==> q ())
let impl_intro_gen #p #q f = let g () : Lemma (requires p) (ensures (p ==> q ())) = give_proof #(q ()) (f (get_proof p)) in move_requires g ()
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 71, "start_col": 0, "start_line": 69 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.squash p -> FStar.Pervasives.Lemma (ensures q ())) -> FStar.Pervasives.Lemma (ensures p ==> q ())
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims.unit", "Prims.l_True", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.move_requires", "Prims.l_imp", "FStar.Squash.give_proof", "FStar.Squash.get_proof" ]
[]
false
false
true
false
false
let impl_intro_gen #p #q f =
let g () : Lemma (requires p) (ensures (p ==> q ())) = give_proof #(q ()) (f (get_proof p)) in move_requires g ()
false
FStar.Classical.fst
FStar.Classical.lemma_forall_intro_gtot
val lemma_forall_intro_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) : Lemma (forall (x: a). p x)
val lemma_forall_intro_gtot (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> GTot (p x))) : Lemma (forall (x: a). p x)
let lemma_forall_intro_gtot #a #p f = give_witness (forall_intro_gtot #a #p f)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 78, "end_line": 86, "start_col": 0, "start_line": 86 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> Prims.GTot (p x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Classical.give_witness", "Prims.squash", "Prims.l_Forall", "FStar.Classical.forall_intro_gtot", "Prims.unit" ]
[]
false
false
true
false
false
let lemma_forall_intro_gtot #a #p f =
give_witness (forall_intro_gtot #a #p f)
false
FStar.Classical.fst
FStar.Classical.move_requires
val move_requires (#a: Type) (#p #q: (a -> Type)) ($_: (x: a -> Lemma (requires (p x)) (ensures (q x)))) (x: a) : Lemma (p x ==> q x)
val move_requires (#a: Type) (#p #q: (a -> Type)) ($_: (x: a -> Lemma (requires (p x)) (ensures (q x)))) (x: a) : Lemma (p x ==> q x)
let move_requires #a #p #q f x = give_proof (bind_squash (get_proof (l_or (p x) (~(p x)))) (fun (b: l_or (p x) (~(p x))) -> bind_squash b (fun (b': Prims.sum (p x) (~(p x))) -> match b' with | Prims.Left hp -> give_witness hp; ...
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 62, "start_col": 0, "start_line": 52 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> FStar.Pervasives.Lemma (requires p x) (ensures q x)) -> x: a -> FStar.Pervasives.Lemma (ensures p x ==> q x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Squash.give_proof", "Prims.l_imp", "FStar.Squash.bind_squash", "Prims.l_or", "Prims.l_not", "FStar.Squash.get_proof", "Prims.sum", "FStar.Classical.give_witness" ]
[]
false
false
true
false
false
let move_requires #a #p #q f x =
give_proof (bind_squash (get_proof (l_or (p x) (~(p x)))) (fun (b: l_or (p x) (~(p x))) -> bind_squash b (fun (b': Prims.sum (p x) (~(p x))) -> match b' with | Prims.Left hp -> give_witness hp; f x; get_pro...
false
FStar.Classical.fst
FStar.Classical.forall_intro
val forall_intro (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). p x)
val forall_intro (#a: Type) (#p: (a -> GTot Type)) ($_: (x: a -> Lemma (p x))) : Lemma (forall (x: a). p x)
let forall_intro #a #p f = give_witness (forall_intro_squash_gtot (lemma_to_squash_gtot #a #p f))
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 97, "end_line": 102, "start_col": 0, "start_line": 102 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> FStar.Pervasives.Lemma (ensures p x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.give_witness", "Prims.l_Forall", "FStar.Classical.forall_intro_squash_gtot", "FStar.Classical.lemma_to_squash_gtot" ]
[]
false
false
true
false
false
let forall_intro #a #p f =
give_witness (forall_intro_squash_gtot (lemma_to_squash_gtot #a #p f))
false
FStar.Classical.fst
FStar.Classical.forall_impl_intro
val forall_impl_intro (#a: Type) (#p #q: (a -> GTot Type)) ($_: (x: a -> squash (p x) -> Lemma (q x))) : Lemma (forall x. p x ==> q x)
val forall_impl_intro (#a: Type) (#p #q: (a -> GTot Type)) ($_: (x: a -> squash (p x) -> Lemma (q x))) : Lemma (forall x. p x ==> q x)
let forall_impl_intro #a #p #q f = let f' (x: a) : Lemma (requires (p x)) (ensures (q x)) = f x (get_proof (p x)) in forall_intro (move_requires f')
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 130, "start_col": 0, "start_line": 128 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> _: Prims.squash (p x) -> FStar.Pervasives.Lemma (ensures q x)) -> FStar.Pervasives.Lemma (ensures forall (x: a). p x ==> q x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims.unit", "Prims.l_True", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_imp", "FStar.Classical.move_requires", "FStar.Squash.get_proof" ]
[]
false
false
true
false
false
let forall_impl_intro #a #p #q f =
let f' (x: a) : Lemma (requires (p x)) (ensures (q x)) = f x (get_proof (p x)) in forall_intro (move_requires f')
false
FStar.Classical.fst
FStar.Classical.ghost_lemma
val ghost_lemma (#a: Type) (#p: (a -> GTot Type0)) (#q: (a -> unit -> GTot Type0)) ($_: (x: a -> Lemma (requires p x) (ensures (q x ())))) : Lemma (forall (x: a). p x ==> q x ())
val ghost_lemma (#a: Type) (#p: (a -> GTot Type0)) (#q: (a -> unit -> GTot Type0)) ($_: (x: a -> Lemma (requires p x) (ensures (q x ())))) : Lemma (forall (x: a). p x ==> q x ())
let ghost_lemma #a #p #q f = let lem: x: a -> Lemma (p x ==> q x ()) = (fun x -> (* basically, the same as above *) give_proof (bind_squash (get_proof (l_or (p x) (~(p x)))) (fun (b: l_or (p x) (~(p x))) -> bind_squash b (fun (b': Prims.sum (p x) (~(p x)))...
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 148, "start_col": 0, "start_line": 133 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> FStar.Pervasives.Lemma (requires p x) (ensures q x ())) -> FStar.Pervasives.Lemma (ensures forall (x: a). p x ==> q x ())
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "Prims.l_imp", "Prims.l_True", "FStar.Squash.give_proof", "FStar.Squash.bind_squash", "Prims.l_or", "Prims.l_not", "FStar.Squash.get_proof", "Prims.sum", "FStar.Classical.give_witness" ]
[]
false
false
true
false
false
let ghost_lemma #a #p #q f =
let lem: x: a -> Lemma (p x ==> q x ()) = (fun x -> give_proof (bind_squash (get_proof (l_or (p x) (~(p x)))) (fun (b: l_or (p x) (~(p x))) -> bind_squash b (fun (b': Prims.sum (p x) (~(p x))) -> match b' with | Prims.Left...
false
FStar.Classical.fst
FStar.Classical.or_elim
val or_elim (#l #r: Type0) (#goal: (squash (l \/ r) -> Tot Type0)) (hl: (squash l -> Lemma (goal ()))) (hr: (squash r -> Lemma (goal ()))) : Lemma ((l \/ r) ==> goal ())
val or_elim (#l #r: Type0) (#goal: (squash (l \/ r) -> Tot Type0)) (hl: (squash l -> Lemma (goal ()))) (hr: (squash r -> Lemma (goal ()))) : Lemma ((l \/ r) ==> goal ())
let or_elim #l #r #goal hl hr = impl_intro_gen #l #(fun _ -> goal ()) hl; impl_intro_gen #r #(fun _ -> goal ()) hr
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 186, "start_col": 0, "start_line": 184 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
hl: (_: Prims.squash l -> FStar.Pervasives.Lemma (ensures goal ())) -> hr: (_: Prims.squash r -> FStar.Pervasives.Lemma (ensures goal ())) -> FStar.Pervasives.Lemma (ensures l \/ r ==> goal ())
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims.l_or", "Prims.unit", "Prims.l_True", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.impl_intro_gen" ]
[]
false
false
true
false
false
let or_elim #l #r #goal hl hr =
impl_intro_gen #l #(fun _ -> goal ()) hl; impl_intro_gen #r #(fun _ -> goal ()) hr
false
FStar.Classical.fst
FStar.Classical.forall_to_exists_2
val forall_to_exists_2 (#a: Type) (#p: (a -> Type)) (#b: Type) (#q: (b -> Type)) (#r: Type) ($f: (x: a -> y: b -> Lemma ((p x /\ q y) ==> r))) : Lemma (((exists (x: a). p x) /\ (exists (y: b). q y)) ==> r)
val forall_to_exists_2 (#a: Type) (#p: (a -> Type)) (#b: Type) (#q: (b -> Type)) (#r: Type) ($f: (x: a -> y: b -> Lemma ((p x /\ q y) ==> r))) : Lemma (((exists (x: a). p x) /\ (exists (y: b). q y)) ==> r)
let forall_to_exists_2 #a #p #b #q #r f = forall_intro_2 f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 173, "start_col": 0, "start_line": 173 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> y: b -> FStar.Pervasives.Lemma (ensures p x /\ q y ==> r)) -> FStar.Pervasives.Lemma (ensures (exists (x: a). p x) /\ (exists (y: b). q y) ==> r)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "Prims.l_and", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro_2" ]
[]
false
false
true
false
false
let forall_to_exists_2 #a #p #b #q #r f =
forall_intro_2 f
false
FStar.Classical.fst
FStar.Classical.exists_intro_not_all_not
val exists_intro_not_all_not (#a: Type) (#p: (a -> Type)) ($f: ((x: a -> Lemma (~(p x))) -> Lemma False)) : Lemma (exists x. p x)
val exists_intro_not_all_not (#a: Type) (#p: (a -> Type)) ($f: ((x: a -> Lemma (~(p x))) -> Lemma False)) : Lemma (exists x. p x)
let exists_intro_not_all_not (#a:Type) (#p:a -> Type) ($f: (x:a -> Lemma (~(p x))) -> Lemma False) : Lemma (exists x. p x) = let open FStar.Squash in let aux () : Lemma (requires (forall x. ~(p x))) (ensures False) [SMTPat ()] = bind_s...
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 168, "start_col": 0, "start_line": 154 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (_: (x: a -> FStar.Pervasives.Lemma (ensures ~(p x))) -> FStar.Pervasives.Lemma (ensures Prims.l_False)) -> FStar.Pervasives.Lemma (ensures exists (x: a). p x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_not", "Prims.Nil", "FStar.Pervasives.pattern", "Prims.l_False", "Prims.l_Forall", "Prims.Cons", "FStar.Pervasives.smt_pat", "FStar.Squash.bind_squash", "Prims.empty", "FStar.Squash.get_proof", "Prims.l_Exists" ]
[]
false
false
true
false
false
let exists_intro_not_all_not (#a: Type) (#p: (a -> Type)) ($f: ((x: a -> Lemma (~(p x))) -> Lemma False)) : Lemma (exists x. p x) =
let open FStar.Squash in let aux () : Lemma (requires (forall x. ~(p x))) (ensures False) [SMTPat ()] = bind_squash (get_proof (forall x. ~(p x))) (fun (g: (forall x. ~(p x))) -> bind_squash #(x: a -> GTot (~(p x))) #Prims.empty g (fun (h: (x: a -> GTot (~(p x)))) -> f h)) in...
false
FStar.Classical.fst
FStar.Classical.exists_elim
val exists_elim (goal #a: Type) (#p: (a -> Type)) (_: squash (exists (x: a). p x)) (_: (x: a{p x} -> GTot (squash goal))) : Lemma goal
val exists_elim (goal #a: Type) (#p: (a -> Type)) (_: squash (exists (x: a). p x)) (_: (x: a{p x} -> GTot (squash goal))) : Lemma goal
let exists_elim goal #a #p have f = bind_squash #_ #goal (join_squash have) (fun (| x , pf |) -> return_squash pf; f x)
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 181, "start_col": 0, "start_line": 175 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
goal: Type0 -> have: Prims.squash (exists (x: a). p x) -> f: (x: a{p x} -> Prims.GTot (Prims.squash goal)) -> FStar.Pervasives.Lemma (ensures goal)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.squash", "Prims.l_Exists", "FStar.Squash.bind_squash", "Prims.dtuple2", "FStar.Squash.join_squash", "Prims.unit", "FStar.Squash.return_squash" ]
[]
false
false
true
false
false
let exists_elim goal #a #p have f =
bind_squash #_ #goal (join_squash have) (fun (| x , pf |) -> return_squash pf; f x)
false
FStar.Classical.fst
FStar.Classical.forall_to_exists
val forall_to_exists (#a: Type) (#p: (a -> Type)) (#r: Type) ($_: (x: a -> Lemma (p x ==> r))) : Lemma ((exists (x: a). p x) ==> r)
val forall_to_exists (#a: Type) (#p: (a -> Type)) (#r: Type) ($_: (x: a -> Lemma (p x ==> r))) : Lemma ((exists (x: a). p x) ==> r)
let forall_to_exists #a #p #r f = forall_intro f
{ "file_name": "ulib/FStar.Classical.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 171, "start_col": 0, "start_line": 171 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "FStar.Classical.fst" }
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
$f: (x: a -> FStar.Pervasives.Lemma (ensures p x ==> r)) -> FStar.Pervasives.Lemma (ensures (exists (x: a). p x) ==> r)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_imp", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro" ]
[]
false
false
true
false
false
let forall_to_exists #a #p #r f =
forall_intro f
false
LowParse.Low.IfThenElse.fst
LowParse.Low.IfThenElse.clens_ifthenelse_tag
val clens_ifthenelse_tag (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) : Tot (clens p.parse_ifthenelse_t p.parse_ifthenelse_tag_t)
val clens_ifthenelse_tag (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) : Tot (clens p.parse_ifthenelse_t p.parse_ifthenelse_tag_t)
let clens_ifthenelse_tag (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) : Tot (clens p.parse_ifthenelse_t p.parse_ifthenelse_tag_t) = { clens_cond = (fun _ -> True); clens_get = (fun (x: p.parse_ifthenelse_t) -> dfst (s.serialize_ifthenelse_synth_recip x)); }
{ "file_name": "src/lowparse/LowParse.Low.IfThenElse.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 138, "start_col": 0, "start_line": 131 }
module LowParse.Low.IfThenElse include LowParse.Spec.IfThenElse include LowParse.Low.Combinators module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_ifthenelse_intro (p: parse_ifthenelse_pa...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.IfThenElse.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.Cast.fst....
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p -> LowParse.Low.Base.Spec.clens (Mkparse_ifthenelse_param?.parse_ifthenelse_t p) (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_t p)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.IfThenElse.parse_ifthenelse_param", "LowParse.Spec.IfThenElse.serialize_ifthenelse_param", "LowParse.Low.Base.Spec.Mkclens", "LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_t", "LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenels...
[]
false
false
false
false
false
let clens_ifthenelse_tag (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) : Tot (clens p.parse_ifthenelse_t p.parse_ifthenelse_tag_t) =
{ clens_cond = (fun _ -> True); clens_get = (fun (x: p.parse_ifthenelse_t) -> dfst (s.serialize_ifthenelse_synth_recip x)) }
false
Pulse.Checker.AssertWithBinders.fst
Pulse.Checker.AssertWithBinders.check
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (st:st_term { Tm_ProofHintWithBinders? st.term }) (check:check_t) : T.Tac (checker_result_t g pre post_hint)
val check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (st:st_term { Tm_ProofHintWithBinders? st.term }) (check:check_t) : T.Tac (checker_result_t g pre post_hint)
let check (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (st:st_term { Tm_ProofHintWithBinders? st.term }) (check:check_t) : T.Tac (checker_result_t g pre post_hint) = let g = push_context g "check_assert" st.range in let Tm_ProofHintWith...
{ "file_name": "lib/steel/pulse/Pulse.Checker.AssertWithBinders.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 50, "end_line": 464, "start_col": 0, "start_line": 351 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Env.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.Naming.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.Show.fst.checked", "Pulse.Runtime...
[ { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": false, "full_module": "Pulse.Show", "short_module": null }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> pre: Pulse.Syntax.Base.term -> pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop -> post_hint: Pulse.Typing.post_hint_opt g -> res_ppname: Pulse.Syntax.Base.ppname -> st: Pulse.Syntax.Base.st_term{Tm_ProofHintWithBinders? (Mkst_term?.term st)} -> ...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.post_hint_opt", "Pulse.Syntax.Base.ppname", "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Syntax.Base.uu___is_Tm_ProofHintWithBinders", "Pulse.Syntax.Base.__proj__Mkst_term__...
[]
false
true
false
false
false
let check (g: env) (pre: term) (pre_typing: tot_typing g pre tm_vprop) (post_hint: post_hint_opt g) (res_ppname: ppname) (st: st_term{Tm_ProofHintWithBinders? st.term}) (check: check_t) : T.Tac (checker_result_t g pre post_hint) =
let g = push_context g "check_assert" st.range in let Tm_ProofHintWithBinders { hint_type = hint_type ; binders = bs ; t = body } = st.term in match hint_type with | WILD -> let st = check_wild g pre st in check g pre pre_typing post_hint res_ppname st | SHOW_PROOF_STATE r -> let open FStar.Stubs.Pprint in let ...
false
Lib.Sequence.fst
Lib.Sequence.member
val member: #a:eqtype -> #len: size_nat -> a -> lseq a len -> Tot bool
val member: #a:eqtype -> #len: size_nat -> a -> lseq a len -> Tot bool
let member #a #len x l = Seq.count x l > 0
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 37, "start_col": 0, "start_line": 37 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> l: Lib.Sequence.lseq a len -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "Lib.IntTypes.size_nat", "Lib.Sequence.lseq", "Prims.op_GreaterThan", "FStar.Seq.Properties.count", "Prims.bool" ]
[]
false
false
false
false
false
let member #a #len x l =
Seq.count x l > 0
false
Lib.Sequence.fst
Lib.Sequence.map2_inner
val map2_inner : f: (_: a -> _: b -> c) -> s1: Lib.Sequence.lseq a len -> s2: Lib.Sequence.lseq b len -> i: Lib.IntTypes.size_nat{i < len} -> c
let map2_inner (#a:Type) (#b:Type) (#c:Type) (#len:size_nat) (f:(a -> b -> Tot c)) (s1:lseq a len) (s2:lseq b len) (i:size_nat{i < len}) = f s1.[i] s2.[i]
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 118, "start_col": 0, "start_line": 116 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> _: b -> c) -> s1: Lib.Sequence.lseq a len -> s2: Lib.Sequence.lseq b len -> i: Lib.IntTypes.size_nat{i < len} -> c
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.Sequence.lseq", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.op_String_Access" ]
[]
false
false
false
false
false
let map2_inner (#a #b #c: Type) (#len: size_nat) (f: (a -> b -> Tot c)) (s1: lseq a len) (s2: lseq b len) (i: size_nat{i < len}) =
f s1.[ i ] s2.[ i ]
false
Lib.Sequence.fst
Lib.Sequence.map_inner
val map_inner : f: (_: a -> b) -> s: Lib.Sequence.lseq a len -> i: Lib.IntTypes.size_nat{i < len} -> b
let map_inner (#a:Type) (#b:Type) (#len:size_nat) (f:(a -> Tot b)) (s:lseq a len) (i:size_nat{i < len}) = f s.[i]
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 9, "end_line": 107, "start_col": 0, "start_line": 105 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> b) -> s: Lib.Sequence.lseq a len -> i: Lib.IntTypes.size_nat{i < len} -> b
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.Sequence.lseq", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.op_String_Access" ]
[]
false
false
false
false
false
let map_inner (#a #b: Type) (#len: size_nat) (f: (a -> Tot b)) (s: lseq a len) (i: size_nat{i < len}) =
f s.[ i ]
false
Hacl.Impl.K256.Verify.fst
Hacl.Impl.K256.Verify.ecdsa_verify_avoid_finv
val ecdsa_verify_avoid_finv: p:point -> r:QA.qelem -> Stack bool (requires fun h -> live h p /\ live h r /\ disjoint p r /\ point_inv h p /\ QA.qe_lt_q h r /\ 0 < QA.qas_nat h r /\ not (S.is_proj_point_at_inf (point_eval h p))) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ (let (_X, _Y, _Z) = point_ev...
val ecdsa_verify_avoid_finv: p:point -> r:QA.qelem -> Stack bool (requires fun h -> live h p /\ live h r /\ disjoint p r /\ point_inv h p /\ QA.qe_lt_q h r /\ 0 < QA.qas_nat h r /\ not (S.is_proj_point_at_inf (point_eval h p))) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ (let (_X, _Y, _Z) = point_ev...
let ecdsa_verify_avoid_finv p r = let h0 = ST.get () in let x, y, z = getx p, gety p, getz p in push_frame (); let r_bytes = create 32ul (u8 0) in let r_fe = create_felem () in let tmp_q = create_felem () in let tmp_x = create_felem () in QA.store_qelem r_bytes r; load_felem r_fe r_bytes; let h1 =...
{ "file_name": "code/k256/Hacl.Impl.K256.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 134, "start_col": 0, "start_line": 84 }
module Hacl.Impl.K256.Verify open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module KL = Spec.K256.Lemmas open Hacl.K256.Field open Hacl.Impl.K256.Point open Hacl.Impl.K256.PointMul open Hacl.Impl.K256.GLV module ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.Lemmas.fsti.checked", "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Scalar.fsti.checke...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": true, "full_module": "Hacl.Impl.K256.Qinv", "short_module": "QI" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Impl.K256.Point.point -> r: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.K256.Point.point", "Hacl.K256.Scalar.qelem", "Hacl.K256.Field.felem", "Prims.unit", "Prims._assert", "Lib.Buffer.modifies0", "Prims.bool", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Prims.l_iff", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus...
[]
false
true
false
false
false
let ecdsa_verify_avoid_finv p r =
let h0 = ST.get () in let x, y, z = getx p, gety p, getz p in push_frame (); let r_bytes = create 32ul (u8 0) in let r_fe = create_felem () in let tmp_q = create_felem () in let tmp_x = create_felem () in QA.store_qelem r_bytes r; load_felem r_fe r_bytes; let h1 = ST.get () in assert (modifies (loc r_fe) h0 h1); let h2...
false
Lib.Sequence.fst
Lib.Sequence.for_all
val for_all:#a:Type -> #len:size_nat -> (a -> Tot bool) -> lseq a len -> bool
val for_all:#a:Type -> #len:size_nat -> (a -> Tot bool) -> lseq a len -> bool
let for_all #a #len f x = Seq.for_all f x
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 123, "start_col": 0, "start_line": 123 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Prims.bool) -> x: Lib.Sequence.lseq a len -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.bool", "Lib.Sequence.lseq", "FStar.Seq.Properties.for_all" ]
[]
false
false
false
false
false
let for_all #a #len f x =
Seq.for_all f x
false
Lib.Sequence.fst
Lib.Sequence.concat
val concat: #a:Type -> #len0:size_nat -> #len1:size_nat{len0 + len1 <= max_size_t} -> s0:lseq a len0 -> s1:lseq a len1 -> Tot (s2:lseq a (len0 + len1){to_seq s2 == Seq.append (to_seq s0) (to_seq s1)})
val concat: #a:Type -> #len0:size_nat -> #len1:size_nat{len0 + len1 <= max_size_t} -> s0:lseq a len0 -> s1:lseq a len1 -> Tot (s2:lseq a (len0 + len1){to_seq s2 == Seq.append (to_seq s0) (to_seq s1)})
let concat #a #len0 #len1 s0 s1 = Seq.append s0 s1
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 13, "start_col": 0, "start_line": 13 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s0: Lib.Sequence.lseq a len0 -> s1: Lib.Sequence.lseq a len1 -> s2: Lib.Sequence.lseq a (len0 + len1) { Lib.Sequence.to_seq s2 == FStar.Seq.Base.append (Lib.Sequence.to_seq s0) (Lib.Sequence.to_seq s1) }
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "FStar.Seq.Base.append", "Prims.eq2", "FStar.Seq.Base.seq", "Lib.Sequence.to_seq" ]
[]
false
false
false
false
false
let concat #a #len0 #len1 s0 s1 =
Seq.append s0 s1
false
Lib.Sequence.fst
Lib.Sequence.to_list
val to_list: #a:Type -> s:seq a -> Tot (l:list a{List.Tot.length l = length s /\ l == Seq.seq_to_list s})
val to_list: #a:Type -> s:seq a -> Tot (l:list a{List.Tot.length l = length s /\ l == Seq.seq_to_list s})
let to_list #a s = Seq.seq_to_list s
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 15, "start_col": 0, "start_line": 15 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Lib.Sequence.seq a -> l: Prims.list a {FStar.List.Tot.Base.length l = Lib.Sequence.length s /\ l == FStar.Seq.Base.seq_to_list s}
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.seq", "FStar.Seq.Base.seq_to_list", "Prims.list", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "FStar.List.Tot.Base.length", "Lib.Sequence.length", "Prims.eq2" ]
[]
false
false
false
false
false
let to_list #a s =
Seq.seq_to_list s
false
LowParse.Low.IfThenElse.fst
LowParse.Low.IfThenElse.accessor_ifthenelse_payload
val accessor_ifthenelse_payload (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) (j: jumper p.parse_ifthenelse_tag_parser) (b: bool) : Tot (accessor (gaccessor_ifthenelse_payload s b))
val accessor_ifthenelse_payload (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) (j: jumper p.parse_ifthenelse_tag_parser) (b: bool) : Tot (accessor (gaccessor_ifthenelse_payload s b))
let accessor_ifthenelse_payload (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) (j: jumper p.parse_ifthenelse_tag_parser) (b: bool) : Tot (accessor (gaccessor_ifthenelse_payload s b)) = fun #rrel #rel -> accessor_ifthenelse_payload' s j b #rrel #rel
{ "file_name": "src/lowparse/LowParse.Low.IfThenElse.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 65, "end_line": 292, "start_col": 0, "start_line": 286 }
module LowParse.Low.IfThenElse include LowParse.Spec.IfThenElse include LowParse.Low.Combinators module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_ifthenelse_intro (p: parse_ifthenelse_pa...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.IfThenElse.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.Cast.fst....
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p -> j: LowParse.Low.Base.jumper (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_parser p) -> b: Prims.bool -> LowParse.Low.Base.accessor (LowParse.Low.IfThenElse.gaccessor_ifthenelse_payload s b)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.IfThenElse.parse_ifthenelse_param", "LowParse.Spec.IfThenElse.serialize_ifthenelse_param", "LowParse.Low.Base.jumper", "LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_kind", "LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenel...
[]
false
false
false
false
false
let accessor_ifthenelse_payload (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p) (j: jumper p.parse_ifthenelse_tag_parser) (b: bool) : Tot (accessor (gaccessor_ifthenelse_payload s b)) =
fun #rrel #rel -> accessor_ifthenelse_payload' s j b #rrel #rel
false
Lib.Sequence.fst
Lib.Sequence.index
val index: #a:Type -> #len:size_nat -> s:lseq a len -> i:size_nat{i < len} -> Tot (r:a{r == Seq.index (to_seq s) i})
val index: #a:Type -> #len:size_nat -> s:lseq a len -> i:size_nat{i < len} -> Tot (r:a{r == Seq.index (to_seq s) i})
let index #a #len s n = Seq.index s n
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 9, "start_col": 0, "start_line": 9 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Lib.Sequence.lseq a len -> i: Lib.IntTypes.size_nat{i < len} -> r: a{r == FStar.Seq.Base.index (Lib.Sequence.to_seq s) i}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.Sequence.lseq", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.eq2", "Lib.Sequence.to_seq" ]
[]
false
false
false
false
false
let index #a #len s n =
Seq.index s n
false
Lib.Sequence.fst
Lib.Sequence.create
val create: #a:Type -> len:size_nat -> init:a -> Tot (s:lseq a len{to_seq s == Seq.create len init /\ (forall (i:nat). {:pattern (index s i)} i < len ==> index s i == init)})
val create: #a:Type -> len:size_nat -> init:a -> Tot (s:lseq a len{to_seq s == Seq.create len init /\ (forall (i:nat). {:pattern (index s i)} i < len ==> index s i == init)})
let create #a len init = Seq.create #a len init
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 11, "start_col": 0, "start_line": 11 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat -> init: a -> s: Lib.Sequence.lseq a len { Lib.Sequence.to_seq s == FStar.Seq.Base.create len init /\ (forall (i: Prims.nat). {:pattern Lib.Sequence.index s i} i < len ==> Lib.Sequence.index s i == init) }
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "FStar.Seq.Base.create", "Lib.Sequence.lseq", "Prims.l_and", "Prims.eq2", "FStar.Seq.Base.seq", "Lib.Sequence.to_seq", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.index" ]
[]
false
false
false
false
false
let create #a len init =
Seq.create #a len init
false
Lib.Sequence.fst
Lib.Sequence.mapi_inner
val mapi_inner : f: (i: Prims.nat{i < len} -> _: a -> b) -> s: Lib.Sequence.lseq a len -> i: Lib.IntTypes.size_nat{i < len} -> b
let mapi_inner (#a:Type) (#b:Type) (#len:size_nat) (f:(i:nat{i < len} -> a -> b)) (s:lseq a len) (i:size_nat{i < len}) = f i s.[i]
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 99, "start_col": 0, "start_line": 97 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (i: Prims.nat{i < len} -> _: a -> b) -> s: Lib.Sequence.lseq a len -> i: Lib.IntTypes.size_nat{i < len} -> b
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.lseq", "Lib.Sequence.op_String_Access" ]
[]
false
false
false
false
false
let mapi_inner (#a #b: Type) (#len: size_nat) (f: (i: nat{i < len} -> a -> b)) (s: lseq a len) (i: size_nat{i < len}) =
f i s.[ i ]
false