https://github.com/EasyCrypt/easycrypt
- HEAD
- refs/heads/PKEROM
- refs/heads/aprhl
- refs/heads/bdep
- refs/heads/csidh-group-action
- refs/heads/deploy-annotations
- refs/heads/deploy-axiom-clone-subcommand
- refs/heads/deploy-better-dlet
- refs/heads/deploy-better-int-red
- refs/heads/deploy-better-print
- refs/heads/deploy-better-printing
- refs/heads/deploy-binomial-law
- refs/heads/deploy-cdh-rsr
- refs/heads/deploy-chachapoly
- refs/heads/deploy-chernoff
- refs/heads/deploy-clean-pow
- refs/heads/deploy-codepos-fix
- refs/heads/deploy-crt
- refs/heads/deploy-cyclic
- refs/heads/deploy-debug-mark
- refs/heads/deploy-deep-match
- refs/heads/deploy-default-nosmt
- refs/heads/deploy-derandomize
- refs/heads/deploy-dexcepted-sampling
- refs/heads/deploy-djoin-dlist
- refs/heads/deploy-docker
- refs/heads/deploy-dword-is-dlist
- refs/heads/deploy-eager-rp
- refs/heads/deploy-easyPQC
- refs/heads/deploy-eqv-quotient
- refs/heads/deploy-extended-tests
- refs/heads/deploy-feature-127
- refs/heads/deploy-fingroup
- refs/heads/deploy-fix-#154
- refs/heads/deploy-fix-142
- refs/heads/deploy-fix-17390
- refs/heads/deploy-fix-292
- refs/heads/deploy-fmatch
- refs/heads/deploy-for
- refs/heads/deploy-general-prf-distinguisher
- refs/heads/deploy-genhave
- refs/heads/deploy-global-union
- refs/heads/deploy-hybrid0
- refs/heads/deploy-implicit-arguments
- refs/heads/deploy-improve-matching
- refs/heads/deploy-indexed-types
- refs/heads/deploy-instance-adv
- refs/heads/deploy-lamport
- refs/heads/deploy-license
- refs/heads/deploy-log
- refs/heads/deploy-match
- refs/heads/deploy-match-in-stmt
- refs/heads/deploy-match-in=prog-logic-houra
- refs/heads/deploy-mem
- refs/heads/deploy-mem-in-types
- refs/heads/deploy-minr-maxr
- refs/heads/deploy-momemtum
- refs/heads/deploy-multi-apply
- refs/heads/deploy-mutual-inductives
- refs/heads/deploy-named-goals
- refs/heads/deploy-nested-tuples
- refs/heads/deploy-new-cost
- refs/heads/deploy-new-cost2
- refs/heads/deploy-new-rom
- refs/heads/deploy-nosmt-ops
- refs/heads/deploy-oaep
- refs/heads/deploy-oracle-pke
- refs/heads/deploy-packaging
- refs/heads/deploy-pattern-in-rewrite
- refs/heads/deploy-poly-record
- refs/heads/deploy-poly-reduce
- refs/heads/deploy-polymorphic-module
- refs/heads/deploy-ppe-with-full-path
- refs/heads/deploy-prod-fintype
- refs/heads/deploy-project-file
- refs/heads/deploy-quantum
- refs/heads/deploy-quantum-upgrade
- refs/heads/deploy-reduce-decimal
- refs/heads/deploy-reduction
- refs/heads/deploy-refine-birthday
- refs/heads/deploy-remove-cut
- refs/heads/deploy-rewrite-patterns
- refs/heads/deploy-rigid-auto-rewrite
- refs/heads/deploy-rigid-opt
- refs/heads/deploy-ring-ideal
- refs/heads/deploy-ring-with-dfl-inv
- refs/heads/deploy-rmap
- refs/heads/deploy-rom-nobranching
- refs/heads/deploy-search
- refs/heads/deploy-sem
- refs/heads/deploy-sigmaprotocols
- refs/heads/deploy-simpler-rp
- refs/heads/deploy-simpler-xpaths
- refs/heads/deploy-solveeq
- refs/heads/deploy-subst
- refs/heads/deploy-subst-crush
- refs/heads/deploy-tactic-in-rewrite
- refs/heads/deploy-taylor
- refs/heads/deploy-tc
- refs/heads/deploy-theory-matrix
- refs/heads/deploy-theory-matrix-ring
- refs/heads/deploy-theory-monalg
- refs/heads/deploy-theory-symmetric-group
- refs/heads/deploy-tighter-birthday
- refs/heads/deploy-trailing-whitespaces
- refs/heads/deploy-transeq
- refs/heads/deploy-trivial-in-low-api
- refs/heads/deploy-tutorial
- refs/heads/deploy-unit-ro
- refs/heads/deploy-update-readme
- refs/heads/deploy-upto
- refs/heads/deploy-warn-on-noop-change
- refs/heads/deploy-weak-dep-types
- refs/heads/deploy-wf
- refs/heads/deploy-why3-1.4
- refs/heads/deploy-wp-kw
- refs/heads/deploy-xreal
- refs/heads/dilithium
- refs/heads/draft-typeclass
- refs/heads/ellora
- refs/heads/extend-external-ci
- refs/heads/feature-micromega
- refs/heads/fix-360
- refs/heads/fix-457
- refs/heads/flake-nix
- refs/heads/forall-intro-in-proof-term
- refs/heads/fun-tuple
- refs/heads/glob-rec
- refs/heads/inlined-doc
- refs/heads/latex-style
- refs/heads/libpath
- refs/heads/main
- refs/heads/match-no-tcb
- refs/heads/mayo
- refs/heads/memory
- refs/heads/mpoly
- refs/heads/nix-opam-flake
- refs/heads/opsem
- refs/heads/proc-func-typing
- refs/heads/r2022.04-01
- refs/heads/remove-pinned-provers
- refs/heads/rewrite-in-stmt-assign
- refs/heads/rewrite-in-stmt-assign-2
- refs/heads/simple-projects
- refs/heads/simplify-auto-unfold
- refs/heads/sub-patterns
- refs/heads/theory_finite_field
- refs/tags/ccs14-sfe
- refs/tags/doc
- refs/tags/evoting
- refs/tags/r2023.09
- refs/tags/r2024.01
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: 955e909402cf7a5dc3dc55e4de13bbf373edd920 authored by Pierre-Yves Strub on 30 July 2015, 08:20:28 UTC
NewList: last_ -> last.
NewList: last_ -> last.
Tip revision: 955e909
WhileSampling.ec
require import Real Distr.
type t.
op sample : t distr.
axiom lossless : weight sample = 1%r.
op test : t -> bool.
module Sample = {
proc sample () : t = {
var r : t;
r = $sample;
while (test r) {
r = $sample;
}
return r;
}
}.
axiom pr_ntest : 0%r < (mu sample (predC test)).
lemma Sample_lossless : islossless Sample.sample.
proof.
proc.
seq 1 : true => //.
rnd;skip;smt.
while true (if test r then 1 else 0) 1 (mu sample (predC test)) => //;first smt.
intros Hrec.
seq 1 : true => //.
by rnd;skip;smt.
by rnd;skip;smt.
split;[apply pr_ntest | intros z].
conseq * (_ : true ==> (predC test) r);first smt.
rnd;skip;progress;apply mu_sub => x //.
qed.