AGENT SKILL

logic-set-theory-foundations

Explain mathematical logic, set theory, proof techniques, and foundations: propositional and predicate logic, axioms (ZFC), cardinality, ordinals, axiom of choice, Goedel incompleteness, computability, Turing machines, model theory, type theory. Use for logic puzzles, proofs by induction, and foundational questions.

License 许可
MIT
最近更新
2026-10-17
Stars
★ 8
Forks
1

01 前言 Front Matter

name
logic-set-theory-foundations
description
Explain mathematical logic, set theory, proof techniques, and foundations: propositional and predicate logic, axioms (ZFC), cardinality, ordinals, axiom of choice, Goedel incompleteness, computability, Turing machines, model theory, type theory. Use for logic puzzles, proofs by induction, and foundational questions.

02 资源文件 1

03 SKILL.md 正文

Logic, Set Theory & Foundations

Logic

  • Propositional: connectives, truth tables, equivalences (De Morgan, contrapositive), normal forms (CNF/DNF), SAT, resolution, completeness theorem.
  • Predicate logic: quantifiers, negating (not forall = exists not), free vs bound variables; models, satisfiability, Goedel completeness, compactness, Lowenheim-Skolem.
  • Proof techniques: direct, contrapositive, contradiction, induction (weak, strong, structural), well-ordering, pigeonhole, cases, constructive vs non-constructive, double counting, extremal principle, invariants, probabilistic method.

Set theory

  • ZFC axioms: extensionality, pairing, union, power set, infinity, separation, replacement, foundation, choice. Russell's paradox motivates restricted comprehension.
  • Cardinality: |N| = aleph_0, |R| = 2^aleph_0 > aleph_0 (Cantor diagonal); Cantor's theorem |P(A)| > |A|; Schroeder-Bernstein; cardinal arithmetic.
  • Ordinals and transfinite induction; well-ordering theorem; Zorn's lemma; equivalence of AC with these.
  • Continuum hypothesis independent of ZFC (Goedel, Cohen forcing). Large cardinals.

Computability & incompleteness

  • Turing machines, Church-Turing thesis, halting problem undecidable, Rice's theorem, decidable vs semi-decidable, lambda calculus, primitive recursive vs recursive functions.
  • Goedel's incompleteness: any consistent, effectively axiomatized theory containing arithmetic is incomplete and cannot prove its own consistency. Tarski undefinability, Chaitin's Omega, Kolmogorov complexity.
  • Complexity theory classes P, NP, PSPACE, EXP, BPP, BQP; oracle/diagonal arguments.

Alternative foundations

Type theory (Curry-Howard: proofs as programs), category theory, homotopy type theory, intuitionistic logic, proof assistants (Lean, Coq, Isabelle) and formal verification.

Writing a proof

State claim precisely, list assumptions, structure the argument (base case/inductive step), cite lemmas, end with the conclusion, and double-check edge cases.

04 同仓库更多 Skills

hamzabellouch
hamzabellouch/agent-skills

security-audit

Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).

★ 8
hamzabellouch
hamzabellouch/agent-skills

malware-analysis-reversing

Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static/dynamic binary analysis, memory forensics, and YARA detection rule authoring.

★ 8
hamzabellouch
hamzabellouch/agent-skills

application-security-pentesting

Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST/DAST pipeline integration, secure code review, threat modeling, and defensive security posture.

★ 8
hamzabellouch
hamzabellouch/agent-skills

oauth2-oidc-security-flows

Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.

★ 8
hamzabellouch
hamzabellouch/agent-skills

jwt-session-management-hardening

Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256/EdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.

★ 8
hamzabellouch
hamzabellouch/agent-skills

soc2-compliance-automation

Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI/CD security gates.

★ 8