Posts

Using polymorphic functions in definitions

Image
1 Following my question here, I have several functions with different types of arguments which I defined the Inductive type formula on them. Is there anyway to use Inductive formula in compute_formula . I am doing this to make proving easier by decreasing the number of constructors that I have to handle in proofs. Thank you. Fixpoint add (n:type1) (m:type2): type3 := match n with (*body for add*) end. Fixpoint mul (n:type1) (m:type4): type5 := match n with (*body for mul*) end. Inductive formula : Type := | Formula {A B}: type1-> A -> (type1->A->B) -> formula. (* How should I write this *) Definition compute_formula {A B} (f: formula) (extraArg:A) : B := match f with |Formula {A B} part1 part2 part3=> if (A isof type2 && B isof type3) then ...

What do these square notes mean (in the left hand)?

Image
4 What are this notes about? I had to learn this piece in 8-27-1963 in my first year at the music conservatory in Bern. The notes look like square notation, but the music was written in 20th. century. It’s nr. 102 of Bela Bartok’s “mikrokosmos”. piano notation share | improve this question edited 1 hour ago Albrecht Hügli asked 2 hours ago Albrecht Hügli Albrecht Hügli 1,055 1 18 ...