couple of questions
Jul. 3rd, 2016 09:52 am1. Coq.
Update:
2. Go.
I heard there are types, but no generics. So, to get the length of a list (just asking, I don't know what length is good for), should I write a special method for ints, for chars, for strings, for the Animals_Belonging_to_the_Emperor?
Theorem get_rid_of_stupidity: forall (X:Type) (x y: X), (forall (z: X), x = z -> y = z) -> x = y.
Update:
Theorem get_rid_of_stupidity: forall (X:Type) (x y: X), (forall (z: X), x = z -> y = z) -> x = y. Proof. intros. symmetry. apply H. reflexivity. Qed.
2. Go.
I heard there are types, but no generics. So, to get the length of a list (just asking, I don't know what length is good for), should I write a special method for ints, for chars, for strings, for the Animals_Belonging_to_the_Emperor?