changeset 335:bc5015b89dd2

Name disjointness check changed to case insensitive
author Adam Chlipala <adamc@hcoop.net>
date Sat, 13 Sep 2008 19:53:07 -0400
parents 9601c717d2f3
children 34847732cefc
files src/disjoint.sml
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/disjoint.sml	Sat Sep 13 19:49:53 2008 -0400
+++ b/src/disjoint.sml	Sat Sep 13 19:53:07 2008 -0400
@@ -143,9 +143,11 @@
                   PM.insert (denv', pieceEnter p, PS.map pieceEnter pset))
     PM.empty denv
 
+val lowercase = CharVector.map Char.toLower
+
 fun prove1 denv (p1, p2) =
     case (p1, p2) of
-        ((NameC s1, _), (NameC s2, _)) => s1 <> s2
+        ((NameC s1, _), (NameC s2, _)) => lowercase s1 <> lowercase s2
       | _ =>
         case PM.find (denv, p1) of
             NONE => false