OAI/Combinatorics/LowSpaceSubsetSum/Representation/RepresentationParentComplete.lean

GitHub source file

13 declarations, 0 contain sorry, 0 declared as axioms

Complete bounded parent arrays and preservation of exact entry keys

  1. def OAI.LowSpaceSubsetSum.RepresentationParentData.rawEntries line 14

    Source documentation

    Mathematical list of valid entries emitted by this task. The executable collector keeps only the bounded deduplicated array.

    def rawEntries : List (Entry (Fin n)) :=
    …

    Mentions: OAI.LowSpaceSubsetSum.Entry

  2. def OAI.LowSpaceSubsetSum.RepresentationParentData.RawEligible line 18
  3. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.key_match_iff line 23
  4. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.rawEligible_parent_mod line 42
  5. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.rawEligible_of_filters line 48

    Source documentation

    The two low child filters and one full parent filter place a designated raw tuple in the actual streams. Prefix tests are on its individual leaves.

    theorem rawEligible_of_filters (x : Parent (n := n))
    …

    Mentions: OAI.LowSpaceSubsetSum.RepresentationParentData.Parent

  6. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.rawEntries_mem line 68
  7. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.rawEntries_parent_mod line 78
  8. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.collect_eq_records line 83
  9. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.entries_raw line 95
  10. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.collect_fits line 105

    Source documentation

    Equal keys can arise from many repeated raw representations. The bound is on the containing distinct-entry universe, not the number of reports.

    theorem collect_fits (B : ℕ) (U : Finset (Entry (Fin n)))
        (hcap : U.card ≤ D.capacity) (hU : ∀ e ∈ D.rawEntries, e ∈ U) :
        (D.collect B).state.user.keys.overflow = false ∧ ∀ q,
          (∃ e ∈ (D.entries B).toList, WeightEncoding.entryKey D.input e = q) ↔
            ∃ e ∈ D.rawEntries, WeightEncoding.entryKey D.input e = q := by
    …

    Mentions: OAI.LowSpaceSubsetSum.Entry, OAI.LowSpaceSubsetSum.WeightEncoding.entryKey

  11. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.entries_mem_iff line 126

    Source documentation

    Fixed-width keys lose no exact weight/mask entry on the actual bounded weight universe. Deduplication can change the witness but not the entry.

    theorem entries_mem_iff (B : ℕ) (U : Finset (Entry (Fin n)))
        (hcap : U.card ≤ D.capacity) (hU : ∀ e ∈ D.rawEntries, e ∈ U)
        (hbounded : ∀ e ∈ U, WeightEncoding.BoundedWeight D.input e.value)
        (e : Entry (Fin n)) : e ∈ (D.entries B).toList ↔ e ∈ D.rawEntries := by
    …

    Mentions: OAI.LowSpaceSubsetSum.Entry, OAI.LowSpaceSubsetSum.WeightEncoding.BoundedWeight

  12. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.entries_mem_iff_of_complete line 141

    Source documentation

    A completed task retains every emitted exact entry, whether or not an ambient capacity bound was supplied in advance.

    theorem entries_mem_iff_of_complete (B : ℕ)
        (hc : (D.collect B).state.user.keys.overflow = false)
        (hbounded : ∀ e ∈ D.rawEntries, WeightEncoding.BoundedWeight D.input e.value)
        (e : Entry (Fin n)) : e ∈ (D.entries B).toList ↔ e ∈ D.rawEntries := by
    …

    Mentions: OAI.LowSpaceSubsetSum.WeightEncoding.BoundedWeight, OAI.LowSpaceSubsetSum.Entry

  13. theorem OAI.LowSpaceSubsetSum.RepresentationParentData.rawEntries_represents line 162