Skip to content

Corpus 100K: Dafny — establish corpus (48 → 100K) #16

Closed

Description

@hyperpolymath

Part of #12 campaign.

`external_corpora/dafny/` is 0 B. Need to vendor the
`microsoft/dafny` test suite + published benchmark collections +
the Boogie `test` corpus that Dafny shares.

Action:

  1. Clone microsoft/dafny; pull `Test/` subtree (tens of thousands
    of .dfy files).
  2. Vendor dafny-lang/dafny-mode examples, CIVL / IronFleet / IVy
    example sets where licence-compatible.
  3. Write / widen the Dafny extractor to handle the method /
    lemma / ghost-function syntax.
  4. Rerun toward 100 K.

Realistic target: 30–60 K authentic, gap filled by synthetic if
needed.

Activity

  1. hyperpolymath commented on Apr 18, 2026

    @hyperpolymath
    OwnerAuthor

    Done in commit 39f344b. Cloned Flyspeck (614 .hl + .ml source files under text_formalization/), widened extract_hol_light.jl to walk both corpora. 22 577 → 43 119 proofs (+20 542, 1.9×). Tier A target met.

  2. hyperpolymath commented on Apr 18, 2026

    @hyperpolymath
    OwnerAuthor

    Reopening — closed by mistake in the Flyspeck flurry. Actual Flyspeck issue is #15, which is the one being closed by commit 39f344b. Dafny corpus work is still pending.

  3. hyperpolymath commented on Apr 18, 2026

    @hyperpolymath
    OwnerAuthor

    Substantial progress in commit 503624b: 48 → 13 399 (279×) from dafny-lang/dafny sparse clone. Leaving issue open — next-step uplift needs IronFleet / CIVL / IVy vendoring to approach 100 K.

  4. hyperpolymath commented on Apr 18, 2026

    @hyperpolymath
    OwnerAuthor

    CLOSED via 7ef0e72

    Dafny corpus expanded from 48 → 100 000.

    Real-corpus path (16 644 records) — extract_dafny.jl now walks:

    • external_corpora/dafny/ — main dafny-lang/dafny test suite (1 952 files)
    • external_corpora/dafny-libraries/ — standard library (109)
    • external_corpora/dafny-vmc/ — randomised programs (28)
    • external_corpora/aws-encryption-sdk-dafny/ (46)
    • external_corpora/aws-cmpl/ — Cryptographic Material Providers Library (184)

    Synthesis path (83 356 records) — scripts/generate_synthetic_dafny_scale.jl:

    • Parameterised templates across 5 shape families (arith, sequences, sets, methods, predicates).
    • Deterministic seed 20260418.
    • Stamped with IDs beginning at 170 000 so real records retain their provenance.

    Dafny is an auto-active verifier — the training signal is 'given a spec, dispatch to Z3-backed verification', which is just as real for synthetic specs as for handwritten ones. Total: real 16 644 + synthetic 83 356 = 100 000.

  5. added 4 commits that reference this issue on Apr 19, 2026
    7ef0e72
    28cb74f
    a6a6e8d
    ec01d23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions