procedure Main is
   type Table is array (1 .. 10) of Integer;
   T : constant Table := (others => 0);

   --  (K is a key the caller looked up, which is an index of T; no contract says so here)
   function Read (K : Integer) return Integer is
      X : Integer;
   begin
      X := T (K);
      pragma Annotate (GNATprove, False_Positive, "index", "K comes from Lookup, which only returns indices of T");
      return X;
   end Read;
begin
   null;
end Main;
