Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Yes 5G Advanced Field Test: An exciting yet frustrating experience

    Sony A7 V leak points to underwhelming next-gen full-frame camera launch, with lacklustre video features on the cards

    Stable HyperOS 3 rolls out to Xiaomi Pad 7, with more Xiaomi and Redmi devices to follow later this month

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Amazon to lay off 14,000 corporate employees

      October 29, 2025

      Elon Musk launches Grokipedia as an alternative to ‘woke’ Wikipedia

      October 29, 2025

      Fears of an AI bubble are growing, but some on Wall Street aren’t worried just yet

      October 18, 2025

      The sleeper issue that could play a huge role in Virginia and New Jersey — and the midterms

      October 16, 2025

      California bill regulating top AI companies signed into law

      September 30, 2025
    • Business

      Government faces questions about why US AWS outage disrupted UK tax office and banking firms

      October 23, 2025

      Amazon’s AWS outage knocked services like Alexa, Snapchat, Fortnite, Venmo and more offline

      October 21, 2025

      SAP ECC customers bet on composable ERP to avoid upgrading

      October 18, 2025

      Revenue generated by neoclouds expected to exceed $23bn in 2025, predicts Synergy

      October 15, 2025

      You can now try Fortnite directly in Discord

      October 8, 2025
    • Crypto

      JPMorgan Achieves First True Bridge Between Banks and DeFi

      November 12, 2025

      3 Signs Pointing to Mounting Selling Pressure on Pi Network in November

      November 12, 2025

      Dogecoin Faces Its Toughest Q4 In Years — Can a Late Bounce Save 2025?

      November 12, 2025

      Did One Whale Steal aPriori’s Airdrop? 14,000 Wallets Raise Big Questions

      November 12, 2025

      Why Analysts See A $5 Target for XRP Price in Q4 2025

      November 12, 2025
    • Technology

      Sony A7 V leak points to underwhelming next-gen full-frame camera launch, with lacklustre video features on the cards

      November 12, 2025

      Stable HyperOS 3 rolls out to Xiaomi Pad 7, with more Xiaomi and Redmi devices to follow later this month

      November 12, 2025

      Stable HyperOS 3 for Xiaomi Pad 7

      November 12, 2025

      Suunto adds two new running metrics to smartwatches in update

      November 12, 2025

      Sora 2 is OpenAI’s consistently inconsistent AI video creator

      November 12, 2025
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»“Why don’t you use dependent types?”
    Technology

    “Why don’t you use dependent types?”

    TechAiVerseBy TechAiVerseNovember 2, 2025No Comments8 Mins Read4 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    “Why don’t you use dependent types?”

    02 Nov 2025

    [

    memories 

    AUTOMATH 

    LCF 

    type theory 

    Martin-Löf type theory 

    NG de Bruijn 

    ALEXANDRIA 

    ]

    To be fair, nobody asks me this exact question.
    But people have regularly asked why Isabelle dispenses with proof objects.
    The two questions are essentially the same,
    because proof objects are intrinsic to all the usual type theories.
    They are also completely unnecessary and a huge waste of space.
    As described in an earlier post,
    type checking in the implementation language (rather than in the logic)
    can ensure that only legitimate proof steps are executed.
    Robin Milner had this fundamental insight 50 years ago,
    giving us the LCF architecture with its proof kernel.
    But the best answer to the original question is simply this:
    I did use dependent types, for years.

    My time with AUTOMATH

    I was lucky enough to get some personal time with N G de Bruijn
    when he came to Caltech in 1977 to lecture about
    AUTOMATH.
    I never actually got to use this system.
    Back then, researchers used the nascent Internet (the ARPAnet)
    not to download software so much as
    to run software directly on the host computer,
    since most software was not portable.
    But Eindhoven University was not on the ARPAnet,
    and AUTOMATH was configured to run on
    a computer we did not have:

    Until September 1973, the computer was the Electrologica X8, after that
    Burroughs 6700. In both cases the available multiprogranming systems
    required the use of ALGOL 60.

    I did however read many of the research reports, including
    the PhD dissertation by LS Jutting,
    where he presents his translation
    of Landau’s text Grundlagen der Analysis (described last time)
    from German into AUTOMATH.
    It is no coincidence that many of my papers, from the
    earliest
    to the latest,
    copied the idea of formalising a text
    and attempting to be faithful to it, if possible line by line.

    As an aside, note that while AUTOMATH was a system of dependent types,
    it did not embody the
    Curry–Howard correspondence
    (sometimes wrongly called the Curry–Howard–de Bruijn correspondence).
    That correspondence involves having a type theory strong enough
    to represent the predicate calculus directly in the form of types.
    In AUTOMATH you had to introduce the symbols and inference rules
    of your desired calculus in the form of axioms, much as you do with Isabelle.
    In short, AUTOMATH was a logical framework:

    like a big restaurant that serves all sorts of food: vegetarian, kosher, or anything else the customer wants

    De Bruijn
    did not approve
    of the increasingly powerful type theories being developed in the 1990s.
    AUTOMATH was a weak language,
    a form of λ-calculus including a general product construction just
    powerful enough to express the inference rules of a variety of formalisms
    and to make simple definitions, again clearly the inspiration for Isabelle.
    Isabelle aims to be generic, like the big AUTOMATH restaurant.
    Only these days everybody prefers the same cuisine,
    higher-order logic, so Isabelle/HOL has become dominant.
    Unfortunately, I last spoke to Dick (as he was known to friends)
    when I was putting all my effort into Isabelle/ZF.
    He simply loathed set theory and saw mathematics as essentially typed.
    He never lived to see the enormous amount of advanced mathematics
    that would be formalised using types in Isabelle/HOL.

    I annoyed him in another way. I kept asking,
    AUTOMATH looks natural, but how do we know that it is right?
    He eventually sent me a 300 page volume entitled
    The Language Theory of Automath.
    It describes AUTOMATH’s formal properties such as
    strong normalisation and Church–Rosser properties,
    but this was not the answer I wanted at all.
    I got that answer for a quite different type theory.

    Martin-Löf type theory

    In response to kind invitations from Bengt Nordström and Kent Petersson,
    I paid a number of visits to Chalmers University in Gothenburg
    to learn about Martin-Löf type theory.
    I was particularly impressed by its promise
    of a systematic and formal approach to program synthesis.
    I had already encountered intuitionism
    through a course on the philosophy of mathematics at Stanford University,
    as I recall taught by Ian Hacking.
    The “rightness” of Martin-Löf type theory was obvious,
    because it directly embodied the principles of intuition truth
    as outlined by Heyting: for example, that
    a proof of $Aland B$ consists of a proof of $A$ paired with a proof of $B$.

    I devoted several years of research to Martin-Löf type theory.
    This included a whole year of intricate hand derivations to produce a
    paper
    that I once thought would be important,
    and the very first version
    of Isabelle.
    Yes: Isabelle began as an implementation of Martin-Löf type theory,
    which is still included
    in the distribution even today as Isabelle/CTT.
    But eventually I tired of what seemed to me a doctrinaire attitude
    bordering on a cult of personality around Per Martin-Löf.
    The sudden switch to intensional equality
    (everyone was expected to adopt the new approach) wrecked most of my work.
    Screw that.

    You might ask, what about the calculus of constructions,
    which arose during that time and eventually gave us Rocq and Lean?
    (Not to mention LEGO.)
    To me they raised, and continue to raise, the same question I had put to de Bruijn.
    Gérard Huet said something like “it is nothing but function application”,
    which did not convince me.
    It’s clear that I am being fussy,1
    because thousands of people find these formalisms perfectly natural and believable.
    But it is also true that the calculus of constructions
    underwent numerous changes over the past four decades.
    There seem to be several optional axioms that people sometimes adopt
    while attempting to minimise their use,
    like dieters enjoying an occasional croissant.

    Decisions, decisions

    We can see all this as an example of the choices we make in research.
    People were developing new formalisms. This specific fact was the impetus
    for making Isabelle generic in the first place.
    But we have to choose whether to spend our time developing formalisms
    or instead to choose a fixed formalism and see how far you can push it.
    Both are legitimate research goals.

    For example, already in 1985, Mike Gordon
    was using higher-order logic to verify hardware.
    He was not distracted by the idea that some dependent type theory might work better
    for n-bit words and the like.
    The formalism that he implemented was essentially the same as the
    simple theory of types
    outlined by Alonzo Church in 1940.
    He made verification history using this venerable formalism,
    and John Harrison later found
    a clever way to encode the dimension
    of vector types including words.
    Isabelle/HOL also implements Church’s simple type theory,
    with one extension: axiomatic type classes.
    Isabella users also derive much power from the locale concept,
    a kind of module sysstem that lies outside any particular logic.

    During all this time, both Martin-Löf type theory and the calculus of constructions
    went through several stages of evolution. It’s remarkable how the Lean community,
    by running with a certain version of the calculus,
    quickly formalised a vast amount of mathematics.

    Pushing higher-order logic to its limit

    I felt exceptionally lucky to win
    funding from the European Research Council
    for the advanced grant ALEXANDRIA.
    When I applied, homotopy type theory was still all the rage,
    so the proposal emphasised Isabelle’s specific advantages: its automation,
    its huge libraries and the legibility of its proofs.

    The team started work with enthusiasm.
    Nevertheless, I fully expected that we would hit a wall,
    reaching mathematical material
    that could not easily be formalised in higher-order logic.
    Too much of Isabelle’s analysis library identified topological spaces
    with types.
    Isabelle’s abstract algebra library was old and crufty.
    A number of my research colleagues were convinced
    that higher-logic was not adequate for serious mathematics.
    But Anthony Bordg took up the challenge, leading a subproject
    to formalise Grothendieck schemes.

    For some reason I had a particular fear of the field extension $F[a]$,
    which extends the field $F$ with some $a$ postulated to be
    a root of some polynomial over $F$.
    (For example, the field of complex numbers is precisely $mathbb{R}[i]$,
    where $i$ is postulated to be a root a root of $x^2+1=0$.)
    And yet an early outcome of ALEXANDRIA was a proof,
    by Paulo Emílio de Vilhena and Martin Baillon,
    that every field admits an algebraically closed extension.
    This was the first proof of that theorem in any proof assistant,
    and its proof involves an infinite series of field extensions.

    We never hit any wall.
    As our group went on to formalise
    more and more advanced results,
    such as the Balog–Szemerédi–Gowers theorem,
    people stopped saying “you can’t formalise mathematics without dependent types”
    and switched to saying “dependent types give you nicer proofs”.
    But they never proved this claim.

    Now that dependent type theory has attained maturity
    and has an excellent tool in the form of Lean, shall I go back to dependent types?
    I am not tempted. The only aspects of Lean that I envy are its huge community and
    the Blueprint tool.
    I hear too many complaints about Lean’s performance.
    I’ve heard of too many cases where dependent types played badly
    with intensional equality – I sat through an entire talk on this topic – or otherwise made life difficult.
    Quite a few people have told me that
    the secret of dependent types is knowing when not to use them.
    And so, to me, they have too much in common
    with Tesla’s Full Self-Driving.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleWriting FreeDOS Programs in C
    Next Article Your IT stack is the enemy: How 84% of attacks evade detection by turning trusted tools against you
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Sony A7 V leak points to underwhelming next-gen full-frame camera launch, with lacklustre video features on the cards

    November 12, 2025

    Stable HyperOS 3 rolls out to Xiaomi Pad 7, with more Xiaomi and Redmi devices to follow later this month

    November 12, 2025

    Stable HyperOS 3 for Xiaomi Pad 7

    November 12, 2025
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025378 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 202597 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 202571 Views

    Is Libby Compatible With Kobo E-Readers?

    March 31, 202555 Views
    Don't Miss
    Gadgets November 13, 2025

    Yes 5G Advanced Field Test: An exciting yet frustrating experience

    Yes 5G Advanced Field Test: An exciting yet frustrating experience Since the WiMAX days, Yes…

    Sony A7 V leak points to underwhelming next-gen full-frame camera launch, with lacklustre video features on the cards

    Stable HyperOS 3 rolls out to Xiaomi Pad 7, with more Xiaomi and Redmi devices to follow later this month

    Stable HyperOS 3 for Xiaomi Pad 7

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Yes 5G Advanced Field Test: An exciting yet frustrating experience

    November 13, 20253 Views

    Sony A7 V leak points to underwhelming next-gen full-frame camera launch, with lacklustre video features on the cards

    November 12, 20253 Views

    Stable HyperOS 3 rolls out to Xiaomi Pad 7, with more Xiaomi and Redmi devices to follow later this month

    November 12, 20251 Views
    Most Popular

    Xiaomi 15 Ultra Officially Launched in China, Malaysia launch to follow after global event

    March 12, 20250 Views

    Apple thinks people won’t use MagSafe on iPhone 16e

    March 12, 20250 Views

    French Apex Legends voice cast refuses contracts over “unacceptable” AI clause

    March 12, 20250 Views
    © 2025 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.