Research → verified mathematics → executable system

Continuum origami
inverse design

A worked demonstration of what we sell: Amp and Wolfram transform research—from an early idea through a published paper—into auditable mathematics, machine-checked proof obligations, and deployable engineering results.

One combined workflow: Wolfram Mathematica and System Modeler for symbolic, numerical and system modeling; Lean 4 for formal trust; Amp for orchestration and implementation into C++, Python, Rust, VHDL, Verilog, QASM, Classiq and other executable targets.

Lean 4 proofWolfram validationCross-language execution
Ampcode and Wolfram workflow from research idea through formal modeling and Lean 4 verification to executable software, hardware and quantum results

Prepared by Daniel Liezrowice · ESL — AI SDLC Tools Consultants · linkedin.com/in/liezrowice · eswlab.com

← Swipe to navigate →

From a crease to a curvature—and back

01 · Discrete mechanism

Creases, vertices, sector angles, RFFQM compatibility.

02 · Continuum geometry

Surface map, metric, normal, curvature tensors.

03 · Inverse equations

Separated perturbation fields and RK4 integration.

04 · Evidence

Wolfram, Lean, C++, limitations and next tests.

Two reading levels run in parallel: definitions for newcomers; equation-level audit details for the authors.

The physical vocabulary

Facet / panel

A region of paper treated as rigid and planar. This model does not bend or stretch facets.

Crease

A hinge line shared by facets. Its fold angle γ measures relative panel rotation; zero convention depends on the paper.

Vertex

A meeting point of creases. A 4-vertex has four incident creases.

Sector angle θᵢ

The planar angle between neighboring crease rays before folding.

Mountain / valley (MV)

Opposite fold orientations, represented by the sign of γ under a chosen convention.

Activation angle ω

The single controlling fold angle: 0 flat, |ω| between 0 and π partially folded, |ω|=π fully folded.

What “inverse” means

Forward problem

crease pattern + activation ω ⟶ folded geometry

Given microscopic angle/length perturbations, predict metric and curvature.

Inverse problem

target κₓ(x), κᵧ(y) ⟶ perturbations d(x), D(y)

Solve differential laws, sample the boundary, march the discrete mesh, then fold.

The scientific value is analytic visibility: feasibility can fail when a perturbation crosses its admissible domain, rather than only when a black-box optimizer stalls.

Generalized Miura-Ori as a constrained mesh

Miura-Ori: repeated parallelogram facets, one folding degree of freedom, flat-foldable.

GMO: nonuniform quadrilateral mesh.

RFFQM: rigidly and flat-foldable quadrilateral mesh; every facet stays rigid, and the compatible mesh follows one activation parameter.

Kawasaki / Eq. 1: θ₁ + θ₃ = θ₂ + θ₄ = π

Local rules determine the whole pattern

At one 4-vertex

Two adjacent sector angles determine the other two. Given one fold angle γ₁, Eq. 2–3 determine γ₂, γ₃=−γ₁, γ₄=γ₂, excluding the degenerate αᴸ+αᴿ=π branch.

Across one panel

Eqs. 4–6 impose angle compatibility; Eq. 7 propagates two known edge lengths to two unknown edges.

L-shaped boundary data ⟶ panel-by-panel “march” ⟶ all sector angles and crease lengths

Failure modes: an angle leaves (0,π), |μ|=1 degenerates Eq. 5, or a propagated length is nonpositive. The present project does not implement this discrete marching/folding engine.

Scale separation turns cells into fields

χ = 1/Nₓ,   ξ = 1/Nᵧ
x(j)=χj,   y(i)=ξi

A unit cell is microscopic; the design envelope varies over the macroscopic unit square U=[0,1]².

Slowly varying means

Neighboring cells differ only slightly: the field’s variation wavelength is large relative to a cell. Finite differences can then approximate derivatives.

Limit order matters: χ,ξ→0 supports continuum fields; small amplitudes s,t support perturbation expansions. Neither is a proved error bound here.

A surface is a map, not just a picture

X : U⊂ℝ² → S⊂ℝ³,   (x,y) ↦ X(x,y)

Tangent vectors Xₓ=∂X/∂x and Xᵧ=∂X/∂y span the local tangent plane.

