{
  "type": "isitsolved.com/lean-receipt",
  "id": "8fbf4cbaebf4",
  "url": "https://isitsolved.com/lean/receipts/8fbf4cbaebf4",
  "repo": "zip:fixed-length-product-lean.zip",
  "commit": "be7e4fe0c6041ce9591501fc345faa5780ec85b619591361159c7efba274527f",
  "subdir": ".",
  "modules": [
    "ProductLayers"
  ],
  "theorems": [
    "ProductLayers.profile_layer_formula",
    "ProductLayers.counted_lower_bound",
    "ProductLayers.strict_barycentre_cut",
    "ProductLayers.profile_lower_bound",
    "ProductLayers.profile_equality",
    "ProductLayers.prefix_injective",
    "ProductLayers.layer_product",
    "ProductLayers.layer_count",
    "ProductLayers.main_dimensions"
  ],
  "verdict": "ACCEPTED",
  "summary": {
    "palomar": {
      "files": 1,
      "n_without_module": 1,
      "without_module": [
        "ProductLayers.lean"
      ],
      "over_10000_lines": []
    },
    "statements": {
      "ProductLayers.profile_layer_formula": "∀ (rs : List ℕ),\n  List.Pairwise (fun x1 x2 => x1 ≥ x2) rs →\n    ∀ (M : ℕ),\n      (∀ r ∈ rs, r ≤ M) → ∑ h ∈ Finset.range M, (ProductLayers.activeCount h rs - 1) = ProductLayers.profileCost rs",
      "ProductLayers.counted_lower_bound": "∀ (rs : List ℕ),\n  List.Pairwise (fun x1 x2 => x1 ≥ x2) rs →\n    (∀ r ∈ rs, 0 < r) →\n      ∀ (M : ℕ),\n        (∀ r ∈ rs, r ≤ M) →\n          ∀ (counts : ℕ → ℕ),\n            (∀ h < M, ProductLayers.activeCount h rs ≤ counts h + 1) →\n              ProductLayers.target rs.sum ≤ ∑ h ∈ Finset.range M, counts h",
      "ProductLayers.strict_barycentre_cut": "∀ {u k : ℕ}, 0 < u → u < k → k * (2 ^ u - 1) < u * (2 ^ k - 1)",
      "ProductLayers.profile_lower_bound": "∀ (rs : List ℕ),\n  (∀ r ∈ rs, 0 < r) → ProductLayers.target rs.sum ≤ ProductLayers.profileCost rs",
      "ProductLayers.profile_equality": "∀ (r : ℕ) (rs : List ℕ),\n  0 < r →\n    (∀ s ∈ rs, 0 < s) →\n      (ProductLayers.profileCost (r :: rs) = ProductLayers.target (r + rs.sum) ↔\n        r = 1 ∧ rs = [] ∨ rs = [1] ∨ rs = [1, 1])",
      "ProductLayers.prefix_injective": "∀ {d : ℕ} (r : Fin d → ℕ) (P : (i : Fin d) → Fin (r i + 1) → Fin d → ℕ),\n  (∀ (i : Fin d) (n : Fin (r i + 1)), ∀ j < i, P i n j = 0) →\n    (∀ (i : Fin d), StrictMono fun n => P i n i) → Function.Injective fun z j => ∑ i, P i (z i) j",
      "ProductLayers.layer_product": "∀ {ι : Type u_1} [inst : Fintype ι] (d y : ι → ℕ) (M : ℕ),\n  (∀ (i : ι), d i ≤ M) → (∏ h ∈ Finset.range M, ∏ i, if h < d i then y i else 1) = ∏ i, y i ^ d i",
      "ProductLayers.layer_count": "∀ {ι : Type u_1} [inst : Fintype ι] (cost : ι → ℕ) (M : ℕ),\n  (∀ (i : ι), cost i ≤ M) → (∑ h ∈ Finset.range M, ∑ i, if h < cost i then 1 else 0) = ∑ i, cost i",
      "ProductLayers.main_dimensions": "∀ (r : ℕ),\n  ProductLayers.target (r + 2) = r ^ 2 + 3 * (r + 1) ∧\n    ProductLayers.profileCost [r, 1, 1] = ProductLayers.target (r + 2) ∧\n      ProductLayers.profileCost [r + 1, 1] = ProductLayers.target (r + 2)"
    },
    "map_sha256": "77291417882bfd6aa7c3390dca0061013a8700d52aa10f5537bbde7afdccbba3",
    "toolchain": "leanprover/lean4:v4.27.0",
    "mathlib": "a3a10db0e9d66acbebf76c5e6a135066525ac900",
    "counts": {
      "project_decls": 20,
      "edges": 38,
      "external_refs": 465,
      "modules": 2
    },
    "sorry": [],
    "axioms": [],
    "native": false,
    "build_errors": false,
    "missing": [],
    "built": {
      "fetch_s": 153,
      "build_s": 42
    },
    "external": {
      "Mathlib.Algebra": 115,
      "Init.Prelude": 84,
      "Mathlib.Tactic": 69,
      "Init.Data": 54,
      "Mathlib.Data": 46,
      "Init.Omega": 41,
      "Mathlib.Order": 25,
      "Init.Core": 16,
      "Init.SimpLemmas": 10,
      "Mathlib.Analysis": 3,
      "Init.Classical": 1,
      "Init.PropLemmas": 1
    }
  },
  "node": "spark-receipts-zip",
  "requested_by": "codex-1",
  "created_at": "2026-11-30T00:21:14.759Z",
  "done_at": "2026-11-30T00:25:22.147Z"
}
