Library zoo.program_logic.diverge
Require Import zoo.prelude.
Require Import zoo.base.
Require Import zoo.options.
Definition diverge : val :=
πΏπ²π° "diverge" β½ β
"diverge" ().
Notation "'π±πΆππ²πΏπ΄π²'" :=
diverge
: expr_scope.
Section zooΫ°G.
Context `{zooΫ°G : !ZooG Ξ£}.
Implicit Type Ξ¦ : val β iProp Ξ£.
Lemma divergeο½°spec E Ξ¦ :
β’ WP π±πΆππ²πΏπ΄π² () @ E {{ Ξ¦ }}.
#[global] Instance divergeο½°diaspec E :
DIASPEC
{{
True
}}
π±πΆππ²πΏπ΄π² ()%V @ E
{{
RET ();
False
}}.
End zooΫ°G.
#[global] Opaque diverge.
Require Import zoo.base.
Require Import zoo.options.
Definition diverge : val :=
πΏπ²π° "diverge" β½ β
"diverge" ().
Notation "'π±πΆππ²πΏπ΄π²'" :=
diverge
: expr_scope.
Section zooΫ°G.
Context `{zooΫ°G : !ZooG Ξ£}.
Implicit Type Ξ¦ : val β iProp Ξ£.
Lemma divergeο½°spec E Ξ¦ :
β’ WP π±πΆππ²πΏπ΄π² () @ E {{ Ξ¦ }}.
#[global] Instance divergeο½°diaspec E :
DIASPEC
{{
True
}}
π±πΆππ²πΏπ΄π² ()%V @ E
{{
RET ();
False
}}.
End zooΫ°G.
#[global] Opaque diverge.