N = (Xₓ × Xᵧ) / ‖Xₓ × Xᵧ‖

The unit normal N fixes a local “up” direction; reversing it reverses signed principal curvatures.

CSS sketch: coordinate directions live on the surface; the normal points out of its tangent plane.

First and second fundamental forms

First form a: intrinsic distances

aᵅᵝ = Xᵅ·Xᵝ
ds²=aₓₓdx²+2aₓᵧdxdy+aᵧᵧdy²

Measures lengths and angles inside the surface. A plane and cylinder can share a metric.

Second form b: bending

bᵅᵝ = Xᵅᵝ·N = −Xᵅ·Nᵝ

Measures how the normal changes. Together, compatible a and b determine local shape up to rigid motion.

Shape operator and principal curvatures

C = −a⁻¹b

The shape operator converts a tangent direction into the normal’s rate of change.

Its eigenvectors are principal directions; eigenvalues κ₁,κ₂ are principal curvatures. Radius of curvature is |1/κ| when κ≠0.

Two scalar summaries

Gaussian: K = κ₁κ₂ = det(b)/det(a)
Mean: H = ½(κ₁+κ₂)

K>0 dome-like; K=0 locally developable; K<0 saddle-like. H distinguishes surfaces that share K.

Intrinsic metric constrains extrinsic bending

Gauss’s Theorema Egregium says K can be calculated from the metric and its derivatives alone—even though curvature appears to describe embedding in 3D.

K = −(1/aₓₓ)[∂ₓΓʸₓᵧ − ∂ᵧΓʸₓₓ + ΓˣₓᵧΓʸₓₓ − ΓˣₓₓΓʸₓᵧ + (Γʸₓᵧ)² − ΓʸₓₓΓʸᵧᵧ]   (Eq. 13)

Christoffel symbols Γ are combinations of a⁻¹ and first derivatives of a; they describe how coordinate basis vectors change. The paper uses this route for Eq. 31 and also obtains κₓ,κᵧ through b and C.

Two separated control fields

Angle channel

d(x) = s δ̃(x)

Signs alternate around neighboring vertices. d depends only on x and primarily controls κₓ.

Length channel

D(y) = t Δ̃(y)

Modulates alternating vertical boundary lengths by 1+D. D depends only on y and primarily controls κᵧ.

The project absorbs the paper’s small amplitudes s,t into combined fields d,D. This is why executable derivatives d′,D′ already include those scale factors.

Admissibility is part of the mathematics

−θ < d(x) < θ

Exact paper range for the combined angular perturbation on every x∈[0,1]. It keeps sector angles valid.

D(y) > −1

Exact paper range for every y∈[0,1]. It keeps the scaled boundary length L(1+D) positive.

Also assumed computationally: C,L>0; Q>0; real positive denominator branches; smooth fields.

Sampled trajectory checks passed, but sampling is not a global proof. The discrete march can still produce a nonpositive interior crease length.

The paper’s multiscale construction

Boundary

d(x), D(y), θ, ω, C, L

Continuum fields

ℓ̃A, ℓ̃B, c̃L, c̃R, ω̃

Local geometry

a, b, C, κₓ, κᵧ, K

Inverse ODEs

d′=f(d;κₓ), D′=g(D;κᵧ)

Important audit boundary: this implementation executes the continuum/inverse segment. It does not reconstruct vertices in ℝ³, run exact discrete marching, fold panels, FEM-simulate, or compare pixels to paper figures.

Length fields (23–24) and fold field (28)

R(x)=√[(cos(2d(0))−cos(2θ))/(cos(2d(x))−cos(2θ))]
ℓ̃A = ξL·R(x)
ℓ̃B = ξL·[1+D(y)]·R(x)

Eq. 24 differs from Eq. 23 exactly by 1+D. The audit checks this factor.

ω̃(x)=2 arccot[cot(ω₀/2) cos d(x)/cos d(0)]

Principal branch; the audit checks ω̃(0)=ω₀. Eqs. 23,24,28 were closed-form implemented and spot-checked, not fully formally derived.

Eqs. 31, 33 and 34

