--  Arrays of discrete components are ordered lexicographically (RM 4.5.2(26)): proved, and
--  run in memory, natively and in the interpreter alike (verada-core.md A.7 item 5).
with Ada.Text_IO;
procedure Main with SPARK_Mode is
   function Less (A, B : String) return Boolean is (A < B);
   X : constant String := "abc";
   Y : constant String := "abd";
begin
   pragma Assert (Less (X, Y));
   pragma Assert (not Less (Y, X));
   pragma Assert (Less ("ab", "abc"));
   Ada.Text_IO.Put_Line (Boolean'Image (Less (X, Y)) & Boolean'Image (Less ("b", "abc")));
end Main;
