Deducteam / lambdapi

Proof assistant based on the λΠ-calculus modulo rewriting
Other
265 stars 35 forks source link

Printing of unification rules fails #1010

Open fblanqui opened 11 months ago

fblanqui commented 11 months ago

Printing unification rules by using print unif_rule or verbose fails. The problem is in Term.term_of_rhs: r.arities.(i) is invalid if i corresponds to a RHS extra variable. Contrary to what is said in term.ml, r.arities does not provide the arities of the pattern variables bound in the RHS but those in the LHS only. And the arity is not recorded in scope.ml in the cases M_URHS. In the case of P_Wild, one could use List.length env.