]> matita.cs.unibo.it Git - helm.git/commit
Defs in context may now have an optional type (when unknown).
authorStefano Zacchiroli <zack@upsilon.cc>
Fri, 5 Sep 2003 15:36:28 +0000 (15:36 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Fri, 5 Sep 2003 15:36:28 +0000 (15:36 +0000)
commitc706b1cb2c7cbdd23a3281d35d3f0b10c3a684cf
tree28ee4eb9a2d421aca3a4a60629ec367e3942da1d
parenta2f4fa2a6a4b5dbd61ded904233c24ebc9a16c11
Defs in context may now have an optional type (when unknown).

During type-checking, LetIn are pushed in the context as Defs with a known
type. When a Rel pointing to a Def in the context is found, the already
computed type (if present) is used instead of re-typing the body of the
LetIn. As a result, we get a (possibly exponential) decrease in the complexity
of the typing algorithm.
helm/gTopLevel/logicalOperations.ml
helm/ocaml/cic_omdoc/cic2acic.ml
helm/ocaml/cic_omdoc/content2cic.ml
helm/ocaml/cic_omdoc/doubleTypeInference.ml
helm/ocaml/cic_omdoc/doubleTypeInference.mli
helm/ocaml/cic_omdoc/eta_fixing.ml