F-star

1 program Added 2026-02-26T12:53:56Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: F*, fstar
Provenance: commit d755cbb990 · authored 2026-02-26T13:54:17+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

9 sources · pl_id: pl/f
LLM (this repo) · 1PldbLinguistPygmentsWikipediaEsolangHyperpolyglotRosettacodeWikidata · Q5423569

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · imperative
Typingdependent, inferred, static, strong
Designed byMicrosoft Research · Inria · Nikhil Swamy · Juan Chen · Cédric Fournet · Pierre-Yves Strub · Karthikeyan Bhargavan · Jean Yang
First appeared2011
Influenced byDafny · F# · Lean · OCaml · Rocq · Standard ML
LicenseApache 2.0
Implemented inF*
Homepagehttp://fstar-lang.org

Extensions claimed by this language

5 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.fstlinguistprimary326.0K files
.fstpygmentsprimary326.0K files
.fstilinguistsecondary17.1K files
.fstipygmentssecondary17.1K files
.fstwikipediaproposed326.0K files

Related languages

F* (0.79)Fstar (0.65)C* (0.22)BANCStar (0.20)Rockstar (0.20)

LLM-contributed programs

Fibonacci sequence

Provenance: commit d755cbb990 · authored 2026-02-26T13:54:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.fst · added: 2026-02-26T12:53:56Z
module Fibonacci

open FStar.IO

let rec fib (n:nat) : nat =
  match n with
  | 0 -> 0
  | 1 -> 1
  | _ -> fib (n-1) + fib (n-2)

let rec print_fibs (i:nat) (limit:nat) : ML unit =
  if i < limit then begin
    print_string ("fib(" ^ string_of_int i ^ ") = " ^ string_of_int (fib i) ^ "\n");
    print_fibs (i+1) limit
  end

let main () : ML unit =
  print_fibs 0 10

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about F-star (mapped to pl/f). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/F-star/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← F-Script Fable →