blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa766930163751a0ecbf3661279bc73afbf59c01 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/is_connected.lean | 72d75ff9dfad0fa110b28f6735db7c130f717900 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 14,286 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.list.chain
import category_theory.punit
import category_theory.groupoid
/-!
# Connected category
Define a connected category as a _nonempty_ category for wh... |
6bdb42e7bf7b861c187d99bca11d19f2ca9ed80a | 38a6d5def645a1887e1306ceb4da06ff71452096 | /_5_The_Physical_Layer/qubit_carriers/entropy_of_states.lean | 0acd72a916d044083b01a5811a717df73a442c7f | [] | no_license | QTM3x/Quantum-Internet | bcc2d61e2ae7233bb2b369fedaed22a1feb6fba1 | f90e09fb6c03d35043654d8b1bec1c63d6012268 | refs/heads/master | 1,609,224,401,937 | 1,599,911,583,000 | 1,599,911,583,000 | 238,495,221 | 45 | 33 | null | 1,603,625,079,000 | 1,580,919,815,000 | Jupyter Notebook | UTF-8 | Lean | false | false | 7,840 | lean | import data.real.basic
import analysis.special_functions.exp_log
import _5_The_Physical_Layer.qubit_carriers.quantum_state
import _5_The_Physical_Layer.optical_fiber.quantum_channel
import common.shannon_theory
notation `|` x `|` := abs x
variables {n m : ℕ}
noncomputable theory
---- QUANTUM ENTROPY
/-
Definition ... |
21dc290d380f820549ffa099ccc6ff5f61847d65 | cb43248ccd028db2c147695d2c68772d583ed390 | /code/test.lean | 30c992980a6a932ce728886ac1fea2ceba75868e | [] | no_license | codyroux/ny-haskell | 812d872a74be7c68d3dac5c69507214bad2c660e | 463e730c5ff1e50c43415714aa27ea4ebf4f64b6 | refs/heads/master | 1,610,284,527,025 | 1,448,464,569,000 | 1,448,464,569,000 | 46,724,063 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 517 | lean | import data.nat.div
print prefix dvd
print notation ∣
print notation +
check (3 ∣ 6)
-- print prefix ∣
print prefix num
print definition nat.add
definition pred : ℕ → ℕ
| pred 0 := 0
| pred (nat.succ n') := n'
definition add_nat : ℕ → ℕ → ℕ
| add_nat 0 m := m
| add_nat (nat.succ n') m := nat.succ (add_nat n' m)
de... |
93a30c920274c93ceec277f0736342e10dd48f20 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/lie/tensor_product.lean | b173fc9b4dbb7da1db01099db7b0bf3ef3da2606 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,873 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.abelian
/-!
# Tensor products of Lie modules
Tensor products of Lie modules carry natural Lie module structures.
## Tags
lie module, tensor product, ... |
6c19bb8a76beb8c2233381465f20e3b2d21f5f2f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/doc_commands.lean | 3f493a4a83e64d102f8cce5e301ac11bfa18d390 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 16,402 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
/-!
# Documentation commands
We generate html documentation from mathlib. It is convenient to collect lists of tactics, commands,
notes, etc. To facilitate this, ... |
2b1bb923596a79166e095403c13ab3c2f3a0f1ad | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/calc1.lean | ba8eb878efc7a9dc39113e95ffa94db1d78b9c1f | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,639 | lean | prelude constant A : Type.{1}
definition bool : Type.{1} := Type.{0}
constant eq : A → A → bool
infixl ` = `:50 := eq
axiom subst (P : A → bool) (a b : A) (H1 : a = b) (H2 : P a) : P b
axiom eq_trans (a b c : A) (H1 : a = b) (H2 : b = c) : a = c
axiom eq_refl (a : A) : a = a
constant le : A → A → bool
infixl ` ≤ `:50 :... |
cdcd027405061f98db8c32e1bce8eba42e50ecb1 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.31.lean | 8076a443123d996ec6c8c415096a674ef46188f9 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,398 | lean | import standard
import data.nat
open nat decidable
definition ball (n : nat) (P : nat → Prop) : Prop :=
∀ x, x < n → P x
definition ball_zero (P : nat → Prop) : ball zero P :=
λ x Hlt, absurd Hlt !not_lt_zero
variables {n : nat} {P : nat → Prop}
definition ball_of_ball_succ (H : ball (succ n) P) : ball n P :=
λ x H... |
cc5377ba6ddcec1554ac82fb115c5c5b15c9bc69 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/pequiv.lean | 7b763acba996971d9875f0e98b2570a98f0cc926 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,824 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.lattice
import Mathlib.PostPort
universes u v l u_1 w x u_2 u_3
namespace Mathlib
... |
6c27abf2bdaff070e0b73e4657fb074b97614b28 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/spectrum.lean | 220d6649b36d54f085d317ba98e636c45fa3c845 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 27,835 | lean | /-
Copyright (c) 2021 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import algebra.algebra.spectrum
import analysis.special_functions.pow
import analysis.complex.liouville
import analysis.complex.polynomial
import analysis.analytic.radi... |
06a38a6f060d399b528970a8f4847ae8a0c764d8 | 00c000939652bc85fffcfe8ba5dd194580a13c4b | /src/for_mathlib.lean | a02950106e93d9a13a81baf4f57b860a691b72ce | [
"Apache-2.0"
] | permissive | johoelzl/qpf | a795220c4e872014a62126800313b74ba3b06680 | d93ab1fb41d085e49ae476fa364535f40388f44d | refs/heads/master | 1,587,372,400,745 | 1,548,633,467,000 | 1,548,633,467,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,701 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import data.pfun category.functor category.applicative
universes u v
lemma eq_mp_heq :
∀ {α β : Sort*} {a : α} {a' : β} (h₂ : a == a'), (eq.mp (type_eq_of_heq h₂) a) = a... |
5c98c252ca8fa19cc3d83d68ab86c39fcff931c0 | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /folklore/measure_theory.lean | 6129f8b85ec194a5bf54bb84e0f42a1ab913e6b4 | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,143 | lean | import .real_axiom .analysis
open set classical real_axiom real_axiom.extended_real
local attribute [instance] prop_decidable
noncomputable theory
universe u
def countable_union {X : Type u} (f : ℕ → set X) : set X :=
{x | ∃ n, x ∈ f n}
variables {X : Type u} (σ : set (set X))
class sigma_algebra :=
(un... |
c6e274a593b6d976a5cdf538dcb173b9ab36b831 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/LocalContext.lean | dcc4b44225d71773282eaf9152030d52f15fe4af | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,958 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.PersistentArray
import Lean.Expr
import Lean.Hygiene
namespace Lean
inductive LocalDecl :=
| cdecl (index : Nat) (fvarId : FVarId) (user... |
1ada13b6b19b8e4abf94ad5e9cd592ffcd4093a7 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/equiv/basic.lean | fb44e5639a9d9c0ae12b45762c77cb3a1d06f24e | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77,422 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.set.function
import algebra.group.basic
/-!
# Equivalence between types
In this file we define two types:
* `equiv α β` a.k.a... |
af63cba1e9c01c0c310b72633ee3dcf6cb013f26 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/complex/module.lean | f408937c8b1a50a28c06d5e1a77de6e0eef2ffec | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,058 | lean | /-
Copyright (c) 2020 Alexander Bentkamp, Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Sébastien Gouëzel
-/
import data.complex.basic
import algebra.algebra.ordered
import data.matrix.notation
import field_theory.tower
import li... |
b96b31b29b859cf8206c0969ed7611483e55020c | aa44b2a5876642f9460205af61a5449b74465655 | /src/linarith.lean | e41ff4d59e4c63fbfd6b3c9ca09d4abc44ae6ccc | [] | no_license | robertylewis/mathematica_examples | d129d67de147dc2792dcf0b6b70fac9b2eaf8274 | e317381c49db032accef2a92e7650d029952ad76 | refs/heads/master | 1,632,630,516,240 | 1,631,905,726,000 | 1,631,905,726,000 | 80,952,455 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,961 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.core
import mathematica
import tactic.linarith
/-!
This demo shows how we can use Mathematica as a certificate oracle for mathlib's `linarith` tactic... |
53a0ff0c9e175857215be266d0ac2500c4fb1a63 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/app/SMT.lean | 4f2b61360925d95350d34957662bf18a0bcaff6b | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 15,557 | lean |
import Galois.Data.SExp
import Galois.Init.Io
import ReoptVCG.SMTParser
import ReoptVCG.MCStdLib
import ReoptVCG.Types
import ReoptVCG.VCGBackend
import ReoptVCG.WordSize
import SMTLIB.Syntax
import X86Semantics.Common
namespace ReoptVCG
open SMT
universe u
def defaultCVC4Args : List String :=
-- N.B., as of CVC4 46... |
cd560d00ceffce74dcc24ebf2f1e3b143fabc49f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/localized.lean | 46d35b636173d2d810f1f1e83379e1adf800fc61 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,597 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
/-!
# Localized notation
This consists of two user-commands which allow you to declare notation and commands localized to a
namespace.
* Dec... |
902078916760a53fa3725ef65987251792a8ac6c | aac33c518959cd0633fdc254edbbf27b2f581c31 | /src/tactic/interactive.lean | ccb91641aebf32c3aef5954685d69fbb98894fcd | [
"Apache-2.0"
] | permissive | digama0/mathlib-ITP2019 | 992c4f9ac02260fca4a14860813c3ecbd5ca1ae6 | 5cbd0362e04e671ef5db1284870592af6950197c | refs/heads/master | 1,588,517,123,478 | 1,554,081,078,000 | 1,554,081,078,000 | 178,686,466 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 27,738 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import data.dlist data.dlist.basic data.prod category.basic
tactic.basic tactic.rcases tactic.generalize_proofs
ta... |
b935efc7b6fd9bc256a980dfae8c15626a825ea9 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/bitvec/default.lean | dda4efcf119315253c4f0902bfa75da41b4020da | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,256 | lean | import .simplify_eq
import galois.list
import galois.nat
namespace bitvec
-- Unsigned extension
def uext {m :ℕ } (x:bitvec m) (n:ℕ) (pr : m ≤ n) : bitvec n :=
let q : n - m + m = n := nat.sub_add_cancel pr in
bitvec.cong q (bitvec.append (bitvec.zero (n-m)) x)
-- Return all bitvectors with a given size.
def all ... |
cc15e20effa41669f32a6bae4fba0d98a57ec6d9 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Util/PPExt.lean | 8564b4ceb868bec02d59fbd0386cbbf836cf2c42 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,576 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Environment
import Lean.Syntax
import Lean.MetavarContext
import Lean.Data.OpenDecl
namespace Lean
builtin_initialize
registerOption `pp.raw ... |
b336be72f40ac74a8b9a97b911fa9d84a7327c9c | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/unique_factorization_domain.lean | e7c49119b14228c61d1d37d954a82778aab9f33b | [
"LPPL-1.3c"
] | permissive | lean-forward/class-number | 9ec63c24845e46efc8fa8b15324d0815918292c7 | 4fccf36d5e0e16accae84c16df77a3839ad964e4 | refs/heads/main | 1,686,927,014,542 | 1,624,886,724,000 | 1,624,886,724,000 | 327,319,245 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,535 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Aaron Anderson
-/
import algebra.gcd_monoid
import ring_theory.integral_domain
import ring_theory.noetherian
/--
# Unique factorization
## Main Defi... |
5eff7a626f65534b1fd0ec4d3b3bacacfdeaa9c3 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Init/System/ST.lean | 2ddda42a140b6a9f606a6fe5130f3d0f6ad5abb4 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 4,411 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Classical
import Init.Control.EState
import Init.Control.Reader
def EST (ε : Type) (σ : Type) : Type → Type := EStateM ε σ
abbrev ST (σ... |
b48659277a38dc1cabadfcc10c24e2419810648d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/continuous_function/stone_weierstrass.lean | 4cf2a4bfddc09827e6a7eadd836c54c942162062 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 19,745 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Heather Macbeth
-/
import topology.continuous_function.weierstrass
import analysis.complex.basic
/-!
# The Stone-Weierstrass theorem
If a subalgebra `A` of `C(X, ℝ)`,... |
c47c2b8e1283ddbc2e86bd23abab25300b0ae73e | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftCancellativeOp.lean | 79e850aa61fa42c7d066f27d0b4d0d960c4cd080 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,002 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section LeftCancellativeOp
structure LeftCancellativeOp (A : Type) : Type :=
(op : (A → (A → A)))
(linv : (A → (A → A)))
(lefCancelOp : (∀ {x y : A} , (linv x (o... |
80b3f2348d647ba7a4bb9824ff94c515ccaf0ba4 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/explode.lean | 5d193aadbf9983a6076e3b3988775644fc30c261 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 5,224 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Displays a proof term in a line by line format somewhat akin to a Fitch style
proof or the Metamath proof style.
-/
import tactic.core
open expr tactic
namespace tactic... |
549c242e9143bd1a475f0f0e16ccbefe3b2b8742 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/finite_dimensional.lean | aaeefb583faa515b9b741ed858f86ee03779217d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,402 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import data.matrix.basic
import linear_algebra.finite_dimensional
/-!
# The finite-dimensional space of matrices
This file... |
dfe16316486fc916a58378af95727b7b57a820db | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/probability_mass_function/constructions.lean | ae7df339f0f93a984e4ff9fb4a861b9784356ac5 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 9,658 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Devon Tuma
-/
import probability.probability_mass_function.monad
/-!
# Specific Constructions of Probability Mass Functions
This file gives a number of different `pmf... |
ec3da0b5db19dace7e5f630ec93932ee7399930e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/epi_mono.lean | cbdd362ed048cbabdb2a892a7ee81c2bf92bf8cd | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 5,288 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
Facts about epimorphisms and monomorphisms.
The definitions of `epi` and `mono` are in `category_theory.category`,
since they are used by some lemmas for `is... |
ef9133ce3828d311857ff9c4bf135cc3a400776e | 92b50235facfbc08dfe7f334827d47281471333b | /hott/types/cubical/squareover.hlean | 21a7f841d10c7b61812fa22d24cc94d5c03d1ece | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 7,087 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Squareovers
-/
import .square
open eq equiv is_equiv equiv.ops
namespace eq
-- we give the argument B explicitly, because Lean would find (λa, B a) by itself, ... |
bf56d415432ef473c39cfda7918f108728e6e111 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/maps.lean | f8c14e1b9ed611ce8c8b87ea67fbf29e2ab107d1 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 15,684 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.order
/-!
# Specific classes of maps between topological spaces
This file introduces the following properties of a m... |
f0607f7e97010132a234d9e9589270cc9c8f8a28 | 1e3a43e8ba59c6fe1c66775b6e833e721eaf1675 | /src/field_theory/subfield.lean | 2252c7594c106ea354accbf5c8914319292ffaf4 | [
"Apache-2.0"
] | permissive | Sterrs/mathlib | ea6910847b8dfd18500486de9ab0ee35704a3f52 | d9327e433804004aa1dc65091bbe0de1e5a08c5e | refs/heads/master | 1,650,769,884,257 | 1,587,808,694,000 | 1,587,808,694,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,448 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import ring_theory.subring
variables {F : Type*} [field F] (S : set F)
section prio
set_option default_priority 100 -- see Note [default priority]
class is_subf... |
4208287249f799298b14a28c2fc43703c0e1dec7 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/representation_theory/fdRep.lean | bdc8703f7707cb2e3dbf9d2252dcac16c8a11031 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 4,530 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import representation_theory.Rep
import algebra.category.FinVect
import representation_theory.basic
/-!
# `fdRep k G` is the category of finite dimensional `k`-linea... |
d0780329f4545e778208e145ec76adf550229d2b | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /algebra/order_functions.lean | 57931e8dce85e43bf2be16611631cc36906f5884 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 7,805 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.ordered_group order.lattice
open lattice
universes u v
variables {α : Type u} {β : Type v}
attribute [simp] max_eq_left max_eq_right min_eq_left min... |
89ef49163f8206de7d782728edbaa960c35267ec | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/CollectMVars.lean | 3bc337321719319cf0c9cf2c4092c45b10b0906f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,669 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.CollectMVars
import Lean.Meta.Basic
namespace Lean.Meta
/--
Collect unassigned metavariables occuring in the given expression.
Remar... |
c496cd7f2a52530fef95857d638b64f4d1c2e415 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/tuple.lean | 61407155099facab93ee53b3e85f85bfb7dd4ffc | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 13,062 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import logic data.list data.fin
open nat list subtype function
attribute [reducible]
defi... |
0dc4991321b53efacddb7c025b2ec6bb8619e30c | 531456391187e1b7678c24ddaf3d6470b4dba971 | /library/init/meta/tactic.lean | b6b7e67b18b7d842db415c7c76e6b99adacc21f0 | [
"Apache-2.0"
] | permissive | tigerneil/lean | 7e4834cb9b03027c0e3ba42efd8c1a4f52389c9c | 8f31cff99bca2c5dd7fcd425de1ff1cb8e4e150a | refs/heads/master | 1,606,890,672,381 | 1,499,580,201,000 | 1,499,580,305,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,321 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
18340fe504bfadc4f511e88defe38d02805ed325 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/protected_test.lean | 20f8757deac4d78e4b786eab1d3a31765853c6f8 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 250 | lean | namespace nat
check induction_on -- ERROR
check rec_on -- ERROR
check nat.induction_on
check le.rec_on -- OK
check nat.le.rec_on
namespace le
check rec_on -- ERROR
check le.rec_on
end le
end nat
|
60d89f79d710addeae0254ea52233da3b9cb3335 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-24.lean | 6af150deee8b23719d0dabfaaf179f9846e49930 | [
"Apache-2.0",
"MIT"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 239 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (x : ℝ) (h₀ : x / 50 = 40) : x = 2000 :=
begin
sorry
end
|
480ed842bbed673cb1fbc3442f8e4fce2501c2d6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/star/prod.lean | 3ced92aefa10a6d16564e1c00167ab00e59efe3a | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 1,985 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.star.basic
import algebra.ring.prod
import algebra.module.prod
/-!
# `star` on product types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
e75e413cd0cec19f1ac21e786843110ca2079a21 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/order.lean | ec7ee5f7fe8b821c8bcc156913d0f8f884bdb423 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 15,142 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.alias
import tactic.lint
/-!
# Lemmas about inequalities
This file contains some lemmas about `≤`/`≥`/`<`/`>`, and `cmp`.
* We simplify `a ≥ b` and `... |
a2f8b4867faee7dd1586091bdaf5fc7f6b35e7f6 | e19b506b59d98b1469dd0023680087d321d0293d | /src/test/test.lean | 808bc022e6ce25c7ace10652fc0791a4f56f5102 | [] | no_license | khoek/lean-where | ea28c2a63b0c28159f9363ee5f3101348b2b4744 | d2550de8655ece1cafbb9bf1beafe4d1c4481913 | refs/heads/master | 1,586,277,232,465 | 1,542,797,636,000 | 1,542,797,636,000 | 158,533,733 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 244 | lean | import command.where
section
end
#where
namespace hi
variables (C : ℕ)
include C
#where
end hi
namespace hi.yo
variables (C : ℕ)
def b_fn (k : ℤ) : unit := let C := C in ()
def a_fn : unit := let C := C in ()
#where
end hi.yo
|
8b2b9110d6c428485638ad6348bb6cef0529f46d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/basic.lean | 60c909ffd5c53fd5417f3161c57ddb3c2f5fb217 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 149,345 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import data.nat.basic
/-!
# Basic properties of lists
-/
open function nat (hiding one_pos)
... |
aec2507e489819cc9dba24227aab6bda941ae131 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/perfect_closure_auto.lean | 660fcaa26b80a04ab48d01c326c5165d8dc20243 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,232 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.char_p.basic
import Mathlib.data.equiv.ring
import Mathlib.algebra.group_wit... |
4626e3e6390628909a6fb02cab7416aa821e15ee | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/calculus/implicit.lean | 80704de48ffb0e07827aef953dd55763867fcbaa | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 20,250 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.inverse
import analysis.normed_space.complemented
/-!
# Implicit function theorem
We prove three versions of the implicit function theore... |
15dfaf348ee9b71e14f9c30f193a897969ced646 | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/basicmodal/semantics/undefinability.lean | c74c1d309e94daa744857e2e03646e9fd13834a0 | [] | no_license | paulaneeley/modal | 834558c87f55cdd6d8a29bb46c12f4d1de3239bc | ee5d149d4ecb337005b850bddf4453e56a5daf04 | refs/heads/master | 1,675,911,819,093 | 1,609,785,144,000 | 1,609,785,144,000 | 270,388,715 | 13 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,262 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
-/
import basicmodal.language basicmodal.syntax.syntax
import basicmodal.semantics.semantics data.set.basic basicmodal.paths
import basicmodal.semantics.definability
local attribute [instance] classical.prop_decidable
open form
--------... |
9872752ba661e7d758d3f18ad75cb71a241477c5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/concrete_category/basic.lean | 4a74dcdba59c603af80ebd0c60062fddb3a2e3d3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 10,168 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather, Yury Kudryashov
-/
import category_theory.types
import category_theory.functor.epi_mono
import category_theory.limits.constru... |
c300c579606c5b8b98efefe2c1d73b77434c64d9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/equiv/mul_add.lean | 5db37aea7094a4d8fe2a7a006125f3d988f13157 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 20,050 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import data.equiv.basic
import deprecated.group
import algebra.group.hom
/-!
# Multiplicative and additive equivs
In this file we de... |
adbdb65117fa04178796c9a8aa29444a6bd2faa3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/int/countable.lean | 58f6a6b3eb39d8c70bdc5fc9a2411ed1c6277b64 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,209 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.equiv data.int.basic data.encodable data.countable
open equiv bool sum
namespace int
definition int_equiv_bool_nat : int ≃ (bool × nat) :=
equiv... |
4222ac4a8c41ad9439a322e20c60bc20af4c2415 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/algebra/uniform_field.lean | ba66a15ce40cc15ea77f3404d9f932adcccb0b37 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 6,605 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.uniform_ring
import topology.algebra.field
/-!
# Completion of topological fields
The goal of this file is to prove the main part of Proposi... |
ab7fc2de1ebc2c122be89a4af0c04dc5b34d1ecf | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/nativeReflBackdoor.lean | 08ad3f7da4a7bd49b0d4445f3d3e15aa02c8fa11 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,006 | lean | --
/-
This example demonstratea that when we are using `native_decide`,
we are also trusting the correctness of `implementedBy` annotations,
foreign functions (i.e., `[extern]` annotations), etc.
-/
def g (b : Bool) := false
/-
The following `implementedBy` is telling the compiler
"trust me, `g` does implement `f`"
w... |
ac0b891859ebc426dff3edb9c2f116795b40b351 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/specific_groups/quaternion.lean | 8efd4b943114462dfdac2e3c7a7796ecb3092d85 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 9,140 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import data.zmod.basic
import data.nat.basic
import tactic.interval_cases
import group_theory.specific_groups.dihedral
import group_theory.specific_groups.cyc... |
50872982b6465c4eb2d30f000ca13e912c863bfc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/concrete_category/bundled.lean | 99404f87943e6fdea0b021b582ac964ef516dc3b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,096 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
-/
import tactic.lint
/-!
# Bundled types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-communi... |
5ae9da51bc056d51997c6979e424e2ea3165f1ac | cf39355caa609c0f33405126beee2739aa3cb77e | /leanpkg/leanpkg/resolve.lean | fba53f8e1741ccda185bb4f458b8188d14acfa75 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 3,722 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.manifest system.io leanpkg.proc leanpkg.git
namespace leanpkg
def assignment := list (string × string)
namespace assignment
def empty : assignm... |
2e612386591168c7bfa31472d6b94084379a75ae | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/finset/lattice.lean | 6ba953b0088d5742970278f0ae82bbd4f158a0e5 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 20,156 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.fold
import data.multiset.lattice
/-!
# Lattice operations on multisets
-/
variables {α β γ : Type*}
namespace finset
open multiset
/-! ### sup ... |
780405519a0ddacea42d2209f2862e9857a12848 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/geometry/manifold/times_cont_mdiff.lean | f3d9b91f5b321a2825fcd4517e2396a54dde0017 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 75,110 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.mfderiv
import geometry.manifold.local_invariant_properties
/-!
# Smooth functions between smooth manifolds
We define `Cⁿ` functions... |
78cb1faf0082da17a22fd1eac6ad5753b5d0b51a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/real/basic_auto.lean | 6b4d224b708079d9cdd50f78002d888e080855ba | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,419 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
im... |
9396fcd518560053fedf7c3cef88be919443d81e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/multiset/pi.lean | 916174981c99f4274e5f7dab6ff428aca6c83790 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,046 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.multiset.nodup
/-!
# The cartesian product of multisets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
c91635e8cd691467e7704acc1e10a47758bf1d0a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/measure.lean | e80f6a9481d9c774bb4917bc7ff45c914e740d61 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,468 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.convex.topology
import analysis.normed_space.add_torsor_bases
import measure_theory.measure.lebesgue.eq_haar
/-!
# Convex sets are null-measurable
... |
5d703b894993a1b380a00e51dc54f550b644eea6 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/data/array/lex_order.lean | 4e97a311745452ee34c223b32b9def4f32f8fd17 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 6,258 | lean | -- Defines predicates for strict and non-strict lexicographic orderings over arrays.
namespace array
/--
This compares two arrays lexicographically with an extra argument to denote the value of the predicate
if they are equal.
-/
inductive lex_compare {α} [h:linear_order α] (are_eq : Prop) {m n} (x : array m α) (y : ... |
fe635e204896dfe8727323c016062120a10606c0 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love07_metaprogramming_demo.lean | 266b31bf7f01ff979f0d6168f347be3f6723da7b | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,382 | lean | import .love05_inductive_predicates_demo
/- # LoVe Demo 7: Metaprogramming
Users can extend Lean with custom monadic tactics and tools. This kind of
programming—programming the prover—is called metaprogramming.
Lean's metaprogramming framework uses mostly the same notions and syntax as
Lean's input language itself.... |
604741988895f22382dabd6fa3f6a18cd34a5095 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/lagrange.lean | dcbc5907f444443c3f5112ff88af6efdf629907b | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 9,818 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.big_operators.basic
import ring_theory.polynomial.basic
/-!
# Lagrange interpolation
## Main definitions
* `lagrange.basis s x` where `s : finset F` and `x :... |
5ad9bb25a8df911c18d0df322cf63941a2096610 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/div_wf.lean | 1063e153f653eda7fbb84af941686a18474a996a | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,743 | lean | open nat well_founded decidable prod
set_option pp.all true
-- Auxiliary lemma used to justify recursive call
private definition lt_aux {x y : nat} (H : 0 < y ∧ y ≤ x) : x - y < x :=
and.rec_on H (λ ypos ylex,
nat.sub_lt (nat.lt_of_lt_of_le ypos ylex) ypos)
definition wdiv.F (x : nat) (f : Π x₁, x₁ < x → nat → nat... |
db84a11e5dbbab6cd722f0b33462e16274558ae9 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/instances/ennreal.lean | bffd0fccc86661219a1a8fe775d64066206fd193 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,375 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import topology.instances.nnreal
import topology.algebra.ordered.liminf_limsup
import topology.metric_space.lipschitz
/-!
# Extended non-negative reals
-/
noncomputa... |
9141d8f2b94384b236ea7991f921b340ff228b81 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/smt/smt_tactic.lean | ad179c959e4536ea985062c4db76cb754bba1a47 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 15,126 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.category
import init.meta.simp_tactic
import init.meta.smt.congruence_closure
import init.meta.smt.ematch
universe u
run_cmd mk_simp_a... |
04bee2bacb953f3edec6ca0ad6f25949b8edffdc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Structure.lean | f776f61f4a4fe3a2ff653749a44d44248e34fd11 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 46,061 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Class
import Lean.Parser.Command
import Lean.Meta.Closure
import Lean.Meta.SizeOf
import Lean.Meta.Injective
import Lean.Meta.Structure
import L... |
9aa1a765a3815b0638ba442c2338827b72c9aba0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/misc.lean | 40d4ff009901a0e04f7f7739c06d34d047bb440d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,977 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.localized
import Mathlib.PostPort
namespace Mathlib
/-
Miscellaneous.
-/
namespace omega
t... |
75707d895fe6072f89bb0257279c81a3fefe12c0 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Parser/Command.lean | ef5778ba5c88c3a90141112ea46ccd1ea134b331 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,614 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Parser.Do
namespace Lean
namespace Parser
/--
Syntax quotation for terms and (lists of) commands.... |
37dc4ec8a84fead884cd7984ddc30915054aa651 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Oneshot/lean4-in/Extra.lean | 650b23fa9c188b1c7c19f966cdc79e2894ac58eb | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 162 | lean | -- Insert lean 4 alignment code here.
import Mathlib.Mathport.Rename
set_option align.precheck false
#align foo.foo Foo.bar
#align foo.foo_eq_one Foo.bar_eq_one
|
c266fcf0b32abd1168abc189c10b2cc0e569c5f5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/int/gcd.lean | 1a7b452549bbd840454edc9745194dd8837e4fa5 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,787 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.prime
import Mathlib.PostPort
unive... |
ead6c3245379419bbcc710e366a3fac14230bf23 | a6b711a4e8db20755026231f7ed529a9014b2b6d | /ZZ_IGNORE/S17/class/FinalExam/FinalExam-key.lean | ee2efb1e1815dc062ce29d38b694374d30a7a9d4 | [] | no_license | chaseboettner/cs-dm-1 | b67d4a7e86f56bce59d2af115503769749d423b2 | 80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0 | refs/heads/master | 1,585,367,603,488 | 1,536,235,675,000 | 1,536,235,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,568 | lean | /-
PART I: LOGIC AND PROOF USING THE LEAN PROVER
This section is worth 20% of the exam grade.
There are five problems and one extra credit
problem.
-/
/- PROBLEM #1
Complete the proof by replacing the "sorry" stub
with code to construct a proof of the proposition.
You may want to start by replacing sorry with a
ho... |
c29da9353ae48df8efd0f896a5597774bd817b3e | 1a61aba1b67cddccce19532a9596efe44be4285f | /tests/lean/t14.lean | 448448b2c1c55379a095a3ae60875782dd9a9bea | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 685 | lean | prelude namespace foo
constant A : Type.{1}
constant a : A
constant x : A
constant c : A
end foo
section
open foo (renaming a->b x->y) (hiding c)
check b
check y
check c -- Error
end
section
open foo (a x)
check a
check x
check c -- Error
end
section
open foo (a x) (hiding c) -- Error
end
... |
61e1f11b6427474bba59bab0d891ec4db5063cef | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/group_theory/order_of_element.lean | f745afb24ecda030f94dca7329a9e2c99d127f57 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,416 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Julian Kuelshammer
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
import dynamics.pe... |
589093de653e99248834b4345434c625c6bc2d62 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/has_one/has_one_nat.lean | 40d93262272810cf18fcdabd8f849976aacb0364 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 558 | lean | import .has_one
namespace hidden
-- Overload has_mul_ident for nat
instance has_one_nat : has_one nat := ⟨ 1, sorry, sorry ⟩
/-
Again this code would typically go in the module
that defines the nat type, as here we define an
implementation of ident_nat for this type.
-/
/-
Now anywhere else in a code base that we ne... |
161cd480c89b695bd79f83ee8e50d3304f588e2c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/buffer/parser/basic.lean | 4c9b11621f64bf8bebf4b411e626e7ee1c22d9aa | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 110,006 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.string.basic
import data.buffer.basic
import data.nat.digits
import data.buffer.parser
/-!
# Parsers
`parser α` is the type that describes a computati... |
9fcaa970230f46914afef2cafc3b540fd04156db | 0403d75087eccd9fdec22713ec7cff4d40c93610 | /lean/love01_definitions_and_statements_demo.lean | 9432804893215c72aa39ca5d27f17a9afe682b17 | [] | no_license | 5l1v3r1/logical_verification_2020 | 9660ae5a83915be2103183490cae279b888be83c | 000aa1fe212813b8458bf26c16b8a97597b7417e | refs/heads/master | 1,621,861,800,557 | 1,586,181,042,000 | 1,586,181,042,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,565 | lean | import .lovelib
/-! # LoVe Demo 1: Definitions and Statements
We introduce the basics of Lean and proof assistants, without trying to carry
out actual proofs yet. We focus on specifying objects and statements of their
intended properties. -/
set_option pp.beta true
namespace LoVe
/-! ## Proof Assistants
Proof ... |
3218ddb9adf90254fa2d141d09c8f016091ffc3f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/Structural/Main.lean | 1692deced27337e3af3445d75a5d8e0d2aa2a0c2 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 4,770 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Structural.Basic
import Lean.Elab.PreDefinition.Structural.FindRecArg
import Lean.Elab.PreDefinition.Structural.Preprocess
im... |
4eb736af36f506173b10e12b3c8220a1e46c6567 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/simps.lean | 270d2762564f5cd909ea4bb323b6c8d770781e64 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 42,220 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
import tactic.protected
import data.sum
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate `simp` le... |
ed363200ee375efd2363855a561b59503be5de79 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/algebraic_geometry/prime_spectrum.lean | a6b5adf4db0c95609b27f280d6b368d2457407ea | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,398 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.opens
import ring_theory.ideal.prod
import linear_algebra.finsupp
import algebra.punit_instances
/-!
# Prime spectrum of a commutative ring
The prim... |
b51b7ec2b31238a6e4194a7a0b277359005a9202 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/group.lean | 4c153525e3c5f8e6c6033520b6fd66c06f82d399 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,094 | lean | section
variable {A : Type*}
variable f : A → A → A
variable one : A
variable inv : A → A
local infixl `*` := f
local postfix `^-1`:100 := inv
definition is_assoc := ∀ a b c, (a*b)*c = a*b*c
definition is_id := ∀ a, a*one = a
definition is_inv := ∀ a, a*a^-1 = one
end
inductive [class] grou... |
fc490dbfd8583a8ef86728554ca3a2696c0c1c6f | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/inf_tree.lean | b53a73136ca66e2b6d9a12fede9aae77f935e95b | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,276 | lean | import logic data.nat.basic
open nat
inductive inftree (A : Type) :=
| leaf : A → inftree A
| node : (nat → inftree A) → inftree A
namespace inftree
inductive dsub {A : Type} : inftree A → inftree A → Prop :=
intro : Π (f : nat → inftree A) (a : nat), dsub (f a) (node f)
definition dsub.node.acc {A : Type} (f ... |
bfcffbe7721b8d888a78c8a3d881f830c6b2a13f | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/shapes/strong_epi.lean | 27b26d0c1d7e662761d38c2f55f58e37de687749 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,715 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.arrow
/-!
# Strong epimorphisms
In this file, we define strong epimorphisms. A strong epimorphism is an epimorphism `f`, such
that for every co... |
8676b6a7dadbafb94199dc2104d4f4143ea5dfee | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/algebra.lean | a825f59d62905b67d9bd37a21c1245588f505614 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,938 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import topology.algebra.mul_action
import topology.metric_space.lipschitz
/-!
# Compatibility of algebraic operations with metric space structures
In this file we... |
1617149d31a05fd4a0587a76d6a22e4b22439a89 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/geometry/manifold/conformal_groupoid.lean | b1f8c1fc6573a662bfc40606e49f95097c2bc554 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,069 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.calculus.conformal.normed_space
import geometry.manifold.charted_space
/-!
# Conformal Groupoid
In this file we define the groupoid of conformal maps on... |
ab7e6af0140b2ca432a079c2721350f26d46da4e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/equiv.lean | d635f23cf17f71bdc944ccf1fa393bbbe1c8f46c | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,096 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.rename
import Mathlib.data.equiv.fin
imp... |
86be2826782ff090067afc676458837bd440097d | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/analysis/normed_space/basic.lean | 07dd02bedf5d4e5e3244162849d7d68631647cdf | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,713 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.instances.nnreal
import topology.algebra.module
import topology.metric_space.antilipschitz
/-!
# Normed spaces
-/
variables {α : Typ... |
e60847e6586b1fc6c128f3e1ac589389bec97d47 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/comp_value_tactics.lean | 1cb517a09843f420a1afe2a3a032c3331ddcbf2b | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,273 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic
meta constant mk_nat_val_ne_proof : expr → expr → option expr
meta constant mk_nat_val_lt_proof : expr → expr → option expr... |
57010c03a079585283a1956b1aec6a2ec03e96ed | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/function/l1_space.lean | c239bec2e7f4a99c676b82286b43e15b480a9777 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,732 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_space
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
037adb94094a98c32e3c6f540e6f8f344da523cc | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/Tactic.lean | e1ff2d49479ed6bc2e6f260827af71e27f826dce | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 615 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Meta.Tactic.Intro
import Init.Lean.Meta.Tactic.Assumption
import Init.Lean.Meta.Tactic.Apply
import Init.Lean.Meta.Tactic.Revert
im... |
0ccab4572104f695ec2367034f3502af2acd2565 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /ring_theory/ideal_operations.lean | 561bf70e90fa9688c919f8dabff338da17b523de | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 18,358 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
More operations on modules and ideals.
-/
import ring_theory.ideals data.nat.choose order.zorn
import linear_algebra.tensor_product
universes u v w x
open lattice
namespace s... |
df7c338ba85c3579fd0b8c902035b873aa2444c8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/analytic/composition.lean | 83396029efcdcd5c4493998b4f6202075d7d427e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 58,927 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
37a85383b9bc5f0f084ffb1f1667953df07e42f7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/fix.lean | d0a1bea6fada355bcbad56a617fecbc53c91dce8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,945 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.upto
import Mathlib.data.stream.basic
import Mathlib.data.pfun
import Mathlib.PostPort
u... |
c3e39f2c3dcf9a7b561a8d82c2ba42c4867524ef | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/section5.lean | be38ea3f7551d375ce236be2f060be8c148e8d62 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 254 | lean | section foo
parameter A : Type
variable a : A
definition foo := a
check foo
structure point [class] :=
(x : A) (y : A)
end foo
check foo
definition point_nat [instance] : point nat :=
point.mk nat.zero nat.zero
print classes
check point
|
fed4f4d5e159067f195e1615f9e9d72a50962d80 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Ring/basic.lean | fe15d3d8ab34be950174abd1f382f9c9ea7ae278 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 10,108 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group.basic
import category_theory.concrete_category.reflects_isomorphisms
import category_theory.elementwise... |
7ab7151c78d4692c631cd052a330c4c90796af5a | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/instances/ennreal.lean | 63caca6103efab73cd1b277f10192052b8c75d78 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 38,526 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical
open_locale topologi... |
de3db429f7191ff24bf2a0baaf51ad48b953f5a3 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /new_structures.lean | 09547caaab4957bf88ad80a06971597cc47389dc | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,617 | lean | variables
class monoid' (α : Type*) extends semigroup α, has_one α :=
(mul_one : ∀ a : α, a * 1 = a)
(one_mul : ∀ a : α, 1 * a = a)
class comm_monoid' (α : Type*) extends semigroup α, has_one α :=
(mul_one : ∀ a : α, a * 1 = 1)
(mul_comm : ∀ a b : α, a * b = b * a)
class group' (α : Type*) extends semigroup α, has_o... |
eb4012977e787ef450498695d827edfe26b6d666 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/fin.lean | e69c1240ee2399465b0aaddc2bc919a80c8340d9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 40,583 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import logic.embedding
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are nat... |
44c90ff2c83dfe0535bc96490de90bc1aaad308b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /counterexamples/sorgenfrey_line.lean | ac740f1bb34da9aaf4cf9e24180859284440b69c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 14,390 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.instances.irrational
import topology.algebra.order.archimedean
import topology.paracompact
import topology.metric_space.metrizable
import topology.m... |
9bdf6802eff9df7a139f067514499f9cc7bbdbda | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/list2d.lean | 1ac8fcb604b7d6609722c26649c773f76c4c56fc | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,038 | lean | import tactic
import data.list.func
universe u
def list2d (α : Type u) := list (list α)
namespace list2d
open list.func
variables {α : Type} {β : Type} {γ : Type} {δ : Type}
variables [inhabited α] [inhabited β]
def get2d (xy : ℕ × ℕ) (l : list2d α) : α
:= let (x,y) := xy in get x (get y l)
def set2d (a : α) (l... |
0e158639495fa726442e6527adae953455da8144 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/tactic4.lean | 98184be2369d535523e88a7606ca85f766901726 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 234 | lean | import standard
using tactic (renaming id->id_tac)
definition id {A : Type} (a : A) := a
definition simple {A : Prop} : tactic
:= unfold @id.{1}; assumption
theorem tst {A B : Prop} (H1 : A) (H2 : B) : id A
:= by simple
check tst
|
eb5cceb094e5463776f03d718020ee5a33b6ea88 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/encodable/basic.lean | 6b5e4ce62d3516786564d799f590eedcbb434b71 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 19,752 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import logic.equiv.nat
import order.directed
import data.countable.defs
import order.rel_iso
import data.fin.basic
/-!
# Encodable types
T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.