Tamarin

1 program Added 2026-02-07T14:56:46Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Tamarin Prover
Provenance: commit a303922da8 · authored 2026-02-07T15:57:41+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Aya (0.30)Lean (0.26)ProVerif (0.21)Plover (0.19)Tamsin (0.19)

LLM-contributed programs

Simple Authentication Protocol

Provenance: commit a303922da8 · authored 2026-02-07T15:57:41+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.spthy · added: 2026-02-07T14:56:46Z
theory SimpleAuth
begin

/* Declare built-in functions */
functions: pk/1, sign/2, verify/3, true/0

/* Public key infrastructure */
rule Register_pk:
  [ Fr(~sk) ]
  -->
  [ !Pk($A, pk(~sk)), !Sk($A, ~sk) ]

/* Client initiates authentication */
rule Client_Init:
  [ !Sk($C, ~sk), Fr(~nonce) ]
  -->
  [ Out(<$C, ~nonce, sign{~nonce}~sk>),
    Client_Sent($C, ~nonce) ]

/* Server verifies authentication */
rule Server_Verify:
  [ In(<$C, nonce, signature>),
    !Pk($C, pk) ]
  --[ Authentic($C, nonce),
      Eq(verify(signature, nonce, pk), true) ]->
  [ Server_Accepted($C, nonce) ]

/* Verification lemma */
lemma authentication:
  "All c n #i. Authentic(c, n) @i ==> Ex #j. Client_Sent(c, n) @j & j < i"

end

Contribute — propose a file extension

Tell us where to find evidence about Tamarin (mapped to pl/tamarin). 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/Tamarin/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Talon Tamerlane →