AI and the Assault on Math and Cryptography Problems

    This article examines how AI is moving from a problem-solving tool to a research participant in mathematics and cryptography. It covers a formal proof of the Riemann hypothesis with machine-checkable code, and cryptanalysis results that found structural weaknesses in candidate algorithms, reducing some attacks to seconds. It explains why formal verification matters, what second-level hash collisions mean for developers, a reusable AI4S practice framework, and the remaining limits and risks.

    1. The Shift: AI from Problem Solver to Research Participant

    Two recent announcements have pushed AI4S (AI for Science) into the spotlight. First, a research team reported completing a proof of the Riemann hypothesis, a problem that has puzzled mathematicians for 167 years, using intelligent coding and reasoning tools. The team also released roughly 17 million lines of formal proof code, which the community verified. Second, an AI team published cryptanalysis results from an internal model. The model found mathematical structural flaws in several candidate algorithms that previously had no practical attack, advancing some theoretical attacks to second-level execution.

    The common thread is not “larger parameters.” It is that the outputs can be verified by machines: on the math side, the output is a formal proof; on the cryptography side, it is reproducible attack scripts and hash collision samples. Verifiability is the prerequisite for AI participation in research to be accepted by the academic community.

    2. The Math Side: Why Formal Proofs Are Key

    The Riemann hypothesis was proposed in 1859. It concerns the distribution of prime numbers and was named one of the seven Millennium Prize Problems in 2000. AI contributes in three main ways:

    1. Lemma retrieval and reconstruction: Finding reusable lemmas in large mathematical libraries and breaking natural-language proofs into decidable subgoals.
    2. Proof state management: Maintaining a queue of goals marked “proved,” “pending,” or “failed,” with support for backtracking.
    3. Formalization: Producing machine-checkable code that the community can independently review.

    A schematic skeleton of a formal proof (pseudocode, structure only):

    1. theorem riemann_hypothesis :
    2. ∀ s, Re s > 1/2 → ζ s ≠ 0 := by
    3. intro s hs
    4. -- Reduce to a chain of already formalized lemmas
    5. apply zero_free_region_of_bounded_character
    6. exact hs

    The real engineering challenge is scale and consistency. A proof at the tens-of-millions-of-lines level requires incremental compilation, cache reuse, and isolation of failed goals. Otherwise, the cost of a single verification pass is unacceptable.

    3. The Cryptography Side: What Second-Level Cracking Means

    Cryptanalysis centers on studying an algorithm’s mathematical structure to find exploitable weaknesses. The two types of results mentioned in the original report are representative:

    • Hash collision attacks: Finding two different inputs that produce the same hash value. One SHA-3 competition candidate algorithm completed a collision in 0.045 seconds on a single-core CPU; another candidate took between 0.36 and 2.3 seconds.
    • Locating structural flaws: What the model identified was not an implementation bug, but weak algebraic properties in the design of round functions and diffusion layers.

    A reproducible verification workflow:

    1. # Pseudocode: collision verification and timing
    2. import time
    3. t0 = time.perf_counter()
    4. m1, m2 = find_collision(target_algo)
    5. assert m1 != m2 and target_algo(m1) == target_algo(m2)
    6. print(time.perf_counter() - t0)

    The direct takeaway for developers: do not use competition candidates or algorithms that have not undergone sufficient public review to carry production data. Hash use cases should be distinguished among integrity checks, password storage, and signatures. For passwords, use a salted slow hash.

    4. A Reusable AI4S Practice Framework

    1. Problem formalization: Rewrite research questions as decidable goals.
    2. Toolchain loop: Search, generate, verify, and backtrack. The verifier must be independent of the generator.
    3. Compute and storage: Large-scale proofs and collision searches need elastic container platforms, object storage for intermediate artifacts, message queues to decouple tasks, and logging services with monitoring and alerting to track failure rates.
    4. Human-AI division of labor: AI handles enumeration and reconstruction; humans define problem boundaries and review.

    5. Capability Limits and Risks

    AI output still requires peer review. Passing formalization only means “correct within that axiom system.” On the enterprise side, organizations should maintain an inventory of algorithm assets, conduct regular cryptographic agility assessments, and keep a replaceable algorithm abstraction layer to avoid systemic risk from a single algorithm failure.