jaccokrijnen / plutus-cert

0 stars 2 forks source link

Change `value` to `result` #37

Open jaccokrijnen opened 1 year ago

jaccokrijnen commented 1 year ago

Right now, a value has a constructor for Error terms (V_Error), which is bad naming. Instead, we should remove the constructor and introduce a new type

Inductive result : Term -> Prop :=
  | R_value : forall t, value t -> result t
  | R_error : forall ty, result (Error ty)

This will simplify RG which should only contain values, not errors.