Q = 2 csc²θ − cosω − 1
κₓ = [cscθ tan(ω/2) sec(ω/2) √(2Q)/(4C)] d′
κᵧ = [tan²θ sin(ω/2) √(2Q)/(8L)] D′
K = [tanθ secθ tan²(ω/2) Q/(16CL)] d′D′

Multiplying κₓκᵧ and simplifying trig factors reproduces Eq. 31. This is the strongest central symbolic identity in the audit.

Wolfram identity / spot checksNot Lean-proved over ℝ

Eqs. 37–38 retain state dependence

κₓ = aₓ d′ / bₓ(d)³ᐟ²,   bₓ=1+½ tan²(ω/2)Qd²
κᵧ = aᵧ D′ / bᵧ(D)³ᐟ²,   bᵧ=cos²θ(1+D)+(D² sinθ Q)/8

Here aₓ and aᵧ are the angle/length prefactors visible in Eqs. 38 and 37. The denominators change the required slope as the state evolves. Setting d,D→0 recovers the leading laws.

Paper ordering: Eq. 37 is the y-direction law and Eq. 38 the x-direction approximation. The local package names them by direction, not equation order.

Algebraic inversion produces two uncoupled ODEs

d′ = (κₓ/aₓ) bₓ(d)³ᐟ²
D′ = (κᵧ/aᵧ) bᵧ(D)³ᐟ²

Each curvature equation is linear in its derivative. Multiply by the positive denominator, then divide by a nonzero prefactor.

Why “uncoupled” matters

For separated targets κₓ(x),κᵧ(y), d evolves without D and D evolves without d. Two scalar initial-value problems replace a coupled surface optimization.

Existence and global continuation still require regularity and domain control; no convergence theorem is supplied.

RK4, explained without shorthand

For y′=f(y), step h, classical fourth-order Runge–Kutta samples four slopes:

k₁=f(yₙ)
k₂=f(yₙ+h k₁/2),   k₃=f(yₙ+h k₂/2),   k₄=f(yₙ+h k₃)
yₙ₊₁=yₙ+h(k₁+2k₂+2k₃+k₄)/6

The weighted average is locally accurate through h⁴ under smoothness assumptions. This project integrates the pair (d,D) on one normalized path with 16 steps. The refinement difference is empirical evidence, not proof of convergence for the origami model.

Reproduced deterministic trajectory

Generated spherical-cap perturbation field plot

Locally generated Wolfram plot; deterministic paper-parameter output.

QuantityValue
targetκₓ=κᵧ=1
cells / stepsNₓ=Nᵧ=16
sizeC=1, L=2
paper anglesθ=.45π, ω=.76π
initial stated₀=−.15, D₀=−.1
final (16-step)d=0.1781684047
D=0.1516802587

Exact paper values are not rounded executable values

Paper transcription

θ=.45π
ω=.76π

Approximately 1.4137167 and 2.3876104 radians.

Official executable rounding

θ=1.40
ω=2.4

Used only as a sensitivity comparison; not substituted for the paper’s exact parameter statement.

Final fields differ materially: paper values (0.1781684, 0.1516803) versus rounded values (0.1637172, 0.2184979). The official repositories were consulted for transcription/parameter cross-checks; no code was copied.

Close perturbations can yield different folded curvature

Leading linear prediction

d(x)=−.15 + 0.292927x
D(y)=−.1 + 0.269383y

Reported slopes are retained as comparison evidence, not refitted claims.

Weakly nonlinear prediction

State-dependent b³ᐟ² changes slopes along the path. The paper reports ≈1 center / ≈0.9 edge curvature versus ≈0.6 edges for linear design.

Not reproduced here: those folded-surface curvature heatmaps.

All 42 displayed equations, grouped by role

