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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
508dac691d912ffc736827405340c6ab8d4ac617 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /07_Induction_and_Recursion.org.9.lean | e5f01a9786208b7ad5bc1dfe6d5563ef0661fed0 | [] | 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 | 240 | lean | /- page 103 -/
import standard
import data.list
open list
definition append {A : Type} : list A → list A → list A
| append nil l := l
| append (h::t) l := h :: append t l
example : append [1, 2, 3] [4, 5] = [1, 2, 3, 4, 5] := rfl
|
35ed83c2ea828b8c77b0799ea7254a137719d54f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/function/special_functions.lean | ea59cf3c3a963b0fc4e83d4f6aec6c8afbcfb73d | [
"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 | 8,460 | 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.special_functions.pow
import analysis.special_functions.trigonometric.arctan
import analysis.inner_product_space.calculus
import measure_theory.con... |
8f9133631271b633294f4da2bb67022b1e9c4cd0 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/time_expr_current_old_4-8.lean | bf9c69d8cf384cbf1fff1634cd43ec553c827473 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 19,835 | lean | import .expr_base
import ...phys.time.time
namespace lang.time
universes u
variables
(K : Type u) [field K] [inhabited K]
{f : fm K TIME} {sp : spc K f}
/-
Duration
-/
structure duration_var {K : Type u} [field K] [inhabited K] {f : fm K TIME} (sp : spc K f) extends var
/-
Time
-/
structure time_var {K : Ty... |
2a084c1ae548783424375e3eb0c0b0867398c075 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/nary_overload.lean | 019f0800070e4b4a025426c29f832db2da8416c5 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 575 | lean | prelude
constant {l} vec : Type l → Type l
constant {l} lst : Type l → Type l
constant vec.nil {A : Type} : vec A
constant lst.nil {A : Type} : lst A
constant vec.cons {A : Type} : A → vec A → vec A
constant lst.cons {A : Type} : A → lst A → lst A
notation `[` l:(foldr `, ` (h t, vec.cons h t) vec.nil `]`) := l
notat... |
13201287eb98b341e962f301b20231a0e107a01a | dde4c4e99f4467a499e1166ed3f2f730b1a9b4bc | /my_project/src/PPT_properties.lean | 703b8cb4c5a5e1021fc5826b26eae95748bf7fe7 | [] | no_license | lcenek21/PPT-Properties | 46cece134dde50aa2ec137865efdd252a4d0ae8d | 64aa68179bf8bacafac2c768929d2a959226266b | refs/heads/main | 1,692,243,205,457 | 1,632,365,679,000 | 1,632,365,679,000 | 409,422,057 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,329 | lean | import data.zmod.parity
import number_theory.pythagorean_triples
import number_theory.quadratic_reciprocity
/-
Authors: Lisa Cenek, Brittany Gelb
-/
/-
Several useful elementary properties of primitive pythagorean triples follow nicely from the
classification theorem.
We formalize some of those properties, start... |
6fdf320936728c62c589de6e25483718ab7970e4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Mon/limits.lean | 5c85e6d4444eb8b2792d57eb1dd2dca34ee0b86e | [
"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 | 6,642 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.group.pi
import algebra.category.Mon.basic
import group_theory.submonoid
import category_theory.limits.types
import category_theory.limits.creates
/-!... |
affc1b4b15cd6dbe794fc9926c7cd32ddc85deef | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /LAMR/Util/Propositional.lean | af8f497217f475c579a3814e866c8b0b8d854197 | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125 | lean | import LAMR.Util.Propositional.Syntax
import LAMR.Util.Propositional.Transformations
import LAMR.Util.Propositional.SatSolver |
7b2a854a36db8c2c6fdb8dc5f4b21b5ab5a0f26d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/597b.hlean | 41c23257cbb3a2d544ee2100f1d7fc04bfd96b48 | [
"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 | 99 | hlean | -- open equiv
constants (A B : Type₀) (f : A ≃ B)
definition foo : A → B := f -- should fail
|
7753face157519a2e7789b2c2aaa7b93da776eac | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/vector_bundle/constructions.lean | 0d5efe12a58326da12559196213099177350fc13 | [
"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 | 7,479 | lean | /-
Copyright © 2022 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sébastien Gouëzel, Heather Macbeth, Floris van Doorn
-/
import topology.fiber_bundle.constructions
import topology.vector_bundle.basic
/-!
# Standard constructions o... |
60d7c6c47529414b0d5a21ae106a84673d53d474 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/set_integral_auto.lean | dbdcf4345c1220e9665a3cc4c23d124ff74ee972 | [] | 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 | 55,555 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.measure_theory.bochner_integration
import Mathlib.analysis.normed_space.indi... |
15c06680da3bd8b587cc5183de7df0c7e60e5e38 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Ringoid1.lean | e1a76bf29432b29d7ecf2070007d4c7e8194c126 | [] | 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,929 | 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 Ringoid1
structure Ringoid1 (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(one : A)
(leftDistributive_times_plus : (∀ {x y z... |
79ed8a9c68759201930fb0176eba8a8db321b0df | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/measure_space.lean | fdb00547df5bddfe21db298602f48970c388ac80 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 97,228 | 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
-/
import measure_theory.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
Given a measurable space `α`... |
c983f8ac38267166e9c462069153fa8b533a81c1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/CommRing/colimits_auto.lean | ecc5e7ca065fa89c15bbb402de6561300c11dcf3 | [] | 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 | 12,836 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.CommRing.basic
import Mathlib.category_theory.limits.limits
import Mathlib... |
81a530233224061fc6327a21a7db35a4e960da0d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/lcnfTypes.lean | 4477bdafc8eb7ea9bbdec1ee43589e6b739d05f0 | [
"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 | 3,991 | lean | import Lean
open Lean Compiler LCNF Meta
def test (declName : Name) : MetaM Unit := do
IO.println s!"{declName} : {← ppExpr (← LCNF.getOtherDeclBaseType declName [])}"
inductive Vec (α : Type u) : Nat → Type u
| nil : Vec α 0
| cons : α → Vec α n → Vec α (n+1)
def Vec.zip : Vec α n → Vec β n → Vec (α × β) n
... |
172425d81f12c003ea9e6a56cc7b0c8332e04cea | dd24e6c3b8dc14dc504f8a906fc04c51e4312e6b | /src/instructor/lectures/lecture_16.lean | af7ef4138ed434cc647cc544ffd8ec8849ab110d | [] | no_license | njeyasingh/CS-2120 | dd781a90dd0645b74e61cee1813483fb7cb4a111 | b3356f665a246f295b3f1e6d61901bfca331810d | refs/heads/main | 1,693,294,711,274 | 1,635,188,659,000 | 1,635,188,659,000 | 399,945,420 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,690 | lean | /-
Algebraic structure:
- collection of values
- collection of applicable operations
Examples:
- int, +
- int, +, *
- string, ++
- bool, &&, ! (and, not)
-/
/-
We now introduce the algebraic structure
that we call the set, by explaining what
are the objects of this type and what are
the applicable operations.
-/
/- ... |
6d0e459d2196b66b65acb97e3c96ddae270c08cf | 510e96af568b060ed5858226ad954c258549f143 | /data/num/bitwise.lean | 2e5138693091b342f2bd2bcaf9df0ad6dd7544b9 | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 3,074 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Bitwise operations using binary representation of integers.
-/
import .basic
namespace pos_num
def lor : pos_num → pos_num → pos_num
| 1 (bit0 q) :=... |
68d748865731fb95d006a80f3724afba4e89c5b9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/polynomial/eisenstein.lean | e1c05e1080d69ab3bfe09765eddd660a855b33d5 | [
"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 | 28,625 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.eisenstein_criterion
import ring_theory.integrally_closed
import ring_theory.norm
import ring_theory.polynomial.cyclotomic.basic
/-!
# Eisenste... |
ce04fc40b8051fdd0b00f23ce7d1ed3fe8178299 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/gaussian.lean | 59de701ce2c8aa72563a0c43686521ca0a0c3d7e | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 3,795 | lean | import data.matrix .matrix_pequiv tactic.linarith data.zmod.basic
variables {α : Type*}
open equiv pequiv matrix
local infix ` ⬝ `:70 := matrix.mul
local postfix `ᵀ` : 1500 := transpose
namespace pequiv
def diagonal_ul (m n r : ℕ) : fin m ≃. fin n :=
{ to_fun := λ i, if hi : i.1 < r ∧ i.1 < n then some ⟨i.1, hi.2⟩... |
28c506caa638d89366707b3e20ef116b05f8e44a | 874a8d2247ab9a4516052498f80da2e32d0e3a48 | /euler.lean | ae5095ae23a4ffdb1dba76ca6b0415a4058e533f | [] | no_license | AlexKontorovich/Spring2020Math492 | 378b36c643ee029f5ab91c1677889baa591f5e85 | 659108c5d864ff5c75b9b3b13b847aa5cff4348a | refs/heads/master | 1,610,780,595,457 | 1,588,174,859,000 | 1,588,174,859,000 | 243,017,788 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,409 | lean | import analysis.normed_space.basic
import topology.instances.ennreal
import analysis.normed_space.basic
import topology.instances.ennreal
import algebra.archimedean algebra.geom_sum
import data.nat.choose data.complex.basic
import tactic.linarith
import analysis.calculus.deriv
import data.complex.exponential
... |
9b8990f3609f8ea60c2de46dd087b05d7399af62 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Data/Lsp/Internal.lean | d8e3b1cd0a8d5a0238b123d1bbc608828042370c | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 3,029 | lean | /-
Copyright (c) 2022 Joscha Mennicken. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joscha Mennicken
-/
import Lean.Expr
import Lean.Data.Lsp.Basic
/-! This file contains types for communication between the watchdog and the
workers. These messages are not visible... |
1317accd1ad85e5495939b551f617d7d5b83b539 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /archive/100-theorems-list/45_partition.lean | 8661c762b129b8999f1a1e5d67438e52ad0bf584 | [
"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 | 21,115 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Aaron Anderson
-/
import ring_theory.power_series.basic
import combinatorics.partition
import data.nat.parity
import data.finset.nat_antidiagonal
import dat... |
347dd014e2afc8a7436ec685810ff909f9c860d9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/cast_auto.lean | 00afeaefca542f32e890be2011a91a14da4366a7 | [] | 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,683 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ordered_fiel... |
1dec034e5531225bc4cfcc9edd240ab4f8b34045 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/abstract_ns1.lean | a4bee8c588a1bd3dc809edf4e6471ca0d50bb866 | [
"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 | 170 | lean | -- Companion file for the abstract_ns test.
namespace ns1
def foo : fin 7 := ⟨3, dec_trivial⟩
def foo' : fin 7 := ⟨3, by abstract {exact dec_trivial}⟩
end ns1
|
f38f7e5770f0bfe1fd1dd62e66e1084f16872d06 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/calculus/fderiv_symmetric.lean | a4a4dab9b1e296bd486d2ce1fcea2d0ef033ef39 | [
"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 | 19,004 | lean | /-
Copyright (c) 2021 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 analysis.calculus.deriv
import analysis.calculus.mean_value
import analysis.convex.topology
/-!
# Symmetry of the second derivative
We show that, over ... |
8dcec9b719402349ec6505e1facd50bdae87a986 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/asymptotics/specific_asymptotics.lean | 5f4d69cbadd0be9bc28e11382df1e5947c9b9588 | [
"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 | 6,919 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.normed_space.ordered
import analysis.asymptotics.asymptotics
/-!
# A collection of specific asymptotic results
This file contains specific lemma... |
8d25bd6338c805cfec82a12bc1079ca7ddf6fb26 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/number_theory/dioph.lean | 2a2c7761e2ec77f0b538c1f2803887f5ef0f2be0 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 36,351 | 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 number_theory.pell
import data.pfun
universe u
open nat function
namespace int
lemma eq_nat_abs_iff_mul (x n) : nat_abs x = n ↔ (x - n) * (x + n) = 0 :=
be... |
3d0f81d59b6d6bed110df9cffb869516aa53bb2e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/hyperreal.lean | f43704a948f86ee7a3049e826186d1557df3a17c | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,909 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.filter_product
import analysis.specific_limits
/-!
# Construction of the hyperreal numbers as an ultraproduct of real sequenc... |
be7daab3844a93ea63fa3887f1a6bbdc81fc82d1 | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /algebra/arrow_group.hlean | eb8001f107187042c1dfe1c976a4ec3159983561 | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,182 | hlean | /- various groups of maps. Most importantly we define a group structure on trunc 0 (A →* Ω B),
which is used in the definition of cohomology -/
--author: Floris van Doorn
import algebra.group_theory ..pointed ..pointed_pi eq2
open pi pointed algebra group eq equiv is_trunc trunc susp
namespace group
/- We first... |
8bcc6e1a99af1ccecf2e51a2f6329006cb8595e0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/free_abelian_group_finsupp.lean | 440e270201d19d405dc90ee7620f90ffaa2f7491 | [
"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 | 5,492 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import group_theory.free_abelian_group
import data.finsupp.basic
/-!
# Isomorphism between `free_abelian_group X` and `X →₀ ℤ`
In this file we construct the canoni... |
8f47f32021578001d97b6f57b3b41764bd2328b0 | ddf69e0b8ad10bfd251aa1fb492bd92f064768ec | /src/algebra/gcd_monoid.lean | e6579519c9b60f88737925398533dc8eb0f253d0 | [
"Apache-2.0"
] | permissive | MaboroshiChan/mathlib | db1c1982df384a2604b19a5e1f5c6464c7c76de1 | 7f74e6b35f6bac86b9218250e83441ac3e17264c | refs/heads/master | 1,671,993,587,476 | 1,601,911,102,000 | 1,601,911,102,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,077 | 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
TODO: Provide a GCD monoid instance for `ℕ`, port GCD facts about nats
TODO: Generalize normalization monoids commutative (cancellative) monoids with or... |
6f75ef17cfddd6bdf31d203b6aae329b5b79f516 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/field_theory/minimal_polynomial.lean | 69bc6a414c5ed58b96e2cfe07e4ff8e8885ffeae | [
"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 | 8,745 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import ring_theory.integral_closure
import data.polynomial.field_division
/-!
# Minimal polynomials
This file defines the minimal polynomial of an eleme... |
d3af59573a9d560db3db08a7ca6ecb5bc7f8f781 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/tactic/simps.lean | 17e14004b02608c77bbb344b95976bad023b8a7c | [
"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 | 42,679 | 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 algebra.group.to_additive
import tactic.protected
import data.sum
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically gene... |
d2de58d5bcbe18ddd5e1e7c9908c6ccc0586cfc3 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/priority.lean | ea309e247df978feeda4721acebf6e77b5fd2b63 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121 | lean | import data.num
namespace priority
definition default : num := 1000
definition max : num := 4294967295
end priority
|
5e2e7b0247c077181191c5792ed328aeb1b00a57 | b392eb79fb36952401156496daa60628ccb07438 | /MathPort/Path.lean | fdd1c5cfdd9699a6beaf775775245f5cf8eb25d2 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathportsource | d9eabe74e3ab7774baa6a10a6dc8d4855ff92266 | 1a164e4fff7204c522c1f4ecc5024fd909be3b0b | refs/heads/master | 1,685,214,377,305 | 1,623,621,223,000 | 1,623,621,223,000 | 364,191,042 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,739 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Lean3 structure:
- ./lean3/library/init/data/nat/basic.tlean
- ./mathlib/src/data/nat/basic.tlean
Lean4 structure:
- lib4/auto/Lean3Lib/data/nat/basic.olean
- ... |
c7b60dd1fa2fd16c815470d93c1a2c5ed21c7c28 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/analysis/calculus/local_extr.lean | 564ec14cbaec19827a1987a2b01fc7c3f4ed8454 | [
"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 | 18,092 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.local_extr
import topology.algebra.ordered.extend_from
import analysis.calculus.deriv
import topology.algebra.polynomial
/-!
# Local extrema of smo... |
3b9e1451a552e7cbc98a271fce5d817bb505cddd | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/field_theory/separable.lean | d5b0f797b275a02119aaa97cff6362779de32c11 | [
"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 | 28,694 | 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.polynomial.big_operators
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.tower
import algebra.squarefree
/-!
# Separable p... |
2799035cc4670267de716fe0e1737ba30e9c9d03 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Std/Data/RBMap.lean | 005c32b2ba44dc1dabacfb2f387cb8246de71154 | [
"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 | 14,048 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Std
universe u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
42ae1ea069b3764b2bd0b1c5afe930cb04a38d35 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/combinatorics/pigeonhole.lean | 5b1ee4c7461cb472db2def04165ca9ed04889931 | [
"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 | 18,928 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Yury Kudryashov
-/
import data.fintype.basic
import algebra.big_operators.order
/-!
# Pigeonhole principles
Given pigeons (possibly infinitely many) in pigeonholes, the
pig... |
047f9bdd7a63d75fe3c0bc5fad42e2289efa10a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/monoidal/preadditive.lean | 10c0e82a496054d3ba06f0be4d5cb891c9a09419 | [
"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 | 9,665 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.preadditive.additive_functor
import category_theory.monoidal.functor
/-!
# Preadditive monoidal categories
A monoidal category is `monoidal_p... |
2f43f9aa877c9b1ea13178fdbe64a5274b12f072 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/linear_ordered_comm_group_with_zero.lean | b4bbe13ac8b17441720693cf9b0574d78f04813d | [] | 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 | 6,716 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ordered_group
import Mathlib.algebra.group_with_zero.default
... |
2a4974753ce67e76176073fbe1971edb40ec498a | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/linear_algebra/free_module/basic.lean | b9c8ae4430a7df1cb87399ba34bebd233db97dfa | [
"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 | 5,433 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.direct_sum.finsupp
import logic.small
/-!
# Free modules
We introduce a class `module.free R M`, for `R` a `semiring` and `M` an `R`-modul... |
74d097d87fdaa3633ca90ba410fdbc0c2bc46a70 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/data/nat/fib.lean | b03780b68d8008ec7040710842b0894ec9392e3f | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,641 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.stream.basic
import tactic
import data.nat.gcd
/-!
# The Fibonacci Sequence
## Summary
Definition of the Fibonacci sequence `F₀ = 0, F₁ = 1, Fₙ₊₂ = ... |
91d50431459f47853af9ebd789eba52abb34c1f2 | 590f94277ab689acdc713c44e3bbca2e012fc074 | /Sequent Calculus (Lean)/src/soundnessProof.lean | 5b750c060d819e7bcc0c7fa959ce5743a2a00d13 | [] | no_license | Bpalkmim/iALC | bd3f882ad942c876d65c2d33cb50a36b2f8e5d16 | 9c2982ae916d01d9ebab9d58e0842292ed974876 | refs/heads/master | 1,689,527,062,560 | 1,631,502,537,000 | 1,631,502,537,000 | 108,029,498 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 412 | lean | -- Prova de correção de SCiALC, composta por provas de correção de
-- cada regra de SCiALC.
-- Autor: Bernardo Alkmim
-- bpalkmim@gmail.com
namespace soundnessSCiALC
open iALCbasics
-- TODO definição de sequente válido
-- TODO abox???????
constants A B : Formula
constant X : Nominal
#check valid_seq (subj_r_n (Pro... |
7de9379466b6dc028aad5db9587aa5422d70f1b9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/direct_limit.lean | 3709237a7883a879ab4cb414b47efc069e786a64 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,002 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
-/
import data.finset.order
import algebra.direct_sum.module
import ring_theory.free_comm_ring
import ring_theory.ideal.operations
/-!
# Direct limit o... |
2b5e640fbd7e53e0cfb66289dd9afafa3f5dfd37 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/match_tac3.lean | bd5f7738df4dbf83c0e83519e37fbb7711be676e | [
"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 | 239 | lean | import data.nat
open nat algebra
theorem tst (a b : nat) (H : a = 0) : a + b = b :=
begin
revert H,
match a with
| zero := λ H, by krewrite zero_add
| (n+1) := λ H, nat.no_confusion H
end
end
reveal tst
print definition tst
|
278d776381dcc22ee8b1d4c9e7e910829183c708 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/order/basic.lean | 083253038a6bba11d4ff76894a90796e8f459db0 | [
"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 | 17,847 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.subtype
import data.prod
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone... |
633b79b3bcf4fe080f923bfa862e8d8e0d0c0c3b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/quiver/push.lean | ee82a7c6ecd3e50e9b5ce62611e4752f3c80f190 | [
"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 | 2,677 | lean | /-
Copyright (c) 2022 Rémi Bottinelli. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémi Bottinelli
-/
import combinatorics.quiver.basic
/-!
# Pushing a quiver structure along a map
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a cor... |
f7d6d2f884bbadf08d1b04239f29623d8a261364 | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /values.lean | a6ca09b3f4da3e9d6b72ff2ba05c1c5208b5f5a6 | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,369 | lean |
/- This module defines the type of values that is used in the dynamic
semantics of all our intermediate languages. -/
import .lib .integers .floats .ast
namespace values
open integers word floats ast ast.typ ast.memory_chunk
def block : Type := pos_num
instance eq_block : decidable_eq block := by tactic.mk_dec_eq... |
8a01beb426421c4e77e9b1cb8d47fc6542f24983 | 85da4f6a2a49be210b92bc39383b3c388ca0600d | /Compiler9000.lean | 634b25c250c7b34709845ef89f7e8acbd332a8e8 | [
"MIT"
] | permissive | RaitoBezarius/compiler9000 | 0bf69e073ba16bef02c93353067a7016c98a6a74 | 74194211838754b728f6b2420d1a6ae34180b09c | refs/heads/main | 1,685,347,997,520 | 1,622,076,826,000 | 1,622,076,826,000 | 362,614,305 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,043 | lean | import Lean
open Classical
-- For Core / standard library?
def List.forall (p : α → Prop) := List.foldr (λ a b => p a ∧ b) True
theorem List.forallCons (hd : α) (tl : List α) : List.forall p (hd :: tl) ↔ p hd ∧ List.forall p tl :=
by simp [List.forall, List.foldr]
theorem Option.someOfNotNone {T: Type} (x: Option T)... |
fab288dee8885be0c533ba323a6f45c94a7e896f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/infoIssues.lean | 7467dc329c2d6f3085d868096bb8872e99dcc24a | [
"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 | 1,050 | lean | set_option trace.Elab.info true
example (x y : Nat) (h : x = y) : 0 + x = y + 0 := by
have := by exact h.symm
--
--^ $/lean/plainGoal
-- Good: ..., this : y = x |- 0 + x = y + 0
example (x : Nat) : x = 0 + (0 + (0 + x)) ∧ p := by
constructor
· cases x
next => rfl
-- Good: we ge... |
6158e8b8b9b0fa16bd48adb142c8c00cf634ec1c | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /stage0/src/Init/Notation.lean | 95c86899ccd3b35b25fbadcc9646235e0fb07186 | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,509 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
-- DSL for specifying parser precedences and priorities
namespace Lean.Parser.... |
d71041d2f15a0117e5530ced6356a64d8697062f | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/252.lean | 1f2f1400973652561ac950ade554114ca1a8fd54 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 324 | lean | open nat
inductive tree (A : Type)
| leaf : A → tree
| node : tree → tree → tree
#check tree.node
definition size {A : Type} (t : tree A) : nat :=
tree.rec (λ a, 1) (λ t₁ t₂ n₁ n₂, n₁ + n₂) t
#check size
#reduce size (tree.node (tree.node (tree.leaf 0) (tree.leaf 1))
(tree.leaf 0))
|
68d459c1dcf292548248b7df09b92af08b500ef8 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M3P14/lqr.lean | 2c7484ba66596fc1aaabf0f5b4139259fcc37fe6 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,314 | lean | import tactic.ring
import data.nat.prime
import data.nat.modeq data.int.modeq
import analysis.real
import tactic.norm_num
import algebra.group_power
import M3P14.order
import chris_hughes_various.zmod
import M3P14.Problem_sheets.sheet1
import tactic.ring
import logic.basic
import data.int.basic
open nat
definition... |
6ad806d89236381bff63867d4a4342c2f8ce6644 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/local_cache.lean | 93851868d7c17b2f1ad98e552321b17b25ef3494 | [
"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 | 7,340 | lean | /-
Copyright (c) 2019 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek
-/
import tactic.norm_num
namespace tactic
namespace local_cache
namespace internal
variables {α : Type} [reflected α] [has_reflect α]
meta def mk_full_namespace (ns : nam... |
c42db3c086a19c1c35719005159c2863379de61e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/polynomial/bernstein.lean | cd545d889dc7f3f602b4175e4ecb1fe76c710582 | [
"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 | 16,839 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.polynomial.derivative
import data.nat.choose.sum
import ring_theory.polynomial.pochhammer
import data.polynomial.algebra_map
import linear_algebra.linear_... |
36ebd97bbf5373f5e8fdc699837908e12212dc45 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/real/cardinality.lean | e029837a3c492297c2fa20febe5801882b8e86d2 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 4,897 | 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
The cardinality of the reals.
-/
import set_theory.ordinal
import analysis.specific_limits
import data.rat.denumerable
open nat set
noncomputable theory
namespace ... |
a021d6d58cb1eaebca89f4de2bb1c22d61e1767f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_geometry/structure_sheaf.lean | 3d9efa691ae631e6cb4ba8d3b8d13c76d9d072c3 | [
"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 | 48,780 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebraic_geometry.prime_spectrum.basic
import algebra.category.CommRing.colimits
import algebra.category.CommRing.limits
import topology.sheav... |
8ab6f886e4e3bab681161573b1f7943f0d6214a7 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/category_theory/limits/shapes/equalizers.lean | d9f152f6611fe4546582285f6c55c2ee317c95fc | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 27,249 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.epi_mono
import category_theory.limits.shapes.finite_limits
/-!
# Equalizers and coequalizers
This file defines (co)equalizers... |
253bdf14057266863695716492abf3b802c42b0d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/opaque_hint_bug.lean | 9c1e5d5ef08c5f3ecd03a3e12e15fd716abbb715 | [
"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 | 236 | lean | inductive List (T : Type) : Type
| nil {} : List
| cons : T → List → List
section
variable {T : Type}
definition concat (s t : List T) : List T
:= List.rec t (fun x l u, List.cons x u) s
attribute [reducible] concat
end
|
076e3dd569dee54eac98e98ebb509e652df0d387 | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/instances/real.lean | 94975644004b86d98fb86cbfcd94f9ff3fba4658 | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 18,874 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
9074bcbada485b36c12f5597ad4587fa6e9b1d91 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/number_theory/pell.lean | df9991d0e5882e5cd54904611541827b78e3039b | [
"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 | 37,106 | 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 data.nat.modeq
import data.zsqrtd.basic
import tactic.omega
namespace pell
open nat
section
parameters {a : ℕ} (a1 : 1 < a)
include a1
private def d :... |
35312b55b7fb8e138d2b1d524488cb2e1a627dc1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coe14.lean | 530470c332f47d45728c69380d81b81cf8445a8a | [
"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 | 558 | lean | import data.nat
open nat
inductive functor (A B : Type) :=
mk : (A → B) → functor A B
definition functor.to_fun [coercion] {A B : Type} (f : functor A B) : A → B :=
functor.rec (λ f, f) f
inductive struct :=
mk : Π (A : Type), (A → A → Prop) → struct
definition struct.to_sort [coercion] (s : struct) : Type :=
struc... |
9d9276bf731741ff1774d8e4b24a200b48c680e5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/have5.lean | 1046f87662733c3dadbbae2647f3e1c965d5a63f | [
"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 | 234 | lean | import logic
open tactic
constants a b c d : Prop
axiom Ha : a
axiom Hb : b
axiom Hc : c
print raw
have H1 : a, by assumption,
then have H2 : b, by assumption,
have H3 : c, by assumption,
then have H4 : d, by assumption,
H4
|
0edcf30f8d366e52e1845487e35351c00c833ba9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/list/basic.lean | a37a9db4c5838e610e9549f39fe2ab3ed3cdcdf7 | [
"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 | 141,156 | 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
namespace list
u... |
bce0c0d8d4ad793100f700a6b749b3f060a57a7f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/tryPostponeIssue.lean | c1f80608bc3ae0ec2196d1568f779794ccf884e8 | [
"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 | 132 | lean | notation:50 e:51 " matches' " p:51 => (match e with | p => true | _ => false)
def g (x : Nat) := if x + 1 matches' 1 then x else 0
|
286e4aab7efb5ae47318b205fc5fc04fedc7df69 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/box_integral/integrability.lean | eba1bdd4c83d76e1c2e57744e629c3126a23c046 | [
"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 | 17,962 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.basic
import measure_theory.measure.regular
/-!
# McShane integrability vs Bochner integrability
In this file we prove that any Bochn... |
0a2f525f94731264870beee10206eec035aa259a | d757fb8bb0d538df3510904d3c09a0da191d06b9 | /sf_bools.lean | 2d36cf64f436dae2360756fd1338567fbd6b8383 | [] | no_license | happy-bracket/lean_playground | 188f64c2a431dec5617c75e33c7a75e475b9c23d | 137b76966001091c445f6f472d27bbe5a8cf5d49 | refs/heads/master | 1,600,889,668,807 | 1,575,375,570,000 | 1,575,375,570,000 | 225,569,694 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 504 | lean | inductive bool' : Type
| true' | false'
open bool'
def or' : bool' -> bool' -> bool'
| true' _ := true'
| _ true' := true'
| _ _ := false'
infixr `||` := or'
example : true' || false' = true' := rfl
example : true' || true' = true' := rfl
example : false' || false' = false' := rfl
example : false' || true' = true' ... |
ad6aefa227575f462d58de7572cd5d91111d86bf | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/linear_algebra/free_module.lean | 5587570f573e899311e8341e0575180845e85b53 | [
"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 | 5,690 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.direct_sum.finsupp
import linear_algebra.std_basis
import logic.small
/-!
# Free modules
We introduce a class `module.free R M`, for `R` a... |
fa9cca865c142f1f010552a04087571b1d5914d6 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/group_power.lean | 5fe40d48ca9a15af11189f022a7f1f33ac4594c7 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 28,831 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import data.int.basic data.equiv.basic
/-!
# Power operations on monoids and groups
The power operation on monoids and groups.
We separate this from... |
05cbf4a158874a8c98006b526f8ca10d1c0c6554 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/pretty_cases.lean | b078016019891516a18aa8d62b1c480435117b30 | [
"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 | 886 | lean | import tactic.pretty_cases
import data.list.perm
example {α} (xs ys : list α) (h : xs ~ ys) : true :=
begin
induction h,
do { x ← tactic.pretty_cases_advice,
guard (x =
"Try this:
case list.perm.nil
{ admit },
case list.perm.cons : h_x h_l₁ h_l₂ h_ᾰ h_ih
{ admit },
case list.perm.swap : h_x h_y h_... |
795929aa6a2c6eb9428fbbe7ef255a229f03b65f | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/theories/topology/basic.lean | b902d2bde0e538335a71d94bc41f8eb80b3b189c | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 7,500 | lean | /-
Copyright (c) 2015 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross, Jeremy Avigad
Open and closed sets, seperation axioms and generated topologies.
-/
import data.set data.nat
open algebra eq.ops set nat
structure topology [class] (X : Type... |
7b34fed773b76cc4f982653f8fdd57254157b6ed | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/functor.lean | dc77be75ec4a4001d8004f98a4f5956828734410 | [
"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 | 3,526 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison
-/
import tactic.reassoc_axiom
import tactic.monotonicity
import category_theory.category.basic
/-!
# Functors
Defines a functor between c... |
5b5f7cb0b12b8d375c6b2ab78791477095da3251 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/forest2.lean | c348a10bf09eacf961cb3d392ec4d8e069667582 | [
"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,663 | lean | import data.prod data.unit
open prod
inductive tree (A : Type) : Type :=
| node : A → forest A → tree A
with forest : Type :=
| nil : forest A
| cons : tree A → forest A → forest A
namespace solution1
inductive tree_forest (A : Type) :=
| of_tree : tree A → tree_forest A
| of_forest : forest A → tree_forest A
... |
261c781da12f6d9010cdf04376aa28c1df714c54 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/run/basic_monitor3.lean | a66c1d952e28bf0634072905d4fcf9934f9f1b79 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,619 | lean | meta def get_file (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some n ← return (vm_decl.olean d) | failure,
return (to_fmt n)
}
<|>
return (to_fmt "<curr file>")
meta def pos_info (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some pos ← return (vm_decl.pos d) | failure,
file ... |
2d8d9e436c1d66a54b6e9f06403e517ec73591d4 | 1fd908b06e3f9c1252cb2285ada1102623a67f72 | /init/pointed.lean | a34e2f9d086ab3ee394d9f06255ef4568c720185 | [
"Apache-2.0"
] | permissive | avigad/hott3 | 609a002849182721e7c7ae536d9f1e2956d6d4d3 | f64750cd2de7a81e87d4828246d1369d59f16f43 | refs/heads/master | 1,629,027,243,322 | 1,510,946,717,000 | 1,510,946,717,000 | 103,570,461 | 0 | 0 | null | 1,505,415,620,000 | 1,505,415,620,000 | null | UTF-8 | Lean | false | false | 6,810 | lean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The definition of pointed types. This file is here to avoid circularities in the import graph
-/
import .trunc
universes u v w
namespace hott
hott_theory
open eq ... |
ac001e3447da99f70978ddd6febdc636e175abaf | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/nat/parity.lean | a8f7ba5e7f2cc650a5599b834ea109cb5f8ab9bb | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 8,100 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
The `even` and `odd` predicates on the natural numbers.
-/
import data.nat.modeq
namespace nat
variables {m n : ℕ}
@[simp] theorem mod_two_ne_one : ... |
7b7f486071bf61df3d23b6f3f681afd6113ff326 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/dvec.lean | bb6f536c6e608af2a136753573615c28e2e0d728 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 2,717 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Dependently-typed vectors.
These are necessary to store multiple tensors of arbitrary shapes.
-/
import .util
inductive dvec {X : Type} (Y : X → Type) : list X → Type
| ... |
c4b0f5d4a6edf3cbdf58ad3727030ae34367e140 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/order/lattice.lean | a8880feb4642c9145ad74ad4b309fdc363f53451 | [
"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 | 4,663 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import topology.algebra.order.basic
import topology.constructions
/-!
# Topological lattices
In this file we define mixin classes `has_continuous_inf` and `... |
c406023d2c94ea0f7e7aa5d965d68cf17f5968a1 | 137c667471a40116a7afd7261f030b30180468c2 | /src/data/equiv/basic.lean | d7b87f4fa4dfe5146f9fe9e7fdcd1140ad3d0b8a | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 101,594 | 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 data.sigma.basic
/-!
# Equivalence between types
In this file we define two types:
* `equiv α β` a.k.a. `... |
6b007666d8cda2ab5d1a8a96ed1590afb21408fd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/identities.lean | 93d50ba61afbe3f73ebfe2a68b674eeb975da648 | [
"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 | 3,758 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.derivative
import tactic.linear_combination
import tactic.ring_exp
/-!
# Theory of univariate poly... |
107ee17343b010376c9247eae391b07b43f2c25c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/subst_tact.lean | 8099f53a6e9292b0d2f3acc15fee875218b5df49 | [
"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 | 550 | lean | open nat
example (a b c : nat) : a = 0 → b = 1 + a → a = b → false :=
begin
intro a0 b1 ab,
subst a0 b1,
state,
contradiction
end
example (a b c : nat) : a = 0 → b = 1 + a → a = b → false :=
begin
intro a0 b1 ab,
subst a0, subst b1,
state,
contradiction
end
example (a b c : nat) : a = 0 → 1 + a = b →... |
7dd992ad3f4723433fefec32efd5dba11a64b53c | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Data/List/Basic.lean | 520ba8564748f82082829efff590188f5f1bceb7 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 43,252 | lean | import Mathlib.Logic.Basic
import Mathlib.Data.Nat.Basic
import Mathlib.SetNotation
import Lean
namespace List
/-- The same as append, but with simpler defeq. (The one in the standard library is more efficient,
because it is implemented in a tail recursive way.) -/
@[simp] def append' : List α → List α → List α
| [], ... |
b1794fb0d0b0032addbcd55ccff635e7b8a23be9 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/equiv/encodable/lattice.lean | 9234d0292146bbee99ae6379968fba341723bf94 | [
"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 | 1,968 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.equiv.encodable.basic
import data.finset.basic
import data.set.pairwise
/-!
# Lattice operations on encodable types
Lemmas about lattice and set ope... |
86028de8acba45cd9769d9ac3c61a12d605f8335 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/quotient.lean | f8e1379161ef68333404bc53a10fde1e1da8b402 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,792 | 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, Kevin Buzzard, Yury Kudryashov
-/
import algebra.algebra.basic
import linear_algebra.basic
/-!
# Quotients by submodules
* If `p` is a submodule of `M... |
2fbea62bd004e923feaf7fa41501562757db7a5b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/order_of_element.lean | 72e1ff1bb22c07e303f05ca48da2f1cce6b12d32 | [
"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 | 33,540 | 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.hom.iterate
import data.nat.modeq
import data.set.pointwise
import dynamics.periodic_pts
import group_theory.index
/-!
# Order of ... |
d9cf14fff39a19fbf2288bee42efe10949a451a6 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/nat/default.lean | a7f30c0e411c12ddefa020ae0871f9f6b70c16eb | [
"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 | 245 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import .basic .order .sub .div .gcd .bquant .sqrt .pairing .power .find .fact .parity
|
32226e75f1a0006250c25fae7c1b7512b4f798e8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/definition.lean | 00aeb837d5444c0c3e3776499cee34dc89571299 | [
"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 | 207 | lean | inductive Foo where
| foo
example : Foo :=
let c := Foo.foo
c
--^ textDocument/typeDefinition
def f (x : Nat) : Nat :=
match x with
| 0 => 1
| y + 1 => y
--^ textDocument/declaration
|
33375f4edb3aa7c99c0682ae1b8f4daf2e365498 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/sanitychecks.lean | cedde21e588f6620b11af2bf6cca027902a2a4be | [
"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 | 776 | lean | theorem unsound : False := -- Error
unsound
partial theorem unsound : False := -- Error
unsound
unsafe theorem unsound : False := -- Error
unsound
constant unsound : False -- Error
axiom magic : False -- OK
partial def foo (x : Nat) : Nat := foo x -- OK
unsafe def unsound2 : False := unsound -- OK
parti... |
1a9a6ec8da8eee2b3ef6279c7cc1e5cf7fffda84 | 56762daf61566a2baf390b5d77988c29c75187e3 | /src/derivations.lean | 6091c36d3e336c24f09789e2289ceb5fc12f1179 | [] | no_license | Nicknamen/lie_group | de173ce5f1ffccb945ba05dca23ff27daef0e3b4 | e0d5c4f859654e3dea092702f1320c3c72a49983 | refs/heads/master | 1,674,937,428,196 | 1,607,213,423,000 | 1,607,213,423,000 | 275,196,635 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,941 | lean | import ring_theory.algebra
import tactic
/- IMPORTANT TODO: generalize this theory to bimodules. Important cases for mathematical
physics are left out. -/
open algebra ring_hom
@[protect_proj, ancestor add_left_cancel_semigroup add_comm_monoid]
class add_left_cancel_comm_monoid (M : Type*) extends add_left_cancel_se... |
aa18e1fda5599c983d78886a48117855832a831c | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/breen_deligne/suitable.lean | ff4a03b64820ca9feec15d9d17cbb5961c80b62e | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,534 | lean | import breen_deligne.basic
import data.real.nnreal
import for_mathlib.free_abelian_group
import for_mathlib.add_monoid_hom
open_locale nnreal big_operators
namespace breen_deligne
variables {k l m n : ℕ}
variables (r' : ℝ≥0) (S : Type*) (c c₁ c₂ c₃ : ℝ≥0) [fintype S]
namespace basic_universal_map
variables (f : b... |
4da8c6ede4e19979d0b72f8bdc6fa38e4fdfb73d | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/sum.lean | 455b92d9ff3a6d17f403e32adc7851b1652639a5 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 3,159 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
More theorems about the sum type.
-/
universes u v
variables {α : Type u} {β : Type v}
open sum
@[simp] theorem sum.forall {p : α ⊕ β → Prop} : (∀ x, p x) ↔ (∀ a, p (... |
7a182e9981ce8be52e343455890fe92111dec87f | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/canonize.lean | b221d7a2e6f6f28044d8c583c88c5e2be2f2fc27 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,441 | lean | import .cosette_tactics .TDP
open tactic
section canonize
meta inductive canonize_term_repr : Type
| sig : expr → list name → canonize_term_repr
| prod : list expr → canonize_term_repr
meta def expr_to_canonize_term_repr (ex : expr)
: tactic canonize_term_repr :=
match sigma_expr_to_sigma_repr ex with
| ⟨[], ... |
ce935dd6bf8de6cee531671cb404e9f1c484703e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Declaration.lean | 320e926b9d0cc1a50e8e697e1ff1896041f2cdf6 | [
"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 | 13,485 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
/--
Reducibility hints are used in the convertibility checker.
When trying to solve a constraint such a
(f ...)... |
2c47c6a3f81ce9c594fc41e622a0d7092052d4e1 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Deriving/Repr.lean | 3f2a3950eebf13747341e3749edb1c8ee9e5f5a5 | [
"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 | 5,132 | 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.Meta.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Repr
open... |
a11aa1cdbd57b2acc6272dc1372297c079dea1f1 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Data/Occurrences.lean | a12b7dc20a37013185783262bd1de8ada6f61417 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 810 | 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
-/
namespace Lean
inductive Occurrences
| all
| pos (idxs : List Nat)
| neg (idxs : List Nat)
namespace Occurrences
instance : Inhabited Occurrences :... |
a30a02e4b73a5eb030fb1d7cfae501dfd313f9c9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/disjointed.lean | ebb4a8605efd947f375c4ef805ec155b0680c3ef | [
"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 | 6,193 | 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, Yaël Dillies
-/
import order.partial_sups
/-!
# Consecutive differences of sets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
c6f6b8871d5aa9b75b62c534e1b900bc9cf12aab | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/Frontend.lean | fbffcb803ee92711f243cd84295a75b42012e1e8 | [
"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 | 4,756 | 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.Elab.Import
import Lean.Elab.Command
import Lean.Util.Profile
namespace Lean.Elab.Frontend
structure State where
commandS... |
5d2a106ccd43b3740dbd39e457e772e2fb36fe4e | 5aaf2c36656c8e760e9c8e4d3b19422402d70634 | /src/tut1.lean | 3214e199cd3fb140cad684dc9e27fac8bc84cc49 | [] | no_license | BassemSafieldeen/Lean-tutorials | 535746ccf8d4419419f4fcb544c1687dc564b537 | 031a14fa9700898e9895c9d41be8495275618c46 | refs/heads/main | 1,673,748,866,999 | 1,605,459,118,000 | 1,605,459,118,000 | 307,048,364 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 634 | lean | ---- STRUCTURES IN LEAN
/--
A type is a foo if the specified axioms are satisfied:
-/
class foo (α : Type) :=
(axiom_1 : 4 = 4)
(axiom_2 : 5 = 5)
/--
Some foos are also bar if an additional axiom is satisfied:
-/
class bar (α : Type) extends foo α :=
(axiom_3 : 6 = 6)
/--
Let's prove a theorem.
Theorem: If a type α... |
58a1ffbd36faaef9ccc3352b1511eab01a294823 | 246309748072bf9f8da313401699689ebbecd94d | /src/topology/sheaves/local_predicate.lean | 2c8f850743050678825f5b959a17e10b33964a48 | [
"Apache-2.0"
] | permissive | YJMD/mathlib | b703a641e5f32a996f7842f7c0043bab2b462ee2 | 7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9 | refs/heads/master | 1,670,714,479,314 | 1,599,035,445,000 | 1,599,035,445,000 | 292,279,930 | 0 | 0 | null | 1,599,050,561,000 | 1,599,050,560,000 | null | UTF-8 | Lean | false | false | 13,374 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import topology.sheaves.sheaf_of_functions
import topology.sheaves.stalks
/-!
# Functions satisfying a local predicate form a sheaf.
At ... |
e518a205b2635bd330b9cf68971464342d7a62cd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/reflect.lean | 924f2d4df3e7e1211ca0390ac43ccb2ce59e1926 | [
"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 | 38 | lean | #eval to_string $ (reflect 0).to_expr
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.