Advertisement
Guest User

Untitled

a guest
May 14th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.42 KB | None | 0 0
  1. Require Import Program Arith.
  2.  
  3. Program Fixpoint foo (n: nat) : Prop :=
  4.     match n with
  5.     | O => True
  6.     | S p => match Nat.eqb p 0 with true => _ | false => _ end
  7.     end.
  8.  
  9. Next Obligation. (* Has Heq_anonymous: true = (p =? 0) *)
  10.  
  11. Program Fixpoint foo (n: nat) : Prop :=
  12.     match n with
  13.     | O => True
  14.     | S p => if eq_nat_dec p 0 then _ else _
  15.     end.
  16.  
  17. Next Obligation. (* Doesn't have Heq_anonymous *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement