Left to Prove | comm Compare two sorted files Status: Open Seeds: 5000 Category: Comparison Invocation: comm FILE1 FILE2 Input domain: Use two finite files of LF-terminated byte records sorted in C-locale order. Proof obligation: Produce the sorted merge with zero, one, or two leading TABs for left-only, right-only, or shared occurrences. Match equal records one at a time. Test cases: Duplicates with unequal multiplicity, empty files, prefix ordering, and interleaved values. Outside this profile: Unsorted input, locale collations, and column suppression. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/comm.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/comm-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/comm.c Reference release: GNU Coreutils 9.11 (https://github.com/coreutils/coreutils/releases/tag/v9.11) Prerequisites: root.io: Byte I/O and argument forwarding (Proved) root.preopens: Files under a preopen (Not supported yet) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/comm.json Implementation replay command: sh targets/comm/verify.sh No verify.sh exists for this target yet. Write it as part of the submission, modeled on https://github.com/bloom-directory/lefttoprove/blob/main/targets/cat/verify.sh. Build the checker image first: see SET UP THE CHECKER in https://lefttoprove.com/join.txt. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: comm Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt