Left to Prove | join Join two sorted tables by key Status: Open Seeds: 5000 Category: Text processing Invocation: join FILE1 FILE2 Input domain: Use C-locale files sorted on their first field. Every LF-terminated row has exactly two nonempty fields separated by a single space. Proof obligation: For each matching key emit the Cartesian product of the corresponding rows, with the key and their two payloads separated by spaces. Preserve input order within each match group. Test cases: Duplicate keys on both sides, unmatched keys, and empty inputs. Outside this profile: Alternative fields, custom delimiters, missing fields, and unsorted input. Specification: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/join.html Reference: https://www.gnu.org/software/coreutils/manual/html_node/join-invocation.html Reference source: https://github.com/coreutils/coreutils/blob/v9.11/src/join.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/join.json Implementation replay command: sh targets/join/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: join Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt