Isabelle

1 program Added 2025-10-28T08:51:53Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 12e56fd8a9 · authored 2025-10-28T09:51:53+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

6 sources · pl_id: pl/isabelle
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglotRosettacode

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.thylinguistprimary392.2K files
.thypygmentsprimary392.2K files

Related languages

Isar (0.47)Estelle (0.27)Arendelle (0.24)Abella (0.20)Cedille (0.19)

LLM-contributed programs

Simple datatype definition and proof example

Provenance: commit 12e56fd8a9 · authored 2025-10-28T09:51:53+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.thy · added: 2025-10-28T08:51:53Z
datatype bool = true | false

fun not :: "bool ⇒ bool" where
"not true = false" |
"not false = true"

lemma "not (not true) = true"
  by auto

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
Equivalencia_de_inversos_iguales_al_neutro.thy · 2295 B · ext .thy · seen 110× in SWH
via unique-primary
swh:1:cnt:55412599224cb0ad3091c00b3bbe21ff90dc95c0;origin=https://github.com/jaalonso/Calculemus;anchor=swh:1:rev:da951ec9c328c27ba47a53c31e8ccb8e7e77808d;path=/thy/Equivalencia_de_inversos_iguales_al_neutro.thy
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
(* Equivalencia_de_inversos_iguales_al_neutro.thy
-- Equivalencia de inversos iguales al neutro
-- José A. Alonso Jiménez
-- Sevilla, 1 de julio de 2021
-- ------------------------------------------------------------------ *)

(* ---------------------------------------------------------------------
-- Sea M un monoide y a, b \<in> M tales que a * b = 1. Demostrar que a = 1
-- si y sólo si b = 1.
-- ------------------------------------------------------------------ *)

theory Equivalencia_de_inversos_iguales_al_neutro
imports Main
begin

context monoid
begin

(* 1\<ordfeminine> demostración *)

lemma
  assumes "a \<^bold>* b = \<^bold>1"
  shows   "a = \<^bold>1 \<longleftrightarrow> b = \<^bold>1"
proof (rule iffI)
  assume "a = \<^bold>1"
  have "b = \<^bold>1 \<^bold>* b"       by (simp only: left_neutral) 
  also have "\<dots> = a \<^bold>* b" by (simp only: \<open>a = \<^bold>1\<close>)
  also have "\<dots> = \<^bold>1"     by (simp only: \<open>a \<^bold>* b = \<^bold>1\<close>)
  finally show "b = \<^bold>1"   by this
next
  assume "b = \<^bold>1"
  have "a = a \<^bold>* \<^bold>1"       by (simp only: right_neutral) 
  also have "\<dots> = a \<^bold>* b" by (simp only: \<open>b = \<^bold>1\<close>)
  also have "\<dots> = \<^bold>1"     by (simp only: \<open>a \<^bold>* b = \<^bold>1\<close>)
  finally show "a = \<^bold>1"   by this
qed

(* 2\<ordfeminine> demostración *)

lemma
  assumes "a \<^bold>* b = \<^bold>1"
  shows   "a = \<^bold>1 \<longleftrightarrow> b = \<^bold>1"
proof 
  assume "a = \<^bold>1"
  have "b = \<^bold>1 \<^bold>* b"       by simp
  also have "\<dots> = a \<^bold>* b" using \<open>a = \<^bold>1\<close> by simp
  also have "\<dots> = \<^bold>1"     using \<open>a \<^bold>* b = \<^bold>1\<close> by simp
  finally show "b = \<^bold>1"   .
next
  assume "b = \<^bold>1"
  have "a = a \<^bold>* \<^bold>1"       by simp
  also have "\<dots> = a \<^bold>* b" using \<open>b = \<^bold>1\<close> by simp
  also have "\<dots> = \<^bold>1"     using \<open>a \<^bold>* b = \<^bold>1\<close> by simp
  finally show "a = \<^bold>1"   .
qed

(* 3\<ordfeminine> demostración *)

lemma
  assumes "a \<^bold>* b = \<^bold>1"
  shows   "a = \<^bold>1 \<longleftrightarrow> b = \<^bold>1"
  by (metis assms left_neutral right_neutral)

end

end

Contribute — propose a file extension

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