P856_T1_CoefficientGridAlignment

Lean checked

Statement

This explanation was written alongside the formalization to describe the statement and its reasoning.

Lemma · Coefficient-parametric dyadic grid alignment

Let c\in\mathbb N and r,p\in\mathbb Z. If p\leq768 and 0\leq r+768-p, then there is b\in\mathbb N such that
c2^r=b10^{p-768}.
Thus multiplying a dyadic boundary by an arbitrary natural coefficient requires no additional exponent capacity.

Lean statement

Trellis authored these statements and proofs. Lean checks the formal proofs; the assumptions used by each proof are listed below.

import Tablet.P826_T1_PowerGridAlignment

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: P856_T1_CoefficientGridAlignment]
theorem P856_T1_CoefficientGridAlignment (c : Nat) (r p : Int)
    (hp : p <= 768) (hcap : 0 <= r + 768 - p) :
    exists b : Nat,
      (c : Real) * (2 : Real) ^ r =
        (b : Real) * (10 : Real) ^ (p - 768) := by
Proof

Natural-language proof

The status above describes the Lean proof. Its explanatory prose may remain a sketch after that proof closes.

Explanatory prose status

Prose retained as authored. The explanatory prose is preserved as it stood when captured.

Proof

By PowerGridAlignment, the two displayed inequalities give an a\in\mathbb N with 2^r=a10^{p-768}. Set b=ca. Multiplying that identity by the nonnegative integer coefficient c and associating the real products yields c2^r=(ca)10^{p-768}=b10^{p-768}.

Lean proof


  obtain ⟨a, ha⟩ := P826_T1_PowerGridAlignment r p hp hcap
  refine ⟨c * a, ?_⟩
  push_cast
  rw [ha]
  ring

end dec2flt_model

Download Lean source · Download TeX source

Complete Lean module
import Tablet.P826_T1_PowerGridAlignment

open Aeneas Aeneas.Std Result ControlFlow Error
set_option autoImplicit false

namespace dec2flt_model

-- [TABLET NODE: P856_T1_CoefficientGridAlignment]
theorem P856_T1_CoefficientGridAlignment (c : Nat) (r p : Int)
    (hp : p <= 768) (hcap : 0 <= r + 768 - p) :
    exists b : Nat,
      (c : Real) * (2 : Real) ^ r =
        (b : Real) * (10 : Real) ^ (p - 768) := by
-- BODY
  obtain ⟨a, ha⟩ := P826_T1_PowerGridAlignment r p hp hcap
  refine ⟨c * a, ?_⟩
  push_cast
  rw [ha]
  ring

end dec2flt_model

Proof structure

Follow the declared dependencies to read the supporting statements and proofs.

Explore this dependency tree

Inspect related source (116)
More program dependencies (83)
Standard-library dependencies (30)

Related source and models come from the extraction records and declared dependencies.

Proof assumptions and review

Lean checks the formal proof. Trellis also reviews how the statement corresponds to the intended requirement.

Transitive assumptions

This list combines the assumptions recorded for this declaration and its dependencies. It may include assumptions used by auxiliary declarations in those modules.

Helper theorems included
Technical checking records
Local closure summary
{
  "node": "P856_T1_CoefficientGridAlignment",
  "closure_version": "patch_c_v1",
  "active_decl_hash": "2115f1ead5bd795e7d45ccbfb0646cedf6bcc22278c5c79738291b29a3d848fb",
  "active_statement_hash": "520bff5c2a2260abdafffc2ab02af7b644f5e283c3a89cb6bfafe41dc3dd9a86",
  "kernel_axioms": [
    "Classical.choice",
    "Quot.sound",
    "propext"
  ],
  "toolchain_hash": "ce4c4e3d87434b9663f46de25ce34b48a0cf0d392e0a320a0787b4674a2d7b61",
  "lean_executable_hash": "3e0d0d3d801675359f2d4cf9815bfdb417b20b92fdd9d48b3b14c95bbae28bbf",
  "checker_script_hash": "c8e4a03273e23b9a8f2e141020652a4e0b7b0a8ab0883366ea9d031ca3f37aa1",
  "approved_axioms_hash": "ab64d13f256386ee0e494a5abcc6a5db49512cf3d90bbdfcabd6327793a31f95",
  "axcheck_status": "Agreed",
  "accepted_at_snapshot_id": "revalidate-cycle-199",
  "boundary_theorems": {},
  "strict_theorem_deps": {
    "P826_T1_PowerGridAlignment": "0cee3aaeb64f7353"
  },
  "strict_definition_deps": {}
}
Prose assessment
{
  "label": "Lean proof closed; predictive prose review no longer required",
  "assessment_status": null,
  "fingerprint_relation": "unknown",
  "assessment_fingerprint": null,
  "current_fingerprint": "sound-v2:b77b100e45ba832b40d8e309c4a58ea9098f63c8d2eae0741acedd8a1caa8b15",
  "superseded_for_theorem_closure": false
}
Review verdicts
{
  "corr_status": "Pass",
  "substantiveness_status": "Pass"
}