Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/lean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: © 2026 Phala Network <dstack@phala.network>
#
# SPDX-License-Identifier: Apache-2.0

name: Lean proofs

on:
push:
branches: [ next, 'release/**' ]
paths: [ 'formal/**', '.github/workflows/lean.yml' ]
pull_request:
branches: [ next, 'release/**', 'feat/**' ]
paths: [ 'formal/**', '.github/workflows/lean.yml' ]

jobs:
build:
runs-on: ${{ vars.CI_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v5

- name: Reject axioms and unchecked code
run: "! grep -rnE '^\\s*(axiom|unsafe|@\\[implemented_by|@\\[extern)|native_decide' --include='*.lean' formal"

- uses: leanprover/lean-action@v1
with:
lake-package-directory: formal
4 changes: 4 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ path = [
"docs/**/*.md",
"dstack/**/*.md",
"examples/**/*.md",
"formal/**/*.md",
"sdk/**/*.md",
"tools/**/*.md",
"os/README.md",
Expand Down Expand Up @@ -70,6 +71,9 @@ path = [
"dstack/**/.npmignore",
"docs/**/.gitignore",
"examples/**/.gitignore",
"formal/.gitignore",
"formal/lake-manifest.json",
"formal/lean-toolchain",
"os/common/**/.gitignore",
"os/image/**/.gitignore",
"sdk/**/.gitignore",
Expand Down
1 change: 1 addition & 0 deletions formal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.lake/
23 changes: 23 additions & 0 deletions formal/DstackFormal.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- SPDX-FileCopyrightText: © 2026 Phala Network <dstack@phala.network>
--
-- SPDX-License-Identifier: Apache-2.0

import DstackFormal.Gateway.CertLock
import DstackFormal.Gateway.CertStore
import DstackFormal.Gateway.HealthCheck
import DstackFormal.Gateway.Import
import DstackFormal.Gateway.Ingress
import DstackFormal.Gateway.IpAlloc
import DstackFormal.Gateway.MsgpackSkip
import DstackFormal.Gateway.PortPolicy
import DstackFormal.Gateway.Sni
import DstackFormal.Guest.BootTrace
import DstackFormal.Guest.EnvFile
import DstackFormal.Guest.EventLog
import DstackFormal.Guest.InstanceId
import DstackFormal.Guest.MrConfig
import DstackFormal.Guest.Policy
import DstackFormal.Kms.KeyDerivation
import DstackFormal.Kms.KeyRelease
import DstackFormal.Kms.RaTlsEncoding
import DstackFormal.Kms.RootEpoch
Loading
Loading