Vertex & panel · 1–81 Kawasaki; 2–3 fold law; 4–6 panel angle compatibility; 7 edge-length propagation; 8 perturbed sectors.
Surface geometry · 9–139 metric line element; 10 second form; 11 shape operator; 12 K from determinants; 13 Gauss/Christoffel relation.
Discrete geometry · 14–1714 tangents; 15 discrete metric; 16 discrete second form; 17 unperturbed fold relation.
Alternating / scaling · 18–2118 boundary angle pattern; 19 propagated angles; 20 χ,ξ; 21 scaled boundary lengths.
Continuum kinematics · 22–2822 length ODE; 23–24 vertical lengths; 25–26 horizontal lengths; 27 γ field; 28 ω field.
Leading geometry · 29–3429 field expansions; 30 metric; 31 K; 32 second form; 33–34 principal curvatures.
Weak nonlinearity · 35–3835 zigzag angle; 36 planar κᵧ; 37 improved κᵧ; 38 improved κₓ.
Feasibility · 39Exact d,D admissibility domains on [0,1].
Appendices · B.1, B.2, C.1B.1 perturbed panel angle sum; B.2 multiplicative fold compatibility; C.1 linearized marching recurrence.

The paper numbers 39 main-text equations plus three appendix equations—not Eqs. 40–42. Coverage means identified and classified, not that every equation was re-derived or verified.

Cross-language independence by construction

Paper

Immutable PDF + official repositories for cross-check only

Normalized claim ledger

Definitions, assumptions, equations, statuses

↙ ↓ ↘

Wolfram

symbolic + high precision

Lean

exact finite algebra

C++

independent IEEE-double path

Agreement across separately encoded formulas reduces shared-implementation risk; it does not eliminate shared transcription error or prove model validity.

10 audits passed; 0 failed

  • κₓκᵧ equals Eq. 31
  • nonlinear inverse residual
  • full sampled trajectory domain
  • three angle-pair spot checks
  • metric determinant
  • zero derivatives → zero curvature
  • Eq. 24 / Eq. 23 factor
  • Eq. 28 initial condition
  • Eqs. 23,24,28,31,33,34,37,38 in audit scope
Wolfram 15.0.110 PASSNot every paper equation

Symbolic simplification, high-precision identities, numerical residuals, trajectory generation, deterministic plots and CSV export are the Mathematica/Wolfram roles.

What Lean proves—and explicitly does not

Machine-checked

  • 2×2 diagonal determinant over integers
  • alternating product rearrangement
  • positive length in a restricted integer case
  • abstract finite recurrence determinism

Lean 4.32.2: lake build passes; no sorry, admit, or declared axiom.

Not formally proved

  • real trigonometric identities
  • differentiation / ODE existence
  • fundamental forms or curvature laws
  • Eqs. 31,33,34,37,38
  • floating-point RK4 correctness
  • physical foldability or global compatibility

Independent floating-point implementation

5.55×10⁻¹⁷

Maximum absolute C++/Wolfram CSV difference.

1834.91 ms

Latest benchmark: 200,000 trajectories × 16 RK4 steps.

Reproducible compiler choice

clang++ 22.1.3
−std=c++20 −O3 −march=native

GCC 15.2.0 was available but deliberately not selected, preserving one primary reproducible binary. Benchmark timing is machine-dependent evidence, not an algorithmic guarantee.

Refinement supports implementation consistency

Generated RK4 resolution refinement plot

Generated from deterministic 8/16/32/64-step trajectories.

8.44×10⁻¹⁵

Reported RK4 refinement difference in the validation record.

Final d values converge 0.1781683501 → 0.1781684075; final D values 0.1516803752 → 0.1516802450.

Numerical cross-checkNo convergence theorem

Seed-42 noise is diagnostic only

Synthetic seed 42 diagnostic noise plot

Wolfram NormalDistribution diagnostic, SeedRandom[42].

Not evidence for the paper

The noise dataset does not represent measurements, folds, fabrication tolerance, or uncertainty reported by the authors.

It exists only to exercise a deterministic data/plot pipeline. Spherical-cap CSVs are deterministic paper-parameter outputs and are not synthetic data.

A diagonal sensitivity Jacobian

∂d′/∂d = (κₓ/aₓ)(3/2)bₓ¹ᐟ² tan²(ω/2)Qd
∂D′/∂D = (κᵧ/aᵧ)(3/2)bᵧ¹ᐟ²[cos²θ + D sinθ Q/4]
∂d′/∂D = ∂D′/∂d = 0   (fixed separated targets)

This derived diagnostic quantifies local amplification: perturbing d changes only its own inverse slope, likewise D. Zero cross-terms follow from the separated model—not from arbitrary origami geometries.

Derived from implemented inverse lawsNot asserted as a new theorem

