M01 — Finite occurrence partition
ProvedVathekProof.M01_partition_flattenFlattening a valid tile partition visits each loss occurrence exactly once: if is a finite list of pairwise-disjoint tiles whose union is the occurrence set , then the concatenation of the tile lists contains no duplicates and its underlying finite set is exactly .
Occurrence multiplicity — how many times an index appears in the partition — is a property of the schedule and is preserved exactly; it is a different notion from semantic duplicate detection (two occurrences carrying the same triple), which plays no role here. This is the combinatorial foundation on which the weighted reindexing of M02 rests.
import Definitions.Def_VathekFrame import Definitions.Def_VathekState import Definitions.Def_VathekAdamW import Definitions.Def_VathekWitness
namespace VathekProof
/-- **M01 — Finite occurrence partition.** Flattening a valid tile partition visits
each loss occurrence exactly once: the concatenation of the tile lists has no
duplicates and its underlying finite set is exactly `I`. (Occurrence multiplicity is
a property of the partition; semantic duplicate detection is a different notion.) -/
theorem M01_partition_flatten {ι : Type*} [DecidableEq ι] {I : Finset ι}
{ℬ : List (Finset ι)} (h : IsTilePartition I ℬ) :
(ℬ.flatMap Finset.toList).Nodup ∧ (ℬ.flatMap Finset.toList).toFinset = I := by sorry
end VathekProofRead-back
What the Lean code literally says, in plain math · glm-5.3 (independent auditor subagent)
{"text": "{\n "readback": "Declaration M01_partition_flatten (theorem).\n\nFix an arbitrary type (of occurrences/indices, in an arbitrary universe) on which equality is decidable \u2014 this decidability is a genuine assumption on and is what allows a list of -values to be converted into a finite set of its elements. Fix further a finite subset (given as a Finset) and a finite list of such finite subsets\n
\n(the \"tiles\"). The type , the decidability instance, the set , and the list are all implicitly and universally quantified; the sole explicit hypothesis is .\n\nHypothesis states that is a valid tile partition of , which unfolds \u2014 literally, by the definition of IsTilePartition \u2014 into the conjunction of:\n\n
\n\ni.e. the union of all tiles in the list (computed as a right fold of binary union starting from ) equals exactly; and\n\n
\n\ni.e. the list is pairwise disjoint (the formal relation is \" is disjoint from \", which for finite sets means ; since this condition is symmetric in its two arguments, this is ordinary pairwise disjointness of the tiles). In particular, if one and the same tile occupies two distinct positions of the list, the hypothesis demands , i.e. that repeated tile must be .\n\nConclusion. Let\n\n
\n\ndenote the concatenation, in list order, of the canonical element-lists of the tiles, where is a fixed list containing each element of the finite set exactly once, in an order determined by the internal construction of (not necessarily sorted; nothing in the conclusion depends on, or asserts anything about, the order of ). The theorem asserts the conjunction:\n\n1. No duplicates. is Nodup: no value of occurs at two distinct positions of \u2014 every two entries of the flattened list are distinct.\n2. Exact occurrence set. Converting to the finite set of values that occur in it (the toFinset conversion, which is where decidable equality on is used) yields exactly : every element of appears somewhere in , and no value outside appears in .\n\nTaken together, the two conjuncts say: each element of appears exactly once in the concatenation of the tile element-lists.\n\nEdge cases the quantifiers silently include:\n\n- Empty tile list (, ): the union condition reads , so the hypothesis is satisfiable only when ; then , which is Nodup, and its element set is . The case is consistent, but it is available only for the empty occurrence set.\n- Empty tiles: a tile may appear anywhere in and may even repeat ( is disjoint from every set, including itself, and contributes nothing to the union); its segment contributes nothing to .\n- Empty occurrence set () with : the union condition forces every tile to be empty, so is a concatenation of empty segments.\n- Non-vacuity: the hypothesis is satisfiable for every choice of and with decidable equality \u2014 e.g. is a valid tile partition \u2014 so the theorem is not vacuously true; it makes a substantive claim whenever a valid partition is given.\n"\n}", "details": {"resolvedPath": "/home/ajax/.omp/agent/sessions/-math/2026-09-22T19-31-08-510Z_01a0ca99-be5e-7000-93c6-dac7c74cc004/RB-M01.md", "contentType": "text/markdown", "totalLines": 3, "displayContent": {"text": "{\n "readback": "Declaration M01_partition_flatten (theorem).\n\nFix an arbitrary type (of occurrences/indices, in an arbitrary universe) on which equality is decidable \u2014 this decidability is a genuine assumption on and is what allows a list of -values to be converted into a finite set of its elements. Fix further a finite subset (given as a Finset) and a finite list of such finite subsets\n
\n(the \"tiles\"). The type , the decidability instance, the set , and the list are all implicitly and universally quantified; the sole explicit hypothesis is .\n\nHypothesis states that is a valid tile partition of , which unfolds \u2014 literally, by the definition of IsTilePartition \u2014 into the conjunction of:\n\n
\n\ni.e. the union of all tiles in the list (computed as a right fold of binary union starting from ) equals exactly; and\n\n
\n\ni.e. the list is pairwise disjoint (the formal relation is \" is disjoint from \", which for finite sets means ; since this condition is symmetric in its two arguments, this is ordinary pairwise disjointness of the tiles). In particular, if one and the same tile occupies two distinct positions of the list, the hypothesis demands , i.e. that repeated tile must be .\n\nConclusion. Let\n\n
\n\ndenote the concatenation, in list order, of the canonical element-lists of the tiles, where is a fixed list containing each element of the finite set exactly once, in an order determined by the internal construction of (not necessarily sorted; nothing in the conclusion depends on, or asserts anything about, the order of ). The theorem asserts the conjunction:\n\n1. No duplicates. is Nodup: no value of occurs at two distinct positions of \u2014 every two entries of the flattened list are distinct.\n2. Exact occurrence set. Converting to the finite set of values that occur in it (the toFinset conversion, which is where decidable equality on is used) yields exactly : every element of appears somewhere in , and no value outside appears in .\n\nTaken together, the two conjuncts say: each element of appears exactly once in the concatenation of the tile element-lists.\n\nEdge cases the quantifiers silently include:\n\n- Empty tile list (, ): the union condition reads , so the hypothesis is satisfiable only when ; then , which is Nodup, and its element set is . The case is consistent, but it is available only for the empty occurrence set.\n- Empty tiles: a tile may appear anywhere in and may even repeat ( is disjoint from every set, including itself, and contributes nothing to the union); its segment contributes nothing to .\n- Empty occurrence set () with : the union condition forces every tile to be empty, so is a concatenation of empty segments.\n- Non-vacuity: the hypothesis is satisfiable for every choice of and with decidable equality \u2014 e.g. is a valid tile partition \u2014 so the theorem is not vacuously true; it makes a substantive claim whenever a valid partition is given.\n"\n}", "startLine": 1, "lineNumbers": [1, 2, 3]}, "meta": {"source": {"type": "internal", "value": "agent://RB-M01"}}}}
Confirmed by the mission captain (proposal self-audit).