val aff_point_eval_seq (p: aff_point_seq{aff_point_inv_seq p}) : S.aff_point
let aff_point_eval_seq (p:aff_point_seq{aff_point_inv_seq p}) : S.aff_point =
  as_nat5 (as_felem5_lseq (LSeq.sub p 0 5)),
  as_nat5 (as_felem5_lseq (LSeq.sub p 5 5))
val aff_point_eval_seq (p: aff_point_seq{aff_point_inv_seq p}) : S.aff_point
let aff_point_eval_seq (p: aff_point_seq{aff_point_inv_seq p}) : S.aff_point =
as_nat5 (as_felem5_lseq (LSeq.sub p 0 5)), as_nat5 (as_felem5_lseq (LSeq.sub p 5 5))
Hacl.Impl.K256.Point.fsti.checked
Spec.K256.fst.checked prims.fst.checked Lib.Sequence.fsti.checked Lib.IntTypes.fsti.checked Lib.Buffer.fsti.checked Hacl.K256.Field.fsti.checked FStar.UInt32.fsti.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.Mul.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked
Hacl.Impl.K256.Point.fsti
Hacl.Impl.K256.Point.aff_point_seq Hacl.Impl.K256.Point.aff_point_inv_seq FStar.Pervasives.Native.Mktuple2 Spec.K256.PointOps.felem Hacl.Spec.K256.Field52.Definitions.as_nat5 Hacl.Impl.K256.Point.as_felem5_lseq Lib.Sequence.sub Lib.IntTypes.uint64 Spec.K256.PointOps.aff_point
module Hacl.Impl.K256.Point

open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul

open Lib.IntTypes
open Lib.Buffer

module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence

module S = Spec.K256
open Hacl.K256.Field

#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"

inline_for_extraction noextract
let as_felem5_lseq (s:LSeq.lseq uint64 5) : felem5 =
  let open Lib.Sequence in
  (s.[0],s.[1],s.[2],s.[3],s.[4])


///  Affine coordinates

inline_for_extraction noextract
let aff_point_seq = LSeq.lseq uint64 10

let aff_point_inv_seq (p:aff_point_seq) =
  inv_fully_reduced5 (as_felem5_lseq (LSeq.sub p 0 5)) /\
  inv_fully_reduced5 (as_felem5_lseq (LSeq.sub p 5 5))
val aff_point_eval_seq (p: aff_point_seq{aff_point_inv_seq p}) : S.aff_point
p: Hacl.Impl.K256.Point.aff_point_seq{Hacl.Impl.K256.Point.aff_point_inv_seq p}
  -> Spec.K256.PointOps.aff_point