A dragon is green if at least one of its parents is green
I have
∀X⋅dragon(X) ∧ green (X) ⇒ ∃Y⋅childOf(Y,X)∧green(X)
Is this correct?
A dragon is green if at least one of its parents is green
I have
∀X⋅dragon(X) ∧ green (X) ⇒ ∃Y⋅childOf(Y,X)∧green(X)
Is this correct?
No, you said: "Everything that is a dragon and green, will be green and has a child."† That is assuming that the scope of the universal is meant to encompass the entire line as I've indicated.
(† I read $\textsf{childOf}(Y,X)$ as "$Y$ is a child of $X$")
Note: the required sentence is of the form: "$A$ if $B$", not "$A$ only if $B$".
You want to say: "Everything, which is a dragon and has a parent who is green, will be green."