Also ich bin wirklich neu in Coq, funktionale Programmierung insgesamt, und ich versuche, die topologische Definition der Kontinuität in Coq auszudrücken. Ich verwende diese code, um eine Topologie in Coq zu definieren. Mein bester Versuch Kontinuität zum Ausdruck gegeben eine bestimmte Funktion ist,Topologische Definition von Continuous in Coq
Definition Continuous (X:Type)(TX:Topology X)(Y:Type)(TY:Topology Y)(f:X->Y):=
forall V, exists U, all y:V, some x:U, f x = y.
Ich erhalte den Fehler
„Der Begriff‚fx‘hat Typ‚Y‘, während erwartet wird, Typ haben "Prop".
Keine Ahnung, was zu tun ist, jede Hilfe sehr geschätzt wird.
Brilliant! Vielen Dank. – aaron