Track distance to every failure surface

Domain margins

mθ=min(θ−d, θ+d)
mD=1+D

Positive values remain inside Eq. 39.

Denominator margins

bₓ>0,   bᵧ>0

Keep the selected real branch well-defined and sensitivity finite.

Discrete margin

min crease length > 0

Not evaluated because the discrete marching engine is absent.

Recommended reporting: minimum margin over the whole solved interval, with event detection—not only a Boolean at sampled RK4 nodes.

What the evidence actually establishes

FindingEvidenceStatus
Leading κ product matches Eq. 31Wolfram high-precision identitySymbolic
Inverted nonlinear laws return target curvatureWolfram + C++ residualsCross-checked
Two languages produce same trajectorymax |Δ|=5.55×10⁻¹⁷Cross-checked
Finite algebra helpers are exactLean build, no proof holesFormally proved
Paper’s folded surface is recreatedNo folding engine / geometry comparisonNot reproduced

Points requiring careful interpretation

Exact scope matrix

Artifact / claimResult
Eqs. 31,33,34 leading lawsreproduced / audited
Eqs. 37,38 nonlinear laws + inverse residualimplemented / cross-checked
Eqs. 23,24,28 closed formsspot-checked
Spherical d,D trajectory at paper parametersWolfram ↔ C++
Every equation / theorem / figurenot reproduced
Discrete marching + folding in 3Dabsent
FEM / elasticity / fabricationabsent
Paper-figure pixel or curvature-map comparisonabsent

No theorem hides behind the plots

Mathematical

  • No global surface compatibility proof
  • No ODE existence/uniqueness or convergence theorem
  • No rigorous χ,ξ,s,t error bounds
  • Sampled feasibility ≠ interval proof

Computational / physical

  • Normalized 1D integration path
  • IEEE-double arithmetic not formally verified
  • No discrete folding engine or FEM
  • No collision, thickness, torque, elasticity, fabrication
  • No pixel comparison to paper figures

Conclusion: a strong, independently executable audit of central formulas—not “full paper verification.”

Close the most consequential gaps first

  1. Interval/event-aware ODE solver: certify Eq. 39 and denominator margins over each step.
  2. Exact discrete march: reconstruct all sector angles and lengths; report the minimum positive-length margin.
  3. 3D rigid-folding engine: produce X(i,j), then independently compute a,b,K,H.
  4. Paper comparison: reproduce spherical curvature heatmaps and define numerical—not merely pixel—error metrics.
  5. Convergence study: vary Nₓ,Nᵧ and distinguish ODE integration error from continuum/discretization error.
  6. Lean expansion: formalize real-domain positivity, inversion lemmas, and the κₓκᵧ identity before tackling differential geometry.

Questions for the authors

Approximation

  • What norm best measures continuum-to-discrete error?
  • Can χ,ξ and s,t limits be coupled rigorously?
  • Where does neglected κₓ transverse motion dominate?

Feasibility & uniqueness

  • Can positive boundary margins ensure positive marched lengths?
  • Which initial-data choices optimize feasibility margin?
  • Can nonseparable targets be projected with controlled error?

Validation

  • Are original numerical curvature arrays available?
  • Which discrete derivative stencil generated Fig. 12?
  • What tolerance defines an acceptable target match?

Mechanics

  • How should hinge stiffness and facet compliance perturb the isometric family?
  • Which collision/thickness constraints are first-order important?

Turn research into a verified executable system

Inspect the evidence

Sardas, Moshe & Maor, JMPS 196 (2025) 106003
https://arxiv.org/abs/2405.07249v2
https://doi.org/10.1016/j.jmps.2024.106003

src/OrigamiGeometry.wl · Wolfram implementation
lean/OrigamiProofs.lean · finite exact proofs
cpp/ · C++ tests and benchmark
exports/ · reports, CSVs and plots
data_manifest.json · provenance

Official author repositories were used for transcription and parameter cross-checks; no official source code was copied.

Prepared by Daniel Liezrowice

ESL — Engineering Software Lab
AI SDLC Tools Consultants

Bring us an idea, draft, preprint or published paper. We build the traceable path through Wolfram computation, Lean verification and production software, hardware, simulation or quantum deliverables.