proofs.rs

Recorded run

Toolchain source metadata: not recorded.

Run locally

git clone -- https://github.com/MasWag/crate-proofs report-42-source-1
git -C report-42-source-1 checkout --detach bb7e96e52ff285bca94443d090899706c2f127ec
git -C report-42-source-1 submodule update --init --recursive --checkout
cd report-42-source-1/leb128fmt/0.1.0/.work/build/default/aarch64-apple-darwin/proofs

lake build +LebProofs +LebProofs64 +ProofsConcreteSignedWriters +ProofsConcreteUnsignedWriters +ProofsErrorObservers +ProofsErrors +ProofsSIntSliceDecode +ProofsSigned32 +ProofsSigned64 +ProofsUIntFixedWrite +ProofsUIntSliceDecode +ProofsUIntSliceEncode

printf '%s' 'import Lean
open Lean Elab Command
run_cmd do
  for program in #[
    "import Aeneas\nimport LebProofs\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.is_last_spec, `leb128fmt.max_len_spec, `leb128fmt.encode_u32_spec, `leb128fmt.encode_fixed_u32_spec, `leb128fmt.decode_u32_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.decode_u32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.decode_u32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.decode_u32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.decode_u32_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.encode_fixed_u32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.encode_fixed_u32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.encode_fixed_u32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.encode_fixed_u32_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.encode_u32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.encode_u32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.encode_u32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.encode_u32_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.is_last_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.is_last_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.is_last_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.is_last_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.max_len_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.max_len_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.max_len_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.max_len_spec\"\n",
    "import Aeneas\nimport LebProofs64\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.wide.encode_u64_spec, `leb128fmt.wide.encode_fixed_u64_spec, `leb128fmt.wide.decode_u64_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.wide.decode_u64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.wide.decode_u64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.wide.decode_u64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.wide.decode_u64_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.wide.encode_fixed_u64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.wide.encode_fixed_u64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.wide.encode_fixed_u64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.wide.encode_fixed_u64_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.wide.encode_u64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.wide.encode_u64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.wide.encode_u64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.wide.encode_u64_spec\"\n",
    "import Aeneas\nimport ProofsConcreteSignedWriters\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt_writer_model.i8_writer_spec, `leb128fmt_writer_model.i16_writer_spec, `leb128fmt_writer_model.i32_writer_spec, `leb128fmt_writer_model.i64_writer_spec, `leb128fmt_writer_model.i128_writer_spec, `leb128fmt_writer_model.i8_fixed_spec, `leb128fmt_writer_model.i16_fixed_spec, `leb128fmt_writer_model.i32_fixed_spec, `leb128fmt_writer_model.i64_fixed_spec, `leb128fmt_writer_model.i128_fixed_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i128_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i128_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i128_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i128_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i64_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i64_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i64_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i64_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i16_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i16_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i16_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i16_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i8_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i8_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i8_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i8_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i32_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i32_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i32_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i32_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i128_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i128_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i128_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i128_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i16_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i16_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i16_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i16_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i64_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i64_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i64_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i64_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i32_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i32_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i32_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i32_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_writer_model.i8_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_writer_model.i8_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_writer_model.i8_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_writer_model.i8_writer_spec\"\n",
    "import Aeneas\nimport ProofsConcreteUnsignedWriters\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.writerProof.u16_writer_spec, `leb128fmt.writerProof.u32_writer_spec, `leb128fmt.writerProof.u64_writer_spec, `leb128fmt.writerProof.u128_writer_spec, `leb128fmt.writerProof.u16_fixed_spec, `leb128fmt.writerProof.u32_fixed_spec, `leb128fmt.writerProof.u64_fixed_spec, `leb128fmt.writerProof.u128_fixed_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u128_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u128_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u128_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u128_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u32_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u32_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u32_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u32_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u64_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u64_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u64_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u64_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u16_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u16_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u16_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u16_fixed_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u32_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u32_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u32_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u32_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u16_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u16_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u16_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u16_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u64_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u64_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u64_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u64_writer_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.writerProof.u128_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.writerProof.u128_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.writerProof.u128_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.writerProof.u128_writer_spec\"\n",
    "import Aeneas\nimport ProofsErrorObservers\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt_error_observers.source_is_none_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt_error_observers.source_is_none_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_error_observers.source_is_none_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_error_observers.source_is_none_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_error_observers.source_is_none_spec\"\n",
    "import Aeneas\nimport ProofsErrors\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.Error.is_more_bytes_needed_spec, `leb128fmt.Error.is_invalid_encoding_spec, `leb128fmt.Error.clone_spec, `leb128fmt.Error.eq_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.Error.clone_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.Error.clone_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.Error.clone_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.Error.clone_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.Error.eq_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.Error.eq_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.Error.eq_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.Error.eq_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.Error.is_invalid_encoding_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.Error.is_invalid_encoding_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.Error.is_invalid_encoding_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.Error.is_invalid_encoding_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.Error.is_more_bytes_needed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.Error.is_more_bytes_needed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.Error.is_more_bytes_needed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.Error.is_more_bytes_needed_spec\"\n",
    "import Aeneas\nimport ProofsSIntSliceDecode\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt_slice_probe.i16_reader_spec, `leb128fmt_slice_probe.i32_reader_spec, `leb128fmt_slice_probe.i64_reader_spec, `leb128fmt_slice_probe.i128_reader_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt_slice_probe.i16_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_slice_probe.i16_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_slice_probe.i16_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_slice_probe.i16_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_slice_probe.i32_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_slice_probe.i32_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_slice_probe.i32_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_slice_probe.i32_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_slice_probe.i128_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_slice_probe.i128_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_slice_probe.i128_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_slice_probe.i128_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt_slice_probe.i64_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt_slice_probe.i64_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt_slice_probe.i64_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt_slice_probe.i64_reader_spec\"\n",
    "import Aeneas\nimport ProofsSigned32\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.signed32.encode_s32_spec, `leb128fmt.signed32.encode_fixed_s32_spec, `leb128fmt.signed32.decode_s32_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed32.decode_s32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed32.decode_s32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed32.decode_s32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed32.decode_s32_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed32.encode_fixed_s32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed32.encode_fixed_s32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed32.encode_fixed_s32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed32.encode_fixed_s32_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed32.encode_s32_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed32.encode_s32_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed32.encode_s32_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed32.encode_s32_spec\"\n",
    "import Aeneas\nimport ProofsSigned64\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.signed64.encode_s64_spec, `leb128fmt.signed64.encode_fixed_s64_spec, `leb128fmt.signed64.decode_s64_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed64.decode_s64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed64.decode_s64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed64.decode_s64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed64.decode_s64_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed64.encode_fixed_s64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed64.encode_fixed_s64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed64.encode_fixed_s64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed64.encode_fixed_s64_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.signed64.encode_s64_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.signed64.encode_s64_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.signed64.encode_s64_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.signed64.encode_s64_spec\"\n",
    "import Aeneas\nimport ProofsUIntFixedWrite\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.sliceProof.u8_fixed_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u8_fixed_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u8_fixed_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u8_fixed_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u8_fixed_spec\"\n",
    "import Aeneas\nimport ProofsUIntSliceDecode\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.sliceProof.u8_reader_spec, `leb128fmt.sliceProof.u16_reader_spec, `leb128fmt.sliceProof.u32_reader_spec, `leb128fmt.sliceProof.u64_reader_spec, `leb128fmt.sliceProof.u128_reader_spec, `leb128fmt.sliceProof.u8_reader_small_width, `leb128fmt.sliceProof.u16_reader_small_width, `leb128fmt.sliceProof.u32_reader_small_width, `leb128fmt.sliceProof.u64_reader_small_width, `leb128fmt.sliceProof.u128_reader_small_width]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u128_reader_small_width\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u128_reader_small_width\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u128_reader_small_width: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u128_reader_small_width\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u8_reader_small_width\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u8_reader_small_width\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u8_reader_small_width: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u8_reader_small_width\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u64_reader_small_width\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u64_reader_small_width\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u64_reader_small_width: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u64_reader_small_width\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u8_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u8_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u8_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u8_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u128_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u128_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u128_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u128_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u32_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u32_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u32_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u32_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u16_reader_small_width\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u16_reader_small_width\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u16_reader_small_width: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u16_reader_small_width\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u32_reader_small_width\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u32_reader_small_width\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u32_reader_small_width: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u32_reader_small_width\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u16_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u16_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u16_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u16_reader_spec\"\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u64_reader_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u64_reader_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u64_reader_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u64_reader_spec\"\n",
    "import Aeneas\nimport ProofsUIntSliceEncode\nset_option pp.all true\nset_option pp.universes true\nset_option pp.explicit true\nset_option pp.fullNames true\nset_option pp.notation false\nset_option pp.proofs true\nset_option pp.deepTerms true\nset_option pp.maxSteps 10000000\n-- proofs.rs adapter for Lean 4.35.0 / Aeneas be86ab0f.\n-- Uses Lean'\''s environment, Meta telescope and pretty-printer, never source parsing.\nopen Lean Meta Elab Command\nnamespace ProofsProbe\nmeta def moduleOf (env : Environment) (n : Name) : String :=\n  match env.getModuleIdxFor? n with\n  | some idx => env.header.moduleNames[idx.toNat]!.toString\n  | none => \"\"\nmeta def pretty (e : Expr) : MetaM String := do\n  let s := (← ppExpr e).pretty\n  if s.contains '\''⋯'\'' then\n    throwError \"Lean display contains an omission marker (or literal ⋯); refusing an incomplete proposition\"\n  if s.utf8ByteSize > 1000000 then throwError \"Proposition exceeds 1,000,000-byte recording limit\"\n  return s\n-- The full statement stays explicit; the inspection view uses Lean notation.\nmeta def readable (e : Expr) : MetaM String :=\n  withOptions (fun o =>\n    let o := o.setBool `pp.all false\n    let o := o.setBool `pp.explicit false\n    let o := o.setBool `pp.universes false\n    o.setBool `pp.notation true) (pretty e)\n-- Only a constant'\''s own tag grants a link; names in plain text are never guessed.\npartial def segments (code : Widget.CodeWithInfos) (ref : Option Name := none) : Array Json :=\n  match code with\n  | .text text => #[Json.mkObj (([(\"text\", toJson text)]) ++\n      (ref.toList.map fun n => (\"ref\", toJson n.toString)))]\n  | .append parts => parts.foldl (fun acc part => acc ++ segments part ref) #[]\n  | .tag info part =>\n    let ref := match info.info.val.info with\n      | .ofTermInfo ti => ti.expr.constName?\n      | _ => none\n    segments part ref\nmeta def readableFields (key : String) (e : Expr) : MetaM (List (String × Json)) := do\n  let text ← readable e\n  let base := [(key, toJson text)]\n  try\n    let code ← withOptions (fun o =>\n      let o := o.setBool `pp.all false\n      let o := o.setBool `pp.explicit false\n      let o := o.setBool `pp.universes false\n      let o := o.setBool `pp.notation true\n      o.setBool `pp.tagAppFns true) (Widget.ppExprTagged e)\n    let parts := segments code\n    let joined := String.join (parts.toList.map fun j =>\n      (j.getObjValAs? String \"text\").toOption.getD \"\")\n    if joined != text || parts.size > 10000 || joined.utf8ByteSize > 1000000 then\n      return base\n    return base ++ [(key ++ \"_segments\", toJson parts)]\n  catch _ => return base\nmeta def inspect (n : Name) (ty : Expr) (manual : Bool) : MetaM (Option Json) := do\n  let env ← getEnv\n  forallTelescope ty fun xs conclusion => do\n    let programExpr ← try\n      let normalized ← Aeneas.Utils.normalizeLetBindings conclusion\n      let (expr, _) ← Aeneas.Step.getStepSpecFunArgsExpr normalized\n      pure (some expr)\n    catch _ => pure none\n    if programExpr.isNone && !manual then return none\n    let full ← pretty ty\n    let program ← match programExpr with\n      | some expr => pure (toJson (← readable expr))\n      | none => pure Json.null\n    let head := toJson (programExpr.bind (·.getAppFn.constName?) |>.map Name.toString)\n    let mut binders := #[]\n    for x in xs do\n      let d ← x.fvarId!.getDecl\n      let prop ← isProp d.type\n      binders := binders.push (Json.mkObj ((← readableFields \"type\" d.type) ++ [\n        (\"name\", toJson d.userName.toString),\n        (\"kind\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if prop then \"hypothesis\" else \"variable\")),\n        (\"binder\", toJson (if d.binderInfo.isInstImplicit then \"instance\" else if d.binderInfo.isExplicit then \"explicit\" else \"implicit\"))]))\n    if binders.size > 1000 then throwError \"More than 1000 binders\"\n    let some ranges ← findDeclarationRanges? n | throwError \"Missing theorem source range: {n}\"\n    let axioms ← Lean.collectAxioms n\n    let constants := ty.getUsedConstants\n    let mut definitions := #[]\n    for nm in constants.extract 0 100 do\n      let ranges ← findDeclarationRanges? nm\n      definitions := definitions.push (Json.mkObj [\n        (\"name\", toJson nm.toString), (\"module\", toJson (moduleOf env nm)),\n        (\"source\", match ranges with\n          | some r => Json.mkObj [(\"first_line\", toJson r.range.pos.line), (\"last_line\", toJson r.range.endPos.line)]\n          | none => Json.null)])\n    return some (Json.mkObj ((← readableFields \"conclusion\" conclusion) ++ [\n      (\"version\", toJson (1 : Nat)), (\"theorem\", toJson n.toString),\n      (\"module\", toJson (moduleOf env n)), (\"statement\", toJson full),\n      (\"binders\", toJson binders),\n      (\"program\", program), (\"program_head\", head),\n      (\"axioms\", toJson (axioms.map Name.toString)),\n      (\"first_line\", toJson ranges.range.pos.line), (\"last_line\", toJson ranges.range.endPos.line),\n      (\"definitions\", toJson definitions), (\"definitions_truncated\", toJson (decide (constants.size > 100))),\n      (\"translation_rerun\", toJson false)]))\nend ProofsProbe\n\nrun_cmd do\n  let manual : Array Name := #[`leb128fmt.sliceProof.u8_writer_spec]\n  let localModules : Array String := #[]\n  let roots : Array Name := #[]\n  let env ← getEnv\n  let mut closure : Array Name := #[]\n  let mut pending := roots.toList\n  while !pending.isEmpty do\n    let m := pending.head!\n    pending := pending.tail!\n    if !closure.contains m then\n      closure := closure.push m\n      if let some idx := env.header.moduleNames.findIdx? (· == m) then\n        pending := (env.header.moduleData[idx]!.imports.toList.map (·.module)) ++ pending\n  let scope := closure.filter (fun m => localModules.contains m.toString)\n  for n in manual do\n    match env.find? n with\n    | some (.thmInfo _) => pure ()\n    | _ => throwError \"Expected a theorem: {n}\"\n  for (n, ci) in env.constants.toList do\n    let explicit := manual.contains n\n    if explicit || scope.contains (ProofsProbe.moduleOf env n).toName then\n      if let .thmInfo th := ci then\n        let result ← liftTermElabM <| ProofsProbe.inspect n th.type explicit\n        if let some value := result then\n          liftIO <| IO.println (\"proofs.rs:formal:\" ++ value.compress)\n\nrun_cmd do\n  let theorem_name := `leb128fmt.sliceProof.u8_writer_spec\n  match (← getEnv).find? theorem_name with\n  | some (.thmInfo _) => pure ()\n  | _ => throwError \"Expected a theorem: leb128fmt.sliceProof.u8_writer_spec\"\n  let axioms ← Lean.collectAxioms theorem_name\n  for ax in axioms do\n    unless [``propext, ``Classical.choice, ``Quot.sound].contains ax do\n      throwError \"Unapproved axiom in leb128fmt.sliceProof.u8_writer_spec: {ax}\"\n  liftIO <| IO.println \"proofs.rs:checked:leb128fmt.sliceProof.u8_writer_spec\"\n"] do
    let output ← liftIO <| IO.Process.output {cmd := "lean", args := #["--stdin"]} (some program)
    liftIO <| IO.print output.stdout
    liftIO <| IO.eprint output.stderr
    unless output.exitCode == 0 do
      throwError "Isolated Lean check failed"
' | lake env lean --stdin

Checks out the recorded source commit from GitHub. Install the report’s tool version before running.

Source on GitHub · SARIF with logs (.json)

Recorded run

Completed · 53 checks passed · 0 failed

2026-11-28T12:28:11.404571+00:00 · 199.6 seconds · Exit code 0

Recorded on the author’s machine.

CheckResultClaim
Lean checked theorem leb128fmt.Error.clone_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.Error.clone_spec
PassedClaim #1
Lean checked theorem leb128fmt.Error.eq_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.Error.eq_spec
PassedClaim #2
Lean checked theorem leb128fmt_error_observers.source_is_none_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_error_observers.source_is_none_spec
PassedClaim #3
Lean checked theorem leb128fmt.Error.is_invalid_encoding_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.Error.is_invalid_encoding_spec
PassedClaim #4
Lean checked theorem leb128fmt.Error.is_more_bytes_needed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.Error.is_more_bytes_needed_spec
PassedClaim #5
Lean checked theorem leb128fmt.signed32.decode_s32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed32.decode_s32_spec
PassedClaim #6
Lean checked theorem leb128fmt.signed64.decode_s64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed64.decode_s64_spec
PassedClaim #7
Lean checked theorem leb128fmt_slice_probe.i16_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_slice_probe.i16_reader_spec
PassedClaim #8
Lean checked theorem leb128fmt_slice_probe.i32_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_slice_probe.i32_reader_spec
PassedClaim #9
Lean checked theorem leb128fmt_slice_probe.i128_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_slice_probe.i128_reader_spec
PassedClaim #10
Lean checked theorem leb128fmt_slice_probe.i64_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_slice_probe.i64_reader_spec
PassedClaim #11
Lean checked theorem leb128fmt.decode_u32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.decode_u32_spec
PassedClaim #12
Lean checked theorem leb128fmt.wide.decode_u64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.wide.decode_u64_spec
PassedClaim #13
Lean checked theorem leb128fmt.sliceProof.u128_reader_small_width; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u128_reader_small_width
PassedClaim #14
Lean checked theorem leb128fmt.sliceProof.u8_reader_small_width; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u8_reader_small_width
PassedClaim #15
Lean checked theorem leb128fmt.sliceProof.u64_reader_small_width; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u64_reader_small_width
PassedClaim #16
Lean checked theorem leb128fmt.sliceProof.u8_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u8_reader_spec
PassedClaim #17
Lean checked theorem leb128fmt.sliceProof.u128_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u128_reader_spec
PassedClaim #18
Lean checked theorem leb128fmt.sliceProof.u32_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u32_reader_spec
PassedClaim #19
Lean checked theorem leb128fmt.sliceProof.u16_reader_small_width; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u16_reader_small_width
PassedClaim #20
Lean checked theorem leb128fmt.sliceProof.u32_reader_small_width; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u32_reader_small_width
PassedClaim #21
Lean checked theorem leb128fmt.sliceProof.u16_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u16_reader_spec
PassedClaim #22
Lean checked theorem leb128fmt.sliceProof.u64_reader_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u64_reader_spec
PassedClaim #23
Lean checked theorem leb128fmt.signed32.encode_fixed_s32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed32.encode_fixed_s32_spec
PassedClaim #24
Lean checked theorem leb128fmt.signed64.encode_fixed_s64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed64.encode_fixed_s64_spec
PassedClaim #25
Lean checked theorem leb128fmt_writer_model.i128_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i128_fixed_spec
PassedClaim #26
Lean checked theorem leb128fmt_writer_model.i64_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i64_fixed_spec
PassedClaim #27
Lean checked theorem leb128fmt_writer_model.i16_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i16_fixed_spec
PassedClaim #28
Lean checked theorem leb128fmt_writer_model.i8_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i8_fixed_spec
PassedClaim #29
Lean checked theorem leb128fmt_writer_model.i32_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i32_fixed_spec
PassedClaim #30
Lean checked theorem leb128fmt.encode_fixed_u32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.encode_fixed_u32_spec
PassedClaim #31
Lean checked theorem leb128fmt.wide.encode_fixed_u64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.wide.encode_fixed_u64_spec
PassedClaim #32
Lean checked theorem leb128fmt.writerProof.u128_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u128_fixed_spec
PassedClaim #33
Lean checked theorem leb128fmt.writerProof.u32_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u32_fixed_spec
PassedClaim #34
Lean checked theorem leb128fmt.writerProof.u64_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u64_fixed_spec
PassedClaim #35
Lean checked theorem leb128fmt.writerProof.u16_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u16_fixed_spec
PassedClaim #36
Lean checked theorem leb128fmt.sliceProof.u8_fixed_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u8_fixed_spec
PassedClaim #37
Lean checked theorem leb128fmt.signed32.encode_s32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed32.encode_s32_spec
PassedClaim #38
Lean checked theorem leb128fmt.signed64.encode_s64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.signed64.encode_s64_spec
PassedClaim #39
Lean checked theorem leb128fmt_writer_model.i128_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i128_writer_spec
PassedClaim #40
Lean checked theorem leb128fmt_writer_model.i16_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i16_writer_spec
PassedClaim #41
Lean checked theorem leb128fmt_writer_model.i64_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i64_writer_spec
PassedClaim #42
Lean checked theorem leb128fmt_writer_model.i32_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i32_writer_spec
PassedClaim #43
Lean checked theorem leb128fmt_writer_model.i8_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt_writer_model.i8_writer_spec
PassedClaim #44
Lean checked theorem leb128fmt.encode_u32_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.encode_u32_spec
PassedClaim #45
Lean checked theorem leb128fmt.wide.encode_u64_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.wide.encode_u64_spec
PassedClaim #46
Lean checked theorem leb128fmt.writerProof.u32_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u32_writer_spec
PassedClaim #47
Lean checked theorem leb128fmt.writerProof.u16_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u16_writer_spec
PassedClaim #48
Lean checked theorem leb128fmt.writerProof.u64_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u64_writer_spec
PassedClaim #49
Lean checked theorem leb128fmt.writerProof.u128_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.writerProof.u128_writer_spec
PassedClaim #50
Lean checked theorem leb128fmt.sliceProof.u8_writer_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.sliceProof.u8_writer_spec
PassedClaim #51
Lean checked theorem leb128fmt.is_last_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.is_last_spec
PassedClaim #52
Lean checked theorem leb128fmt.max_len_spec; axioms limited to propext, Classical.choice, Quot.sound
leb128fmt.max_len_spec
PassedClaim #53
Execution details
Started
2026-11-28T12:28:11.404571+00:00
Finished
2026-11-28T12:31:31.007549+00:00
Platform
macos aarch64
Rust compiler
rustc 1.91.0 (f8297e351 2025-10-28) binary: rustc commit-hash: f8297e351a40c1439a467bbbb6879088047f50b3 commit-date: 2025-10-28 host: aarch64-apple-darwin release: 1.91.0 LLVM version: 21.1.2
Working directory
leb128fmt/0.1.0/.work/build/default/aarch64-apple-darwin/proofs
Environment overrides
None recorded
Git repository
https://github.com/MasWag/crate-proofs
Git commit
bb7e96e52ff285bca94443d090899706c2f127ec
Diagnostics & logs
=== stdout ===
✔ [1796/1824] Built WriterMaxLen (7.6s)
✔ [1797/1824] Built Observer (7.6s)
✔ [1798/1824] Built ConcreteWriters.Types (7.6s)
✔ [1799/1824] Built LebErrors (7.6s)
✔ [1800/1824] Built LebCore (7.9s)
✔ [1801/1824] Built Unsigned64 (7.9s)
✔ [1802/1824] Built Signed32 (8.1s)
✔ [1803/1824] Built Signed64 (8.1s)
✔ [1804/1824] Built SliceConcrete (8.3s)
✔ [1805/1824] Built SintSlices (8.4s)
✔ [1806/1824] Built SignedDecodeMath (8.0s)
✔ [1807/1824] Built ConcreteWriters.FunsExternal (1.8s)
✔ [1808/1824] Built ProofsErrorObservers (2.2s)
✔ [1809/1824] Built ProofsErrors (2.3s)
✔ [1810/1824] Built ProofsSignedWriterGuards (2.8s)
✔ [1811/1824] Built ProofsUIntSliceEncode (3.6s)
✔ [1812/1824] Built ConcreteWriters.Funs (3.7s)
✔ [1813/1824] Built SignedWriteCommon (2.5s)
✔ [1814/1824] Built LebProofs (5.9s)
✔ [1815/1824] Built LebProofs64 (6.2s)
✔ [1816/1824] Built ProofsUIntFixedWrite (2.7s)
✔ [1817/1824] Built ProofsUIntSliceDecode (4.8s)
✔ [1818/1824] Built ProofsSigned32 (7.9s)
✔ [1819/1824] Built ProofsSigned64 (8.1s)
✔ [1820/1824] Built ProofsSIntSliceEncode (4.5s)
✔ [1821/1824] Built ProofsConcreteUnsignedWriters (1.8s)
✔ [1822/1824] Built ProofsSIntFixedWrite (5.8s)
✔ [1823/1824] Built ProofsSIntSliceDecode (12s)
✔ [1824/1824] Built ProofsConcreteSignedWriters (1.7s)
Build completed successfully (1824 jobs).

$ lake env lean --stdin (proofs.rs formal extraction and axiom audit)
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"b","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]}],"conclusion":"leb128fmt.is_last b = Aeneas.Std.Result.ok (Decidable.decide (↑b < 128))","conclusion_segments":[{"ref":"leb128fmt.is_last","text":"leb128fmt.is_last"},{"text":" "},{"text":"b"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Decidable.decide","text":"Decidable.decide"},{"text":" "},{"ref":"LT.lt","text":"("},{"text":"↑"},{"text":"b"},{"ref":"LT.lt","text":" < "},{"text":"128"},{"ref":"LT.lt","text":")"},{"text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"LebCore","name":"leb128fmt.is_last","source":{"first_line":35,"last_line":40}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Decidable.decide","source":{"first_line":1158,"last_line":1158}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Nat.decLt","source":{"first_line":2214,"last_line":2226}}],"definitions_truncated":false,"first_line":39,"last_line":47,"module":"LebProofs","program":null,"program_head":null,"statement":"∀ (b : Aeneas.Std.U8),\n  @Eq.{1} (Aeneas.Std.Result.{0} Bool) (leb128fmt.is_last b)\n    (@Aeneas.Std.Result.ok.{0} Bool\n      (@Decidable.decide\n        (@LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8 b)\n          (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128))))\n        (Nat.decLt (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8 b)\n          (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128))))))","theorem":"leb128fmt.is_last_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"bytes","type":"leb128fmt.Bytes32","type_segments":[{"ref":"leb128fmt.Bytes32","text":"leb128fmt.Bytes32"}]}],"conclusion":"∃ out, leb128fmt.decode_u32 bytes = Aeneas.Std.Result.ok out ∧ leb128fmt.decodeValue out = leb128fmt.decodeMeaning bytes","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":", "},{"ref":"leb128fmt.decode_u32","text":"leb128fmt.decode_u32"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧ "},{"ref":"leb128fmt.decodeValue","text":"leb128fmt.decodeValue"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.decodeMeaning","text":"leb128fmt.decodeMeaning"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"LebProofs","name":"leb128fmt.Bytes32","source":{"first_line":49,"last_line":49}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebCore","name":"leb128fmt.decode_u32","source":{"first_line":351,"last_line":367}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"LebProofs","name":"leb128fmt.decodeValue","source":{"first_line":253,"last_line":254}},{"module":"LebProofs","name":"leb128fmt.decodeMeaning","source":{"first_line":250,"last_line":251}}],"definitions_truncated":false,"first_line":401,"last_line":430,"module":"LebProofs","program":null,"program_head":null,"statement":"∀ (bytes : leb128fmt.Bytes32),\n  @Exists.{1} (Option.{0} (Prod.{0, 0} Aeneas.Std.U32 Aeneas.Std.Usize))\n    fun (out : Option.{0} (Prod.{0, 0} Aeneas.Std.U32 Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.U32 Aeneas.Std.Usize)))\n        (leb128fmt.decode_u32 bytes)\n        (@Aeneas.Std.Result.ok.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.U32 Aeneas.Std.Usize)) out))\n      (@Eq.{1} (Option.{0} (Prod.{0, 0} Nat Nat)) (leb128fmt.decodeValue out) (leb128fmt.decodeMeaning bytes))","theorem":"leb128fmt.decode_u32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ bytes, leb128fmt.encode_fixed_u32 x = Aeneas.Std.Result.ok (Option.some bytes) ∧ leb128fmt.FixedEncoding (↑x) bytes","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":", "},{"ref":"leb128fmt.encode_fixed_u32","text":"leb128fmt.encode_fixed_u32"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"text":"bytes"},{"text":")"},{"ref":"And","text":" ∧ "},{"ref":"leb128fmt.FixedEncoding","text":"leb128fmt.FixedEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"LebCore","name":"leb128fmt.encode_u32_loop0.body._proof_1","source":null},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"LebCore","name":"leb128fmt.encode_fixed_u32","source":{"first_line":260,"last_line":278}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"LebProofs","name":"leb128fmt.FixedEncoding","source":{"first_line":165,"last_line":166}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}}],"definitions_truncated":false,"first_line":231,"last_line":237,"module":"LebProofs","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.U32),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n        leb128fmt.encode_u32_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n            leb128fmt.encode_u32_loop0.body._proof_1)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_u32_loop0.body._proof_1))))\n        (leb128fmt.encode_fixed_u32 x)\n        (@Aeneas.Std.Result.ok.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_u32_loop0.body._proof_1)))\n          (@Option.some.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_u32_loop0.body._proof_1))\n            bytes)))\n      (leb128fmt.FixedEncoding (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 x) bytes)","theorem":"leb128fmt.encode_fixed_u32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"bits","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ out, leb128fmt.max_len bits = Aeneas.Std.Result.ok out ∧ ↑out = (↑bits + 6) / 7","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":", "},{"ref":"leb128fmt.max_len","text":"leb128fmt.max_len"},{"text":" "},{"text":"bits"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧ "},{"text":"↑"},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"bits"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebCore","name":"leb128fmt.max_len","source":{"first_line":23,"last_line":33}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}}],"definitions_truncated":false,"first_line":432,"last_line":448,"module":"LebProofs","program":null,"program_head":null,"statement":"∀ (bits : Aeneas.Std.U32),\n  @Exists.{1} Aeneas.Std.Usize fun (out : Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} Aeneas.Std.Usize) (leb128fmt.max_len bits)\n        (@Aeneas.Std.Result.ok.{0} Aeneas.Std.Usize out))\n      (@Eq.{1} Nat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize out)\n        (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 bits)\n            (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n          (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))","theorem":"leb128fmt.max_len_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]}],"conclusion":"∃ bytes k,\n  leb128fmt.encode_u32 x = Aeneas.Std.Result.ok (Option.some (bytes, k)) ∧ leb128fmt.CanonicalEncoding (↑x) bytes ↑k","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":" "},{"text":"k"},{"text":",\n  "},{"ref":"leb128fmt.encode_u32","text":"leb128fmt.encode_u32"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"ref":"Prod.mk","text":"("},{"text":"bytes"},{"ref":"Prod.mk","text":", "},{"text":"k"},{"ref":"Prod.mk","text":")"},{"text":")"},{"ref":"And","text":" ∧ "},{"ref":"leb128fmt.CanonicalEncoding","text":"leb128fmt.CanonicalEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"↑"},{"text":"k"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"LebCore","name":"leb128fmt.encode_u32_loop0.body._proof_1","source":null},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"LebCore","name":"leb128fmt.encode_u32","source":{"first_line":134,"last_line":154}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"LebProofs","name":"leb128fmt.CanonicalEncoding","source":{"first_line":70,"last_line":73}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":157,"last_line":163,"module":"LebProofs","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.U32),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n        leb128fmt.encode_u32_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n            leb128fmt.encode_u32_loop0.body._proof_1)) =>\n    @Exists.{1} Aeneas.Std.Usize fun (k : Aeneas.Std.Usize) =>\n      And\n        (@Eq.{1}\n          (Aeneas.Std.Result.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_u32_loop0.body._proof_1))\n                Aeneas.Std.Usize)))\n          (leb128fmt.encode_u32 x)\n          (@Aeneas.Std.Result.ok.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_u32_loop0.body._proof_1))\n                Aeneas.Std.Usize))\n            (@Option.some.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_u32_loop0.body._proof_1))\n                Aeneas.Std.Usize)\n              (@Prod.mk.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_u32_loop0.body._proof_1))\n                Aeneas.Std.Usize bytes k))))\n        (leb128fmt.CanonicalEncoding (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 x) bytes\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize k))","theorem":"leb128fmt.encode_u32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]}],"conclusion":"∃ bytes k,\n  leb128fmt.encode_u64 x = Aeneas.Std.Result.ok (Option.some (bytes, k)) ∧\n    leb128fmt.wide.CanonicalEncoding (↑x) bytes ↑k","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":" "},{"text":"k"},{"text":",\n  "},{"ref":"leb128fmt.encode_u64","text":"leb128fmt.encode_u64"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"ref":"Prod.mk","text":"("},{"text":"bytes"},{"ref":"Prod.mk","text":", "},{"text":"k"},{"ref":"Prod.mk","text":")"},{"text":")"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.wide.CanonicalEncoding","text":"leb128fmt.wide.CanonicalEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"↑"},{"text":"k"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Unsigned64","name":"leb128fmt.encode_u64_loop0.body._proof_1","source":null},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Unsigned64","name":"leb128fmt.encode_u64","source":{"first_line":115,"last_line":135}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"LebProofs64","name":"leb128fmt.wide.CanonicalEncoding","source":{"first_line":60,"last_line":63}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":147,"last_line":153,"module":"LebProofs64","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.U64),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n        leb128fmt.encode_u64_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n            leb128fmt.encode_u64_loop0.body._proof_1)) =>\n    @Exists.{1} Aeneas.Std.Usize fun (k : Aeneas.Std.Usize) =>\n      And\n        (@Eq.{1}\n          (Aeneas.Std.Result.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_u64_loop0.body._proof_1))\n                Aeneas.Std.Usize)))\n          (leb128fmt.encode_u64 x)\n          (@Aeneas.Std.Result.ok.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_u64_loop0.body._proof_1))\n                Aeneas.Std.Usize))\n            (@Option.some.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_u64_loop0.body._proof_1))\n                Aeneas.Std.Usize)\n              (@Prod.mk.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_u64_loop0.body._proof_1))\n                Aeneas.Std.Usize bytes k))))\n        (leb128fmt.wide.CanonicalEncoding (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 x) bytes\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize k))","theorem":"leb128fmt.wide.encode_u64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]}],"conclusion":"∃ bytes,\n  leb128fmt.encode_fixed_u64 x = Aeneas.Std.Result.ok (Option.some bytes) ∧ leb128fmt.wide.FixedEncoding (↑x) bytes","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":",\n  "},{"ref":"leb128fmt.encode_fixed_u64","text":"leb128fmt.encode_fixed_u64"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"text":"bytes"},{"text":")"},{"ref":"And","text":" ∧ "},{"ref":"leb128fmt.wide.FixedEncoding","text":"leb128fmt.wide.FixedEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Unsigned64","name":"leb128fmt.encode_u64_loop0.body._proof_1","source":null},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Unsigned64","name":"leb128fmt.encode_fixed_u64","source":{"first_line":241,"last_line":259}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"LebProofs64","name":"leb128fmt.wide.FixedEncoding","source":{"first_line":155,"last_line":156}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}}],"definitions_truncated":false,"first_line":221,"last_line":227,"module":"LebProofs64","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.U64),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n        leb128fmt.encode_u64_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n            leb128fmt.encode_u64_loop0.body._proof_1)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_u64_loop0.body._proof_1))))\n        (leb128fmt.encode_fixed_u64 x)\n        (@Aeneas.Std.Result.ok.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_u64_loop0.body._proof_1)))\n          (@Option.some.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_u64_loop0.body._proof_1))\n            bytes)))\n      (leb128fmt.wide.FixedEncoding (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 x) bytes)","theorem":"leb128fmt.wide.encode_fixed_u64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"bytes","type":"leb128fmt.wide.Bytes64","type_segments":[{"ref":"leb128fmt.wide.Bytes64","text":"leb128fmt.wide.Bytes64"}]}],"conclusion":"∃ out,\n  leb128fmt.decode_u64 bytes = Aeneas.Std.Result.ok out ∧\n    leb128fmt.wide.decodeValue out = leb128fmt.wide.decodeMeaning bytes","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt.decode_u64","text":"leb128fmt.decode_u64"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.wide.decodeValue","text":"leb128fmt.wide.decodeValue"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.wide.decodeMeaning","text":"leb128fmt.wide.decodeMeaning"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"LebProofs64","name":"leb128fmt.wide.Bytes64","source":{"first_line":39,"last_line":39}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Unsigned64","name":"leb128fmt.decode_u64","source":{"first_line":332,"last_line":350}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"LebProofs64","name":"leb128fmt.wide.decodeValue","source":{"first_line":243,"last_line":244}},{"module":"LebProofs64","name":"leb128fmt.wide.decodeMeaning","source":{"first_line":240,"last_line":241}}],"definitions_truncated":false,"first_line":391,"last_line":420,"module":"LebProofs64","program":null,"program_head":null,"statement":"∀ (bytes : leb128fmt.wide.Bytes64),\n  @Exists.{1} (Option.{0} (Prod.{0, 0} Aeneas.Std.U64 Aeneas.Std.Usize))\n    fun (out : Option.{0} (Prod.{0, 0} Aeneas.Std.U64 Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.U64 Aeneas.Std.Usize)))\n        (leb128fmt.decode_u64 bytes)\n        (@Aeneas.Std.Result.ok.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.U64 Aeneas.Std.Usize)) out))\n      (@Eq.{1} (Option.{0} (Prod.{0, 0} Nat Nat)) (leb128fmt.wide.decodeValue out) (leb128fmt.wide.decodeMeaning bytes))","theorem":"leb128fmt.wide.decode_u64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I128","type_segments":[{"ref":"Aeneas.Std.I128","text":"Aeneas.Std.I128"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hw","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 128","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"128"}]},{"binder":"explicit","kind":"hypothesis","name":"hfit","type":"leb128fmt.sliceProof.SignedGuardAccepts 128 ↑width ↑value →\n  ↑start + (↑width + 6) / 7 ≤ (↑before).length → leb128fmt.sliceProof.SignedFits (↑value) ((↑width + 6) / 7 - 1)","type_segments":[{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"128"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"text":" →\n  "},{"text":"↑"},{"text":"start"},{"ref":"HAdd.hAdd","text":" + "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"},{"text":" → "},{"ref":"leb128fmt.sliceProof.SignedFits","text":"leb128fmt.sliceProof.SignedFits"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"ref":"HSub.hSub","text":"("},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"HSub.hSub","text":" - "},{"text":"1"},{"ref":"HSub.hSub","text":")"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i128_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    if leb128fmt.sliceProof.SignedGuardAccepts 128 ↑width ↑value then\n      leb128fmt.sliceProof.SignedFixedWriterPost (↑width) (↑value) before start out\n    else out = (Option.none, before, start)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i128_fixed","text":"leb128fmt_writer_model.i128_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"ite","text":"if "},{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"128"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"ref":"ite","text":" then"},{"ref":"ite","text":"\n      "},{"ref":"leb128fmt.sliceProof.SignedFixedWriterPost","text":"leb128fmt.sliceProof.SignedFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"},{"ref":"ite","text":"\n    "},{"ref":"ite","text":"else "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Prod.mk","text":"("},{"ref":"Option.none","text":"Option.none"},{"ref":"Prod.mk","text":", "},{"text":"before"},{"ref":"Prod.mk","text":", "},{"text":"start"},{"ref":"Prod.mk","text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I128","source":{"first_line":679,"last_line":679}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedGuardAccepts","source":{"first_line":124,"last_line":125}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I128","source":{"first_line":47,"last_line":47}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedFits","source":{"first_line":20,"last_line":21}},{"module":"Init.Prelude","name":"HSub.hSub","source":{"first_line":1491,"last_line":1491}},{"module":"Init.Prelude","name":"instHSub","source":{"first_line":1788,"last_line":1790}},{"module":"Init.Prelude","name":"instSubNat","source":{"first_line":2261,"last_line":2262}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i128_fixed","source":{"first_line":2502,"last_line":2514}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"ite","source":{"first_line":1324,"last_line":1346}},{"module":"Init.Prelude","name":"instDecidableOr","source":{"first_line":1247,"last_line":1255}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Data.Int.Basic","name":"Int.instLEInt","source":{"first_line":230,"last_line":231}},{"module":"Init.Prelude","name":"Neg.neg","source":{"first_line":1657,"last_line":1657}},{"module":"Init.Data.Int.Basic","name":"Int.instNegInt","source":{"first_line":133,"last_line":135}},{"module":"Init.Prelude","name":"HPow.hPow","source":{"first_line":1538,"last_line":1538}},{"module":"Init.Prelude","name":"instHPow","source":{"first_line":1804,"last_line":1806}},{"module":"Mathlib.Algebra.Group.Monoid","name":"NPow.toPow","source":{"first_line":369,"last_line":371}},{"module":"Mathlib.Algebra.Group.Monoid","name":"Monoid.toNPow","source":{"first_line":388,"last_line":393}},{"module":"Mathlib.Algebra.Group.Int.Defs","name":"Int.instMonoid","source":{"first_line":73,"last_line":73}},{"module":"Init.Data.Int.Basic","name":"instOfNat","source":{"first_line":65,"last_line":66}},{"module":"Init.Data.Int.Basic","name":"Int.instLTInt","source":{"first_line":240,"last_line":241}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"instDecidableAnd","source":{"first_line":1239,"last_line":1245}},{"module":"Init.Data.Int.Basic","name":"Int.decLe","source":{"first_line":290,"last_line":301}},{"module":"Init.Data.Int.Basic","name":"Int.decLt","source":{"first_line":303,"last_line":314}},{"module":"ProofsSIntFixedWrite","name":"leb128fmt.sliceProof.SignedFixedWriterPost","source":{"first_line":185,"last_line":192}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"Init.Prelude","name":"Option.none","source":{"first_line":3055,"last_line":3056}}],"definitions_truncated":false,"first_line":329,"last_line":340,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I128) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hw :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128))))\n  (hfit :\n    leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value) →\n      @LE.le.{0} Nat instLENat\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))\n          (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)) →\n        leb128fmt.sliceProof.SignedFits (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value)\n          (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7))))\n            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i128_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (@ite.{1} Prop\n        (leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value))\n        (@instDecidableOr\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (And\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (@instDecidableAnd\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n            (Int.decLe\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value))\n            (Int.decLt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))))\n        (leb128fmt.sliceProof.SignedFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value) before start out)\n        (@Eq.{1}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out\n          (@Prod.mk.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize) (@Option.none.{0} Aeneas.Std.Usize)\n            (@Prod.mk.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize before start))))","theorem":"leb128fmt_writer_model.i128_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I128","type_segments":[{"ref":"Aeneas.Std.I128","text":"Aeneas.Std.I128"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i128_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.SignedShortestPost 128 (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i128_writer","text":"leb128fmt_writer_model.i128_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.SignedShortestPost","text":"leb128fmt.sliceProof.SignedShortestPost"},{"text":" "},{"text":"128"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I128","source":{"first_line":679,"last_line":679}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i128_writer","source":{"first_line":2488,"last_line":2500}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceEncode","name":"leb128fmt.sliceProof.SignedShortestPost","source":{"first_line":119,"last_line":122}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I128","source":{"first_line":47,"last_line":47}}],"definitions_truncated":false,"first_line":322,"last_line":327,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I128) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i128_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.SignedShortestPost (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I128 value) before start out)","theorem":"leb128fmt_writer_model.i128_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I64","type_segments":[{"ref":"Aeneas.Std.I64","text":"Aeneas.Std.I64"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hw","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 64","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"64"}]},{"binder":"explicit","kind":"hypothesis","name":"hfit","type":"leb128fmt.sliceProof.SignedGuardAccepts 64 ↑width ↑value →\n  ↑start + (↑width + 6) / 7 ≤ (↑before).length → leb128fmt.sliceProof.SignedFits (↑value) ((↑width + 6) / 7 - 1)","type_segments":[{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"64"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"text":" →\n  "},{"text":"↑"},{"text":"start"},{"ref":"HAdd.hAdd","text":" + "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"},{"text":" → "},{"ref":"leb128fmt.sliceProof.SignedFits","text":"leb128fmt.sliceProof.SignedFits"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"ref":"HSub.hSub","text":"("},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"HSub.hSub","text":" - "},{"text":"1"},{"ref":"HSub.hSub","text":")"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i64_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    if leb128fmt.sliceProof.SignedGuardAccepts 64 ↑width ↑value then\n      leb128fmt.sliceProof.SignedFixedWriterPost (↑width) (↑value) before start out\n    else out = (Option.none, before, start)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i64_fixed","text":"leb128fmt_writer_model.i64_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"ite","text":"if "},{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"64"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"ref":"ite","text":" then"},{"ref":"ite","text":"\n      "},{"ref":"leb128fmt.sliceProof.SignedFixedWriterPost","text":"leb128fmt.sliceProof.SignedFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"},{"ref":"ite","text":"\n    "},{"ref":"ite","text":"else "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Prod.mk","text":"("},{"ref":"Option.none","text":"Option.none"},{"ref":"Prod.mk","text":", "},{"text":"before"},{"ref":"Prod.mk","text":", "},{"text":"start"},{"ref":"Prod.mk","text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedGuardAccepts","source":{"first_line":124,"last_line":125}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I64","source":{"first_line":46,"last_line":46}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedFits","source":{"first_line":20,"last_line":21}},{"module":"Init.Prelude","name":"HSub.hSub","source":{"first_line":1491,"last_line":1491}},{"module":"Init.Prelude","name":"instHSub","source":{"first_line":1788,"last_line":1790}},{"module":"Init.Prelude","name":"instSubNat","source":{"first_line":2261,"last_line":2262}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i64_fixed","source":{"first_line":2474,"last_line":2486}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"ite","source":{"first_line":1324,"last_line":1346}},{"module":"Init.Prelude","name":"instDecidableOr","source":{"first_line":1247,"last_line":1255}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Data.Int.Basic","name":"Int.instLEInt","source":{"first_line":230,"last_line":231}},{"module":"Init.Prelude","name":"Neg.neg","source":{"first_line":1657,"last_line":1657}},{"module":"Init.Data.Int.Basic","name":"Int.instNegInt","source":{"first_line":133,"last_line":135}},{"module":"Init.Prelude","name":"HPow.hPow","source":{"first_line":1538,"last_line":1538}},{"module":"Init.Prelude","name":"instHPow","source":{"first_line":1804,"last_line":1806}},{"module":"Mathlib.Algebra.Group.Monoid","name":"NPow.toPow","source":{"first_line":369,"last_line":371}},{"module":"Mathlib.Algebra.Group.Monoid","name":"Monoid.toNPow","source":{"first_line":388,"last_line":393}},{"module":"Mathlib.Algebra.Group.Int.Defs","name":"Int.instMonoid","source":{"first_line":73,"last_line":73}},{"module":"Init.Data.Int.Basic","name":"instOfNat","source":{"first_line":65,"last_line":66}},{"module":"Init.Data.Int.Basic","name":"Int.instLTInt","source":{"first_line":240,"last_line":241}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"instDecidableAnd","source":{"first_line":1239,"last_line":1245}},{"module":"Init.Data.Int.Basic","name":"Int.decLe","source":{"first_line":290,"last_line":301}},{"module":"Init.Data.Int.Basic","name":"Int.decLt","source":{"first_line":303,"last_line":314}},{"module":"ProofsSIntFixedWrite","name":"leb128fmt.sliceProof.SignedFixedWriterPost","source":{"first_line":185,"last_line":192}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"Init.Prelude","name":"Option.none","source":{"first_line":3055,"last_line":3056}}],"definitions_truncated":false,"first_line":309,"last_line":320,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I64) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hw :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n  (hfit :\n    leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value) →\n      @LE.le.{0} Nat instLENat\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))\n          (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)) →\n        leb128fmt.sliceProof.SignedFits (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value)\n          (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7))))\n            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i64_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (@ite.{1} Prop\n        (leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value))\n        (@instDecidableOr\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (And\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (@instDecidableAnd\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n            (Int.decLe\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value))\n            (Int.decLt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))))\n        (leb128fmt.sliceProof.SignedFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value) before start out)\n        (@Eq.{1}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out\n          (@Prod.mk.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize) (@Option.none.{0} Aeneas.Std.Usize)\n            (@Prod.mk.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize before start))))","theorem":"leb128fmt_writer_model.i64_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I16","type_segments":[{"ref":"Aeneas.Std.I16","text":"Aeneas.Std.I16"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i16_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.SignedShortestPost 16 (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i16_writer","text":"leb128fmt_writer_model.i16_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.SignedShortestPost","text":"leb128fmt.sliceProof.SignedShortestPost"},{"text":" "},{"text":"16"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I16","source":{"first_line":676,"last_line":676}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i16_writer","source":{"first_line":2404,"last_line":2416}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceEncode","name":"leb128fmt.sliceProof.SignedShortestPost","source":{"first_line":119,"last_line":122}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I16","source":{"first_line":44,"last_line":44}}],"definitions_truncated":false,"first_line":262,"last_line":267,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I16) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i16_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.SignedShortestPost (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value) before start out)","theorem":"leb128fmt_writer_model.i16_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I64","type_segments":[{"ref":"Aeneas.Std.I64","text":"Aeneas.Std.I64"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i64_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.SignedShortestPost 64 (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i64_writer","text":"leb128fmt_writer_model.i64_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.SignedShortestPost","text":"leb128fmt.sliceProof.SignedShortestPost"},{"text":" "},{"text":"64"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i64_writer","source":{"first_line":2460,"last_line":2472}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceEncode","name":"leb128fmt.sliceProof.SignedShortestPost","source":{"first_line":119,"last_line":122}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I64","source":{"first_line":46,"last_line":46}}],"definitions_truncated":false,"first_line":302,"last_line":307,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I64) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i64_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.SignedShortestPost (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 value) before start out)","theorem":"leb128fmt_writer_model.i64_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I16","type_segments":[{"ref":"Aeneas.Std.I16","text":"Aeneas.Std.I16"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hw","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 16","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"16"}]},{"binder":"explicit","kind":"hypothesis","name":"hfit","type":"leb128fmt.sliceProof.SignedGuardAccepts 16 ↑width ↑value →\n  ↑start + (↑width + 6) / 7 ≤ (↑before).length → leb128fmt.sliceProof.SignedFits (↑value) ((↑width + 6) / 7 - 1)","type_segments":[{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"16"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"text":" →\n  "},{"text":"↑"},{"text":"start"},{"ref":"HAdd.hAdd","text":" + "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"},{"text":" → "},{"ref":"leb128fmt.sliceProof.SignedFits","text":"leb128fmt.sliceProof.SignedFits"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"ref":"HSub.hSub","text":"("},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"HSub.hSub","text":" - "},{"text":"1"},{"ref":"HSub.hSub","text":")"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i16_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    if leb128fmt.sliceProof.SignedGuardAccepts 16 ↑width ↑value then\n      leb128fmt.sliceProof.SignedFixedWriterPost (↑width) (↑value) before start out\n    else out = (Option.none, before, start)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i16_fixed","text":"leb128fmt_writer_model.i16_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"ite","text":"if "},{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"16"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"ref":"ite","text":" then"},{"ref":"ite","text":"\n      "},{"ref":"leb128fmt.sliceProof.SignedFixedWriterPost","text":"leb128fmt.sliceProof.SignedFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"},{"ref":"ite","text":"\n    "},{"ref":"ite","text":"else "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Prod.mk","text":"("},{"ref":"Option.none","text":"Option.none"},{"ref":"Prod.mk","text":", "},{"text":"before"},{"ref":"Prod.mk","text":", "},{"text":"start"},{"ref":"Prod.mk","text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I16","source":{"first_line":676,"last_line":676}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedGuardAccepts","source":{"first_line":124,"last_line":125}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I16","source":{"first_line":44,"last_line":44}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedFits","source":{"first_line":20,"last_line":21}},{"module":"Init.Prelude","name":"HSub.hSub","source":{"first_line":1491,"last_line":1491}},{"module":"Init.Prelude","name":"instHSub","source":{"first_line":1788,"last_line":1790}},{"module":"Init.Prelude","name":"instSubNat","source":{"first_line":2261,"last_line":2262}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i16_fixed","source":{"first_line":2418,"last_line":2430}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"ite","source":{"first_line":1324,"last_line":1346}},{"module":"Init.Prelude","name":"instDecidableOr","source":{"first_line":1247,"last_line":1255}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Data.Int.Basic","name":"Int.instLEInt","source":{"first_line":230,"last_line":231}},{"module":"Init.Prelude","name":"Neg.neg","source":{"first_line":1657,"last_line":1657}},{"module":"Init.Data.Int.Basic","name":"Int.instNegInt","source":{"first_line":133,"last_line":135}},{"module":"Init.Prelude","name":"HPow.hPow","source":{"first_line":1538,"last_line":1538}},{"module":"Init.Prelude","name":"instHPow","source":{"first_line":1804,"last_line":1806}},{"module":"Mathlib.Algebra.Group.Monoid","name":"NPow.toPow","source":{"first_line":369,"last_line":371}},{"module":"Mathlib.Algebra.Group.Monoid","name":"Monoid.toNPow","source":{"first_line":388,"last_line":393}},{"module":"Mathlib.Algebra.Group.Int.Defs","name":"Int.instMonoid","source":{"first_line":73,"last_line":73}},{"module":"Init.Data.Int.Basic","name":"instOfNat","source":{"first_line":65,"last_line":66}},{"module":"Init.Data.Int.Basic","name":"Int.instLTInt","source":{"first_line":240,"last_line":241}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"instDecidableAnd","source":{"first_line":1239,"last_line":1245}},{"module":"Init.Data.Int.Basic","name":"Int.decLe","source":{"first_line":290,"last_line":301}},{"module":"Init.Data.Int.Basic","name":"Int.decLt","source":{"first_line":303,"last_line":314}},{"module":"ProofsSIntFixedWrite","name":"leb128fmt.sliceProof.SignedFixedWriterPost","source":{"first_line":185,"last_line":192}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"Init.Prelude","name":"Option.none","source":{"first_line":3055,"last_line":3056}}],"definitions_truncated":false,"first_line":269,"last_line":280,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I16) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hw :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16))))\n  (hfit :\n    leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value) →\n      @LE.le.{0} Nat instLENat\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))\n          (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)) →\n        leb128fmt.sliceProof.SignedFits (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value)\n          (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7))))\n            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i16_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (@ite.{1} Prop\n        (leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value))\n        (@instDecidableOr\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (And\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (@instDecidableAnd\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n            (Int.decLe\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value))\n            (Int.decLt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))))\n        (leb128fmt.sliceProof.SignedFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I16 value) before start out)\n        (@Eq.{1}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out\n          (@Prod.mk.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize) (@Option.none.{0} Aeneas.Std.Usize)\n            (@Prod.mk.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize before start))))","theorem":"leb128fmt_writer_model.i16_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I32","type_segments":[{"ref":"Aeneas.Std.I32","text":"Aeneas.Std.I32"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i32_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.SignedShortestPost 32 (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i32_writer","text":"leb128fmt_writer_model.i32_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.SignedShortestPost","text":"leb128fmt.sliceProof.SignedShortestPost"},{"text":" "},{"text":"32"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i32_writer","source":{"first_line":2432,"last_line":2444}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceEncode","name":"leb128fmt.sliceProof.SignedShortestPost","source":{"first_line":119,"last_line":122}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I32","source":{"first_line":45,"last_line":45}}],"definitions_truncated":false,"first_line":282,"last_line":287,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I32) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i32_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.SignedShortestPost (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value) before start out)","theorem":"leb128fmt_writer_model.i32_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I8","type_segments":[{"ref":"Aeneas.Std.I8","text":"Aeneas.Std.I8"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i8_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.SignedShortestPost 8 (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i8_writer","text":"leb128fmt_writer_model.i8_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.SignedShortestPost","text":"leb128fmt.sliceProof.SignedShortestPost"},{"text":" "},{"text":"8"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I8","source":{"first_line":675,"last_line":675}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i8_writer","source":{"first_line":2378,"last_line":2389}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceEncode","name":"leb128fmt.sliceProof.SignedShortestPost","source":{"first_line":119,"last_line":122}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I8","source":{"first_line":43,"last_line":43}}],"definitions_truncated":false,"first_line":242,"last_line":247,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I8) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i8_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.SignedShortestPost (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value)\n        before start out)","theorem":"leb128fmt_writer_model.i8_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I8","type_segments":[{"ref":"Aeneas.Std.I8","text":"Aeneas.Std.I8"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hw","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 8","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"8"}]},{"binder":"explicit","kind":"hypothesis","name":"hfit","type":"leb128fmt.sliceProof.SignedGuardAccepts 8 ↑width ↑value →\n  ↑start + (↑width + 6) / 7 ≤ (↑before).length → leb128fmt.sliceProof.SignedFits (↑value) ((↑width + 6) / 7 - 1)","type_segments":[{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"8"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"text":" →\n  "},{"text":"↑"},{"text":"start"},{"ref":"HAdd.hAdd","text":" + "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"},{"text":" → "},{"ref":"leb128fmt.sliceProof.SignedFits","text":"leb128fmt.sliceProof.SignedFits"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"ref":"HSub.hSub","text":"("},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"HSub.hSub","text":" - "},{"text":"1"},{"ref":"HSub.hSub","text":")"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i8_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    if leb128fmt.sliceProof.SignedGuardAccepts 8 ↑width ↑value then\n      leb128fmt.sliceProof.SignedFixedWriterPost (↑width) (↑value) before start out\n    else out = (Option.none, before, start)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i8_fixed","text":"leb128fmt_writer_model.i8_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"ite","text":"if "},{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"8"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"ref":"ite","text":" then"},{"ref":"ite","text":"\n      "},{"ref":"leb128fmt.sliceProof.SignedFixedWriterPost","text":"leb128fmt.sliceProof.SignedFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"},{"ref":"ite","text":"\n    "},{"ref":"ite","text":"else "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Prod.mk","text":"("},{"ref":"Option.none","text":"Option.none"},{"ref":"Prod.mk","text":", "},{"text":"before"},{"ref":"Prod.mk","text":", "},{"text":"start"},{"ref":"Prod.mk","text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I8","source":{"first_line":675,"last_line":675}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedGuardAccepts","source":{"first_line":124,"last_line":125}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I8","source":{"first_line":43,"last_line":43}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedFits","source":{"first_line":20,"last_line":21}},{"module":"Init.Prelude","name":"HSub.hSub","source":{"first_line":1491,"last_line":1491}},{"module":"Init.Prelude","name":"instHSub","source":{"first_line":1788,"last_line":1790}},{"module":"Init.Prelude","name":"instSubNat","source":{"first_line":2261,"last_line":2262}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i8_fixed","source":{"first_line":2391,"last_line":2402}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"ite","source":{"first_line":1324,"last_line":1346}},{"module":"Init.Prelude","name":"instDecidableOr","source":{"first_line":1247,"last_line":1255}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Data.Int.Basic","name":"Int.instLEInt","source":{"first_line":230,"last_line":231}},{"module":"Init.Prelude","name":"Neg.neg","source":{"first_line":1657,"last_line":1657}},{"module":"Init.Data.Int.Basic","name":"Int.instNegInt","source":{"first_line":133,"last_line":135}},{"module":"Init.Prelude","name":"HPow.hPow","source":{"first_line":1538,"last_line":1538}},{"module":"Init.Prelude","name":"instHPow","source":{"first_line":1804,"last_line":1806}},{"module":"Mathlib.Algebra.Group.Monoid","name":"NPow.toPow","source":{"first_line":369,"last_line":371}},{"module":"Mathlib.Algebra.Group.Monoid","name":"Monoid.toNPow","source":{"first_line":388,"last_line":393}},{"module":"Mathlib.Algebra.Group.Int.Defs","name":"Int.instMonoid","source":{"first_line":73,"last_line":73}},{"module":"Init.Data.Int.Basic","name":"instOfNat","source":{"first_line":65,"last_line":66}},{"module":"Init.Data.Int.Basic","name":"Int.instLTInt","source":{"first_line":240,"last_line":241}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"instDecidableAnd","source":{"first_line":1239,"last_line":1245}},{"module":"Init.Data.Int.Basic","name":"Int.decLe","source":{"first_line":290,"last_line":301}},{"module":"Init.Data.Int.Basic","name":"Int.decLt","source":{"first_line":303,"last_line":314}},{"module":"ProofsSIntFixedWrite","name":"leb128fmt.sliceProof.SignedFixedWriterPost","source":{"first_line":185,"last_line":192}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"Init.Prelude","name":"Option.none","source":{"first_line":3055,"last_line":3056}}],"definitions_truncated":false,"first_line":249,"last_line":260,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I8) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hw :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8))))\n  (hfit :\n    leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value) →\n      @LE.le.{0} Nat instLENat\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))\n          (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)) →\n        leb128fmt.sliceProof.SignedFits (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value)\n          (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7))))\n            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i8_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (@ite.{1} Prop\n        (leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value))\n        (@instDecidableOr\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (And\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (@instDecidableAnd\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n            (Int.decLe\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value))\n            (Int.decLt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))))\n        (leb128fmt.sliceProof.SignedFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I8 value) before start out)\n        (@Eq.{1}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out\n          (@Prod.mk.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize) (@Option.none.{0} Aeneas.Std.Usize)\n            (@Prod.mk.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize before start))))","theorem":"leb128fmt_writer_model.i8_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.I32","type_segments":[{"ref":"Aeneas.Std.I32","text":"Aeneas.Std.I32"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hw","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 32","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"32"}]},{"binder":"explicit","kind":"hypothesis","name":"hfit","type":"leb128fmt.sliceProof.SignedGuardAccepts 32 ↑width ↑value →\n  ↑start + (↑width + 6) / 7 ≤ (↑before).length → leb128fmt.sliceProof.SignedFits (↑value) ((↑width + 6) / 7 - 1)","type_segments":[{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"32"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"text":" →\n  "},{"text":"↑"},{"text":"start"},{"ref":"HAdd.hAdd","text":" + "},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"},{"text":" → "},{"ref":"leb128fmt.sliceProof.SignedFits","text":"leb128fmt.sliceProof.SignedFits"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"ref":"HSub.hSub","text":"("},{"ref":"HAdd.hAdd","text":"("},{"text":"↑"},{"text":"width"},{"ref":"HAdd.hAdd","text":" + "},{"text":"6"},{"ref":"HAdd.hAdd","text":")"},{"ref":"HDiv.hDiv","text":" / "},{"text":"7"},{"ref":"HSub.hSub","text":" - "},{"text":"1"},{"ref":"HSub.hSub","text":")"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.i32_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    if leb128fmt.sliceProof.SignedGuardAccepts 32 ↑width ↑value then\n      leb128fmt.sliceProof.SignedFixedWriterPost (↑width) (↑value) before start out\n    else out = (Option.none, before, start)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.i32_fixed","text":"leb128fmt_writer_model.i32_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"ite","text":"if "},{"ref":"leb128fmt.sliceProof.SignedGuardAccepts","text":"leb128fmt.sliceProof.SignedGuardAccepts"},{"text":" "},{"text":"32"},{"text":" "},{"text":"↑"},{"text":"width"},{"text":" "},{"text":"↑"},{"text":"value"},{"ref":"ite","text":" then"},{"ref":"ite","text":"\n      "},{"ref":"leb128fmt.sliceProof.SignedFixedWriterPost","text":"leb128fmt.sliceProof.SignedFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"},{"ref":"ite","text":"\n    "},{"ref":"ite","text":"else "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Prod.mk","text":"("},{"ref":"Option.none","text":"Option.none"},{"ref":"Prod.mk","text":", "},{"text":"before"},{"ref":"Prod.mk","text":", "},{"text":"start"},{"ref":"Prod.mk","text":")"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedGuardAccepts","source":{"first_line":124,"last_line":125}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I32","source":{"first_line":45,"last_line":45}},{"module":"Init.Prelude","name":"HAdd.hAdd","source":{"first_line":1481,"last_line":1481}},{"module":"Init.Prelude","name":"instHAdd","source":{"first_line":1784,"last_line":1786}},{"module":"Init.Prelude","name":"instAddNat","source":{"first_line":1892,"last_line":1893}},{"module":"Init.Prelude","name":"HDiv.hDiv","source":{"first_line":1518,"last_line":1518}},{"module":"Init.Prelude","name":"instHDiv","source":{"first_line":1796,"last_line":1798}},{"module":"Init.Prelude","name":"Nat.instDiv","source":{"first_line":2320,"last_line":2320}},{"module":"SignedWriteCommon","name":"leb128fmt.sliceProof.SignedFits","source":{"first_line":20,"last_line":21}},{"module":"Init.Prelude","name":"HSub.hSub","source":{"first_line":1491,"last_line":1491}},{"module":"Init.Prelude","name":"instHSub","source":{"first_line":1788,"last_line":1790}},{"module":"Init.Prelude","name":"instSubNat","source":{"first_line":2261,"last_line":2262}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.i32_fixed","source":{"first_line":2446,"last_line":2458}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"ite","source":{"first_line":1324,"last_line":1346}},{"module":"Init.Prelude","name":"instDecidableOr","source":{"first_line":1247,"last_line":1255}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Data.Int.Basic","name":"Int.instLEInt","source":{"first_line":230,"last_line":231}},{"module":"Init.Prelude","name":"Neg.neg","source":{"first_line":1657,"last_line":1657}},{"module":"Init.Data.Int.Basic","name":"Int.instNegInt","source":{"first_line":133,"last_line":135}},{"module":"Init.Prelude","name":"HPow.hPow","source":{"first_line":1538,"last_line":1538}},{"module":"Init.Prelude","name":"instHPow","source":{"first_line":1804,"last_line":1806}},{"module":"Mathlib.Algebra.Group.Monoid","name":"NPow.toPow","source":{"first_line":369,"last_line":371}},{"module":"Mathlib.Algebra.Group.Monoid","name":"Monoid.toNPow","source":{"first_line":388,"last_line":393}},{"module":"Mathlib.Algebra.Group.Int.Defs","name":"Int.instMonoid","source":{"first_line":73,"last_line":73}},{"module":"Init.Data.Int.Basic","name":"instOfNat","source":{"first_line":65,"last_line":66}},{"module":"Init.Data.Int.Basic","name":"Int.instLTInt","source":{"first_line":240,"last_line":241}},{"module":"Init.Prelude","name":"Nat.decLe","source":{"first_line":2196,"last_line":2212}},{"module":"Init.Prelude","name":"instDecidableAnd","source":{"first_line":1239,"last_line":1245}},{"module":"Init.Data.Int.Basic","name":"Int.decLe","source":{"first_line":290,"last_line":301}},{"module":"Init.Data.Int.Basic","name":"Int.decLt","source":{"first_line":303,"last_line":314}},{"module":"ProofsSIntFixedWrite","name":"leb128fmt.sliceProof.SignedFixedWriterPost","source":{"first_line":185,"last_line":192}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"Init.Prelude","name":"Option.none","source":{"first_line":3055,"last_line":3056}}],"definitions_truncated":false,"first_line":289,"last_line":300,"module":"ProofsConcreteSignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.I32) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hw :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n  (hfit :\n    leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value) →\n      @LE.le.{0} Nat instLENat\n          (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))))\n          (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)) →\n        leb128fmt.sliceProof.SignedFits (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value)\n          (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat)\n            (@HDiv.hDiv.{0, 0, 0} Nat Nat Nat (@instHDiv.{0} Nat Nat.instDiv)\n              (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n                (@OfNat.ofNat.{0} Nat (nat_lit 6) (instOfNatNat (nat_lit 6))))\n              (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7))))\n            (@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.i32_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (@ite.{1} Prop\n        (leb128fmt.sliceProof.SignedGuardAccepts (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value))\n        (@instDecidableOr\n          (@LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (And\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))))\n          (Nat.decLe (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n            (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n          (@instDecidableAnd\n            (@LE.le.{0} Int Int.instLEInt\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value))\n            (@LT.lt.{0} Int Int.instLTInt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n            (Int.decLe\n              (@Neg.neg.{0} Int Int.instNegInt\n                (@HPow.hPow.{0, 0, 0} Int Nat Int\n                  (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                  (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                  (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))\n              (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value))\n            (Int.decLt (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value)\n              (@HPow.hPow.{0, 0, 0} Int Nat Int\n                (@instHPow.{0, 0} Int Nat (@NPow.toPow.{0} Int (@Monoid.toNPow.{0} Int Int.instMonoid)))\n                (@OfNat.ofNat.{0} Int (nat_lit 2) (@instOfNat (nat_lit 2)))\n                (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))))\n        (leb128fmt.sliceProof.SignedFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n          (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 value) before start out)\n        (@Eq.{1}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out\n          (@Prod.mk.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize) (@Option.none.{0} Aeneas.Std.Usize)\n            (@Prod.mk.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize before start))))","theorem":"leb128fmt_writer_model.i32_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U128","type_segments":[{"ref":"Aeneas.Std.U128","text":"Aeneas.Std.U128"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 128","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"128"}]},{"binder":"explicit","kind":"hypothesis","name":"hpositive","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u128_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntFixedWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u128_fixed","text":"leb128fmt_writer_model.u128_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntFixedWriterPost","text":"leb128fmt.sliceProof.UIntFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U128","source":{"first_line":673,"last_line":673}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u128_fixed","source":{"first_line":2365,"last_line":2376}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntFixedWrite","name":"leb128fmt.sliceProof.UIntFixedWriterPost","source":{"first_line":12,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U128","source":{"first_line":37,"last_line":37}}],"definitions_truncated":false,"first_line":227,"last_line":232,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U128) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128))))\n  (hpositive :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u128_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U128 value) before start out)","theorem":"leb128fmt.writerProof.u128_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 32","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"32"}]},{"binder":"explicit","kind":"hypothesis","name":"hpositive","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u32_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntFixedWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u32_fixed","text":"leb128fmt_writer_model.u32_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntFixedWriterPost","text":"leb128fmt.sliceProof.UIntFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u32_fixed","source":{"first_line":2311,"last_line":2322}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntFixedWrite","name":"leb128fmt.sliceProof.UIntFixedWriterPost","source":{"first_line":12,"last_line":19}}],"definitions_truncated":false,"first_line":157,"last_line":162,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width value : Aeneas.Std.U32) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32))))\n  (hpositive :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u32_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 value) before start out)","theorem":"leb128fmt.writerProof.u32_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 32","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"32"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u32_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u32_writer","text":"leb128fmt_writer_model.u32_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntWriterPost","text":"leb128fmt.sliceProof.UIntWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u32_writer","source":{"first_line":2297,"last_line":2309}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceEncode","name":"leb128fmt.sliceProof.UIntWriterPost","source":{"first_line":183,"last_line":186}}],"definitions_truncated":false,"first_line":151,"last_line":155,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width value : Aeneas.Std.U32) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u32_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 value) before start out)","theorem":"leb128fmt.writerProof.u32_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U16","type_segments":[{"ref":"Aeneas.Std.U16","text":"Aeneas.Std.U16"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 16","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"16"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u16_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u16_writer","text":"leb128fmt_writer_model.u16_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntWriterPost","text":"leb128fmt.sliceProof.UIntWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u16_writer","source":{"first_line":2270,"last_line":2282}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceEncode","name":"leb128fmt.sliceProof.UIntWriterPost","source":{"first_line":183,"last_line":186}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U16","source":{"first_line":34,"last_line":34}}],"definitions_truncated":false,"first_line":116,"last_line":120,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U16) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u16_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U16 value) before start out)","theorem":"leb128fmt.writerProof.u16_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 64","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"64"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u64_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u64_writer","text":"leb128fmt_writer_model.u64_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntWriterPost","text":"leb128fmt.sliceProof.UIntWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u64_writer","source":{"first_line":2324,"last_line":2336}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceEncode","name":"leb128fmt.sliceProof.UIntWriterPost","source":{"first_line":183,"last_line":186}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}}],"definitions_truncated":false,"first_line":186,"last_line":190,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U64) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u64_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 value) before start out)","theorem":"leb128fmt.writerProof.u64_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U64","type_segments":[{"ref":"Aeneas.Std.U64","text":"Aeneas.Std.U64"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 64","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"64"}]},{"binder":"explicit","kind":"hypothesis","name":"hpositive","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u64_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntFixedWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u64_fixed","text":"leb128fmt_writer_model.u64_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntFixedWriterPost","text":"leb128fmt.sliceProof.UIntFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u64_fixed","source":{"first_line":2338,"last_line":2349}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntFixedWrite","name":"leb128fmt.sliceProof.UIntFixedWriterPost","source":{"first_line":12,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}}],"definitions_truncated":false,"first_line":192,"last_line":197,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U64) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64))))\n  (hpositive :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u64_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64 value) before start out)","theorem":"leb128fmt.writerProof.u64_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U128","type_segments":[{"ref":"Aeneas.Std.U128","text":"Aeneas.Std.U128"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 128","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"128"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u128_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u128_writer","text":"leb128fmt_writer_model.u128_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntWriterPost","text":"leb128fmt.sliceProof.UIntWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U128","source":{"first_line":673,"last_line":673}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u128_writer","source":{"first_line":2351,"last_line":2363}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceEncode","name":"leb128fmt.sliceProof.UIntWriterPost","source":{"first_line":183,"last_line":186}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U128","source":{"first_line":37,"last_line":37}}],"definitions_truncated":false,"first_line":221,"last_line":225,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U128) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u128_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U128 value) before start out)","theorem":"leb128fmt.writerProof.u128_writer_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U16","type_segments":[{"ref":"Aeneas.Std.U16","text":"Aeneas.Std.U16"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 16","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"16"}]},{"binder":"explicit","kind":"hypothesis","name":"hpositive","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]}],"conclusion":"∃ out,\n  leb128fmt_writer_model.u16_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntFixedWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_writer_model.u16_fixed","text":"leb128fmt_writer_model.u16_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntFixedWriterPost","text":"leb128fmt.sliceProof.UIntFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ConcreteWriters.Funs","name":"leb128fmt_writer_model.u16_fixed","source":{"first_line":2284,"last_line":2295}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntFixedWrite","name":"leb128fmt.sliceProof.UIntFixedWriterPost","source":{"first_line":12,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U16","source":{"first_line":34,"last_line":34}}],"definitions_truncated":false,"first_line":122,"last_line":127,"module":"ProofsConcreteUnsignedWriters","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U16) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16))))\n  (hpositive :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_writer_model.u16_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U16 value) before start out)","theorem":"leb128fmt.writerProof.u16_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"error","type":"leb128fmt_error_observers.leb128fmt.Error","type_segments":[{"ref":"leb128fmt_error_observers.leb128fmt.Error","text":"leb128fmt_error_observers.leb128fmt.Error"}]}],"conclusion":"leb128fmt_error_observers.source_is_none error = Aeneas.Std.Result.ok Bool.true","conclusion_segments":[{"ref":"leb128fmt_error_observers.source_is_none","text":"leb128fmt_error_observers.source_is_none"},{"text":" "},{"text":"error"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"ref":"Bool.true","text":"Bool.true"}],"definitions":[{"module":"Observer","name":"leb128fmt_error_observers.leb128fmt.Error","source":{"first_line":31,"last_line":36}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Observer","name":"leb128fmt_error_observers.source_is_none","source":{"first_line":38,"last_line":42}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}}],"definitions_truncated":false,"first_line":7,"last_line":9,"module":"ProofsErrorObservers","program":null,"program_head":null,"statement":"∀ (error : leb128fmt_error_observers.leb128fmt.Error),\n  @Eq.{1} (Aeneas.Std.Result.{0} Bool) (leb128fmt_error_observers.source_is_none error)\n    (@Aeneas.Std.Result.ok.{0} Bool Bool.true)","theorem":"leb128fmt_error_observers.source_is_none_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"error","type":"leb128fmt.Error","type_segments":[{"ref":"leb128fmt.Error","text":"leb128fmt.Error"}]}],"conclusion":"∃ out,\n  error.is_invalid_encoding = Aeneas.Std.Result.ok out ∧\n    (out = Bool.true ↔ error = leb128fmt.InnerError.InvalidEncoding)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"text":"error"},{"text":"."},{"ref":"leb128fmt.Error.is_invalid_encoding","text":"is_invalid_encoding"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"Iff","text":"("},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Bool.true","text":"Bool.true"},{"ref":"Iff","text":" ↔ "},{"text":"error"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.InnerError.InvalidEncoding","text":"leb128fmt.InnerError.InvalidEncoding"},{"ref":"Iff","text":")"}],"definitions":[{"module":"LebErrors","name":"leb128fmt.Error","source":{"first_line":78,"last_line":82}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebErrors","name":"leb128fmt.Error.is_invalid_encoding","source":{"first_line":106,"last_line":112}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Core","name":"Iff","source":{"first_line":183,"last_line":194}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}},{"module":"LebErrors","name":"leb128fmt.InnerError.InvalidEncoding","source":{"first_line":58,"last_line":58}}],"definitions_truncated":false,"first_line":12,"last_line":15,"module":"ProofsErrors","program":null,"program_head":null,"statement":"∀ (error : leb128fmt.Error),\n  @Exists.{1} Bool fun (out : Bool) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} Bool) (leb128fmt.Error.is_invalid_encoding error)\n        (@Aeneas.Std.Result.ok.{0} Bool out))\n      (Iff (@Eq.{1} Bool out Bool.true) (@Eq.{1} leb128fmt.Error error leb128fmt.InnerError.InvalidEncoding))","theorem":"leb128fmt.Error.is_invalid_encoding_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"error","type":"leb128fmt.Error","type_segments":[{"ref":"leb128fmt.Error","text":"leb128fmt.Error"}]}],"conclusion":"∃ out,\n  error.is_more_bytes_needed = Aeneas.Std.Result.ok out ∧ (out = Bool.true ↔ error = leb128fmt.InnerError.NeedMoreBytes)","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"text":"error"},{"text":"."},{"ref":"leb128fmt.Error.is_more_bytes_needed","text":"is_more_bytes_needed"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧ "},{"ref":"Iff","text":"("},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"Bool.true","text":"Bool.true"},{"ref":"Iff","text":" ↔ "},{"text":"error"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.InnerError.NeedMoreBytes","text":"leb128fmt.InnerError.NeedMoreBytes"},{"ref":"Iff","text":")"}],"definitions":[{"module":"LebErrors","name":"leb128fmt.Error","source":{"first_line":78,"last_line":82}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebErrors","name":"leb128fmt.Error.is_more_bytes_needed","source":{"first_line":98,"last_line":104}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Core","name":"Iff","source":{"first_line":183,"last_line":194}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}},{"module":"LebErrors","name":"leb128fmt.InnerError.NeedMoreBytes","source":{"first_line":57,"last_line":57}}],"definitions_truncated":false,"first_line":7,"last_line":10,"module":"ProofsErrors","program":null,"program_head":null,"statement":"∀ (error : leb128fmt.Error),\n  @Exists.{1} Bool fun (out : Bool) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} Bool) (leb128fmt.Error.is_more_bytes_needed error)\n        (@Aeneas.Std.Result.ok.{0} Bool out))\n      (Iff (@Eq.{1} Bool out Bool.true) (@Eq.{1} leb128fmt.Error error leb128fmt.InnerError.NeedMoreBytes))","theorem":"leb128fmt.Error.is_more_bytes_needed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"error","type":"leb128fmt.Error","type_segments":[{"ref":"leb128fmt.Error","text":"leb128fmt.Error"}]}],"conclusion":"leb128fmt.Error.Insts.CoreCloneClone.clone error = Aeneas.Std.Result.ok error","conclusion_segments":[{"ref":"leb128fmt.Error.Insts.CoreCloneClone.clone","text":"leb128fmt.Error.Insts.CoreCloneClone.clone"},{"text":" "},{"text":"error"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"error"}],"definitions":[{"module":"LebErrors","name":"leb128fmt.Error","source":{"first_line":78,"last_line":82}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebErrors","name":"leb128fmt.Error.Insts.CoreCloneClone.clone","source":{"first_line":84,"last_line":89}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}}],"definitions_truncated":false,"first_line":17,"last_line":19,"module":"ProofsErrors","program":null,"program_head":null,"statement":"∀ (error : leb128fmt.Error),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.Error) (leb128fmt.Error.Insts.CoreCloneClone.clone error)\n    (@Aeneas.Std.Result.ok.{0} leb128fmt.Error error)","theorem":"leb128fmt.Error.clone_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"left","type":"leb128fmt.Error","type_segments":[{"ref":"leb128fmt.Error","text":"leb128fmt.Error"}]},{"binder":"explicit","kind":"variable","name":"right","type":"leb128fmt.Error","type_segments":[{"ref":"leb128fmt.Error","text":"leb128fmt.Error"}]}],"conclusion":"∃ equal,\n  leb128fmt.Error.Insts.CoreCmpPartialEqError.eq left right = Aeneas.Std.Result.ok equal ∧\n    (equal = Bool.true ↔ left = right)","conclusion_segments":[{"text":"∃ "},{"text":"equal"},{"text":",\n  "},{"ref":"leb128fmt.Error.Insts.CoreCmpPartialEqError.eq","text":"leb128fmt.Error.Insts.CoreCmpPartialEqError.eq"},{"text":" "},{"text":"left"},{"text":" "},{"text":"right"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"equal"},{"ref":"And","text":" ∧\n    "},{"ref":"Iff","text":"("},{"text":"equal"},{"ref":"Eq","text":" = "},{"ref":"Bool.true","text":"Bool.true"},{"ref":"Iff","text":" ↔ "},{"text":"left"},{"ref":"Eq","text":" = "},{"text":"right"},{"ref":"Iff","text":")"}],"definitions":[{"module":"LebErrors","name":"leb128fmt.Error","source":{"first_line":78,"last_line":82}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Bool","source":{"first_line":99,"last_line":111}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"LebErrors","name":"leb128fmt.Error.Insts.CoreCmpPartialEqError.eq","source":{"first_line":91,"last_line":96}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Core","name":"Iff","source":{"first_line":183,"last_line":194}},{"module":"Init.Prelude","name":"Bool.true","source":{"first_line":110,"last_line":111}}],"definitions_truncated":false,"first_line":21,"last_line":34,"module":"ProofsErrors","program":null,"program_head":null,"statement":"∀ (left right : leb128fmt.Error),\n  @Exists.{1} Bool fun (equal : Bool) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} Bool) (leb128fmt.Error.Insts.CoreCmpPartialEqError.eq left right)\n        (@Aeneas.Std.Result.ok.{0} Bool equal))\n      (Iff (@Eq.{1} Bool equal Bool.true) (@Eq.{1} leb128fmt.Error left right))","theorem":"leb128fmt.Error.eq_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"input","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"pos","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 16","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"16"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.i16_reader width input pos = Aeneas.Std.Result.ok out ∧\n    leb128fmt_slice_probe.observeSignedRead out = leb128fmt_slice_probe.signedSliceMeaning input ↑pos ↑width","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.i16_reader","text":"leb128fmt_slice_probe.i16_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"input"},{"text":" "},{"text":"pos"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt_slice_probe.observeSignedRead","text":"leb128fmt_slice_probe.observeSignedRead"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt_slice_probe.signedSliceMeaning","text":"leb128fmt_slice_probe.signedSliceMeaning"},{"text":" "},{"text":"input"},{"text":" "},{"text":"↑"},{"text":"pos"},{"text":" "},{"text":"↑"},{"text":"width"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I16","source":{"first_line":676,"last_line":676}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.i16_reader","source":{"first_line":1515,"last_line":1524}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.SignedRead","source":{"first_line":13,"last_line":16}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.observeSignedRead","source":{"first_line":46,"last_line":50}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I16","source":{"first_line":44,"last_line":44}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.signedSliceMeaning","source":{"first_line":43,"last_line":44}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":477,"last_line":485,"module":"ProofsSIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (input : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (pos : Aeneas.Std.Usize)\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I16 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I16 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I16 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.i16_reader width input pos)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I16 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@Eq.{1} leb128fmt_slice_probe.SignedRead (@leb128fmt_slice_probe.observeSignedRead Aeneas.Std.IScalarTy.I16 out)\n        (leb128fmt_slice_probe.signedSliceMeaning input (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize pos)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))","theorem":"leb128fmt_slice_probe.i16_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"input","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"pos","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 32","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"32"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.i32_reader width input pos = Aeneas.Std.Result.ok out ∧\n    leb128fmt_slice_probe.observeSignedRead out = leb128fmt_slice_probe.signedSliceMeaning input ↑pos ↑width","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.i32_reader","text":"leb128fmt_slice_probe.i32_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"input"},{"text":" "},{"text":"pos"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt_slice_probe.observeSignedRead","text":"leb128fmt_slice_probe.observeSignedRead"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt_slice_probe.signedSliceMeaning","text":"leb128fmt_slice_probe.signedSliceMeaning"},{"text":" "},{"text":"input"},{"text":" "},{"text":"↑"},{"text":"pos"},{"text":" "},{"text":"↑"},{"text":"width"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.i32_reader","source":{"first_line":1526,"last_line":1535}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.SignedRead","source":{"first_line":13,"last_line":16}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.observeSignedRead","source":{"first_line":46,"last_line":50}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I32","source":{"first_line":45,"last_line":45}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.signedSliceMeaning","source":{"first_line":43,"last_line":44}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":487,"last_line":495,"module":"ProofsSIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (input : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (pos : Aeneas.Std.Usize)\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I32 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I32 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I32 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.i32_reader width input pos)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I32 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@Eq.{1} leb128fmt_slice_probe.SignedRead (@leb128fmt_slice_probe.observeSignedRead Aeneas.Std.IScalarTy.I32 out)\n        (leb128fmt_slice_probe.signedSliceMeaning input (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize pos)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))","theorem":"leb128fmt_slice_probe.i32_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"input","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"pos","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 128","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"128"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.i128_reader width input pos = Aeneas.Std.Result.ok out ∧\n    leb128fmt_slice_probe.observeSignedRead out = leb128fmt_slice_probe.signedSliceMeaning input ↑pos ↑width","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.i128_reader","text":"leb128fmt_slice_probe.i128_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"input"},{"text":" "},{"text":"pos"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt_slice_probe.observeSignedRead","text":"leb128fmt_slice_probe.observeSignedRead"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt_slice_probe.signedSliceMeaning","text":"leb128fmt_slice_probe.signedSliceMeaning"},{"text":" "},{"text":"input"},{"text":" "},{"text":"↑"},{"text":"pos"},{"text":" "},{"text":"↑"},{"text":"width"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I128","source":{"first_line":679,"last_line":679}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.i128_reader","source":{"first_line":1548,"last_line":1557}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.SignedRead","source":{"first_line":13,"last_line":16}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.observeSignedRead","source":{"first_line":46,"last_line":50}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I128","source":{"first_line":47,"last_line":47}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.signedSliceMeaning","source":{"first_line":43,"last_line":44}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":507,"last_line":515,"module":"ProofsSIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (input : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (pos : Aeneas.Std.Usize)\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I128 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I128 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I128 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.i128_reader width input pos)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I128 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@Eq.{1} leb128fmt_slice_probe.SignedRead (@leb128fmt_slice_probe.observeSignedRead Aeneas.Std.IScalarTy.I128 out)\n        (leb128fmt_slice_probe.signedSliceMeaning input (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize pos)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))","theorem":"leb128fmt_slice_probe.i128_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"input","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"pos","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 64","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"64"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.i64_reader width input pos = Aeneas.Std.Result.ok out ∧\n    leb128fmt_slice_probe.observeSignedRead out = leb128fmt_slice_probe.signedSliceMeaning input ↑pos ↑width","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.i64_reader","text":"leb128fmt_slice_probe.i64_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"input"},{"text":" "},{"text":"pos"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt_slice_probe.observeSignedRead","text":"leb128fmt_slice_probe.observeSignedRead"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt_slice_probe.signedSliceMeaning","text":"leb128fmt_slice_probe.signedSliceMeaning"},{"text":" "},{"text":"input"},{"text":" "},{"text":"↑"},{"text":"pos"},{"text":" "},{"text":"↑"},{"text":"width"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.i64_reader","source":{"first_line":1537,"last_line":1546}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.SignedRead","source":{"first_line":13,"last_line":16}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.observeSignedRead","source":{"first_line":46,"last_line":50}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I64","source":{"first_line":46,"last_line":46}},{"module":"ProofsSIntSliceDecode","name":"leb128fmt_slice_probe.signedSliceMeaning","source":{"first_line":43,"last_line":44}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":497,"last_line":505,"module":"ProofsSIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (input : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (pos : Aeneas.Std.Usize)\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I64 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I64 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I64 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.i64_reader width input pos)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.I64 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@Eq.{1} leb128fmt_slice_probe.SignedRead (@leb128fmt_slice_probe.observeSignedRead Aeneas.Std.IScalarTy.I64 out)\n        (leb128fmt_slice_probe.signedSliceMeaning input (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize pos)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)))","theorem":"leb128fmt_slice_probe.i64_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.I32","type_segments":[{"ref":"Aeneas.Std.I32","text":"Aeneas.Std.I32"}]}],"conclusion":"∃ bytes,\n  leb128fmt.encode_fixed_s32 x = Aeneas.Std.Result.ok (Option.some bytes) ∧\n    leb128fmt.signed32.SignedFixedEncoding (↑x) bytes","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":",\n  "},{"ref":"leb128fmt.encode_fixed_s32","text":"leb128fmt.encode_fixed_s32"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"text":"bytes"},{"text":")"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed32.SignedFixedEncoding","text":"leb128fmt.signed32.SignedFixedEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Signed32","name":"leb128fmt.encode_s32_loop0.body._proof_1","source":null},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Signed32","name":"leb128fmt.encode_fixed_s32","source":{"first_line":524,"last_line":568}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"ProofsSigned32","name":"leb128fmt.signed32.SignedFixedEncoding","source":{"first_line":276,"last_line":277}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I32","source":{"first_line":45,"last_line":45}}],"definitions_truncated":false,"first_line":402,"last_line":430,"module":"ProofsSigned32","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.I32),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n        leb128fmt.encode_s32_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n            leb128fmt.encode_s32_loop0.body._proof_1)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_s32_loop0.body._proof_1))))\n        (leb128fmt.encode_fixed_s32 x)\n        (@Aeneas.Std.Result.ok.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_s32_loop0.body._proof_1)))\n          (@Option.some.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                leb128fmt.encode_s32_loop0.body._proof_1))\n            bytes)))\n      (leb128fmt.signed32.SignedFixedEncoding (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 x) bytes)","theorem":"leb128fmt.signed32.encode_fixed_s32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.I32","type_segments":[{"ref":"Aeneas.Std.I32","text":"Aeneas.Std.I32"}]}],"conclusion":"∃ bytes k,\n  leb128fmt.encode_s32 x = Aeneas.Std.Result.ok (Option.some (bytes, k)) ∧\n    leb128fmt.signed32.SignedCanonicalEncoding (↑x) bytes ↑k","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":" "},{"text":"k"},{"text":",\n  "},{"ref":"leb128fmt.encode_s32","text":"leb128fmt.encode_s32"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"ref":"Prod.mk","text":"("},{"text":"bytes"},{"ref":"Prod.mk","text":", "},{"text":"k"},{"ref":"Prod.mk","text":")"},{"text":")"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed32.SignedCanonicalEncoding","text":"leb128fmt.signed32.SignedCanonicalEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"↑"},{"text":"k"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Signed32","name":"leb128fmt.encode_s32_loop0.body._proof_1","source":null},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Signed32","name":"leb128fmt.encode_s32","source":{"first_line":216,"last_line":248}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"ProofsSigned32","name":"leb128fmt.signed32.SignedCanonicalEncoding","source":{"first_line":113,"last_line":115}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I32","source":{"first_line":45,"last_line":45}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":244,"last_line":273,"module":"ProofsSigned32","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.I32),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n        leb128fmt.encode_s32_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n            leb128fmt.encode_s32_loop0.body._proof_1)) =>\n    @Exists.{1} Aeneas.Std.Usize fun (k : Aeneas.Std.Usize) =>\n      And\n        (@Eq.{1}\n          (Aeneas.Std.Result.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_s32_loop0.body._proof_1))\n                Aeneas.Std.Usize)))\n          (leb128fmt.encode_s32 x)\n          (@Aeneas.Std.Result.ok.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_s32_loop0.body._proof_1))\n                Aeneas.Std.Usize))\n            (@Option.some.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_s32_loop0.body._proof_1))\n                Aeneas.Std.Usize)\n              (@Prod.mk.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 5) (instOfNatNat (nat_lit 5)))\n                    leb128fmt.encode_s32_loop0.body._proof_1))\n                Aeneas.Std.Usize bytes k))))\n        (leb128fmt.signed32.SignedCanonicalEncoding (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I32 x) bytes\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize k))","theorem":"leb128fmt.signed32.encode_s32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"bytes","type":"leb128fmt.signed32.Bytes32","type_segments":[{"ref":"leb128fmt.signed32.Bytes32","text":"leb128fmt.signed32.Bytes32"}]}],"conclusion":"∃ out,\n  leb128fmt.decode_s32 bytes = Aeneas.Std.Result.ok out ∧\n    leb128fmt.signed32.decodeSignedValue out = leb128fmt.signed32.decodeSignedMeaning bytes","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt.decode_s32","text":"leb128fmt.decode_s32"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed32.decodeSignedValue","text":"leb128fmt.signed32.decodeSignedValue"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.signed32.decodeSignedMeaning","text":"leb128fmt.signed32.decodeSignedMeaning"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"ProofsSigned32","name":"leb128fmt.signed32.Bytes32","source":{"first_line":32,"last_line":32}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I32","source":{"first_line":677,"last_line":677}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Signed32","name":"leb128fmt.decode_s32","source":{"first_line":677,"last_line":684}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"ProofsSigned32","name":"leb128fmt.signed32.decodeSignedValue","source":{"first_line":448,"last_line":449}},{"module":"ProofsSigned32","name":"leb128fmt.signed32.decodeSignedMeaning","source":{"first_line":445,"last_line":446}}],"definitions_truncated":false,"first_line":683,"last_line":688,"module":"ProofsSigned32","program":null,"program_head":null,"statement":"∀ (bytes : leb128fmt.signed32.Bytes32),\n  @Exists.{1} (Option.{0} (Prod.{0, 0} Aeneas.Std.I32 Aeneas.Std.Usize))\n    fun (out : Option.{0} (Prod.{0, 0} Aeneas.Std.I32 Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.I32 Aeneas.Std.Usize)))\n        (leb128fmt.decode_s32 bytes)\n        (@Aeneas.Std.Result.ok.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.I32 Aeneas.Std.Usize)) out))\n      (@Eq.{1} (Option.{0} (Prod.{0, 0} Int Nat)) (leb128fmt.signed32.decodeSignedValue out)\n        (leb128fmt.signed32.decodeSignedMeaning bytes))","theorem":"leb128fmt.signed32.decode_s32_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.I64","type_segments":[{"ref":"Aeneas.Std.I64","text":"Aeneas.Std.I64"}]}],"conclusion":"∃ bytes,\n  leb128fmt.encode_fixed_s64 x = Aeneas.Std.Result.ok (Option.some bytes) ∧\n    leb128fmt.signed64.SignedFixedEncoding (↑x) bytes","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":",\n  "},{"ref":"leb128fmt.encode_fixed_s64","text":"leb128fmt.encode_fixed_s64"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"text":"bytes"},{"text":")"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed64.SignedFixedEncoding","text":"leb128fmt.signed64.SignedFixedEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Signed64","name":"leb128fmt.encode_s64_loop0.body._proof_1","source":null},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Signed64","name":"leb128fmt.encode_fixed_s64","source":{"first_line":524,"last_line":568}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"ProofsSigned64","name":"leb128fmt.signed64.SignedFixedEncoding","source":{"first_line":276,"last_line":277}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I64","source":{"first_line":46,"last_line":46}}],"definitions_truncated":false,"first_line":402,"last_line":430,"module":"ProofsSigned64","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.I64),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n        leb128fmt.encode_s64_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n            leb128fmt.encode_s64_loop0.body._proof_1)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_s64_loop0.body._proof_1))))\n        (leb128fmt.encode_fixed_s64 x)\n        (@Aeneas.Std.Result.ok.{0}\n          (Option.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_s64_loop0.body._proof_1)))\n          (@Option.some.{0}\n            (Aeneas.Std.Array.{0} Aeneas.Std.U8\n              (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                leb128fmt.encode_s64_loop0.body._proof_1))\n            bytes)))\n      (leb128fmt.signed64.SignedFixedEncoding (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 x) bytes)","theorem":"leb128fmt.signed64.encode_fixed_s64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"x","type":"Aeneas.Std.I64","type_segments":[{"ref":"Aeneas.Std.I64","text":"Aeneas.Std.I64"}]}],"conclusion":"∃ bytes k,\n  leb128fmt.encode_s64 x = Aeneas.Std.Result.ok (Option.some (bytes, k)) ∧\n    leb128fmt.signed64.SignedCanonicalEncoding (↑x) bytes ↑k","conclusion_segments":[{"text":"∃ "},{"text":"bytes"},{"text":" "},{"text":"k"},{"text":",\n  "},{"ref":"leb128fmt.encode_s64","text":"leb128fmt.encode_s64"},{"text":" "},{"text":"x"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"Option.some","text":"Option.some"},{"text":" "},{"ref":"Prod.mk","text":"("},{"text":"bytes"},{"ref":"Prod.mk","text":", "},{"text":"k"},{"ref":"Prod.mk","text":")"},{"text":")"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed64.SignedCanonicalEncoding","text":"leb128fmt.signed64.SignedCanonicalEncoding"},{"text":" "},{"text":"(↑"},{"text":"x"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"↑"},{"text":"k"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Aeneas.Std.Array.Array","name":"Aeneas.Std.Array","source":{"first_line":28,"last_line":30}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize.ofNat","source":{"first_line":703,"last_line":703}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Signed64","name":"leb128fmt.encode_s64_loop0.body._proof_1","source":null},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Signed64","name":"leb128fmt.encode_s64","source":{"first_line":216,"last_line":248}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Prelude","name":"Option.some","source":{"first_line":3057,"last_line":3058}},{"module":"Init.Prelude","name":"Prod.mk","source":{"first_line":614,"last_line":614}},{"module":"ProofsSigned64","name":"leb128fmt.signed64.SignedCanonicalEncoding","source":{"first_line":113,"last_line":115}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalar.val","source":{"first_line":84,"last_line":84}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.IScalarTy.I64","source":{"first_line":46,"last_line":46}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":244,"last_line":273,"module":"ProofsSigned64","program":null,"program_head":null,"statement":"∀ (x : Aeneas.Std.I64),\n  @Exists.{1}\n    (Aeneas.Std.Array.{0} Aeneas.Std.U8\n      (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n        leb128fmt.encode_s64_loop0.body._proof_1))\n    fun\n      (bytes :\n        Aeneas.Std.Array.{0} Aeneas.Std.U8\n          (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n            leb128fmt.encode_s64_loop0.body._proof_1)) =>\n    @Exists.{1} Aeneas.Std.Usize fun (k : Aeneas.Std.Usize) =>\n      And\n        (@Eq.{1}\n          (Aeneas.Std.Result.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_s64_loop0.body._proof_1))\n                Aeneas.Std.Usize)))\n          (leb128fmt.encode_s64 x)\n          (@Aeneas.Std.Result.ok.{0}\n            (Option.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_s64_loop0.body._proof_1))\n                Aeneas.Std.Usize))\n            (@Option.some.{0}\n              (Prod.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_s64_loop0.body._proof_1))\n                Aeneas.Std.Usize)\n              (@Prod.mk.{0, 0}\n                (Aeneas.Std.Array.{0} Aeneas.Std.U8\n                  (Aeneas.Std.Usize.ofNat (@OfNat.ofNat.{0} Nat (nat_lit 10) (instOfNatNat (nat_lit 10)))\n                    leb128fmt.encode_s64_loop0.body._proof_1))\n                Aeneas.Std.Usize bytes k))))\n        (leb128fmt.signed64.SignedCanonicalEncoding (@Aeneas.Std.IScalar.val Aeneas.Std.IScalarTy.I64 x) bytes\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize k))","theorem":"leb128fmt.signed64.encode_s64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"bytes","type":"leb128fmt.signed64.Bytes64","type_segments":[{"ref":"leb128fmt.signed64.Bytes64","text":"leb128fmt.signed64.Bytes64"}]}],"conclusion":"∃ out,\n  leb128fmt.decode_s64 bytes = Aeneas.Std.Result.ok out ∧\n    leb128fmt.signed64.decodeSignedValue out = leb128fmt.signed64.decodeSignedMeaning bytes","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt.decode_s64","text":"leb128fmt.decode_s64"},{"text":" "},{"text":"bytes"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.signed64.decodeSignedValue","text":"leb128fmt.signed64.decodeSignedValue"},{"text":" "},{"text":"out"},{"ref":"Eq","text":" = "},{"ref":"leb128fmt.signed64.decodeSignedMeaning","text":"leb128fmt.signed64.decodeSignedMeaning"},{"text":" "},{"text":"bytes"}],"definitions":[{"module":"ProofsSigned64","name":"leb128fmt.signed64.Bytes64","source":{"first_line":32,"last_line":32}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.I64","source":{"first_line":678,"last_line":678}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"Signed64","name":"leb128fmt.decode_s64","source":{"first_line":677,"last_line":686}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"Init.Data.Int.Basic","name":"Int","source":{"first_line":35,"last_line":58}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"ProofsSigned64","name":"leb128fmt.signed64.decodeSignedValue","source":{"first_line":448,"last_line":449}},{"module":"ProofsSigned64","name":"leb128fmt.signed64.decodeSignedMeaning","source":{"first_line":445,"last_line":446}}],"definitions_truncated":false,"first_line":674,"last_line":679,"module":"ProofsSigned64","program":null,"program_head":null,"statement":"∀ (bytes : leb128fmt.signed64.Bytes64),\n  @Exists.{1} (Option.{0} (Prod.{0, 0} Aeneas.Std.I64 Aeneas.Std.Usize))\n    fun (out : Option.{0} (Prod.{0, 0} Aeneas.Std.I64 Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1} (Aeneas.Std.Result.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.I64 Aeneas.Std.Usize)))\n        (leb128fmt.decode_s64 bytes)\n        (@Aeneas.Std.Result.ok.{0} (Option.{0} (Prod.{0, 0} Aeneas.Std.I64 Aeneas.Std.Usize)) out))\n      (@Eq.{1} (Option.{0} (Prod.{0, 0} Int Nat)) (leb128fmt.signed64.decodeSignedValue out)\n        (leb128fmt.signed64.decodeSignedMeaning bytes))","theorem":"leb128fmt.signed64.decode_s64_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hlower","type":"0 < ↑width","type_segments":[{"text":"0"},{"ref":"LT.lt","text":" < "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hupper","type":"↑width ≤ 8","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"8"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u8_fixed width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntFixedWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u8_fixed","text":"leb128fmt_slice_probe.u8_fixed"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntFixedWriterPost","text":"leb128fmt.sliceProof.UIntFixedWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u8_fixed","source":{"first_line":1447,"last_line":1458}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntFixedWrite","name":"leb128fmt.sliceProof.UIntFixedWriterPost","source":{"first_line":12,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}}],"definitions_truncated":false,"first_line":184,"last_line":189,"module":"ProofsUIntFixedWrite","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U8) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hlower :\n    @LT.lt.{0} Nat instLTNat (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hupper :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_slice_probe.u8_fixed width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntFixedWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8 value) before start out)","theorem":"leb128fmt.sliceProof.u8_fixed_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width < 7","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LT.lt","text":" < "},{"text":"7"}]}],"conclusion":"(do\n    let out ← leb128fmt_slice_probe.u128_reader width bytes start\n    Aeneas.Std.Result.ok (leb128fmt.sliceProof.observeUIntRead Aeneas.Std.UScalar.val out)) =\n  leb128fmt.sliceProof.smallUnsignedDigits bytes 128 (↑start) (↑start) 0 0","conclusion_segments":[{"text":"(do\n    let "},{"text":"out"},{"text":" ← "},{"ref":"leb128fmt_slice_probe.u128_reader","text":"leb128fmt_slice_probe.u128_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":"\n    "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"leb128fmt.sliceProof.observeUIntRead","text":"leb128fmt.sliceProof.observeUIntRead"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"out"},{"text":")"},{"text":")"},{"ref":"Eq","text":" =\n  "},{"ref":"leb128fmt.sliceProof.smallUnsignedDigits","text":"leb128fmt.sliceProof.smallUnsignedDigits"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"128"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"0"},{"text":" "},{"text":"0"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReadObservation","source":{"first_line":519,"last_line":519}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.bind","source":{"first_line":86,"last_line":87}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U128","source":{"first_line":673,"last_line":673}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u128_reader","source":{"first_line":1504,"last_line":1513}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.observeUIntRead","source":{"first_line":521,"last_line":525}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U128","source":{"first_line":37,"last_line":37}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.smallUnsignedDigits","source":{"first_line":527,"last_line":540}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":756,"last_line":765,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hwidth :\n    @LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.sliceProof.UIntReadObservation)\n    (@Aeneas.Std.bind.{0, 0}\n      (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n        Aeneas.Std.Usize)\n      leb128fmt.sliceProof.UIntReadObservation (leb128fmt_slice_probe.u128_reader width bytes start)\n      fun\n        (out :\n          Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize) =>\n      @Aeneas.Std.Result.ok.{0} leb128fmt.sliceProof.UIntReadObservation\n        (@leb128fmt.sliceProof.observeUIntRead (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U128)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U128) out))\n    (leb128fmt.sliceProof.smallUnsignedDigits bytes (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))","theorem":"leb128fmt.sliceProof.u128_reader_small_width","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width < 7","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LT.lt","text":" < "},{"text":"7"}]}],"conclusion":"(do\n    let out ← leb128fmt_slice_probe.u8_reader width bytes start\n    Aeneas.Std.Result.ok (leb128fmt.sliceProof.observeUIntRead Aeneas.Std.UScalar.val out)) =\n  leb128fmt.sliceProof.smallUnsignedDigits bytes 8 (↑start) (↑start) 0 0","conclusion_segments":[{"text":"(do\n    let "},{"text":"out"},{"text":" ← "},{"ref":"leb128fmt_slice_probe.u8_reader","text":"leb128fmt_slice_probe.u8_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":"\n    "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"leb128fmt.sliceProof.observeUIntRead","text":"leb128fmt.sliceProof.observeUIntRead"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"out"},{"text":")"},{"text":")"},{"ref":"Eq","text":" =\n  "},{"ref":"leb128fmt.sliceProof.smallUnsignedDigits","text":"leb128fmt.sliceProof.smallUnsignedDigits"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"8"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"0"},{"text":" "},{"text":"0"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReadObservation","source":{"first_line":519,"last_line":519}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.bind","source":{"first_line":86,"last_line":87}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u8_reader","source":{"first_line":1460,"last_line":1469}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.observeUIntRead","source":{"first_line":521,"last_line":525}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.smallUnsignedDigits","source":{"first_line":527,"last_line":540}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":708,"last_line":717,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hwidth :\n    @LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.sliceProof.UIntReadObservation)\n    (@Aeneas.Std.bind.{0, 0}\n      (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n        Aeneas.Std.Usize)\n      leb128fmt.sliceProof.UIntReadObservation (leb128fmt_slice_probe.u8_reader width bytes start)\n      fun\n        (out :\n          Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize) =>\n      @Aeneas.Std.Result.ok.{0} leb128fmt.sliceProof.UIntReadObservation\n        (@leb128fmt.sliceProof.observeUIntRead (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U8)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8) out))\n    (leb128fmt.sliceProof.smallUnsignedDigits bytes (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))","theorem":"leb128fmt.sliceProof.u8_reader_small_width","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width < 7","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LT.lt","text":" < "},{"text":"7"}]}],"conclusion":"(do\n    let out ← leb128fmt_slice_probe.u64_reader width bytes start\n    Aeneas.Std.Result.ok (leb128fmt.sliceProof.observeUIntRead Aeneas.Std.UScalar.val out)) =\n  leb128fmt.sliceProof.smallUnsignedDigits bytes 64 (↑start) (↑start) 0 0","conclusion_segments":[{"text":"(do\n    let "},{"text":"out"},{"text":" ← "},{"ref":"leb128fmt_slice_probe.u64_reader","text":"leb128fmt_slice_probe.u64_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":"\n    "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"leb128fmt.sliceProof.observeUIntRead","text":"leb128fmt.sliceProof.observeUIntRead"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"out"},{"text":")"},{"text":")"},{"ref":"Eq","text":" =\n  "},{"ref":"leb128fmt.sliceProof.smallUnsignedDigits","text":"leb128fmt.sliceProof.smallUnsignedDigits"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"64"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"0"},{"text":" "},{"text":"0"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReadObservation","source":{"first_line":519,"last_line":519}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.bind","source":{"first_line":86,"last_line":87}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u64_reader","source":{"first_line":1493,"last_line":1502}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.observeUIntRead","source":{"first_line":521,"last_line":525}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.smallUnsignedDigits","source":{"first_line":527,"last_line":540}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":744,"last_line":753,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hwidth :\n    @LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.sliceProof.UIntReadObservation)\n    (@Aeneas.Std.bind.{0, 0}\n      (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n        Aeneas.Std.Usize)\n      leb128fmt.sliceProof.UIntReadObservation (leb128fmt_slice_probe.u64_reader width bytes start)\n      fun\n        (out :\n          Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize) =>\n      @Aeneas.Std.Result.ok.{0} leb128fmt.sliceProof.UIntReadObservation\n        (@leb128fmt.sliceProof.observeUIntRead (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U64)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64) out))\n    (leb128fmt.sliceProof.smallUnsignedDigits bytes (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))","theorem":"leb128fmt.sliceProof.u64_reader_small_width","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hmin","type":"7 ≤ ↑width","type_segments":[{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hmax","type":"↑width ≤ 8","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"8"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u8_reader width bytes start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntReaderPost Aeneas.Std.UScalar.val start\n      (leb128fmt.sliceProof.unsignedReadExpected (↑width) bytes start) out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u8_reader","text":"leb128fmt_slice_probe.u8_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntReaderPost","text":"leb128fmt.sliceProof.UIntReaderPost"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"start"},{"text":"\n      "},{"text":"("},{"ref":"leb128fmt.sliceProof.unsignedReadExpected","text":"leb128fmt.sliceProof.unsignedReadExpected"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":")"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u8_reader","source":{"first_line":1460,"last_line":1469}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReaderPost","source":{"first_line":30,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.unsignedReadExpected","source":{"first_line":194,"last_line":198}}],"definitions_truncated":false,"first_line":337,"last_line":342,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hmin :\n    @LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hmax :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.u8_reader width bytes start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U8 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@leb128fmt.sliceProof.UIntReaderPost (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U8)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8) start\n        (leb128fmt.sliceProof.unsignedReadExpected (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) bytes start)\n        out)","theorem":"leb128fmt.sliceProof.u8_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hmin","type":"7 ≤ ↑width","type_segments":[{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hmax","type":"↑width ≤ 128","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"128"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u128_reader width bytes start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntReaderPost Aeneas.Std.UScalar.val start\n      (leb128fmt.sliceProof.unsignedReadExpected (↑width) bytes start) out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u128_reader","text":"leb128fmt_slice_probe.u128_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntReaderPost","text":"leb128fmt.sliceProof.UIntReaderPost"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"start"},{"text":"\n      "},{"text":"("},{"ref":"leb128fmt.sliceProof.unsignedReadExpected","text":"leb128fmt.sliceProof.unsignedReadExpected"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":")"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U128","source":{"first_line":673,"last_line":673}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u128_reader","source":{"first_line":1504,"last_line":1513}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReaderPost","source":{"first_line":30,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U128","source":{"first_line":37,"last_line":37}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.unsignedReadExpected","source":{"first_line":194,"last_line":198}}],"definitions_truncated":false,"first_line":497,"last_line":502,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hmin :\n    @LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hmax :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 128) (instOfNatNat (nat_lit 128)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.u128_reader width bytes start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U128 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@leb128fmt.sliceProof.UIntReaderPost (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U128)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U128) start\n        (leb128fmt.sliceProof.unsignedReadExpected (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) bytes start)\n        out)","theorem":"leb128fmt.sliceProof.u128_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hmin","type":"7 ≤ ↑width","type_segments":[{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hmax","type":"↑width ≤ 32","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"32"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u32_reader width bytes start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntReaderPost Aeneas.Std.UScalar.val start\n      (leb128fmt.sliceProof.unsignedReadExpected (↑width) bytes start) out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u32_reader","text":"leb128fmt_slice_probe.u32_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntReaderPost","text":"leb128fmt.sliceProof.UIntReaderPost"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"start"},{"text":"\n      "},{"text":"("},{"ref":"leb128fmt.sliceProof.unsignedReadExpected","text":"leb128fmt.sliceProof.unsignedReadExpected"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":")"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u32_reader","source":{"first_line":1482,"last_line":1491}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReaderPost","source":{"first_line":30,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.unsignedReadExpected","source":{"first_line":194,"last_line":198}}],"definitions_truncated":false,"first_line":417,"last_line":422,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hmin :\n    @LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hmax :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.u32_reader width bytes start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@leb128fmt.sliceProof.UIntReaderPost (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U32)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32) start\n        (leb128fmt.sliceProof.unsignedReadExpected (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) bytes start)\n        out)","theorem":"leb128fmt.sliceProof.u32_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width < 7","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LT.lt","text":" < "},{"text":"7"}]}],"conclusion":"(do\n    let out ← leb128fmt_slice_probe.u16_reader width bytes start\n    Aeneas.Std.Result.ok (leb128fmt.sliceProof.observeUIntRead Aeneas.Std.UScalar.val out)) =\n  leb128fmt.sliceProof.smallUnsignedDigits bytes 16 (↑start) (↑start) 0 0","conclusion_segments":[{"text":"(do\n    let "},{"text":"out"},{"text":" ← "},{"ref":"leb128fmt_slice_probe.u16_reader","text":"leb128fmt_slice_probe.u16_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":"\n    "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"leb128fmt.sliceProof.observeUIntRead","text":"leb128fmt.sliceProof.observeUIntRead"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"out"},{"text":")"},{"text":")"},{"ref":"Eq","text":" =\n  "},{"ref":"leb128fmt.sliceProof.smallUnsignedDigits","text":"leb128fmt.sliceProof.smallUnsignedDigits"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"16"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"0"},{"text":" "},{"text":"0"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReadObservation","source":{"first_line":519,"last_line":519}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.bind","source":{"first_line":86,"last_line":87}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u16_reader","source":{"first_line":1471,"last_line":1480}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.observeUIntRead","source":{"first_line":521,"last_line":525}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U16","source":{"first_line":34,"last_line":34}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.smallUnsignedDigits","source":{"first_line":527,"last_line":540}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":720,"last_line":729,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hwidth :\n    @LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.sliceProof.UIntReadObservation)\n    (@Aeneas.Std.bind.{0, 0}\n      (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n        Aeneas.Std.Usize)\n      leb128fmt.sliceProof.UIntReadObservation (leb128fmt_slice_probe.u16_reader width bytes start)\n      fun\n        (out :\n          Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize) =>\n      @Aeneas.Std.Result.ok.{0} leb128fmt.sliceProof.UIntReadObservation\n        (@leb128fmt.sliceProof.observeUIntRead (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U16)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U16) out))\n    (leb128fmt.sliceProof.smallUnsignedDigits bytes (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))","theorem":"leb128fmt.sliceProof.u16_reader_small_width","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width < 7","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LT.lt","text":" < "},{"text":"7"}]}],"conclusion":"(do\n    let out ← leb128fmt_slice_probe.u32_reader width bytes start\n    Aeneas.Std.Result.ok (leb128fmt.sliceProof.observeUIntRead Aeneas.Std.UScalar.val out)) =\n  leb128fmt.sliceProof.smallUnsignedDigits bytes 32 (↑start) (↑start) 0 0","conclusion_segments":[{"text":"(do\n    let "},{"text":"out"},{"text":" ← "},{"ref":"leb128fmt_slice_probe.u32_reader","text":"leb128fmt_slice_probe.u32_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":"\n    "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"("},{"ref":"leb128fmt.sliceProof.observeUIntRead","text":"leb128fmt.sliceProof.observeUIntRead"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"out"},{"text":")"},{"text":")"},{"ref":"Eq","text":" =\n  "},{"ref":"leb128fmt.sliceProof.smallUnsignedDigits","text":"leb128fmt.sliceProof.smallUnsignedDigits"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"32"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"start"},{"text":")"},{"text":" "},{"text":"0"},{"text":" "},{"text":"0"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LT.lt","source":{"first_line":1407,"last_line":1407}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLTNat","source":{"first_line":2037,"last_line":2038}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReadObservation","source":{"first_line":519,"last_line":519}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.bind","source":{"first_line":86,"last_line":87}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u32_reader","source":{"first_line":1482,"last_line":1491}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.observeUIntRead","source":{"first_line":521,"last_line":525}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.smallUnsignedDigits","source":{"first_line":527,"last_line":540}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}}],"definitions_truncated":false,"first_line":732,"last_line":741,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hwidth :\n    @LT.lt.{0} Nat instLTNat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))),\n  @Eq.{1} (Aeneas.Std.Result.{0} leb128fmt.sliceProof.UIntReadObservation)\n    (@Aeneas.Std.bind.{0, 0}\n      (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n        Aeneas.Std.Usize)\n      leb128fmt.sliceProof.UIntReadObservation (leb128fmt_slice_probe.u32_reader width bytes start)\n      fun\n        (out :\n          Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U32 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize) =>\n      @Aeneas.Std.Result.ok.{0} leb128fmt.sliceProof.UIntReadObservation\n        (@leb128fmt.sliceProof.observeUIntRead (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U32)\n          (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32) out))\n    (leb128fmt.sliceProof.smallUnsignedDigits bytes (@OfNat.ofNat.{0} Nat (nat_lit 32) (instOfNatNat (nat_lit 32)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))\n      (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))","theorem":"leb128fmt.sliceProof.u32_reader_small_width","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hmin","type":"7 ≤ ↑width","type_segments":[{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hmax","type":"↑width ≤ 16","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"16"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u16_reader width bytes start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntReaderPost Aeneas.Std.UScalar.val start\n      (leb128fmt.sliceProof.unsignedReadExpected (↑width) bytes start) out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u16_reader","text":"leb128fmt_slice_probe.u16_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntReaderPost","text":"leb128fmt.sliceProof.UIntReaderPost"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"start"},{"text":"\n      "},{"text":"("},{"ref":"leb128fmt.sliceProof.unsignedReadExpected","text":"leb128fmt.sliceProof.unsignedReadExpected"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":")"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U16","source":{"first_line":670,"last_line":670}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u16_reader","source":{"first_line":1471,"last_line":1480}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReaderPost","source":{"first_line":30,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U16","source":{"first_line":34,"last_line":34}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.unsignedReadExpected","source":{"first_line":194,"last_line":198}}],"definitions_truncated":false,"first_line":377,"last_line":382,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hmin :\n    @LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hmax :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 16) (instOfNatNat (nat_lit 16)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.u16_reader width bytes start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U16 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@leb128fmt.sliceProof.UIntReaderPost (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U16)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U16) start\n        (leb128fmt.sliceProof.unsignedReadExpected (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) bytes start)\n        out)","theorem":"leb128fmt.sliceProof.u16_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"bytes","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hmin","type":"7 ≤ ↑width","type_segments":[{"text":"7"},{"ref":"LE.le","text":" ≤ "},{"text":"↑"},{"text":"width"}]},{"binder":"explicit","kind":"hypothesis","name":"hmax","type":"↑width ≤ 64","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"64"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u64_reader width bytes start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntReaderPost Aeneas.Std.UScalar.val start\n      (leb128fmt.sliceProof.unsignedReadExpected (↑width) bytes start) out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u64_reader","text":"leb128fmt_slice_probe.u64_reader"},{"text":" "},{"text":"width"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntReaderPost","text":"leb128fmt.sliceProof.UIntReaderPost"},{"text":" "},{"ref":"Aeneas.Std.UScalar.val","text":"Aeneas.Std.UScalar.val"},{"text":" "},{"text":"start"},{"text":"\n      "},{"text":"("},{"ref":"leb128fmt.sliceProof.unsignedReadExpected","text":"leb128fmt.sliceProof.unsignedReadExpected"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"bytes"},{"text":" "},{"text":"start"},{"text":")"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Aeneas.Std.Core.Result","name":"Aeneas.Std.core.result.Result","source":{"first_line":7,"last_line":10}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U64","source":{"first_line":672,"last_line":672}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.leb128fmt.Error","source":{"first_line":723,"last_line":728}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u64_reader","source":{"first_line":1493,"last_line":1502}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.UIntReaderPost","source":{"first_line":30,"last_line":36}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar","source":{"first_line":70,"last_line":74}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U64","source":{"first_line":36,"last_line":36}},{"module":"ProofsUIntSliceDecode","name":"leb128fmt.sliceProof.unsignedReadExpected","source":{"first_line":194,"last_line":198}}],"definitions_truncated":false,"first_line":457,"last_line":462,"module":"ProofsUIntSliceDecode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (bytes : Aeneas.Std.Slice.{0} Aeneas.Std.U8) (start : Aeneas.Std.Usize)\n  (hmin :\n    @LE.le.{0} Nat instLENat (@OfNat.ofNat.{0} Nat (nat_lit 7) (instOfNatNat (nat_lit 7)))\n      (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width))\n  (hmax :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 64) (instOfNatNat (nat_lit 64)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n      Aeneas.Std.Usize)\n    fun\n      (out :\n        Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n          Aeneas.Std.Usize) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize))\n        (leb128fmt_slice_probe.u64_reader width bytes start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Aeneas.Std.core.result.Result.{0, 0} Aeneas.Std.U64 leb128fmt_slice_probe.leb128fmt.Error)\n            Aeneas.Std.Usize)\n          out))\n      (@leb128fmt.sliceProof.UIntReaderPost (Aeneas.Std.UScalar Aeneas.Std.UScalarTy.U64)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U64) start\n        (leb128fmt.sliceProof.unsignedReadExpected (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width) bytes start)\n        out)","theorem":"leb128fmt.sliceProof.u64_reader_spec","translation_rerun":false,"version":1}
proofs.rs:formal:{"axioms":["propext","Classical.choice","Quot.sound"],"binders":[{"binder":"explicit","kind":"variable","name":"width","type":"Aeneas.Std.U32","type_segments":[{"ref":"Aeneas.Std.U32","text":"Aeneas.Std.U32"}]},{"binder":"explicit","kind":"variable","name":"value","type":"Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"before","type":"Aeneas.Std.Slice Aeneas.Std.U8","type_segments":[{"ref":"Aeneas.Std.Slice","text":"Aeneas.Std.Slice"},{"text":" "},{"ref":"Aeneas.Std.U8","text":"Aeneas.Std.U8"}]},{"binder":"explicit","kind":"variable","name":"start","type":"Aeneas.Std.Usize","type_segments":[{"ref":"Aeneas.Std.Usize","text":"Aeneas.Std.Usize"}]},{"binder":"explicit","kind":"hypothesis","name":"hstart","type":"↑start ≤ (↑before).length","type_segments":[{"text":"↑"},{"text":"start"},{"ref":"LE.le","text":" ≤ "},{"text":"(↑"},{"text":"before"},{"text":")"},{"text":"."},{"ref":"List.length","text":"length"}]},{"binder":"explicit","kind":"hypothesis","name":"hwidth","type":"↑width ≤ 8","type_segments":[{"text":"↑"},{"text":"width"},{"ref":"LE.le","text":" ≤ "},{"text":"8"}]}],"conclusion":"∃ out,\n  leb128fmt_slice_probe.u8_writer width value before start = Aeneas.Std.Result.ok out ∧\n    leb128fmt.sliceProof.UIntWriterPost (↑width) (↑value) before start out","conclusion_segments":[{"text":"∃ "},{"text":"out"},{"text":",\n  "},{"ref":"leb128fmt_slice_probe.u8_writer","text":"leb128fmt_slice_probe.u8_writer"},{"text":" "},{"text":"width"},{"text":" "},{"text":"value"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"ref":"Eq","text":" = "},{"ref":"Aeneas.Std.Result.ok","text":"Aeneas.Std.Result.ok"},{"text":" "},{"text":"out"},{"ref":"And","text":" ∧\n    "},{"ref":"leb128fmt.sliceProof.UIntWriterPost","text":"leb128fmt.sliceProof.UIntWriterPost"},{"text":" "},{"text":"(↑"},{"text":"width"},{"text":")"},{"text":" "},{"text":"(↑"},{"text":"value"},{"text":")"},{"text":" "},{"text":"before"},{"text":" "},{"text":"start"},{"text":" "},{"text":"out"}],"definitions":[{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U32","source":{"first_line":671,"last_line":671}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.U8","source":{"first_line":669,"last_line":669}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice","source":{"first_line":15,"last_line":19}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.Usize","source":{"first_line":668,"last_line":668}},{"module":"Init.Prelude","name":"LE.le","source":{"first_line":1402,"last_line":1402}},{"module":"Init.Prelude","name":"Nat","source":{"first_line":1349,"last_line":1371}},{"module":"Init.Prelude","name":"instLENat","source":{"first_line":2026,"last_line":2027}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalar.val","source":{"first_line":76,"last_line":76}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.Usize","source":{"first_line":32,"last_line":32}},{"module":"Init.Prelude","name":"List.length","source":{"first_line":3182,"last_line":3195}},{"module":"Aeneas.Std.SliceDef","name":"Aeneas.Std.Slice.val","source":{"first_line":21,"last_line":22}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U32","source":{"first_line":35,"last_line":35}},{"module":"Init.Prelude","name":"OfNat.ofNat","source":{"first_line":1393,"last_line":1393}},{"module":"Init.Prelude","name":"instOfNatNat","source":{"first_line":1395,"last_line":1397}},{"module":"Init.Core","name":"Exists","source":{"first_line":313,"last_line":341}},{"module":"Init.Prelude","name":"Prod","source":{"first_line":603,"last_line":618}},{"module":"Init.Prelude","name":"Option","source":{"first_line":3047,"last_line":3058}},{"module":"Init.Prelude","name":"And","source":{"first_line":645,"last_line":659}},{"module":"Init.Prelude","name":"Eq","source":{"first_line":46,"last_line":76}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result","source":{"first_line":67,"last_line":68}},{"module":"SliceConcrete","name":"leb128fmt_slice_probe.u8_writer","source":{"first_line":1433,"last_line":1445}},{"module":"Aeneas.Std.Primitives","name":"Aeneas.Std.Result.ok","source":{"first_line":72,"last_line":72}},{"module":"ProofsUIntSliceEncode","name":"leb128fmt.sliceProof.UIntWriterPost","source":{"first_line":183,"last_line":186}},{"module":"Aeneas.Std.Scalar.Core","name":"Aeneas.Std.UScalarTy.U8","source":{"first_line":33,"last_line":33}}],"definitions_truncated":false,"first_line":279,"last_line":284,"module":"ProofsUIntSliceEncode","program":null,"program_head":null,"statement":"∀ (width : Aeneas.Std.U32) (value : Aeneas.Std.U8) (before : Aeneas.Std.Slice.{0} Aeneas.Std.U8)\n  (start : Aeneas.Std.Usize)\n  (hstart :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.Usize start)\n      (@List.length.{0} Aeneas.Std.U8 (@Aeneas.Std.Slice.val.{0} Aeneas.Std.U8 before)))\n  (hwidth :\n    @LE.le.{0} Nat instLENat (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n      (@OfNat.ofNat.{0} Nat (nat_lit 8) (instOfNatNat (nat_lit 8)))),\n  @Exists.{1}\n    (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize) (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n    fun\n      (out :\n        Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n          (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)) =>\n    And\n      (@Eq.{1}\n        (Aeneas.Std.Result.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize)))\n        (leb128fmt_slice_probe.u8_writer width value before start)\n        (@Aeneas.Std.Result.ok.{0}\n          (Prod.{0, 0} (Option.{0} Aeneas.Std.Usize)\n            (Prod.{0, 0} (Aeneas.Std.Slice.{0} Aeneas.Std.U8) Aeneas.Std.Usize))\n          out))\n      (leb128fmt.sliceProof.UIntWriterPost (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U32 width)\n        (@Aeneas.Std.UScalar.val Aeneas.Std.UScalarTy.U8 value) before start out)","theorem":"leb128fmt.sliceProof.u8_writer_spec","translation_rerun":false,"version":1}

=== stderr ===
Rustdoc catalogue from nightly-2026-09-17 (format 61, SHA-256 d0319112ddb54322513527dde9d3ce579262f5809c8fa5679e3a1e9e9d4f15fc)