Advertisement
tinyevil

Untitled

Feb 22nd, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Inductive NativeSize : nat->Prop :=
  2. | n_1 : NativeSize 1
  3. | n_8 : NativeSize 8
  4. | n_16 : NativeSize 16
  5. | n_32 : NativeSize 32
  6. | n_64 : NativeSize 64.
  7.  
  8. Inductive In : nat -> list nat -> Prop :=
  9. | in_ev : forall x xs, In x (x::xs)
  10. | in_cons : forall x y xs, In x xs -> In x (y::xs).
  11.  
  12. Fixpoint In (n:nat) (xs:list nat) : Prop :=
  13. match xs with
  14. | nil => False
  15. | x::xs => (x = n) \/ In n xs
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement