Revert "manip trees: deleted what I think was a spurious line"
[lambda.git] / hints / assignment_7_hint_6.mdwn
index d69c92e..38f6c2e 100644 (file)
@@ -27,6 +27,8 @@
                                in unit_set new_dpm;;
 
 
+       **Note: Simon pointed out a subtle error in this code, which we will look into fixing. At the moment, the subtle error is still there.**
+
 *      Representing \[[and φ ψ]] is simple:
 
                let and_op (phi : clause) (psi : clause) : clause =
@@ -39,7 +41,7 @@
                let or_op (phi : clause) (psi : clause) =
             fun one_dpm -> unit_set (
                 fun (r, h) ->
-                                       in let truth_value' = (
+                                       let truth_value' = (
                                                truths (phi one_dpm) (r, h) <> [] ||
                                                truths (bind_set (negate_op phi one_dpm) psi) (r, h) <> []
                                        ) in (truth_value', r, h))
@@ -47,7 +49,7 @@
                let if_op (phi : clause) (psi : clause) : clause =
             fun one_dpm -> unit_set (
               fun (r, h) ->
-                                       in let truth_value' = List.for_all (fun one_dpm ->
+                                       let truth_value' = List.for_all (fun one_dpm ->
                                                        let (truth_value, _, _) = one_dpm (r, h)
                                                        in truth_value = false || truths (psi one_dpm) (r, h) <> []
                                                ) (phi one_dpm)